diff --git a/power/models/datacenter.go b/power/models/datacenter.go index d32f9f87..62c632be 100644 --- a/power/models/datacenter.go +++ b/power/models/datacenter.go @@ -33,12 +33,12 @@ type Datacenter struct { // The Datacenter status // Required: true - // Enum: [Active Maintenance Down] + // Enum: [active maintenance down] Status *string `json:"status"` // The Datacenter type // Required: true - // Enum: [Public Cloud Private Cloud] + // Enum: [off-premises on-premises] Type *string `json:"type"` } @@ -101,7 +101,7 @@ var datacenterTypeStatusPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["Active","Maintenance","Down"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["active","maintenance","down"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -111,14 +111,14 @@ func init() { const ( - // DatacenterStatusActive captures enum value "Active" - DatacenterStatusActive string = "Active" + // DatacenterStatusActive captures enum value "active" + DatacenterStatusActive string = "active" - // DatacenterStatusMaintenance captures enum value "Maintenance" - DatacenterStatusMaintenance string = "Maintenance" + // DatacenterStatusMaintenance captures enum value "maintenance" + DatacenterStatusMaintenance string = "maintenance" - // DatacenterStatusDown captures enum value "Down" - DatacenterStatusDown string = "Down" + // DatacenterStatusDown captures enum value "down" + DatacenterStatusDown string = "down" ) // prop value enum @@ -147,7 +147,7 @@ var datacenterTypeTypePropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["Public Cloud","Private Cloud"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["off-premises","on-premises"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -157,11 +157,11 @@ func init() { const ( - // DatacenterTypePublicCloud captures enum value "Public Cloud" - DatacenterTypePublicCloud string = "Public Cloud" + // DatacenterTypeOffDashPremises captures enum value "off-premises" + DatacenterTypeOffDashPremises string = "off-premises" - // DatacenterTypePrivateCloud captures enum value "Private Cloud" - DatacenterTypePrivateCloud string = "Private Cloud" + // DatacenterTypeOnDashPremises captures enum value "on-premises" + DatacenterTypeOnDashPremises string = "on-premises" ) // prop value enum