From f14db8d37e4968ac046e53d71bc02baa24c10215 Mon Sep 17 00:00:00 2001 From: Rustam Samigullin Date: Wed, 7 Sep 2022 12:26:12 -0400 Subject: [PATCH 1/2] removed guardrails-versions route, added guardrails profice to MC properties --- .../2022-08-02-preview/managedClusters.json | 63 ++----------------- 1 file changed, 4 insertions(+), 59 deletions(-) diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json index e53853c11383..b555bfc5501d 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json @@ -2894,48 +2894,6 @@ } } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/guardrailsversions": { - "get": { - "tags": [ - "guardrailsVersions" - ], - "operationId": "GuardrailsVersions_List", - "summary": "List available guardrails versions.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ResourceNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListGuardrailsVersionsResponse" - } - }, - "default": { - "description": "Error details", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "List Guardrails versions": { - "$ref": "./examples/GuardrailsVersions_List.json" - } - } - } } }, "definitions": { @@ -4753,6 +4711,10 @@ }, "azureMonitorProfile": { "$ref": "#/definitions/ManagedClusterAzureMonitorProfile" + }, + "guardrailsProfile": { + "$ref": "#/definitions/GuardrailsProfile", + "description": "The guardrails profile holds all the guardrails information for a given cluster" } }, "description": "Properties of the managed cluster." @@ -7247,23 +7209,6 @@ "version" ], "description": "The Guardrails profile." - }, - "ListGuardrailsVersionsResponse": { - "type": "object", - "properties": { - "version": { - "readOnly": true, - "type": "string" - }, - "isPreview": { - "type": "boolean", - "description": "Describes whether this version is in preview" - }, - "default": { - "type": "boolean", - "description": "Describes whether this version is default" - } - } } }, "parameters": { From 7308310bca5202cfdf92dbb688db02e840eb9ef6 Mon Sep 17 00:00:00 2001 From: Rustam Samigullin Date: Wed, 7 Sep 2022 12:34:29 -0400 Subject: [PATCH 2/2] removed unsued file for guardrails versions, removed unused custom word --- custom-words.txt | 1 - .../examples/GuardrailsVersions_List.json | 17 ----------------- 2 files changed, 18 deletions(-) delete mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/examples/GuardrailsVersions_List.json diff --git a/custom-words.txt b/custom-words.txt index 8b020da40306..e46fa6cb593c 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -2720,7 +2720,6 @@ largerc mediumrc smallrc Autotune -guardrailsversions KubeProxyConfig IPVS TCPFIN \ No newline at end of file diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/examples/GuardrailsVersions_List.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/examples/GuardrailsVersions_List.json deleted file mode 100644 index b3b7792c3ab7..000000000000 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/examples/GuardrailsVersions_List.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "api-version": "2022-08-02-preview", - "subscriptionId": "subid1", - "resourceGroupName": "rg1", - "resourceName": "clustername1" - }, - "responses": { - "200": { - "body": { - "version": "v1", - "isPreview": true, - "default": true - } - } - } -}