diff --git a/VERSION b/VERSION index 6911254..84ee716 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v0.35.1 +v0.35.2 diff --git a/api/models/v1_server_capacity.go b/api/models/v1_server_capacity.go index 24e675c..8100878 100644 --- a/api/models/v1_server_capacity.go +++ b/api/models/v1_server_capacity.go @@ -19,6 +19,9 @@ import ( // swagger:model v1.ServerCapacity type V1ServerCapacity struct { + // free machines with this size, size reservations are not considered + Allocatable int32 `json:"allocatable,omitempty" yaml:"allocatable,omitempty"` + // allocated machines Allocated int32 `json:"allocated,omitempty" yaml:"allocated,omitempty"` @@ -40,6 +43,9 @@ type V1ServerCapacity struct { // machines in phoned home provisioning state PhonedHome int32 `json:"phoned_home,omitempty" yaml:"phoned_home,omitempty"` + // the amount of unused / remaining / open reservations for this size + Remainingreservations int32 `json:"remainingreservations,omitempty" yaml:"remainingreservations,omitempty"` + // the amount of reservations for this size Reservations int32 `json:"reservations,omitempty" yaml:"reservations,omitempty"` diff --git a/metal-api.json b/metal-api.json index 6e64f41..01ad550 100644 --- a/metal-api.json +++ b/metal-api.json @@ -4399,6 +4399,11 @@ }, "v1.ServerCapacity": { "properties": { + "allocatable": { + "description": "free machines with this size, size reservations are not considered", + "format": "int32", + "type": "integer" + }, "allocated": { "description": "allocated machines", "format": "int32", @@ -4438,6 +4443,11 @@ "format": "int32", "type": "integer" }, + "remainingreservations": { + "description": "the amount of unused / remaining / open reservations for this size", + "format": "int32", + "type": "integer" + }, "reservations": { "description": "the amount of reservations for this size", "format": "int32", @@ -5506,7 +5516,7 @@ "url": "https://www.gnu.org/licenses/agpl-3.0.de.html" }, "title": "metal-api", - "version": "v0.35.1" + "version": "v0.35.2" }, "paths": { "/v1/audit/find": {