CreateNicsOutput output object

This commit is contained in:
jolestar 2017-03-27 23:48:57 +08:00 committed by Aspire
parent b48b1915ab
commit 8571159211
2 changed files with 14 additions and 4 deletions

View File

@ -152,7 +152,7 @@ func (v *CreateNicsInput) Validate() error {
type CreateNicsOutput struct { type CreateNicsOutput struct {
Message *string `json:"message" name:"message"` Message *string `json:"message" name:"message"`
Action *string `json:"action" name:"action" location:"elements"` Action *string `json:"action" name:"action" location:"elements"`
Nics []interface{} `json:"nics" name:"nics" location:"elements"` Nics []*NICIP `json:"nics" name:"nics" location:"elements"`
RetCode *int `json:"ret_code" name:"ret_code" location:"elements"` RetCode *int `json:"ret_code" name:"ret_code" location:"elements"`
} }

View File

@ -1504,6 +1504,16 @@ func (v *NIC) Validate() error {
return nil return nil
} }
type NICIP struct {
NICID *string `json:"nic_id" name:"nic_id"`
PrivateIP *string `json:"private_ip" name:"private_ip"`
}
func (v *NICIP) Validate() error {
return nil
}
type RDB struct { type RDB struct {
// AlarmStatus's available values: ok, alarm, insufficient // AlarmStatus's available values: ok, alarm, insufficient
AlarmStatus *string `json:"alarm_status" name:"alarm_status"` AlarmStatus *string `json:"alarm_status" name:"alarm_status"`