Skip to content

Commit

Permalink
Merge pull request #46 from yunify/ensureLB
Browse files Browse the repository at this point in the history
fix the wrong type of input parm for stop lb api
  • Loading branch information
jolestar authored Aug 28, 2017
2 parents 113ace4 + ff7a241 commit 63bdada
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions service/load_balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
package sdk

// Version number.
const Version = "2.0.0-alpha.9"
const Version = "2.0.0-alpha.10"

0 comments on commit 63bdada

Please sign in to comment.