change LoadBalancer eips to cluster

This commit is contained in:
jolestar 2017-07-03 19:38:32 +08:00 committed by Aspire
parent f036333d91
commit a8e7405464
1 changed files with 3 additions and 3 deletions

View File

@ -1029,9 +1029,9 @@ func (v *KeyPair) Validate() error {
}
type LoadBalancer struct {
Cluster []*EIP `json:"cluster" name:"cluster"`
CreateTime *time.Time `json:"create_time" name:"create_time" format:"ISO 8601"`
Description *string `json:"description" name:"description"`
EIPs []*EIP `json:"eips" name:"eips"`
// IsApplied's available values: 0, 1
IsApplied *int `json:"is_applied" name:"is_applied"`
Listeners []*LoadBalancerListener `json:"listeners" name:"listeners"`
@ -1048,8 +1048,8 @@ type LoadBalancer struct {
func (v *LoadBalancer) Validate() error {
if len(v.EIPs) > 0 {
for _, property := range v.EIPs {
if len(v.Cluster) > 0 {
for _, property := range v.Cluster {
if err := property.Validate(); err != nil {
return err
}