From b24fc68c4a9dc64aff4b99c6dc91adb8b8d4619b Mon Sep 17 00:00:00 2001 From: Denis Bozzato Date: Fri, 15 Nov 2024 11:26:26 -0600 Subject: [PATCH] Included controller ID in the location object returned by the available resources API --- .../components/schemas/LocationInfo.yaml | 5 +++++ v1/pkg/client/api/openapi.yaml | 18 ++++++++++++++++++ v1/pkg/client/docs/LocationInfo.md | 1 + v1/pkg/client/model_location_info.go | 2 ++ 4 files changed, 26 insertions(+) diff --git a/v1/api/swagger/components/schemas/LocationInfo.yaml b/v1/api/swagger/components/schemas/LocationInfo.yaml index aab42a03..03198a17 100644 --- a/v1/api/swagger/components/schemas/LocationInfo.yaml +++ b/v1/api/swagger/components/schemas/LocationInfo.yaml @@ -9,6 +9,7 @@ required: - DataCenter - PrivateNetworkVIDSupport - PrivateNetworkVNISupport + - ControllerID properties: ID: type: string @@ -30,3 +31,7 @@ properties: PrivateNetworkVNISupport: type: boolean description: Indicates whether or not the fabric dedicated for private networks supports VNI ID. + ControllerID: + type: string + format: uuid + description: Unique ID for the controller that manages the data center. \ No newline at end of file diff --git a/v1/pkg/client/api/openapi.yaml b/v1/pkg/client/api/openapi.yaml index 69912338..c16ea6fc 100644 --- a/v1/pkg/client/api/openapi.yaml +++ b/v1/pkg/client/api/openapi.yaml @@ -3522,11 +3522,13 @@ components: Locations: - DataCenter: FTC1 PrivateNetworkVNISupport: true + ControllerID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 Region: Central ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 PrivateNetworkVIDSupport: true - DataCenter: FTC1 PrivateNetworkVNISupport: true + ControllerID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 Region: Central ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 PrivateNetworkVIDSupport: true @@ -3541,11 +3543,13 @@ components: Locations: - DataCenter: FTC1 PrivateNetworkVNISupport: true + ControllerID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 Region: Central ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 PrivateNetworkVIDSupport: true - DataCenter: FTC1 PrivateNetworkVNISupport: true + ControllerID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 Region: Central ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 PrivateNetworkVIDSupport: true @@ -3562,11 +3566,13 @@ components: Locations: - DataCenter: FTC1 PrivateNetworkVNISupport: true + ControllerID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 Region: Central ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 PrivateNetworkVIDSupport: true - DataCenter: FTC1 PrivateNetworkVNISupport: true + ControllerID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 Region: Central ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 PrivateNetworkVIDSupport: true @@ -3908,11 +3914,13 @@ components: Locations: - DataCenter: FTC1 PrivateNetworkVNISupport: true + ControllerID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 Region: Central ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 PrivateNetworkVIDSupport: true - DataCenter: FTC1 PrivateNetworkVNISupport: true + ControllerID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 Region: Central ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 PrivateNetworkVIDSupport: true @@ -4628,11 +4636,13 @@ components: Locations: - DataCenter: FTC1 PrivateNetworkVNISupport: true + ControllerID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 Region: Central ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 PrivateNetworkVIDSupport: true - DataCenter: FTC1 PrivateNetworkVNISupport: true + ControllerID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 Region: Central ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 PrivateNetworkVIDSupport: true @@ -4743,11 +4753,13 @@ components: Locations: - DataCenter: FTC1 PrivateNetworkVNISupport: true + ControllerID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 Region: Central ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 PrivateNetworkVIDSupport: true - DataCenter: FTC1 PrivateNetworkVNISupport: true + ControllerID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 Region: Central ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 PrivateNetworkVIDSupport: true @@ -5092,6 +5104,7 @@ components: example: DataCenter: FTC1 PrivateNetworkVNISupport: true + ControllerID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 Region: Central ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 PrivateNetworkVIDSupport: true @@ -5118,7 +5131,12 @@ components: description: Indicates whether or not the fabric dedicated for private networks supports VNI ID. type: boolean + ControllerID: + description: Unique ID for the controller that manages the data center. + format: uuid + type: string required: + - ControllerID - Country - DataCenter - ID diff --git a/v1/pkg/client/docs/LocationInfo.md b/v1/pkg/client/docs/LocationInfo.md index 1c172476..6b85821e 100644 --- a/v1/pkg/client/docs/LocationInfo.md +++ b/v1/pkg/client/docs/LocationInfo.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **DataCenter** | **string** | Data center descriptor | **PrivateNetworkVIDSupport** | **bool** | Indicates whether or not the fabric dedicated for private networks supports VLAN ID. | **PrivateNetworkVNISupport** | **bool** | Indicates whether or not the fabric dedicated for private networks supports VNI ID. | +**ControllerID** | **string** | Unique ID for the controller that manages the data center. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/v1/pkg/client/model_location_info.go b/v1/pkg/client/model_location_info.go index a6323bc9..b9a94f25 100644 --- a/v1/pkg/client/model_location_info.go +++ b/v1/pkg/client/model_location_info.go @@ -23,4 +23,6 @@ type LocationInfo struct { PrivateNetworkVIDSupport bool `json:"PrivateNetworkVIDSupport"` // Indicates whether or not the fabric dedicated for private networks supports VNI ID. PrivateNetworkVNISupport bool `json:"PrivateNetworkVNISupport"` + // Unique ID for the controller that manages the data center. + ControllerID string `json:"ControllerID"` }