Merge pull request #46 from yunify/ensureLB

fix the wrong type of input parm for stop lb api
This commit is contained in:
jolestar 2017-08-28 13:31:24 +08:00 committed by GitHub
commit 63bdada5c0
3 changed files with 12 additions and 3 deletions

View File

@ -1,6 +1,12 @@
# Change Log
All notable changes to QingCloud SDK for Go will be documented in this file.
## [v2.0.0-alpha.10] - 2017-08-28
### Fixed
- Fixed loadbalancers section in request of StopLoadBalancers
## [v2.0.0-alpha.9] - 2017-08-23
### Added
@ -71,6 +77,9 @@ All notable changes to QingCloud SDK for Go will be documented in this file.
### Added
- QingCloud SDK for the Go programming language.
[v2.0.0-alpha.10]: https://github.com/yunify/qingcloud-sdk-go/compare/v2.0.0-alpha.9...v2.0.0-alpha.10
[v2.0.0-alpha.9]: https://github.com/yunify/qingcloud-sdk-go/compare/v2.0.0-alpha.8...v2.0.0-alpha.9
[v2.0.0-alpha.8]: https://github.com/yunify/qingcloud-sdk-go/compare/v2.0.0-alpha.7...v2.0.0-alpha.8
[v2.0.0-alpha.7]: https://github.com/yunify/qingcloud-sdk-go/compare/v2.0.0-alpha.6...v2.0.0-alpha.7
[v2.0.0-alpha.6]: https://github.com/yunify/qingcloud-sdk-go/compare/v2.0.0-alpha.5...v2.0.0-alpha.6
[v2.0.0-alpha.5]: https://github.com/yunify/qingcloud-sdk-go/compare/v2.0.0-alpha.4...v2.0.0-alpha.5

View File

@ -1709,12 +1709,12 @@ func (s *LoadBalancerService) StopLoadBalancers(i *StopLoadBalancersInput) (*Sto
}
type StopLoadBalancersInput struct {
LoadBalancers *string `json:"loadbalancers" name:"loadbalancers" location:"params"` // Required
LoadBalancers []*string `json:"loadbalancers" name:"loadbalancers" location:"params"` // Required
}
func (v *StopLoadBalancersInput) Validate() error {
if v.LoadBalancers == nil {
if len(v.LoadBalancers) == 0 {
return errors.ParameterRequiredError{
ParameterName: "LoadBalancers",
ParentName: "StopLoadBalancersInput",

View File

@ -20,4 +20,4 @@
package sdk
// Version number.
const Version = "2.0.0-alpha.9"
const Version = "2.0.0-alpha.10"