From 74be30e50041674983356b3e8572a35b547f6c43 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 +- api/redhatopenshift/HcpCluster/tspconfig.yaml | 2 +- ...rations_ListByLocation_MaximumSet_Gen.json | 0 ...rations_ListByLocation_MinimumSet_Gen.json | 0 ...sters_AdminCredentials_MaximumSet_Gen.json | 0 ...lusters_CreateOrUpdate_MaximumSet_Gen.json | 0 ...enShiftClusters_Delete_MaximumSet_Gen.json | 0 ...pOpenShiftClusters_Get_MaximumSet_Gen.json | 0 ...iftClusters_KubeConfig_MaximumSet_Gen.json | 0 ...rs_ListByResourceGroup_MaximumSet_Gen.json | 0 ...ers_ListBySubscription_MaximumSet_Gen.json | 0 ...enShiftClusters_Update_MaximumSet_Gen.json | 0 ...dePools_CreateOrUpdate_MaximumSet_Gen.json | 0 .../NodePools_Delete_MaximumSet_Gen.json | 0 .../NodePools_Get_MaximumSet_Gen.json | 0 ...enShiftClusterResource_MaximumSet_Gen.json | 0 .../NodePools_Update_MaximumSet_Gen.json | 0 .../Operations_List_MaximumSet_Gen.json | 0 .../Operations_List_MinimumSet_Gen.json | 0 .../preview/2024-06-10-preview/openapi.json | 126 +++++++++--------- .../hcpclusters/readme.go.md | 34 +++++ .../hcpclusters/readme.md | 63 +++++++++ .../hcpclusters/readme.python.md | 41 ++++++ 23 files changed, 203 insertions(+), 65 deletions(-) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/HcpClusterVersionOperations_ListByLocation_MaximumSet_Gen.json (100%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/HcpClusterVersionOperations_ListByLocation_MinimumSet_Gen.json (100%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_AdminCredentials_MaximumSet_Gen.json (100%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_CreateOrUpdate_MaximumSet_Gen.json (100%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_Delete_MaximumSet_Gen.json (100%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_Get_MaximumSet_Gen.json (100%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_KubeConfig_MaximumSet_Gen.json (100%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_ListByResourceGroup_MaximumSet_Gen.json (100%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_ListBySubscription_MaximumSet_Gen.json (100%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/HcpOpenShiftClusters_Update_MaximumSet_Gen.json (100%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/NodePools_CreateOrUpdate_MaximumSet_Gen.json (100%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/NodePools_Delete_MaximumSet_Gen.json (100%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/NodePools_Get_MaximumSet_Gen.json (100%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/NodePools_ListByHcpOpenShiftClusterResource_MaximumSet_Gen.json (100%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/NodePools_Update_MaximumSet_Gen.json (100%) rename api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/{ => hcpclusters}/preview/2024-06-10-preview/examples/Operations_List_MaximumSet_Gen.json (100%) 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 (89%) 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 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/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/HcpClusterVersionOperations_ListByLocation_MaximumSet_Gen.json similarity index 100% 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/HcpClusterVersionOperations_ListByLocation_MaximumSet_Gen.json 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/hcpclusters/preview/2024-06-10-preview/examples/HcpClusterVersionOperations_ListByLocation_MinimumSet_Gen.json similarity index 100% rename from api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/examples/HcpClusterVersionOperations_ListByLocation_MinimumSet_Gen.json rename to api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/examples/HcpClusterVersionOperations_ListByLocation_MinimumSet_Gen.json 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 100% 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 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 100% 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 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 100% 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 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 100% 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 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 100% 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 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 100% 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 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 100% 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 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 100% 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 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 100% 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 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 100% 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 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 100% 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 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 100% 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 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 100% 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 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 100% 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 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 89% 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 d9e012c6c..406c38666 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 @@ -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" } } }, @@ -101,13 +101,13 @@ "description": "List HcpOpenShiftVersions 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": { @@ -120,7 +120,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" } } }, @@ -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" } } }, @@ -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" } } }, @@ -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" } } }, @@ -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" } } }, @@ -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" } } }, @@ -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" } } }, @@ -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" } } }, @@ -1378,7 +1378,7 @@ }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" } ] }, @@ -1512,13 +1512,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" } ] }, @@ -1548,7 +1548,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": { @@ -1594,7 +1594,7 @@ }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" } ] }, 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..8f7612411 --- /dev/null +++ b/api/redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/readme.md @@ -0,0 +1,63 @@ +# RedHatOpenshift HCP Clusters + +## 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