diff --git a/api/models/v1_server_capacity.go b/api/models/v1_server_capacity.go index 103fffa..4104f38 100644 --- a/api/models/v1_server_capacity.go +++ b/api/models/v1_server_capacity.go @@ -55,9 +55,9 @@ type V1ServerCapacity struct { // Required: true Total *int32 `json:"total" yaml:"total"` - // the amount of unused reservations for this size + // the amount of used reservations for this size // Required: true - Unusedreservations *int32 `json:"unusedreservations" yaml:"unusedreservations"` + Usedreservations *int32 `json:"usedreservations" yaml:"usedreservations"` } // Validate validates this v1 server capacity @@ -100,7 +100,7 @@ func (m *V1ServerCapacity) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateUnusedreservations(formats); err != nil { + if err := m.validateUsedreservations(formats); err != nil { res = append(res, err) } @@ -191,9 +191,9 @@ func (m *V1ServerCapacity) validateTotal(formats strfmt.Registry) error { return nil } -func (m *V1ServerCapacity) validateUnusedreservations(formats strfmt.Registry) error { +func (m *V1ServerCapacity) validateUsedreservations(formats strfmt.Registry) error { - if err := validate.Required("unusedreservations", "body", m.Unusedreservations); err != nil { + if err := validate.Required("usedreservations", "body", m.Usedreservations); err != nil { return err } diff --git a/metal-api.json b/metal-api.json index d5fc508..e1dec32 100644 --- a/metal-api.json +++ b/metal-api.json @@ -4262,8 +4262,8 @@ "format": "int32", "type": "integer" }, - "unusedreservations": { - "description": "the amount of unused reservations for this size", + "usedreservations": { + "description": "the amount of used reservations for this size", "format": "int32", "type": "integer" } @@ -4278,7 +4278,7 @@ "reservations", "size", "total", - "unusedreservations" + "usedreservations" ] }, "v1.SizeConstraint": {