From e820879c81ee48e2736c9db3fe195452dde43617 Mon Sep 17 00:00:00 2001 From: Petr Date: Mon, 20 May 2024 14:22:46 +0000 Subject: [PATCH] Prepare the api for ARM Move swagger to subfolder and create autorest config readme files. The folder structure is selected to match the structure of the azure repository. --- api/autorest-config.yaml | 2 +- ...rations_ListByLocation_MinimumSet_Gen.json | 18 - ...rsions_ListByLocation_MaximumSet_Gen.json} | 6 +- ...ersions_ListByLocation_MinimumSet_Gen.json | 20 ++ ...sters_AdminCredentials_MaximumSet_Gen.json | 2 +- ...lusters_CreateOrUpdate_MaximumSet_Gen.json | 22 +- ...enShiftClusters_Delete_MaximumSet_Gen.json | 2 +- ...pOpenShiftClusters_Get_MaximumSet_Gen.json | 12 +- ...iftClusters_KubeConfig_MaximumSet_Gen.json | 2 +- ...rs_ListByResourceGroup_MaximumSet_Gen.json | 10 +- ...ers_ListBySubscription_MaximumSet_Gen.json | 10 +- ...enShiftClusters_Update_MaximumSet_Gen.json | 12 +- ...dePools_CreateOrUpdate_MaximumSet_Gen.json | 14 +- .../NodePools_Delete_MaximumSet_Gen.json | 4 +- .../NodePools_Get_MaximumSet_Gen.json | 6 +- ...enShiftClusterResource_MaximumSet_Gen.json | 4 +- .../NodePools_Update_MaximumSet_Gen.json | 52 +-- .../Operations_List_MaximumSet_Gen.json | 2 +- .../HcpCluster/hcpCluster-models.tsp | 18 +- api/redhatopenshift/HcpCluster/hcpCluster.tsp | 6 +- .../HcpCluster/hcpVersions.tsp | 11 +- api/redhatopenshift/HcpCluster/main.tsp | 11 +- api/redhatopenshift/HcpCluster/tspconfig.yaml | 2 +- ...rsions_ListByLocation_MaximumSet_Gen.json} | 6 +- ...ersions_ListByLocation_MinimumSet_Gen.json | 20 ++ ...sters_AdminCredentials_MaximumSet_Gen.json | 2 +- ...lusters_CreateOrUpdate_MaximumSet_Gen.json | 22 +- ...enShiftClusters_Delete_MaximumSet_Gen.json | 2 +- ...pOpenShiftClusters_Get_MaximumSet_Gen.json | 12 +- ...iftClusters_KubeConfig_MaximumSet_Gen.json | 2 +- ...rs_ListByResourceGroup_MaximumSet_Gen.json | 10 +- ...ers_ListBySubscription_MaximumSet_Gen.json | 10 +- ...enShiftClusters_Update_MaximumSet_Gen.json | 12 +- ...dePools_CreateOrUpdate_MaximumSet_Gen.json | 14 +- .../NodePools_Delete_MaximumSet_Gen.json | 4 +- .../NodePools_Get_MaximumSet_Gen.json | 6 +- ...enShiftClusterResource_MaximumSet_Gen.json | 4 +- .../NodePools_Update_MaximumSet_Gen.json | 52 +-- .../Operations_List_MaximumSet_Gen.json | 2 +- .../Operations_List_MinimumSet_Gen.json | 0 .../preview/2024-06-10-preview/openapi.json | 310 +++++++++--------- .../hcpclusters/readme.go.md | 34 ++ .../hcpclusters/readme.md | 66 ++++ .../hcpclusters/readme.python.md | 41 +++ ...rations_ListByLocation_MinimumSet_Gen.json | 18 - .../generated/client_factory.go | 6 +- .../fake/hcpclusterversions_server.go | 109 ++++++ .../fake/hcpopenshiftclusters_server.go | 16 +- .../generated/fake/nodepools_server.go | 10 +- .../generated/fake/server_factory.go | 10 +- .../generated/hcpclusterversions_client.go | 104 ++++++ .../generated/hcpopenshiftclusters_client.go | 16 +- .../api/v20240610preview/generated/models.go | 78 +++-- .../generated/models_serde.go | 89 +++-- .../generated/nodepools_client.go | 10 +- .../generated/operations_client.go | 2 +- .../api/v20240610preview/generated/options.go | 4 +- .../v20240610preview/generated/responses.go | 8 +- 58 files changed, 886 insertions(+), 473 deletions(-) delete mode 100644 api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpClusterVersionOperations_ListByLocation_MinimumSet_Gen.json rename api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/{HcpClusterVersionOperations_ListByLocation_MaximumSet_Gen.json => HcpClusterVersions_ListByLocation_MaximumSet_Gen.json} (75%) create mode 100644 api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpClusterVersions_ListByLocation_MinimumSet_Gen.json rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{preview/2024-06-10-preview/examples/HcpClusterVersionOperations_ListByLocation_MaximumSet_Gen.json => hcpclusters/preview/2024-06-10-preview/examples/HcpClusterVersions_ListByLocation_MaximumSet_Gen.json} (75%) create mode 100644 api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpClusterVersions_ListByLocation_MinimumSet_Gen.json rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_AdminCredentials_MaximumSet_Gen.json (79%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_CreateOrUpdate_MaximumSet_Gen.json (90%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_Delete_MaximumSet_Gen.json (79%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_Get_MaximumSet_Gen.json (88%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_KubeConfig_MaximumSet_Gen.json (75%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_ListByResourceGroup_MaximumSet_Gen.json (90%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_ListBySubscription_MaximumSet_Gen.json (90%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_Update_MaximumSet_Gen.json (90%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/NodePools_CreateOrUpdate_MaximumSet_Gen.json (84%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/NodePools_Delete_MaximumSet_Gen.json (65%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/NodePools_Get_MaximumSet_Gen.json (86%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/NodePools_ListByHcpOpenShiftClusterResource_MaximumSet_Gen.json (89%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/NodePools_Update_MaximumSet_Gen.json (62%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/Operations_List_MaximumSet_Gen.json (92%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/Operations_List_MinimumSet_Gen.json (100%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/openapi.json (86%) create mode 100644 api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/readme.go.md create mode 100644 api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/readme.md create mode 100644 api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/readme.python.md delete mode 100644 api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpClusterVersionOperations_ListByLocation_MinimumSet_Gen.json create mode 100644 internal/api/v20240610preview/generated/fake/hcpclusterversions_server.go create mode 100644 internal/api/v20240610preview/generated/hcpclusterversions_client.go diff --git a/api/autorest-config.yaml b/api/autorest-config.yaml index 06f5652b9..f1ffc8797 100644 --- a/api/autorest-config.yaml +++ b/api/autorest-config.yaml @@ -1,5 +1,5 @@ --- -input-file: redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/openapi.json +input-file: redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/openapi.json use: # TODO: This is an old version. We should fix incompatibilities and remove this later - "@autorest/go@4.0.0-preview.63" diff --git a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpClusterVersionOperations_ListByLocation_MinimumSet_Gen.json b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpClusterVersionOperations_ListByLocation_MinimumSet_Gen.json deleted file mode 100644 index 7dde06591..000000000 --- a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpClusterVersionOperations_ListByLocation_MinimumSet_Gen.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "title": "HcpClusterVersionOperations_ListByLocation_Minimum", - "operationId": "HcpClusterVersionOperations_ListByLocation", - "parameters": { - "api-version": "2024-06-10-preview", - "subscriptionId": "FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D", - "location": "pdtzymgwqsbxy" - }, - "responses": { - "200": { - "body": { - "value": [ - {} - ] - } - } - } -} \ No newline at end of file diff --git a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpClusterVersionOperations_ListByLocation_MaximumSet_Gen.json b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpClusterVersions_ListByLocation_MaximumSet_Gen.json similarity index 75% rename from api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpClusterVersionOperations_ListByLocation_MaximumSet_Gen.json rename to api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpClusterVersions_ListByLocation_MaximumSet_Gen.json index 635f459e6..87653a7bf 100644 --- a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpClusterVersionOperations_ListByLocation_MaximumSet_Gen.json +++ b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpClusterVersions_ListByLocation_MaximumSet_Gen.json @@ -1,6 +1,6 @@ { - "title": "HcpClusterVersionOperations_ListByLocation_Maximum", - "operationId": "HcpClusterVersionOperations_ListByLocation", + "title": "HcpClusterVersions_ListByLocation_Maximum", + "operationId": "HcpClusterVersions_ListByLocation", "parameters": { "api-version": "2024-06-10-preview", "subscriptionId": "FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D", @@ -15,7 +15,7 @@ "provisioningState": "Succeeded", "clusterVersion": "xkfddeiqkiqqkqzgnby" }, - "id": "pvhxaztlblmgvoyoeqczqf", + "id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName", "name": "mvugweyhywfyadmkhkzrlhoiscgfl", "type": "by", "systemData": { diff --git a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpClusterVersions_ListByLocation_MinimumSet_Gen.json b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpClusterVersions_ListByLocation_MinimumSet_Gen.json new file mode 100644 index 000000000..1d1f0498f --- /dev/null +++ b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpClusterVersions_ListByLocation_MinimumSet_Gen.json @@ -0,0 +1,20 @@ +{ + "title": "HcpClusterVersions_ListByLocation_Minimum", + "operationId": "HcpClusterVersions_ListByLocation", + "parameters": { + "api-version": "2024-06-10-preview", + "subscriptionId": "FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D", + "location": "pdtzymgwqsbxy" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName" + } + ] + } + } + } +} \ No newline at end of file diff --git a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_AdminCredentials_MaximumSet_Gen.json b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_AdminCredentials_MaximumSet_Gen.json index df8c7eadf..522874572 100644 --- a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_AdminCredentials_MaximumSet_Gen.json +++ b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_AdminCredentials_MaximumSet_Gen.json @@ -5,7 +5,7 @@ "api-version": "2024-06-10-preview", "subscriptionId": "FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D", "resourceGroupName": "rgopenapi", - "hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$" + "hcpOpenShiftClusterName": "hcpCluster-name" }, "responses": { "200": { diff --git a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_CreateOrUpdate_MaximumSet_Gen.json b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_CreateOrUpdate_MaximumSet_Gen.json index 8d1fa5ad6..601a0db8d 100644 --- a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_CreateOrUpdate_MaximumSet_Gen.json +++ b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_CreateOrUpdate_MaximumSet_Gen.json @@ -5,7 +5,7 @@ "api-version": "2024-06-10-preview", "subscriptionId": "FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D", "resourceGroupName": "rgopenapi", - "hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$", + "hcpOpenShiftClusterName": "hcpCluster-name", "resource": { "properties": { "spec": { @@ -152,13 +152,13 @@ } }, "identity": { - "principalId": "xlswu", - "tenantId": "xfqisd", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000", "type": "None", "userAssignedIdentities": { "key4794": { - "principalId": "uctdckatfraombzrbkdltewc", - "clientId": "auud" + "principalId": "00000000-0000-0000-0000-000000000000", + "clientId": "00000000-0000-0000-0000-000000000000" } } }, @@ -166,7 +166,7 @@ "key4181": "leaswtidajsjtgmqawhdl" }, "location": "ayecbdqonsqfowbq", - "id": "xioeiro", + "id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName", "name": "vuwzuwooutjavgdhoatz", "type": "utiyj", "systemData": { @@ -268,13 +268,13 @@ } }, "identity": { - "principalId": "xlswu", - "tenantId": "xfqisd", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000", "type": "None", "userAssignedIdentities": { "key4794": { - "principalId": "uctdckatfraombzrbkdltewc", - "clientId": "auud" + "principalId": "00000000-0000-0000-0000-000000000000", + "clientId": "00000000-0000-0000-0000-000000000000" } } }, @@ -282,7 +282,7 @@ "key4181": "leaswtidajsjtgmqawhdl" }, "location": "ayecbdqonsqfowbq", - "id": "xioeiro", + "id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName", "name": "vuwzuwooutjavgdhoatz", "type": "utiyj", "systemData": { diff --git a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_Delete_MaximumSet_Gen.json b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_Delete_MaximumSet_Gen.json index 78876fe88..418c234c1 100644 --- a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_Delete_MaximumSet_Gen.json +++ b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_Delete_MaximumSet_Gen.json @@ -5,7 +5,7 @@ "api-version": "2024-06-10-preview", "subscriptionId": "FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D", "resourceGroupName": "rgopenapi", - "hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$" + "hcpOpenShiftClusterName": "hcpCluster-name" }, "responses": { "202": { diff --git a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_Get_MaximumSet_Gen.json b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_Get_MaximumSet_Gen.json index b8fda9e5a..5d9c5173a 100644 --- a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_Get_MaximumSet_Gen.json +++ b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_Get_MaximumSet_Gen.json @@ -5,7 +5,7 @@ "api-version": "2024-06-10-preview", "subscriptionId": "FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D", "resourceGroupName": "rgopenapi", - "hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$" + "hcpOpenShiftClusterName": "hcpCluster-name" }, "responses": { "200": { @@ -94,13 +94,13 @@ } }, "identity": { - "principalId": "xlswu", - "tenantId": "xfqisd", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000", "type": "None", "userAssignedIdentities": { "key4794": { - "principalId": "uctdckatfraombzrbkdltewc", - "clientId": "auud" + "principalId": "00000000-0000-0000-0000-000000000000", + "clientId": "00000000-0000-0000-0000-000000000000" } } }, @@ -108,7 +108,7 @@ "key4181": "leaswtidajsjtgmqawhdl" }, "location": "ayecbdqonsqfowbq", - "id": "xioeiro", + "id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName", "name": "vuwzuwooutjavgdhoatz", "type": "utiyj", "systemData": { diff --git a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_KubeConfig_MaximumSet_Gen.json b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_KubeConfig_MaximumSet_Gen.json index dadc33f48..67f49d761 100644 --- a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_KubeConfig_MaximumSet_Gen.json +++ b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_KubeConfig_MaximumSet_Gen.json @@ -5,7 +5,7 @@ "api-version": "2024-06-10-preview", "subscriptionId": "FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D", "resourceGroupName": "rgopenapi", - "hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$" + "hcpOpenShiftClusterName": "hcpCluster-name" }, "responses": { "200": { diff --git a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_ListByResourceGroup_MaximumSet_Gen.json b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_ListByResourceGroup_MaximumSet_Gen.json index 26e4f70fa..2df065dce 100644 --- a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_ListByResourceGroup_MaximumSet_Gen.json +++ b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_ListByResourceGroup_MaximumSet_Gen.json @@ -95,13 +95,13 @@ } }, "identity": { - "principalId": "xlswu", - "tenantId": "xfqisd", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000", "type": "None", "userAssignedIdentities": { "key4794": { - "principalId": "uctdckatfraombzrbkdltewc", - "clientId": "auud" + "principalId": "00000000-0000-0000-0000-000000000000", + "clientId": "00000000-0000-0000-0000-000000000000" } } }, @@ -109,7 +109,7 @@ "key4181": "leaswtidajsjtgmqawhdl" }, "location": "ayecbdqonsqfowbq", - "id": "xioeiro", + "id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName", "name": "vuwzuwooutjavgdhoatz", "type": "utiyj", "systemData": { diff --git a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_ListBySubscription_MaximumSet_Gen.json b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_ListBySubscription_MaximumSet_Gen.json index 00f0bdc46..df07397ce 100644 --- a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_ListBySubscription_MaximumSet_Gen.json +++ b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_ListBySubscription_MaximumSet_Gen.json @@ -94,13 +94,13 @@ } }, "identity": { - "principalId": "xlswu", - "tenantId": "xfqisd", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000", "type": "None", "userAssignedIdentities": { "key4794": { - "principalId": "uctdckatfraombzrbkdltewc", - "clientId": "auud" + "principalId": "00000000-0000-0000-0000-000000000000", + "clientId": "00000000-0000-0000-0000-000000000000" } } }, @@ -108,7 +108,7 @@ "key4181": "leaswtidajsjtgmqawhdl" }, "location": "ayecbdqonsqfowbq", - "id": "xioeiro", + "id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName", "name": "vuwzuwooutjavgdhoatz", "type": "utiyj", "systemData": { diff --git a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_Update_MaximumSet_Gen.json b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_Update_MaximumSet_Gen.json index 370909c42..1acd0e06f 100644 --- a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_Update_MaximumSet_Gen.json +++ b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/HcpOpenShiftClusters_Update_MaximumSet_Gen.json @@ -5,7 +5,7 @@ "api-version": "2024-06-10-preview", "subscriptionId": "FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D", "resourceGroupName": "rgopenapi", - "hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$", + "hcpOpenShiftClusterName": "hcpCluster-name", "properties": { "identity": { "type": "None", @@ -120,13 +120,13 @@ } }, "identity": { - "principalId": "xlswu", - "tenantId": "xfqisd", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000", "type": "None", "userAssignedIdentities": { "key4794": { - "principalId": "uctdckatfraombzrbkdltewc", - "clientId": "auud" + "principalId": "00000000-0000-0000-0000-000000000000", + "clientId": "00000000-0000-0000-0000-000000000000" } } }, @@ -134,7 +134,7 @@ "key4181": "leaswtidajsjtgmqawhdl" }, "location": "ayecbdqonsqfowbq", - "id": "xioeiro", + "id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName", "name": "vuwzuwooutjavgdhoatz", "type": "utiyj", "systemData": { diff --git a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/NodePools_CreateOrUpdate_MaximumSet_Gen.json b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/NodePools_CreateOrUpdate_MaximumSet_Gen.json index 02f7517a0..2d6a7cdc9 100644 --- a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/NodePools_CreateOrUpdate_MaximumSet_Gen.json +++ b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/NodePools_CreateOrUpdate_MaximumSet_Gen.json @@ -5,8 +5,8 @@ "api-version": "2024-06-10-preview", "subscriptionId": "F64FF5E2-2AD0-4E4D-A9D5-6E88511247A7", "resourceGroupName": "rgopenapi", - "hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$", - "nodePoolName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$", + "hcpOpenShiftClusterName": "hcpCluster-name", + "nodePoolName": "nodePool-name", "resource": { "properties": { "spec": { @@ -34,7 +34,11 @@ "ufrvhxdwltr" ], "taints": [ - "yzmuazkxmfhksrjm" + { + "key": "iveofwsptzsxepyfirlfypshvkgzkpfdwrpreacacbcifrzpvmgmovnpmkeqxgvamtbwqfewlrnlcqcmbnqhdgvosyxazqxwtlcviveerkvdrveayeyvasngwjmrsnhyvmayzrndwahvuoocvbqjuscmybctzhrhbotipnrwhnkhejgiuanmidrdjetccddupjtvvztlbwlgdxgdwlhxdlluvcduh", + "value": "x", + "effect": "NoSchedule" + } ], "tuningConfigs": [ "m" @@ -81,7 +85,7 @@ "key7212": "uufkzlwqnoxdfihpqz" }, "location": "mqewzbuvnyxnwbmir", - "id": "ogtjdgogxemijejkai", + "id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName", "name": "riywfucwvfwoepzliopnphdfjw", "type": "znmdhkzcopsephiyom", "systemData": { @@ -130,7 +134,7 @@ "key7212": "uufkzlwqnoxdfihpqz" }, "location": "mqewzbuvnyxnwbmir", - "id": "ogtjdgogxemijejkai", + "id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName", "name": "riywfucwvfwoepzliopnphdfjw", "type": "znmdhkzcopsephiyom", "systemData": { diff --git a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/NodePools_Delete_MaximumSet_Gen.json b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/NodePools_Delete_MaximumSet_Gen.json index 63f971276..7c56a1b47 100644 --- a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/NodePools_Delete_MaximumSet_Gen.json +++ b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/NodePools_Delete_MaximumSet_Gen.json @@ -5,8 +5,8 @@ "api-version": "2024-06-10-preview", "subscriptionId": "F64FF5E2-2AD0-4E4D-A9D5-6E88511247A7", "resourceGroupName": "rgopenapi", - "hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$", - "nodePoolName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$" + "hcpOpenShiftClusterName": "hcpCluster-name", + "nodePoolName": "nodePool-name" }, "responses": { "202": { diff --git a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/NodePools_Get_MaximumSet_Gen.json b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/NodePools_Get_MaximumSet_Gen.json index 00422541f..abbef027b 100644 --- a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/NodePools_Get_MaximumSet_Gen.json +++ b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/NodePools_Get_MaximumSet_Gen.json @@ -5,8 +5,8 @@ "api-version": "2024-06-10-preview", "subscriptionId": "F64FF5E2-2AD0-4E4D-A9D5-6E88511247A7", "resourceGroupName": "rgopenapi", - "hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$", - "nodePoolName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$" + "hcpOpenShiftClusterName": "hcpCluster-name", + "nodePoolName": "nodepool-name" }, "responses": { "200": { @@ -42,7 +42,7 @@ "key7212": "uufkzlwqnoxdfihpqz" }, "location": "mqewzbuvnyxnwbmir", - "id": "ogtjdgogxemijejkai", + "id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName", "name": "riywfucwvfwoepzliopnphdfjw", "type": "znmdhkzcopsephiyom", "systemData": { diff --git a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/NodePools_ListByHcpOpenShiftClusterResource_MaximumSet_Gen.json b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/NodePools_ListByHcpOpenShiftClusterResource_MaximumSet_Gen.json index 5f29b864d..2c777a0c1 100644 --- a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/NodePools_ListByHcpOpenShiftClusterResource_MaximumSet_Gen.json +++ b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/NodePools_ListByHcpOpenShiftClusterResource_MaximumSet_Gen.json @@ -5,7 +5,7 @@ "api-version": "2024-06-10-preview", "subscriptionId": "F64FF5E2-2AD0-4E4D-A9D5-6E88511247A7", "resourceGroupName": "rgopenapi", - "hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$" + "hcpOpenShiftClusterName": "hcpCluster-name" }, "responses": { "200": { @@ -43,7 +43,7 @@ "key7212": "uufkzlwqnoxdfihpqz" }, "location": "mqewzbuvnyxnwbmir", - "id": "ogtjdgogxemijejkai", + "id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName", "name": "riywfucwvfwoepzliopnphdfjw", "type": "znmdhkzcopsephiyom", "systemData": { diff --git a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/NodePools_Update_MaximumSet_Gen.json b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/NodePools_Update_MaximumSet_Gen.json index aad3b759a..d9d8c8562 100644 --- a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/NodePools_Update_MaximumSet_Gen.json +++ b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/NodePools_Update_MaximumSet_Gen.json @@ -5,30 +5,36 @@ "api-version": "2024-06-10-preview", "subscriptionId": "F64FF5E2-2AD0-4E4D-A9D5-6E88511247A7", "resourceGroupName": "rgopenapi", - "hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$", - "nodePoolName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$", + "hcpOpenShiftClusterName": "hcpCluster-name", + "nodePoolName": "nodePool-name", "properties": { - "tags": { - "key3313": "aciaohrpspozhrvwvbdtpqliezchbn" - }, - "properties": { - "version": { - "id": "chh" - }, - "replicas": 7, - "autoScaling": { - "min": 29, - "max": 2 + "spec": { + "tags": { + "key3313": "aciaohrpspozhrvwvbdtpqliezchbn" }, - "labels": [ - "qptpzhtgcqsofgvlahww" - ], - "taints": [ - "fzmckrigt" - ], - "tuningConfigs": [ - "dvoeaysltfusyb" - ] + "properties": { + "version": { + "id": "chh" + }, + "replicas": 7, + "autoScaling": { + "min": 29, + "max": 2 + }, + "labels": [ + "qptpzhtgcqsofgvlahww" + ], + "taints": [ + { + "key": "iveofwsptzsxepyfirlfypshvkgzkpfdwrpreacacbcifrzpvmgmovnpmkeqxgvamtbwqfewlrnlcqcmbnqhdgvosyxazqxwtlcviveerkvdrveayeyvasngwjmrsnhyvmayzrndwahvuoocvbqjuscmybctzhrhbotipnrwhnkhejgiuanmidrdjetccddupjtvvztlbwlgdxgdwlhxdlluvcduh", + "value": "x", + "effect": "NoSchedule" + } + ], + "tuningConfigs": [ + "dvoeaysltfusyb" + ] + } } } }, @@ -66,7 +72,7 @@ "key7212": "uufkzlwqnoxdfihpqz" }, "location": "mqewzbuvnyxnwbmir", - "id": "ogtjdgogxemijejkai", + "id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName", "name": "riywfucwvfwoepzliopnphdfjw", "type": "znmdhkzcopsephiyom", "systemData": { diff --git a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/Operations_List_MaximumSet_Gen.json b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/Operations_List_MaximumSet_Gen.json index d50ead77e..d13ad417f 100644 --- a/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/Operations_List_MaximumSet_Gen.json +++ b/api/redhatopenshift/HcpCluster/examples/2024-06-10-preview/Operations_List_MaximumSet_Gen.json @@ -21,7 +21,7 @@ "actionType": "Internal" } ], - "nextLink": "mmxaxttmjsusvyx" + "nextLink": "https://microsoft.com/a" } } } diff --git a/api/redhatopenshift/HcpCluster/hcpCluster-models.tsp b/api/redhatopenshift/HcpCluster/hcpCluster-models.tsp index 1169e45c8..d34125810 100644 --- a/api/redhatopenshift/HcpCluster/hcpCluster-models.tsp +++ b/api/redhatopenshift/HcpCluster/hcpCluster-models.tsp @@ -8,7 +8,7 @@ using TypeSpec.Http; using Azure.Core; using Azure.ResourceManager; -namespace Microsoft.RedHatOpenshift; +namespace Microsoft.RedHatOpenShift; /* * =================================== @@ -56,9 +56,9 @@ model HcpOpenShiftClusterProperties { @visibility("read") provisioningState?: ProvisioningState; - /** The cluster resouce specification. */ + /** The cluster resource specification. */ @visibility("create", "update") - spec: ClusterSpec; + spec?: ClusterSpec; } /** The cluster resource specification */ @@ -104,7 +104,7 @@ model ClusterSpec { /** Azure platform configuration */ @visibility("create") - platform: PlatformProfile; + platform?: PlatformProfile; /** URL for the OIDC provider to be used for authentication * to authenticate against user Azure cloud account @@ -370,10 +370,10 @@ model TokenClaimMappingsProfile { /** External auth claim profile */ model ClaimProfile { - /** Claim */ + /** Claim name of the external profile */ claim: string; - /** Prefix */ + /** Prefix for the claim external profile */ prefix: string; /** Prefix policy */ @@ -382,7 +382,7 @@ model ClaimProfile { /** External auth claim validation rule */ model TokenClaimValidationRuleProfile { - /** Claim */ + /** Claim name for the validation profile */ claim: string; /** Required value */ @@ -489,7 +489,7 @@ model NodePoolSpec { @visibility("create", "update") replicas?: int32; - /** Autorepair */ + /** Auto-repair */ @visibility("create") autoRepair?: boolean = false; @@ -572,7 +572,7 @@ model NodePoolPlatformProfile { /** Whether the worker machines should be encrypted at host */ encryptionAtHost?: boolean; - /** Disk Encryption Set ID that will be used for ecnryption the Nodes disks + /** Disk Encryption Set ID that will be used for encryption the Nodes disks * - https://learn.microsoft.com/en-us/azure/virtual-machines/disk-encryption-overview * - https://learn.microsoft.com/en-us/azure/virtual-machines/disk-encryption */ diff --git a/api/redhatopenshift/HcpCluster/hcpCluster.tsp b/api/redhatopenshift/HcpCluster/hcpCluster.tsp index 88d477c8c..573d4de29 100644 --- a/api/redhatopenshift/HcpCluster/hcpCluster.tsp +++ b/api/redhatopenshift/HcpCluster/hcpCluster.tsp @@ -10,9 +10,7 @@ using TypeSpec.Http; using Azure.Core; using Azure.ResourceManager; -namespace Microsoft.RedHatOpenshift; - -interface Operations extends Azure.ResourceManager.Operations {} +namespace Microsoft.RedHatOpenShift; /** HCP cluster operations */ @armResourceOperations(HcpOpenShiftClusterResource) @@ -51,7 +49,7 @@ interface NodePools { createOrUpdate is ArmResourceCreateOrReplaceAsync; update is ArmResourcePatchAsync< HcpOpenShiftClusterNodePoolResource, - NodePoolSpec + NodePoolProperties >; delete is ArmResourceDeleteWithoutOkAsync; listByParent is ArmResourceListByParent; diff --git a/api/redhatopenshift/HcpCluster/hcpVersions.tsp b/api/redhatopenshift/HcpCluster/hcpVersions.tsp index a5fa6465c..c68c3c5a9 100644 --- a/api/redhatopenshift/HcpCluster/hcpVersions.tsp +++ b/api/redhatopenshift/HcpCluster/hcpVersions.tsp @@ -8,11 +8,12 @@ using TypeSpec.Http; using Azure.Core; using Azure.ResourceManager; -namespace Microsoft.RedHatOpenshift; +namespace Microsoft.RedHatOpenShift; /** HcpOpenShiftVersions represents a location based available HCP cluster versions */ @locationResource -model HcpOpenShiftVersions is ProxyResource { +model HcpOpenShiftVersionResource + is ProxyResource { /** The name of the resource */ @pattern("^[a-zA-Z0-9-]{3,24}$") @segment("hcpOpenShiftVersions") @@ -31,7 +32,7 @@ model HcpOpenShiftVersionsProperties { clusterVersion: string; } -@armResourceOperations(HcpOpenShiftVersions) -interface HcpClusterVersionOperations { - list is ArmResourceListByParent; +@armResourceOperations(HcpOpenShiftVersionResource) +interface HcpClusterVersions { + list is ArmResourceListByParent; } diff --git a/api/redhatopenshift/HcpCluster/main.tsp b/api/redhatopenshift/HcpCluster/main.tsp index 2e5db4f6d..256d08ecc 100644 --- a/api/redhatopenshift/HcpCluster/main.tsp +++ b/api/redhatopenshift/HcpCluster/main.tsp @@ -1,16 +1,11 @@ -import "@typespec/http"; -import "@typespec/rest"; import "@typespec/versioning"; -import "@azure-tools/typespec-azure-core"; import "@azure-tools/typespec-azure-resource-manager"; import "./hcpCluster.tsp"; import "./hcpVersions.tsp"; using TypeSpec.Http; -using TypeSpec.Rest; using TypeSpec.Versioning; -using Azure.Core; using Azure.ResourceManager; /** Microsoft.RedHatOpenshift Resource Provider management API. */ @@ -18,8 +13,10 @@ using Azure.ResourceManager; @service({ title: "Microsoft.RedHatOpenshift management service", }) -@versioned(Microsoft.RedHatOpenshift.Versions) -namespace Microsoft.RedHatOpenshift; +@versioned(Microsoft.RedHatOpenShift.Versions) +namespace Microsoft.RedHatOpenShift; + +interface Operations extends Azure.ResourceManager.Operations {} /** The available API versions. */ enum Versions { diff --git a/api/redhatopenshift/HcpCluster/tspconfig.yaml b/api/redhatopenshift/HcpCluster/tspconfig.yaml index 95042b14e..eada927c8 100644 --- a/api/redhatopenshift/HcpCluster/tspconfig.yaml +++ b/api/redhatopenshift/HcpCluster/tspconfig.yaml @@ -6,7 +6,7 @@ options: use-read-only-status-schema: true emitter-output-dir: "{project-root}/.." azure-resource-provider-folder: "resource-manager" - output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/openapi.json" + output-file: "{azure-resource-provider-folder}/{service-name}/hcpclusters/{version-status}/{version}/openapi.json" examples-directory: "{project-root}/examples" linter: extends: diff --git a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpClusterVersionOperations_ListByLocation_MaximumSet_Gen.json b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpClusterVersions_ListByLocation_MaximumSet_Gen.json similarity index 75% rename from api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpClusterVersionOperations_ListByLocation_MaximumSet_Gen.json rename to api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpClusterVersions_ListByLocation_MaximumSet_Gen.json index 635f459e6..87653a7bf 100644 --- a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpClusterVersionOperations_ListByLocation_MaximumSet_Gen.json +++ b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpClusterVersions_ListByLocation_MaximumSet_Gen.json @@ -1,6 +1,6 @@ { - "title": "HcpClusterVersionOperations_ListByLocation_Maximum", - "operationId": "HcpClusterVersionOperations_ListByLocation", + "title": "HcpClusterVersions_ListByLocation_Maximum", + "operationId": "HcpClusterVersions_ListByLocation", "parameters": { "api-version": "2024-06-10-preview", "subscriptionId": "FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D", @@ -15,7 +15,7 @@ "provisioningState": "Succeeded", "clusterVersion": "xkfddeiqkiqqkqzgnby" }, - "id": "pvhxaztlblmgvoyoeqczqf", + "id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName", "name": "mvugweyhywfyadmkhkzrlhoiscgfl", "type": "by", "systemData": { diff --git a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpClusterVersions_ListByLocation_MinimumSet_Gen.json b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpClusterVersions_ListByLocation_MinimumSet_Gen.json new file mode 100644 index 000000000..1d1f0498f --- /dev/null +++ b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpClusterVersions_ListByLocation_MinimumSet_Gen.json @@ -0,0 +1,20 @@ +{ + "title": "HcpClusterVersions_ListByLocation_Minimum", + "operationId": "HcpClusterVersions_ListByLocation", + "parameters": { + "api-version": "2024-06-10-preview", + "subscriptionId": "FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D", + "location": "pdtzymgwqsbxy" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName" + } + ] + } + } + } +} \ No newline at end of file diff --git a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_AdminCredentials_MaximumSet_Gen.json b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_AdminCredentials_MaximumSet_Gen.json similarity index 79% rename from api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_AdminCredentials_MaximumSet_Gen.json rename to api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_AdminCredentials_MaximumSet_Gen.json index df8c7eadf..522874572 100644 --- a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_AdminCredentials_MaximumSet_Gen.json +++ b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_AdminCredentials_MaximumSet_Gen.json @@ -5,7 +5,7 @@ "api-version": "2024-06-10-preview", "subscriptionId": "FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D", "resourceGroupName": "rgopenapi", - "hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$" + "hcpOpenShiftClusterName": "hcpCluster-name" }, "responses": { "200": { diff --git a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_CreateOrUpdate_MaximumSet_Gen.json b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_CreateOrUpdate_MaximumSet_Gen.json similarity index 90% rename from api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_CreateOrUpdate_MaximumSet_Gen.json rename to api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_CreateOrUpdate_MaximumSet_Gen.json index 8d1fa5ad6..601a0db8d 100644 --- a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_CreateOrUpdate_MaximumSet_Gen.json +++ b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_CreateOrUpdate_MaximumSet_Gen.json @@ -5,7 +5,7 @@ "api-version": "2024-06-10-preview", "subscriptionId": "FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D", "resourceGroupName": "rgopenapi", - "hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$", + "hcpOpenShiftClusterName": "hcpCluster-name", "resource": { "properties": { "spec": { @@ -152,13 +152,13 @@ } }, "identity": { - "principalId": "xlswu", - "tenantId": "xfqisd", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000", "type": "None", "userAssignedIdentities": { "key4794": { - "principalId": "uctdckatfraombzrbkdltewc", - "clientId": "auud" + "principalId": "00000000-0000-0000-0000-000000000000", + "clientId": "00000000-0000-0000-0000-000000000000" } } }, @@ -166,7 +166,7 @@ "key4181": "leaswtidajsjtgmqawhdl" }, "location": "ayecbdqonsqfowbq", - "id": "xioeiro", + "id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName", "name": "vuwzuwooutjavgdhoatz", "type": "utiyj", "systemData": { @@ -268,13 +268,13 @@ } }, "identity": { - "principalId": "xlswu", - "tenantId": "xfqisd", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000", "type": "None", "userAssignedIdentities": { "key4794": { - "principalId": "uctdckatfraombzrbkdltewc", - "clientId": "auud" + "principalId": "00000000-0000-0000-0000-000000000000", + "clientId": "00000000-0000-0000-0000-000000000000" } } }, @@ -282,7 +282,7 @@ "key4181": "leaswtidajsjtgmqawhdl" }, "location": "ayecbdqonsqfowbq", - "id": "xioeiro", + "id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName", "name": "vuwzuwooutjavgdhoatz", "type": "utiyj", "systemData": { diff --git a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_Delete_MaximumSet_Gen.json b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_Delete_MaximumSet_Gen.json similarity index 79% rename from api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_Delete_MaximumSet_Gen.json rename to api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_Delete_MaximumSet_Gen.json index 78876fe88..418c234c1 100644 --- a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_Delete_MaximumSet_Gen.json +++ b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_Delete_MaximumSet_Gen.json @@ -5,7 +5,7 @@ "api-version": "2024-06-10-preview", "subscriptionId": "FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D", "resourceGroupName": "rgopenapi", - "hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$" + "hcpOpenShiftClusterName": "hcpCluster-name" }, "responses": { "202": { diff --git a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_Get_MaximumSet_Gen.json b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_Get_MaximumSet_Gen.json similarity index 88% rename from api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_Get_MaximumSet_Gen.json rename to api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_Get_MaximumSet_Gen.json index b8fda9e5a..5d9c5173a 100644 --- a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_Get_MaximumSet_Gen.json +++ b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_Get_MaximumSet_Gen.json @@ -5,7 +5,7 @@ "api-version": "2024-06-10-preview", "subscriptionId": "FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D", "resourceGroupName": "rgopenapi", - "hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$" + "hcpOpenShiftClusterName": "hcpCluster-name" }, "responses": { "200": { @@ -94,13 +94,13 @@ } }, "identity": { - "principalId": "xlswu", - "tenantId": "xfqisd", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000", "type": "None", "userAssignedIdentities": { "key4794": { - "principalId": "uctdckatfraombzrbkdltewc", - "clientId": "auud" + "principalId": "00000000-0000-0000-0000-000000000000", + "clientId": "00000000-0000-0000-0000-000000000000" } } }, @@ -108,7 +108,7 @@ "key4181": "leaswtidajsjtgmqawhdl" }, "location": "ayecbdqonsqfowbq", - "id": "xioeiro", + "id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName", "name": "vuwzuwooutjavgdhoatz", "type": "utiyj", "systemData": { diff --git a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_KubeConfig_MaximumSet_Gen.json b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_KubeConfig_MaximumSet_Gen.json similarity index 75% rename from api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_KubeConfig_MaximumSet_Gen.json rename to api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_KubeConfig_MaximumSet_Gen.json index dadc33f48..67f49d761 100644 --- a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_KubeConfig_MaximumSet_Gen.json +++ b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_KubeConfig_MaximumSet_Gen.json @@ -5,7 +5,7 @@ "api-version": "2024-06-10-preview", "subscriptionId": "FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D", "resourceGroupName": "rgopenapi", - "hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$" + "hcpOpenShiftClusterName": "hcpCluster-name" }, "responses": { "200": { diff --git a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_ListByResourceGroup_MaximumSet_Gen.json b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_ListByResourceGroup_MaximumSet_Gen.json similarity index 90% rename from api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_ListByResourceGroup_MaximumSet_Gen.json rename to api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_ListByResourceGroup_MaximumSet_Gen.json index 26e4f70fa..2df065dce 100644 --- a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_ListByResourceGroup_MaximumSet_Gen.json +++ b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_ListByResourceGroup_MaximumSet_Gen.json @@ -95,13 +95,13 @@ } }, "identity": { - "principalId": "xlswu", - "tenantId": "xfqisd", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000", "type": "None", "userAssignedIdentities": { "key4794": { - "principalId": "uctdckatfraombzrbkdltewc", - "clientId": "auud" + "principalId": "00000000-0000-0000-0000-000000000000", + "clientId": "00000000-0000-0000-0000-000000000000" } } }, @@ -109,7 +109,7 @@ "key4181": "leaswtidajsjtgmqawhdl" }, "location": "ayecbdqonsqfowbq", - "id": "xioeiro", + "id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName", "name": "vuwzuwooutjavgdhoatz", "type": "utiyj", "systemData": { diff --git a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_ListBySubscription_MaximumSet_Gen.json b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_ListBySubscription_MaximumSet_Gen.json similarity index 90% rename from api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_ListBySubscription_MaximumSet_Gen.json rename to api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_ListBySubscription_MaximumSet_Gen.json index 00f0bdc46..df07397ce 100644 --- a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_ListBySubscription_MaximumSet_Gen.json +++ b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_ListBySubscription_MaximumSet_Gen.json @@ -94,13 +94,13 @@ } }, "identity": { - "principalId": "xlswu", - "tenantId": "xfqisd", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000", "type": "None", "userAssignedIdentities": { "key4794": { - "principalId": "uctdckatfraombzrbkdltewc", - "clientId": "auud" + "principalId": "00000000-0000-0000-0000-000000000000", + "clientId": "00000000-0000-0000-0000-000000000000" } } }, @@ -108,7 +108,7 @@ "key4181": "leaswtidajsjtgmqawhdl" }, "location": "ayecbdqonsqfowbq", - "id": "xioeiro", + "id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName", "name": "vuwzuwooutjavgdhoatz", "type": "utiyj", "systemData": { diff --git a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_Update_MaximumSet_Gen.json b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_Update_MaximumSet_Gen.json similarity index 90% rename from api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_Update_MaximumSet_Gen.json rename to api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_Update_MaximumSet_Gen.json index 370909c42..1acd0e06f 100644 --- a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_Update_MaximumSet_Gen.json +++ b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_Update_MaximumSet_Gen.json @@ -5,7 +5,7 @@ "api-version": "2024-06-10-preview", "subscriptionId": "FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D", "resourceGroupName": "rgopenapi", - "hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$", + "hcpOpenShiftClusterName": "hcpCluster-name", "properties": { "identity": { "type": "None", @@ -120,13 +120,13 @@ } }, "identity": { - "principalId": "xlswu", - "tenantId": "xfqisd", + "principalId": "00000000-0000-0000-0000-000000000000", + "tenantId": "00000000-0000-0000-0000-000000000000", "type": "None", "userAssignedIdentities": { "key4794": { - "principalId": "uctdckatfraombzrbkdltewc", - "clientId": "auud" + "principalId": "00000000-0000-0000-0000-000000000000", + "clientId": "00000000-0000-0000-0000-000000000000" } } }, @@ -134,7 +134,7 @@ "key4181": "leaswtidajsjtgmqawhdl" }, "location": "ayecbdqonsqfowbq", - "id": "xioeiro", + "id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName", "name": "vuwzuwooutjavgdhoatz", "type": "utiyj", "systemData": { diff --git a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/NodePools_CreateOrUpdate_MaximumSet_Gen.json b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/NodePools_CreateOrUpdate_MaximumSet_Gen.json similarity index 84% rename from api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/NodePools_CreateOrUpdate_MaximumSet_Gen.json rename to api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/NodePools_CreateOrUpdate_MaximumSet_Gen.json index 02f7517a0..2d6a7cdc9 100644 --- a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/NodePools_CreateOrUpdate_MaximumSet_Gen.json +++ b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/NodePools_CreateOrUpdate_MaximumSet_Gen.json @@ -5,8 +5,8 @@ "api-version": "2024-06-10-preview", "subscriptionId": "F64FF5E2-2AD0-4E4D-A9D5-6E88511247A7", "resourceGroupName": "rgopenapi", - "hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$", - "nodePoolName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$", + "hcpOpenShiftClusterName": "hcpCluster-name", + "nodePoolName": "nodePool-name", "resource": { "properties": { "spec": { @@ -34,7 +34,11 @@ "ufrvhxdwltr" ], "taints": [ - "yzmuazkxmfhksrjm" + { + "key": "iveofwsptzsxepyfirlfypshvkgzkpfdwrpreacacbcifrzpvmgmovnpmkeqxgvamtbwqfewlrnlcqcmbnqhdgvosyxazqxwtlcviveerkvdrveayeyvasngwjmrsnhyvmayzrndwahvuoocvbqjuscmybctzhrhbotipnrwhnkhejgiuanmidrdjetccddupjtvvztlbwlgdxgdwlhxdlluvcduh", + "value": "x", + "effect": "NoSchedule" + } ], "tuningConfigs": [ "m" @@ -81,7 +85,7 @@ "key7212": "uufkzlwqnoxdfihpqz" }, "location": "mqewzbuvnyxnwbmir", - "id": "ogtjdgogxemijejkai", + "id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName", "name": "riywfucwvfwoepzliopnphdfjw", "type": "znmdhkzcopsephiyom", "systemData": { @@ -130,7 +134,7 @@ "key7212": "uufkzlwqnoxdfihpqz" }, "location": "mqewzbuvnyxnwbmir", - "id": "ogtjdgogxemijejkai", + "id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName", "name": "riywfucwvfwoepzliopnphdfjw", "type": "znmdhkzcopsephiyom", "systemData": { diff --git a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/NodePools_Delete_MaximumSet_Gen.json b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/NodePools_Delete_MaximumSet_Gen.json similarity index 65% rename from api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/NodePools_Delete_MaximumSet_Gen.json rename to api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/NodePools_Delete_MaximumSet_Gen.json index 63f971276..7c56a1b47 100644 --- a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/NodePools_Delete_MaximumSet_Gen.json +++ b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/NodePools_Delete_MaximumSet_Gen.json @@ -5,8 +5,8 @@ "api-version": "2024-06-10-preview", "subscriptionId": "F64FF5E2-2AD0-4E4D-A9D5-6E88511247A7", "resourceGroupName": "rgopenapi", - "hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$", - "nodePoolName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$" + "hcpOpenShiftClusterName": "hcpCluster-name", + "nodePoolName": "nodePool-name" }, "responses": { "202": { diff --git a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/NodePools_Get_MaximumSet_Gen.json b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/NodePools_Get_MaximumSet_Gen.json similarity index 86% rename from api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/NodePools_Get_MaximumSet_Gen.json rename to api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/NodePools_Get_MaximumSet_Gen.json index 00422541f..abbef027b 100644 --- a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/NodePools_Get_MaximumSet_Gen.json +++ b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/NodePools_Get_MaximumSet_Gen.json @@ -5,8 +5,8 @@ "api-version": "2024-06-10-preview", "subscriptionId": "F64FF5E2-2AD0-4E4D-A9D5-6E88511247A7", "resourceGroupName": "rgopenapi", - "hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$", - "nodePoolName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$" + "hcpOpenShiftClusterName": "hcpCluster-name", + "nodePoolName": "nodepool-name" }, "responses": { "200": { @@ -42,7 +42,7 @@ "key7212": "uufkzlwqnoxdfihpqz" }, "location": "mqewzbuvnyxnwbmir", - "id": "ogtjdgogxemijejkai", + "id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName", "name": "riywfucwvfwoepzliopnphdfjw", "type": "znmdhkzcopsephiyom", "systemData": { diff --git a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/NodePools_ListByHcpOpenShiftClusterResource_MaximumSet_Gen.json b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/NodePools_ListByHcpOpenShiftClusterResource_MaximumSet_Gen.json similarity index 89% rename from api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/NodePools_ListByHcpOpenShiftClusterResource_MaximumSet_Gen.json rename to api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/NodePools_ListByHcpOpenShiftClusterResource_MaximumSet_Gen.json index 5f29b864d..2c777a0c1 100644 --- a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/NodePools_ListByHcpOpenShiftClusterResource_MaximumSet_Gen.json +++ b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/NodePools_ListByHcpOpenShiftClusterResource_MaximumSet_Gen.json @@ -5,7 +5,7 @@ "api-version": "2024-06-10-preview", "subscriptionId": "F64FF5E2-2AD0-4E4D-A9D5-6E88511247A7", "resourceGroupName": "rgopenapi", - "hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$" + "hcpOpenShiftClusterName": "hcpCluster-name" }, "responses": { "200": { @@ -43,7 +43,7 @@ "key7212": "uufkzlwqnoxdfihpqz" }, "location": "mqewzbuvnyxnwbmir", - "id": "ogtjdgogxemijejkai", + "id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName", "name": "riywfucwvfwoepzliopnphdfjw", "type": "znmdhkzcopsephiyom", "systemData": { diff --git a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/NodePools_Update_MaximumSet_Gen.json b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/NodePools_Update_MaximumSet_Gen.json similarity index 62% rename from api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/NodePools_Update_MaximumSet_Gen.json rename to api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/NodePools_Update_MaximumSet_Gen.json index aad3b759a..d9d8c8562 100644 --- a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/NodePools_Update_MaximumSet_Gen.json +++ b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/NodePools_Update_MaximumSet_Gen.json @@ -5,30 +5,36 @@ "api-version": "2024-06-10-preview", "subscriptionId": "F64FF5E2-2AD0-4E4D-A9D5-6E88511247A7", "resourceGroupName": "rgopenapi", - "hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$", - "nodePoolName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$", + "hcpOpenShiftClusterName": "hcpCluster-name", + "nodePoolName": "nodePool-name", "properties": { - "tags": { - "key3313": "aciaohrpspozhrvwvbdtpqliezchbn" - }, - "properties": { - "version": { - "id": "chh" - }, - "replicas": 7, - "autoScaling": { - "min": 29, - "max": 2 + "spec": { + "tags": { + "key3313": "aciaohrpspozhrvwvbdtpqliezchbn" }, - "labels": [ - "qptpzhtgcqsofgvlahww" - ], - "taints": [ - "fzmckrigt" - ], - "tuningConfigs": [ - "dvoeaysltfusyb" - ] + "properties": { + "version": { + "id": "chh" + }, + "replicas": 7, + "autoScaling": { + "min": 29, + "max": 2 + }, + "labels": [ + "qptpzhtgcqsofgvlahww" + ], + "taints": [ + { + "key": "iveofwsptzsxepyfirlfypshvkgzkpfdwrpreacacbcifrzpvmgmovnpmkeqxgvamtbwqfewlrnlcqcmbnqhdgvosyxazqxwtlcviveerkvdrveayeyvasngwjmrsnhyvmayzrndwahvuoocvbqjuscmybctzhrhbotipnrwhnkhejgiuanmidrdjetccddupjtvvztlbwlgdxgdwlhxdlluvcduh", + "value": "x", + "effect": "NoSchedule" + } + ], + "tuningConfigs": [ + "dvoeaysltfusyb" + ] + } } } }, @@ -66,7 +72,7 @@ "key7212": "uufkzlwqnoxdfihpqz" }, "location": "mqewzbuvnyxnwbmir", - "id": "ogtjdgogxemijejkai", + "id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName", "name": "riywfucwvfwoepzliopnphdfjw", "type": "znmdhkzcopsephiyom", "systemData": { diff --git a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/Operations_List_MaximumSet_Gen.json b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/Operations_List_MaximumSet_Gen.json similarity index 92% rename from api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/Operations_List_MaximumSet_Gen.json rename to api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/Operations_List_MaximumSet_Gen.json index d50ead77e..d13ad417f 100644 --- a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/Operations_List_MaximumSet_Gen.json +++ b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/Operations_List_MaximumSet_Gen.json @@ -21,7 +21,7 @@ "actionType": "Internal" } ], - "nextLink": "mmxaxttmjsusvyx" + "nextLink": "https://microsoft.com/a" } } } diff --git a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/Operations_List_MinimumSet_Gen.json b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/Operations_List_MinimumSet_Gen.json similarity index 100% rename from api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/Operations_List_MinimumSet_Gen.json rename to api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/Operations_List_MinimumSet_Gen.json diff --git a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/openapi.json b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/openapi.json similarity index 86% rename from api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/openapi.json rename to api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/openapi.json index d42f9115c..10e1e1d95 100644 --- a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/openapi.json +++ b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/openapi.json @@ -49,11 +49,11 @@ "name": "NodePools" }, { - "name": "HcpClusterVersionOperations" + "name": "HcpClusterVersions" } ], "paths": { - "/providers/Microsoft.RedHatOpenshift/operations": { + "/providers/Microsoft.RedHatOpenShift/operations": { "get": { "operationId": "Operations_List", "tags": [ @@ -62,20 +62,20 @@ "description": "List the operations for the provider", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationListResult" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/OperationListResult" } }, "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -92,44 +92,44 @@ } } }, - "/subscriptions/{subscriptionId}/locations/{location}/providers/Microsoft.RedHatOpenshift/hcpOpenShiftVersions": { + "/subscriptions/{subscriptionId}/locations/{location}/providers/Microsoft.RedHatOpenShift/hcpOpenShiftVersions": { "get": { - "operationId": "HcpClusterVersionOperations_ListByLocation", + "operationId": "HcpClusterVersions_ListByLocation", "tags": [ - "HcpClusterVersionOperations" + "HcpClusterVersions" ], - "description": "List HcpOpenShiftVersions resources by location", + "description": "List HcpOpenShiftVersionResource resources by location", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/LocationParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/LocationParameter" } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/HcpOpenShiftVersionsListResult" + "$ref": "#/definitions/HcpOpenShiftVersionResourceListResult" } }, "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "HcpClusterVersionOperations_ListByLocation_Maximum": { - "$ref": "./examples/HcpClusterVersionOperations_ListByLocation_MaximumSet_Gen.json" + "HcpClusterVersions_ListByLocation_Maximum": { + "$ref": "./examples/HcpClusterVersions_ListByLocation_MaximumSet_Gen.json" }, - "HcpClusterVersionOperations_ListByLocation_Minimum": { - "$ref": "./examples/HcpClusterVersionOperations_ListByLocation_MinimumSet_Gen.json" + "HcpClusterVersions_ListByLocation_Minimum": { + "$ref": "./examples/HcpClusterVersions_ListByLocation_MinimumSet_Gen.json" } }, "x-ms-pageable": { @@ -137,7 +137,7 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.RedHatOpenshift/hcpOpenShiftClusters": { + "/subscriptions/{subscriptionId}/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters": { "get": { "operationId": "HcpOpenShiftClusters_ListBySubscription", "tags": [ @@ -146,10 +146,10 @@ "description": "List HcpOpenShiftClusterResource resources by subscription ID", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -162,7 +162,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -176,7 +176,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenshift/hcpOpenShiftClusters": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters": { "get": { "operationId": "HcpOpenShiftClusters_ListByResourceGroup", "tags": [ @@ -185,13 +185,13 @@ "description": "List HcpOpenShiftClusterResource resources by resource group", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" } ], "responses": { @@ -204,7 +204,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -218,7 +218,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenshift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}": { "get": { "operationId": "HcpOpenShiftClusters_Get", "tags": [ @@ -227,13 +227,13 @@ "description": "Get a HcpOpenShiftClusterResource", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "hcpOpenShiftClusterName", @@ -256,7 +256,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -274,13 +274,13 @@ "description": "Create a HcpOpenShiftClusterResource", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "hcpOpenShiftClusterName", @@ -325,7 +325,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -347,13 +347,13 @@ "description": "Update a HcpOpenShiftClusterResource", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "hcpOpenShiftClusterName", @@ -399,7 +399,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -421,13 +421,13 @@ "description": "Delete a HcpOpenShiftClusterResource", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "hcpOpenShiftClusterName", @@ -461,7 +461,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -476,7 +476,7 @@ "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenshift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}/adminCredentials": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}/adminCredentials": { "post": { "operationId": "HcpOpenShiftClusters_AdminCredentials", "tags": [ @@ -485,13 +485,13 @@ "description": "Returns the admin cluster credentials", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "hcpOpenShiftClusterName", @@ -514,7 +514,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -525,7 +525,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenshift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}/kubeConfig": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}/kubeConfig": { "post": { "operationId": "HcpOpenShiftClusters_KubeConfig", "tags": [ @@ -534,13 +534,13 @@ "description": "Return the kubeconfig for the cluster", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "hcpOpenShiftClusterName", @@ -563,7 +563,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -574,7 +574,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenshift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}/nodePools": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}/nodePools": { "get": { "operationId": "NodePools_ListByHcpOpenShiftClusterResource", "tags": [ @@ -583,13 +583,13 @@ "description": "List HcpOpenShiftClusterNodePoolResource resources by HcpOpenShiftClusterResource", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "hcpOpenShiftClusterName", @@ -612,7 +612,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -626,7 +626,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenshift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}/nodePools/{nodePoolName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}/nodePools/{nodePoolName}": { "get": { "operationId": "NodePools_Get", "tags": [ @@ -635,13 +635,13 @@ "description": "Get a HcpOpenShiftClusterNodePoolResource", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "hcpOpenShiftClusterName", @@ -674,7 +674,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -692,13 +692,13 @@ "description": "Create a HcpOpenShiftClusterNodePoolResource", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "hcpOpenShiftClusterName", @@ -753,7 +753,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -775,13 +775,13 @@ "description": "Update a HcpOpenShiftClusterNodePoolResource", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "hcpOpenShiftClusterName", @@ -837,7 +837,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -859,13 +859,13 @@ "description": "Delete a HcpOpenShiftClusterNodePoolResource", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "hcpOpenShiftClusterName", @@ -909,7 +909,7 @@ "default": { "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, @@ -991,11 +991,11 @@ "properties": { "claim": { "type": "string", - "description": "Claim" + "description": "Claim name of the external profile" }, "prefix": { "type": "string", - "description": "Prefix" + "description": "Prefix for the claim external profile" }, "prefixPolicy": { "type": "string", @@ -1113,7 +1113,6 @@ "version", "console", "api", - "platform", "issuerUrl" ] }, @@ -1408,7 +1407,7 @@ }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" } ] }, @@ -1454,60 +1453,9 @@ "type": "object", "description": "The updatable properties of the HcpOpenShiftClusterNodePoolResource.", "properties": { - "version": { - "$ref": "#/definitions/VersionProfileUpdate", - "description": "OpenShift version for the nodepool", - "x-ms-mutability": [ - "update", - "create" - ] - }, - "replicas": { - "type": "integer", - "format": "int32", - "description": "The number of worker nodes, it cannot be used together with autoscaling", - "x-ms-mutability": [ - "update", - "create" - ] - }, - "autoScaling": { - "$ref": "#/definitions/NodePoolAutoScalingUpdate", - "description": "Representation of a autoscaling in a node pool." - }, - "labels": { - "type": "object", - "description": "K8s labels to propagate to the NodePool Nodes\nThe good example of the label is `node-role.kubernetes.io/master: \"\"`", - "additionalProperties": { - "$ref": "#/definitions/labelValue" - }, - "x-ms-mutability": [ - "update", - "create" - ] - }, - "taints": { - "type": "array", - "description": "Taints for the nodes", - "items": { - "$ref": "#/definitions/Taint" - }, - "x-ms-identifiers": [ - "key", - "value", - "effect" - ], - "x-ms-mutability": [ - "update", - "create" - ] - }, - "tuningConfigs": { - "type": "array", - "description": "Tuning configs, TODO provide meaningful explanation\nTuningConfig is a list of references to ConfigMaps containing serialized\nTuned resources to define the tuning configuration to be applied to\nnodes in the NodePool.\nEach ConfigMap must have a single key named \"tuned\" whose value is the\nJSON or YAML of a serialized Tuned or PerformanceProfile.", - "items": { - "type": "string" - } + "spec": { + "$ref": "#/definitions/NodePoolSpecUpdate", + "description": "The node pool resource specification" } } }, @@ -1522,16 +1470,13 @@ }, "spec": { "$ref": "#/definitions/ClusterSpec", - "description": "The cluster resouce specification.", + "description": "The cluster resource specification.", "x-ms-mutability": [ "update", "create" ] } - }, - "required": [ - "spec" - ] + } }, "HcpOpenShiftClusterResource": { "type": "object", @@ -1547,13 +1492,13 @@ ] }, "identity": { - "$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentity", + "$ref": "../../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentity", "description": "The managed service identities assigned to this resource." } }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" } ] }, @@ -1583,7 +1528,7 @@ "description": "The type used for update operations of the HcpOpenShiftClusterResource.", "properties": { "identity": { - "$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentity", + "$ref": "../../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentity", "description": "The managed service identities assigned to this resource." }, "tags": { @@ -1605,7 +1550,7 @@ "properties": { "spec": { "$ref": "#/definitions/ClusterSpecUpdate", - "description": "The cluster resouce specification.", + "description": "The cluster resource specification.", "x-ms-mutability": [ "update", "create" @@ -1613,7 +1558,7 @@ } } }, - "HcpOpenShiftVersions": { + "HcpOpenShiftVersionResource": { "type": "object", "description": "HcpOpenShiftVersions represents a location based available HCP cluster versions", "properties": { @@ -1629,19 +1574,19 @@ }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" } ] }, - "HcpOpenShiftVersionsListResult": { + "HcpOpenShiftVersionResourceListResult": { "type": "object", - "description": "The response of a HcpOpenShiftVersions list operation.", + "description": "The response of a HcpOpenShiftVersionResource list operation.", "properties": { "value": { "type": "array", - "description": "The HcpOpenShiftVersions items on this page", + "description": "The HcpOpenShiftVersionResource items on this page", "items": { - "$ref": "#/definitions/HcpOpenShiftVersions" + "$ref": "#/definitions/HcpOpenShiftVersionResource" } }, "nextLink": { @@ -1865,7 +1810,7 @@ }, "discEncryptionSetId": { "type": "string", - "description": "Disk Encryption Set ID that will be used for ecnryption the Nodes disks\n- https://learn.microsoft.com/en-us/azure/virtual-machines/disk-encryption-overview\n- https://learn.microsoft.com/en-us/azure/virtual-machines/disk-encryption" + "description": "Disk Encryption Set ID that will be used for encryption the Nodes disks\n- https://learn.microsoft.com/en-us/azure/virtual-machines/disk-encryption-overview\n- https://learn.microsoft.com/en-us/azure/virtual-machines/disk-encryption" }, "ephemeralOsDisk": { "type": "boolean", @@ -1925,7 +1870,7 @@ }, "autoRepair": { "type": "boolean", - "description": "Autorepair", + "description": "Auto-repair", "default": false, "x-ms-mutability": [ "create" @@ -1975,6 +1920,67 @@ "platform" ] }, + "NodePoolSpecUpdate": { + "type": "object", + "description": "Worker node pool profile", + "properties": { + "version": { + "$ref": "#/definitions/VersionProfileUpdate", + "description": "OpenShift version for the nodepool", + "x-ms-mutability": [ + "update", + "create" + ] + }, + "replicas": { + "type": "integer", + "format": "int32", + "description": "The number of worker nodes, it cannot be used together with autoscaling", + "x-ms-mutability": [ + "update", + "create" + ] + }, + "autoScaling": { + "$ref": "#/definitions/NodePoolAutoScalingUpdate", + "description": "Representation of a autoscaling in a node pool." + }, + "labels": { + "type": "object", + "description": "K8s labels to propagate to the NodePool Nodes\nThe good example of the label is `node-role.kubernetes.io/master: \"\"`", + "additionalProperties": { + "$ref": "#/definitions/labelValue" + }, + "x-ms-mutability": [ + "update", + "create" + ] + }, + "taints": { + "type": "array", + "description": "Taints for the nodes", + "items": { + "$ref": "#/definitions/Taint" + }, + "x-ms-identifiers": [ + "key", + "value", + "effect" + ], + "x-ms-mutability": [ + "update", + "create" + ] + }, + "tuningConfigs": { + "type": "array", + "description": "Tuning configs, TODO provide meaningful explanation\nTuningConfig is a list of references to ConfigMaps containing serialized\nTuned resources to define the tuning configuration to be applied to\nnodes in the NodePool.\nEach ConfigMap must have a single key named \"tuned\" whose value is the\nJSON or YAML of a serialized Tuned or PerformanceProfile.", + "items": { + "type": "string" + } + } + } + }, "OutboundType": { "type": "string", "description": "The outbound routing strategy used to provide your cluster egress to the internet.", @@ -2138,7 +2144,7 @@ "properties": { "claim": { "type": "string", - "description": "Claim" + "description": "Claim name for the validation profile" }, "requiredValue": { "type": "string", diff --git a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/readme.go.md b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/readme.go.md new file mode 100644 index 000000000..dd4fb859f --- /dev/null +++ b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/readme.go.md @@ -0,0 +1,34 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +``` yaml $(go) && !$(track2) +go: + license-header: MICROSOFT_MIT_NO_VERSION + namespace: redhatopenshift + clear-output-folder: true +``` + +``` yaml $(go) && $(track2) +license-header: MICROSOFT_MIT_NO_VERSION +module-name: sdk/resourcemanager/redhatopenshifthcp/armredhatopenshifthcp +module: github.com/Azure/azure-sdk-for-go/$(module-name) +output-folder: $(go-sdk-folder)/$(module-name) +azure-arm: true +``` + +### Go multi-api + +``` yaml $(go) && $(multiapi) +batch: + - tag: package-2024-06-10-preview +``` + +### Tag: 2024-06-10-preview and go + +These settings apply only when `--tag=package-2020-04-30 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == '2024-06-10-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2024-06-10-preview/$(namespace) +``` \ No newline at end of file diff --git a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/readme.md b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/readme.md new file mode 100644 index 000000000..42b373c59 --- /dev/null +++ b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/readme.md @@ -0,0 +1,66 @@ +# RedHatOpenshift HCP Clusters + +> see https://aka.ms/autorest + + +## This is the autorest configuration file for RedHatOpenshift HCP Clusters. + +The service is hosted under Microsoft.RedHatOpenshift namespace but HCP is exposed +as a separarate set of resources, APIs and SDKs. + +## Getting Started + +To build the SDK for ContainerServices, [install Autorest](https://aka.ms/autorest/install). Then +in this folder, run this command: + +> `autorest` + +To see additional help and options, run: + +> `autorest --help` + +--- + +## Configuration + +### Basic Information + +These are the global settings for the ContainerServices API. + +``` yaml +openapi-type: arm +tag: package-2024-06-10-preview +``` + +### Tag: package-2024-06-10-preview + +These settings apply only when `--tag=package-2024-06-10-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2024-06-10-preview' +input-file: + - preview/2024-06-10-preview/openapi.json +``` + +# Code Generation + +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +``` yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-python + - repo: azure-sdk-for-go + - repo: azure-resource-manager-schemas + - repo: azure-powershell +``` + + +## Go + +See configuration in [readme.go.md](./readme.go.md) + +## Python + +See configuration in [readme.python.md](./readme.python.md) \ No newline at end of file diff --git a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/readme.python.md b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/readme.python.md new file mode 100644 index 000000000..c6ba95ef0 --- /dev/null +++ b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/readme.python.md @@ -0,0 +1,41 @@ +## Python + +These settings apply only when `--python` is specified on the command line. + +```yaml $(python) +title: RedHatOpenShiftHcpMgmtClient +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +package-name: azure-mgmt-redhatopenshifthcp +package-version: 1.0.0b1 +clear-output-folder: true +no-namespace-folders: true +``` + +### Python multi-api + +Generate all API versions currently shipped for this package + +```yaml $(python) +default-api-version: "2024-06-10-preview" +multiapi: true +batch: + - tag: package-2024-06-10-preview + - multiapiscript: true +``` + +``` yaml $(multiapiscript) +output-folder: $(python-sdks-folder)/redhatopenshift/azure-mgmt-redhatopenshifthcp/azure/mgmt/redhatopenshifthcp/ +clear-output-folder: false +perform-load: false +``` + +### Tag: package-2024-06-10-preview and python + +These settings apply only when `--tag=package-2024-06-10-preview --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2024-06-10-preview' && $(python) +namespace: azure.mgmt.redhatopenshifthcp.v2024_06_10_preview +output-folder: $(python-sdks-folder)/redhatopenshift/azure-mgmt-redhatopenshifthcp/azure/mgmt/redhatopenshifthcp/v2024_06_10_preview +``` \ No newline at end of file diff --git a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpClusterVersionOperations_ListByLocation_MinimumSet_Gen.json b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpClusterVersionOperations_ListByLocation_MinimumSet_Gen.json deleted file mode 100644 index 7dde06591..000000000 --- a/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpClusterVersionOperations_ListByLocation_MinimumSet_Gen.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "title": "HcpClusterVersionOperations_ListByLocation_Minimum", - "operationId": "HcpClusterVersionOperations_ListByLocation", - "parameters": { - "api-version": "2024-06-10-preview", - "subscriptionId": "FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D", - "location": "pdtzymgwqsbxy" - }, - "responses": { - "200": { - "body": { - "value": [ - {} - ] - } - } - } -} \ No newline at end of file diff --git a/internal/api/v20240610preview/generated/client_factory.go b/internal/api/v20240610preview/generated/client_factory.go index 3f6e0b1b9..01eba6be1 100644 --- a/internal/api/v20240610preview/generated/client_factory.go +++ b/internal/api/v20240610preview/generated/client_factory.go @@ -35,9 +35,9 @@ func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, }, nil } -// NewHcpClusterVersionOperationsClient creates a new instance of HcpClusterVersionOperationsClient. -func (c *ClientFactory) NewHcpClusterVersionOperationsClient() *HcpClusterVersionOperationsClient { - return &HcpClusterVersionOperationsClient{ +// NewHcpClusterVersionsClient creates a new instance of HcpClusterVersionsClient. +func (c *ClientFactory) NewHcpClusterVersionsClient() *HcpClusterVersionsClient { + return &HcpClusterVersionsClient{ subscriptionID: c.subscriptionID, internal: c.internal, } diff --git a/internal/api/v20240610preview/generated/fake/hcpclusterversions_server.go b/internal/api/v20240610preview/generated/fake/hcpclusterversions_server.go new file mode 100644 index 000000000..07ab66b09 --- /dev/null +++ b/internal/api/v20240610preview/generated/fake/hcpclusterversions_server.go @@ -0,0 +1,109 @@ +//go:build go1.18 +// +build go1.18 + +// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/go@4.0.0-preview.63) +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// Code generated by @autorest/go. DO NOT EDIT. + +package fake + +import ( + "errors" + "fmt" + "github.com/Azure/ARO-HCP/internal/api/v20240610preview/generated" + azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "net/http" + "net/url" + "regexp" +) + +// HcpClusterVersionsServer is a fake server for instances of the generated.HcpClusterVersionsClient type. +type HcpClusterVersionsServer struct{ + // NewListByLocationPager is the fake for method HcpClusterVersionsClient.NewListByLocationPager + // HTTP status codes to indicate success: http.StatusOK + NewListByLocationPager func(location string, options *generated.HcpClusterVersionsClientListByLocationOptions) (resp azfake.PagerResponder[generated.HcpClusterVersionsClientListByLocationResponse]) + +} + +// NewHcpClusterVersionsServerTransport creates a new instance of HcpClusterVersionsServerTransport with the provided implementation. +// The returned HcpClusterVersionsServerTransport instance is connected to an instance of generated.HcpClusterVersionsClient via the +// azcore.ClientOptions.Transporter field in the client's constructor parameters. +func NewHcpClusterVersionsServerTransport(srv *HcpClusterVersionsServer) *HcpClusterVersionsServerTransport { + return &HcpClusterVersionsServerTransport{ + srv: srv, + newListByLocationPager: newTracker[azfake.PagerResponder[generated.HcpClusterVersionsClientListByLocationResponse]](), + } +} + +// HcpClusterVersionsServerTransport connects instances of generated.HcpClusterVersionsClient to instances of HcpClusterVersionsServer. +// Don't use this type directly, use NewHcpClusterVersionsServerTransport instead. +type HcpClusterVersionsServerTransport struct { + srv *HcpClusterVersionsServer + newListByLocationPager *tracker[azfake.PagerResponder[generated.HcpClusterVersionsClientListByLocationResponse]] +} + +// Do implements the policy.Transporter interface for HcpClusterVersionsServerTransport. +func (h *HcpClusterVersionsServerTransport) Do(req *http.Request) (*http.Response, error) { + rawMethod := req.Context().Value(runtime.CtxAPINameKey{}) + method, ok := rawMethod.(string) + if !ok { + return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} + } + + var resp *http.Response + var err error + + switch method { + case "HcpClusterVersionsClient.NewListByLocationPager": + resp, err = h.dispatchNewListByLocationPager(req) + default: + err = fmt.Errorf("unhandled API %s", method) + } + + if err != nil { + return nil, err + } + + return resp, nil +} + +func (h *HcpClusterVersionsServerTransport) dispatchNewListByLocationPager(req *http.Request) (*http.Response, error) { + if h.srv.NewListByLocationPager == nil { + return nil, &nonRetriableError{errors.New("fake for method NewListByLocationPager not implemented")} + } + newListByLocationPager := h.newListByLocationPager.get(req) + if newListByLocationPager == nil { + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/locations/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.RedHatOpenShift/hcpOpenShiftVersions` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 2 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + locationParam, err := url.PathUnescape(matches[regex.SubexpIndex("location")]) + if err != nil { + return nil, err + } +resp := h.srv.NewListByLocationPager(locationParam, nil) + newListByLocationPager = &resp + h.newListByLocationPager.add(req, newListByLocationPager) + server.PagerResponderInjectNextLinks(newListByLocationPager, req, func(page *generated.HcpClusterVersionsClientListByLocationResponse, createLink func() string) { + page.NextLink = to.Ptr(createLink()) + }) + } + resp, err := server.PagerResponderNext(newListByLocationPager, req) + if err != nil { + return nil, err + } + if !contains([]int{http.StatusOK}, resp.StatusCode) { + h.newListByLocationPager.remove(req) + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", resp.StatusCode)} + } + if !server.PagerResponderMore(newListByLocationPager) { + h.newListByLocationPager.remove(req) + } + return resp, nil +} + diff --git a/internal/api/v20240610preview/generated/fake/hcpopenshiftclusters_server.go b/internal/api/v20240610preview/generated/fake/hcpopenshiftclusters_server.go index 738b45218..339733306 100644 --- a/internal/api/v20240610preview/generated/fake/hcpopenshiftclusters_server.go +++ b/internal/api/v20240610preview/generated/fake/hcpopenshiftclusters_server.go @@ -125,7 +125,7 @@ func (h *HcpOpenShiftClustersServerTransport) dispatchAdminCredentials(req *http if h.srv.AdminCredentials == nil { return nil, &nonRetriableError{errors.New("fake for method AdminCredentials not implemented")} } - const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.RedHatOpenshift/hcpOpenShiftClusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/adminCredentials` + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.RedHatOpenShift/hcpOpenShiftClusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/adminCredentials` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) if matches == nil || len(matches) < 3 { @@ -160,7 +160,7 @@ func (h *HcpOpenShiftClustersServerTransport) dispatchBeginCreateOrUpdate(req *h } beginCreateOrUpdate := h.beginCreateOrUpdate.get(req) if beginCreateOrUpdate == nil { - const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.RedHatOpenshift/hcpOpenShiftClusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.RedHatOpenShift/hcpOpenShiftClusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) if matches == nil || len(matches) < 3 { @@ -208,7 +208,7 @@ func (h *HcpOpenShiftClustersServerTransport) dispatchBeginDelete(req *http.Requ } beginDelete := h.beginDelete.get(req) if beginDelete == nil { - const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.RedHatOpenshift/hcpOpenShiftClusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.RedHatOpenShift/hcpOpenShiftClusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) if matches == nil || len(matches) < 3 { @@ -250,7 +250,7 @@ func (h *HcpOpenShiftClustersServerTransport) dispatchGet(req *http.Request) (*h if h.srv.Get == nil { return nil, &nonRetriableError{errors.New("fake for method Get not implemented")} } - const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.RedHatOpenshift/hcpOpenShiftClusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.RedHatOpenShift/hcpOpenShiftClusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) if matches == nil || len(matches) < 3 { @@ -283,7 +283,7 @@ func (h *HcpOpenShiftClustersServerTransport) dispatchKubeConfig(req *http.Reque if h.srv.KubeConfig == nil { return nil, &nonRetriableError{errors.New("fake for method KubeConfig not implemented")} } - const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.RedHatOpenshift/hcpOpenShiftClusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/kubeConfig` + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.RedHatOpenShift/hcpOpenShiftClusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/kubeConfig` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) if matches == nil || len(matches) < 3 { @@ -318,7 +318,7 @@ func (h *HcpOpenShiftClustersServerTransport) dispatchNewListByResourceGroupPage } newListByResourceGroupPager := h.newListByResourceGroupPager.get(req) if newListByResourceGroupPager == nil { - const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.RedHatOpenshift/hcpOpenShiftClusters` + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.RedHatOpenShift/hcpOpenShiftClusters` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) if matches == nil || len(matches) < 2 { @@ -355,7 +355,7 @@ func (h *HcpOpenShiftClustersServerTransport) dispatchNewListBySubscriptionPager } newListBySubscriptionPager := h.newListBySubscriptionPager.get(req) if newListBySubscriptionPager == nil { - const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.RedHatOpenshift/hcpOpenShiftClusters` + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.RedHatOpenShift/hcpOpenShiftClusters` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) if matches == nil || len(matches) < 1 { @@ -388,7 +388,7 @@ func (h *HcpOpenShiftClustersServerTransport) dispatchBeginUpdate(req *http.Requ } beginUpdate := h.beginUpdate.get(req) if beginUpdate == nil { - const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.RedHatOpenshift/hcpOpenShiftClusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.RedHatOpenShift/hcpOpenShiftClusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) if matches == nil || len(matches) < 3 { diff --git a/internal/api/v20240610preview/generated/fake/nodepools_server.go b/internal/api/v20240610preview/generated/fake/nodepools_server.go index 8626aa8fd..3f441387f 100644 --- a/internal/api/v20240610preview/generated/fake/nodepools_server.go +++ b/internal/api/v20240610preview/generated/fake/nodepools_server.go @@ -107,7 +107,7 @@ func (n *NodePoolsServerTransport) dispatchBeginCreateOrUpdate(req *http.Request } beginCreateOrUpdate := n.beginCreateOrUpdate.get(req) if beginCreateOrUpdate == nil { - const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.RedHatOpenshift/hcpOpenShiftClusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/nodePools/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.RedHatOpenShift/hcpOpenShiftClusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/nodePools/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) if matches == nil || len(matches) < 4 { @@ -159,7 +159,7 @@ func (n *NodePoolsServerTransport) dispatchBeginDelete(req *http.Request) (*http } beginDelete := n.beginDelete.get(req) if beginDelete == nil { - const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.RedHatOpenshift/hcpOpenShiftClusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/nodePools/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.RedHatOpenShift/hcpOpenShiftClusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/nodePools/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) if matches == nil || len(matches) < 4 { @@ -205,7 +205,7 @@ func (n *NodePoolsServerTransport) dispatchGet(req *http.Request) (*http.Respons if n.srv.Get == nil { return nil, &nonRetriableError{errors.New("fake for method Get not implemented")} } - const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.RedHatOpenshift/hcpOpenShiftClusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/nodePools/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.RedHatOpenShift/hcpOpenShiftClusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/nodePools/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) if matches == nil || len(matches) < 4 { @@ -244,7 +244,7 @@ func (n *NodePoolsServerTransport) dispatchNewListByHcpOpenShiftClusterResourceP } newListByHcpOpenShiftClusterResourcePager := n.newListByHcpOpenShiftClusterResourcePager.get(req) if newListByHcpOpenShiftClusterResourcePager == nil { - const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.RedHatOpenshift/hcpOpenShiftClusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/nodePools` + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.RedHatOpenShift/hcpOpenShiftClusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/nodePools` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) if matches == nil || len(matches) < 3 { @@ -285,7 +285,7 @@ func (n *NodePoolsServerTransport) dispatchBeginUpdate(req *http.Request) (*http } beginUpdate := n.beginUpdate.get(req) if beginUpdate == nil { - const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.RedHatOpenshift/hcpOpenShiftClusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/nodePools/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.RedHatOpenShift/hcpOpenShiftClusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/nodePools/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` regex := regexp.MustCompile(regexStr) matches := regex.FindStringSubmatch(req.URL.EscapedPath()) if matches == nil || len(matches) < 4 { diff --git a/internal/api/v20240610preview/generated/fake/server_factory.go b/internal/api/v20240610preview/generated/fake/server_factory.go index 5e7b435b5..2f005670c 100644 --- a/internal/api/v20240610preview/generated/fake/server_factory.go +++ b/internal/api/v20240610preview/generated/fake/server_factory.go @@ -18,7 +18,7 @@ import ( // ServerFactory is a fake server for instances of the generated.ClientFactory type. type ServerFactory struct { - HcpClusterVersionOperationsServer HcpClusterVersionOperationsServer + HcpClusterVersionsServer HcpClusterVersionsServer HcpOpenShiftClustersServer HcpOpenShiftClustersServer NodePoolsServer NodePoolsServer OperationsServer OperationsServer @@ -38,7 +38,7 @@ func NewServerFactoryTransport(srv *ServerFactory) *ServerFactoryTransport { type ServerFactoryTransport struct { srv *ServerFactory trMu sync.Mutex - trHcpClusterVersionOperationsServer *HcpClusterVersionOperationsServerTransport + trHcpClusterVersionsServer *HcpClusterVersionsServerTransport trHcpOpenShiftClustersServer *HcpOpenShiftClustersServerTransport trNodePoolsServer *NodePoolsServerTransport trOperationsServer *OperationsServerTransport @@ -57,9 +57,9 @@ func (s *ServerFactoryTransport) Do(req *http.Request) (*http.Response, error) { var err error switch client { - case "HcpClusterVersionOperationsClient": - initServer(s, &s.trHcpClusterVersionOperationsServer, func() *HcpClusterVersionOperationsServerTransport { return NewHcpClusterVersionOperationsServerTransport(&s.srv.HcpClusterVersionOperationsServer) }) - resp, err = s.trHcpClusterVersionOperationsServer.Do(req) + case "HcpClusterVersionsClient": + initServer(s, &s.trHcpClusterVersionsServer, func() *HcpClusterVersionsServerTransport { return NewHcpClusterVersionsServerTransport(&s.srv.HcpClusterVersionsServer) }) + resp, err = s.trHcpClusterVersionsServer.Do(req) case "HcpOpenShiftClustersClient": initServer(s, &s.trHcpOpenShiftClustersServer, func() *HcpOpenShiftClustersServerTransport { return NewHcpOpenShiftClustersServerTransport(&s.srv.HcpOpenShiftClustersServer) }) resp, err = s.trHcpOpenShiftClustersServer.Do(req) diff --git a/internal/api/v20240610preview/generated/hcpclusterversions_client.go b/internal/api/v20240610preview/generated/hcpclusterversions_client.go new file mode 100644 index 000000000..26cfbbf42 --- /dev/null +++ b/internal/api/v20240610preview/generated/hcpclusterversions_client.go @@ -0,0 +1,104 @@ +//go:build go1.18 +// +build go1.18 + +// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/go@4.0.0-preview.63) +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// Code generated by @autorest/go. DO NOT EDIT. + +package generated + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// HcpClusterVersionsClient contains the methods for the HcpClusterVersions group. +// Don't use this type directly, use NewHcpClusterVersionsClient() instead. +type HcpClusterVersionsClient struct { + internal *arm.Client + subscriptionID string +} + +// NewHcpClusterVersionsClient creates a new instance of HcpClusterVersionsClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewHcpClusterVersionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*HcpClusterVersionsClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &HcpClusterVersionsClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// NewListByLocationPager - List HcpOpenShiftVersionResource resources by location +// +// Generated from API version 2024-06-10-preview +// - location - The name of the Azure region. +// - options - HcpClusterVersionsClientListByLocationOptions contains the optional parameters for the HcpClusterVersionsClient.NewListByLocationPager +// method. +func (client *HcpClusterVersionsClient) NewListByLocationPager(location string, options *HcpClusterVersionsClientListByLocationOptions) (*runtime.Pager[HcpClusterVersionsClientListByLocationResponse]) { + return runtime.NewPager(runtime.PagingHandler[HcpClusterVersionsClientListByLocationResponse]{ + More: func(page HcpClusterVersionsClientListByLocationResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *HcpClusterVersionsClientListByLocationResponse) (HcpClusterVersionsClientListByLocationResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "HcpClusterVersionsClient.NewListByLocationPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByLocationCreateRequest(ctx, location, options) + }, nil) + if err != nil { + return HcpClusterVersionsClientListByLocationResponse{}, err + } + return client.listByLocationHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listByLocationCreateRequest creates the ListByLocation request. +func (client *HcpClusterVersionsClient) listByLocationCreateRequest(ctx context.Context, location string, options *HcpClusterVersionsClientListByLocationOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/locations/{location}/providers/Microsoft.RedHatOpenShift/hcpOpenShiftVersions" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if location == "" { + return nil, errors.New("parameter location cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-06-10-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listByLocationHandleResponse handles the ListByLocation response. +func (client *HcpClusterVersionsClient) listByLocationHandleResponse(resp *http.Response) (HcpClusterVersionsClientListByLocationResponse, error) { + result := HcpClusterVersionsClientListByLocationResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.HcpOpenShiftVersionResourceListResult); err != nil { + return HcpClusterVersionsClientListByLocationResponse{}, err + } + return result, nil +} + diff --git a/internal/api/v20240610preview/generated/hcpopenshiftclusters_client.go b/internal/api/v20240610preview/generated/hcpopenshiftclusters_client.go index b86d4f860..bfc376f5b 100644 --- a/internal/api/v20240610preview/generated/hcpopenshiftclusters_client.go +++ b/internal/api/v20240610preview/generated/hcpopenshiftclusters_client.go @@ -74,7 +74,7 @@ func (client *HcpOpenShiftClustersClient) AdminCredentials(ctx context.Context, // adminCredentialsCreateRequest creates the AdminCredentials request. func (client *HcpOpenShiftClustersClient) adminCredentialsCreateRequest(ctx context.Context, resourceGroupName string, hcpOpenShiftClusterName string, options *HcpOpenShiftClustersClientAdminCredentialsOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenshift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}/adminCredentials" + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}/adminCredentials" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") } @@ -161,7 +161,7 @@ func (client *HcpOpenShiftClustersClient) createOrUpdate(ctx context.Context, re // createOrUpdateCreateRequest creates the CreateOrUpdate request. func (client *HcpOpenShiftClustersClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, hcpOpenShiftClusterName string, resource HcpOpenShiftClusterResource, options *HcpOpenShiftClustersClientBeginCreateOrUpdateOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenshift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}" + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") } @@ -241,7 +241,7 @@ func (client *HcpOpenShiftClustersClient) deleteOperation(ctx context.Context, r // deleteCreateRequest creates the Delete request. func (client *HcpOpenShiftClustersClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, hcpOpenShiftClusterName string, options *HcpOpenShiftClustersClientBeginDeleteOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenshift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}" + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") } @@ -297,7 +297,7 @@ func (client *HcpOpenShiftClustersClient) Get(ctx context.Context, resourceGroup // getCreateRequest creates the Get request. func (client *HcpOpenShiftClustersClient) getCreateRequest(ctx context.Context, resourceGroupName string, hcpOpenShiftClusterName string, options *HcpOpenShiftClustersClientGetOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenshift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}" + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") } @@ -362,7 +362,7 @@ func (client *HcpOpenShiftClustersClient) KubeConfig(ctx context.Context, resour // kubeConfigCreateRequest creates the KubeConfig request. func (client *HcpOpenShiftClustersClient) kubeConfigCreateRequest(ctx context.Context, resourceGroupName string, hcpOpenShiftClusterName string, options *HcpOpenShiftClustersClientKubeConfigOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenshift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}/kubeConfig" + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}/kubeConfig" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") } @@ -426,7 +426,7 @@ func (client *HcpOpenShiftClustersClient) NewListByResourceGroupPager(resourceGr // listByResourceGroupCreateRequest creates the ListByResourceGroup request. func (client *HcpOpenShiftClustersClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *HcpOpenShiftClustersClientListByResourceGroupOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenshift/hcpOpenShiftClusters" + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") } @@ -485,7 +485,7 @@ func (client *HcpOpenShiftClustersClient) NewListBySubscriptionPager(options *Hc // listBySubscriptionCreateRequest creates the ListBySubscription request. func (client *HcpOpenShiftClustersClient) listBySubscriptionCreateRequest(ctx context.Context, options *HcpOpenShiftClustersClientListBySubscriptionOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.RedHatOpenshift/hcpOpenShiftClusters" + urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") } @@ -564,7 +564,7 @@ func (client *HcpOpenShiftClustersClient) update(ctx context.Context, resourceGr // updateCreateRequest creates the Update request. func (client *HcpOpenShiftClustersClient) updateCreateRequest(ctx context.Context, resourceGroupName string, hcpOpenShiftClusterName string, properties HcpOpenShiftClusterResourceUpdate, options *HcpOpenShiftClustersClientBeginUpdateOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenshift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}" + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") } diff --git a/internal/api/v20240610preview/generated/models.go b/internal/api/v20240610preview/generated/models.go index ce6ab6b56..3ec504315 100644 --- a/internal/api/v20240610preview/generated/models.go +++ b/internal/api/v20240610preview/generated/models.go @@ -23,10 +23,10 @@ type APIProfile struct { // ClaimProfile - External auth claim profile type ClaimProfile struct { - // REQUIRED; Claim + // REQUIRED; Claim name of the external profile Claim *string - // REQUIRED; Prefix + // REQUIRED; Prefix for the claim external profile Prefix *string // REQUIRED; Prefix policy @@ -35,9 +35,6 @@ type ClaimProfile struct { // ClusterSpec - The cluster resource specification type ClusterSpec struct { - // REQUIRED; Azure platform configuration - Platform *PlatformProfile - // REQUIRED; Version of the control plane components Version *VersionProfile @@ -66,6 +63,9 @@ type ClusterSpec struct { // Cluster network configuration Network *NetworkProfile + // Azure platform configuration + Platform *PlatformProfile + // Openshift cluster proxy configuration Proxy *ProxyProfile @@ -255,31 +255,13 @@ type HcpOpenShiftClusterNodePoolResourceUpdate struct { // HcpOpenShiftClusterNodePoolResourceUpdateProperties - The updatable properties of the HcpOpenShiftClusterNodePoolResource. type HcpOpenShiftClusterNodePoolResourceUpdateProperties struct { - // Representation of a autoscaling in a node pool. - AutoScaling *NodePoolAutoScalingUpdate - - // K8s labels to propagate to the NodePool Nodes The good example of the label is node-role.kubernetes.io/master: "" - Labels map[string]*string - - // The number of worker nodes, it cannot be used together with autoscaling - Replicas *int32 - - // Taints for the nodes - Taints []*Taint - - // Tuning configs, TODO provide meaningful explanation TuningConfig is a list of references to ConfigMaps containing serialized -// Tuned resources to define the tuning configuration to be applied to nodes -// in the NodePool. Each ConfigMap must have a single key named "tuned" whose value is the JSON or YAML of a serialized Tuned -// or PerformanceProfile. - TuningConfigs []*string - - // OpenShift version for the nodepool - Version *VersionProfileUpdate + // The node pool resource specification + Spec *NodePoolSpecUpdate } // HcpOpenShiftClusterProperties - HCP cluster properties type HcpOpenShiftClusterProperties struct { - // REQUIRED; The cluster resouce specification. + // The cluster resource specification. Spec *ClusterSpec // READ-ONLY; The status of the last operation. @@ -336,12 +318,12 @@ type HcpOpenShiftClusterResourceUpdate struct { // HcpOpenShiftClusterResourceUpdateProperties - The updatable properties of the HcpOpenShiftClusterResource. type HcpOpenShiftClusterResourceUpdateProperties struct { - // The cluster resouce specification. + // The cluster resource specification. Spec *ClusterSpecUpdate } -// HcpOpenShiftVersions represents a location based available HCP cluster versions -type HcpOpenShiftVersions struct { +// HcpOpenShiftVersionResource - HcpOpenShiftVersions represents a location based available HCP cluster versions +type HcpOpenShiftVersionResource struct { // The resource-specific properties for this resource. Properties *HcpOpenShiftVersionsProperties @@ -358,10 +340,10 @@ type HcpOpenShiftVersions struct { Type *string } -// HcpOpenShiftVersionsListResult - The response of a HcpOpenShiftVersions list operation. -type HcpOpenShiftVersionsListResult struct { - // REQUIRED; The HcpOpenShiftVersions items on this page - Value []*HcpOpenShiftVersions +// HcpOpenShiftVersionResourceListResult - The response of a HcpOpenShiftVersionResource list operation. +type HcpOpenShiftVersionResourceListResult struct { + // REQUIRED; The HcpOpenShiftVersionResource items on this page + Value []*HcpOpenShiftVersionResource // The link to the next page of items NextLink *string @@ -457,7 +439,7 @@ type NodePoolPlatformProfile struct { // * https://learn.microsoft.com/en-us/azure/availability-zones/az-overview AvailabilityZone *string - // Disk Encryption Set ID that will be used for ecnryption the Nodes disks + // Disk Encryption Set ID that will be used for encryption the Nodes disks // * https://learn.microsoft.com/en-us/azure/virtual-machines/disk-encryption-overview // * https://learn.microsoft.com/en-us/azure/virtual-machines/disk-encryption DiscEncryptionSetID *string @@ -493,7 +475,7 @@ type NodePoolSpec struct { // REQUIRED; OpenShift version for the nodepool Version *VersionProfile - // Autorepair + // Auto-repair AutoRepair *bool // Representation of a autoscaling in a node pool. @@ -515,6 +497,30 @@ type NodePoolSpec struct { TuningConfigs []*string } +// NodePoolSpecUpdate - Worker node pool profile +type NodePoolSpecUpdate struct { + // Representation of a autoscaling in a node pool. + AutoScaling *NodePoolAutoScalingUpdate + + // K8s labels to propagate to the NodePool Nodes The good example of the label is node-role.kubernetes.io/master: "" + Labels map[string]*string + + // The number of worker nodes, it cannot be used together with autoscaling + Replicas *int32 + + // Taints for the nodes + Taints []*Taint + + // Tuning configs, TODO provide meaningful explanation TuningConfig is a list of references to ConfigMaps containing serialized +// Tuned resources to define the tuning configuration to be applied to nodes +// in the NodePool. Each ConfigMap must have a single key named "tuned" whose value is the JSON or YAML of a serialized Tuned +// or PerformanceProfile. + TuningConfigs []*string + + // OpenShift version for the nodepool + Version *VersionProfileUpdate +} + // Operation - Details of a REST API operation, returned from the Resource Provider Operations API type Operation struct { // Localized display information for this particular operation. @@ -673,7 +679,7 @@ type TokenClaimMappingsProfile struct { // TokenClaimValidationRuleProfile - External auth claim validation rule type TokenClaimValidationRuleProfile struct { - // REQUIRED; Claim + // REQUIRED; Claim name for the validation profile Claim *string // REQUIRED; Required value diff --git a/internal/api/v20240610preview/generated/models_serde.go b/internal/api/v20240610preview/generated/models_serde.go index deee0c431..451418d98 100644 --- a/internal/api/v20240610preview/generated/models_serde.go +++ b/internal/api/v20240610preview/generated/models_serde.go @@ -698,12 +698,7 @@ func (h *HcpOpenShiftClusterNodePoolResourceUpdate) UnmarshalJSON(data []byte) e // MarshalJSON implements the json.Marshaller interface for type HcpOpenShiftClusterNodePoolResourceUpdateProperties. func (h HcpOpenShiftClusterNodePoolResourceUpdateProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "autoScaling", h.AutoScaling) - populate(objectMap, "labels", h.Labels) - populate(objectMap, "replicas", h.Replicas) - populate(objectMap, "taints", h.Taints) - populate(objectMap, "tuningConfigs", h.TuningConfigs) - populate(objectMap, "version", h.Version) + populate(objectMap, "spec", h.Spec) return json.Marshal(objectMap) } @@ -716,23 +711,8 @@ func (h *HcpOpenShiftClusterNodePoolResourceUpdateProperties) UnmarshalJSON(data for key, val := range rawMsg { var err error switch key { - case "autoScaling": - err = unpopulate(val, "AutoScaling", &h.AutoScaling) - delete(rawMsg, key) - case "labels": - err = unpopulate(val, "Labels", &h.Labels) - delete(rawMsg, key) - case "replicas": - err = unpopulate(val, "Replicas", &h.Replicas) - delete(rawMsg, key) - case "taints": - err = unpopulate(val, "Taints", &h.Taints) - delete(rawMsg, key) - case "tuningConfigs": - err = unpopulate(val, "TuningConfigs", &h.TuningConfigs) - delete(rawMsg, key) - case "version": - err = unpopulate(val, "Version", &h.Version) + case "spec": + err = unpopulate(val, "Spec", &h.Spec) delete(rawMsg, key) } if err != nil { @@ -921,8 +901,8 @@ func (h *HcpOpenShiftClusterResourceUpdateProperties) UnmarshalJSON(data []byte) return nil } -// MarshalJSON implements the json.Marshaller interface for type HcpOpenShiftVersions. -func (h HcpOpenShiftVersions) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type HcpOpenShiftVersionResource. +func (h HcpOpenShiftVersionResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "id", h.ID) populate(objectMap, "name", h.Name) @@ -932,8 +912,8 @@ func (h HcpOpenShiftVersions) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type HcpOpenShiftVersions. -func (h *HcpOpenShiftVersions) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type HcpOpenShiftVersionResource. +func (h *HcpOpenShiftVersionResource) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", h, err) @@ -964,16 +944,16 @@ func (h *HcpOpenShiftVersions) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type HcpOpenShiftVersionsListResult. -func (h HcpOpenShiftVersionsListResult) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type HcpOpenShiftVersionResourceListResult. +func (h HcpOpenShiftVersionResourceListResult) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "nextLink", h.NextLink) populate(objectMap, "value", h.Value) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type HcpOpenShiftVersionsListResult. -func (h *HcpOpenShiftVersionsListResult) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type HcpOpenShiftVersionResourceListResult. +func (h *HcpOpenShiftVersionResourceListResult) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", h, err) @@ -1346,6 +1326,53 @@ func (n *NodePoolSpec) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type NodePoolSpecUpdate. +func (n NodePoolSpecUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "autoScaling", n.AutoScaling) + populate(objectMap, "labels", n.Labels) + populate(objectMap, "replicas", n.Replicas) + populate(objectMap, "taints", n.Taints) + populate(objectMap, "tuningConfigs", n.TuningConfigs) + populate(objectMap, "version", n.Version) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type NodePoolSpecUpdate. +func (n *NodePoolSpecUpdate) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", n, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "autoScaling": + err = unpopulate(val, "AutoScaling", &n.AutoScaling) + delete(rawMsg, key) + case "labels": + err = unpopulate(val, "Labels", &n.Labels) + delete(rawMsg, key) + case "replicas": + err = unpopulate(val, "Replicas", &n.Replicas) + delete(rawMsg, key) + case "taints": + err = unpopulate(val, "Taints", &n.Taints) + delete(rawMsg, key) + case "tuningConfigs": + err = unpopulate(val, "TuningConfigs", &n.TuningConfigs) + delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &n.Version) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", n, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type Operation. func (o Operation) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) diff --git a/internal/api/v20240610preview/generated/nodepools_client.go b/internal/api/v20240610preview/generated/nodepools_client.go index c8c180c1c..6332ee14b 100644 --- a/internal/api/v20240610preview/generated/nodepools_client.go +++ b/internal/api/v20240610preview/generated/nodepools_client.go @@ -97,7 +97,7 @@ func (client *NodePoolsClient) createOrUpdate(ctx context.Context, resourceGroup // createOrUpdateCreateRequest creates the CreateOrUpdate request. func (client *NodePoolsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, hcpOpenShiftClusterName string, nodePoolName string, resource HcpOpenShiftClusterNodePoolResource, options *NodePoolsClientBeginCreateOrUpdateOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenshift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}/nodePools/{nodePoolName}" + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}/nodePools/{nodePoolName}" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") } @@ -181,7 +181,7 @@ func (client *NodePoolsClient) deleteOperation(ctx context.Context, resourceGrou // deleteCreateRequest creates the Delete request. func (client *NodePoolsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, hcpOpenShiftClusterName string, nodePoolName string, options *NodePoolsClientBeginDeleteOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenshift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}/nodePools/{nodePoolName}" + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}/nodePools/{nodePoolName}" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") } @@ -241,7 +241,7 @@ func (client *NodePoolsClient) Get(ctx context.Context, resourceGroupName string // getCreateRequest creates the Get request. func (client *NodePoolsClient) getCreateRequest(ctx context.Context, resourceGroupName string, hcpOpenShiftClusterName string, nodePoolName string, options *NodePoolsClientGetOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenshift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}/nodePools/{nodePoolName}" + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}/nodePools/{nodePoolName}" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") } @@ -310,7 +310,7 @@ func (client *NodePoolsClient) NewListByHcpOpenShiftClusterResourcePager(resourc // listByHcpOpenShiftClusterResourceCreateRequest creates the ListByHcpOpenShiftClusterResource request. func (client *NodePoolsClient) listByHcpOpenShiftClusterResourceCreateRequest(ctx context.Context, resourceGroupName string, hcpOpenShiftClusterName string, options *NodePoolsClientListByHcpOpenShiftClusterResourceOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenshift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}/nodePools" + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}/nodePools" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") } @@ -397,7 +397,7 @@ func (client *NodePoolsClient) update(ctx context.Context, resourceGroupName str // updateCreateRequest creates the Update request. func (client *NodePoolsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, hcpOpenShiftClusterName string, nodePoolName string, properties HcpOpenShiftClusterNodePoolResourceUpdate, options *NodePoolsClientBeginUpdateOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenshift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}/nodePools/{nodePoolName}" + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}/nodePools/{nodePoolName}" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") } diff --git a/internal/api/v20240610preview/generated/operations_client.go b/internal/api/v20240610preview/generated/operations_client.go index 08d73934e..133561cbb 100644 --- a/internal/api/v20240610preview/generated/operations_client.go +++ b/internal/api/v20240610preview/generated/operations_client.go @@ -65,7 +65,7 @@ func (client *OperationsClient) NewListPager(options *OperationsClientListOption // listCreateRequest creates the List request. func (client *OperationsClient) listCreateRequest(ctx context.Context, options *OperationsClientListOptions) (*policy.Request, error) { - urlPath := "/providers/Microsoft.RedHatOpenshift/operations" + urlPath := "/providers/Microsoft.RedHatOpenShift/operations" req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) if err != nil { return nil, err diff --git a/internal/api/v20240610preview/generated/options.go b/internal/api/v20240610preview/generated/options.go index 23af095d3..835483e02 100644 --- a/internal/api/v20240610preview/generated/options.go +++ b/internal/api/v20240610preview/generated/options.go @@ -7,9 +7,9 @@ package generated -// HcpClusterVersionOperationsClientListByLocationOptions contains the optional parameters for the HcpClusterVersionOperationsClient.NewListByLocationPager +// HcpClusterVersionsClientListByLocationOptions contains the optional parameters for the HcpClusterVersionsClient.NewListByLocationPager // method. -type HcpClusterVersionOperationsClientListByLocationOptions struct { +type HcpClusterVersionsClientListByLocationOptions struct { // placeholder for future optional parameters } diff --git a/internal/api/v20240610preview/generated/responses.go b/internal/api/v20240610preview/generated/responses.go index bc3483392..0d0916d7f 100644 --- a/internal/api/v20240610preview/generated/responses.go +++ b/internal/api/v20240610preview/generated/responses.go @@ -7,10 +7,10 @@ package generated -// HcpClusterVersionOperationsClientListByLocationResponse contains the response from method HcpClusterVersionOperationsClient.NewListByLocationPager. -type HcpClusterVersionOperationsClientListByLocationResponse struct { - // The response of a HcpOpenShiftVersions list operation. - HcpOpenShiftVersionsListResult +// HcpClusterVersionsClientListByLocationResponse contains the response from method HcpClusterVersionsClient.NewListByLocationPager. +type HcpClusterVersionsClientListByLocationResponse struct { + // The response of a HcpOpenShiftVersionResource list operation. + HcpOpenShiftVersionResourceListResult } // HcpOpenShiftClustersClientAdminCredentialsResponse contains the response from method HcpOpenShiftClustersClient.AdminCredentials.