From baf848badbc4092dac8533f4ed55eee92ef027e4 Mon Sep 17 00:00:00 2001 From: ArcturusZhang Date: Tue, 9 Aug 2022 17:03:34 +0800 Subject: [PATCH 1/3] change the name of a new enumeration --- .../Microsoft.Storage/stable/2022-05-01/blob.json | 2 +- specification/storage/resource-manager/readme.python.md | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2022-05-01/blob.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2022-05-01/blob.json index e5807b885738..f1e68b3cc2a0 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2022-05-01/blob.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2022-05-01/blob.json @@ -1476,7 +1476,7 @@ "Break" ], "x-ms-enum": { - "name": "LeaseContainerRequest", + "name": "LeaseContainerRequestAction", "modelAsString": true }, "description": "Specifies the lease action. Can be one of the available actions." diff --git a/specification/storage/resource-manager/readme.python.md b/specification/storage/resource-manager/readme.python.md index 2e1db8a2dc51..cbf5cebb49c1 100644 --- a/specification/storage/resource-manager/readme.python.md +++ b/specification/storage/resource-manager/readme.python.md @@ -230,10 +230,3 @@ Please also specify `--python-sdks-folder= Date: Tue, 9 Aug 2022 18:34:20 +0800 Subject: [PATCH 2/3] revert changes in python readme --- specification/storage/resource-manager/readme.python.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/specification/storage/resource-manager/readme.python.md b/specification/storage/resource-manager/readme.python.md index cbf5cebb49c1..2e1db8a2dc51 100644 --- a/specification/storage/resource-manager/readme.python.md +++ b/specification/storage/resource-manager/readme.python.md @@ -230,3 +230,10 @@ Please also specify `--python-sdks-folder= Date: Wed, 10 Aug 2022 10:32:14 +0800 Subject: [PATCH 3/3] add directive to mitigate go sdk breaking change --- specification/storage/resource-manager/readme.go.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/specification/storage/resource-manager/readme.go.md b/specification/storage/resource-manager/readme.go.md index 4d80b786e421..5570021da215 100644 --- a/specification/storage/resource-manager/readme.go.md +++ b/specification/storage/resource-manager/readme.go.md @@ -17,6 +17,13 @@ output-folder: $(go-sdk-folder)/$(module-name) azure-arm: true modelerfour: lenient-model-deduplication: true +directive: + - from: swagger-document + where: $.definitions.CorsRule + transform: $['properties']['allowedMethods']['items']['x-ms-enum']['name'] = 'CorsRuleAllowedMethodsItem' + - from: swagger-document + where: $.definitions.ActiveDirectoryProperties + transform: $['properties']['accountType']['x-ms-enum']['name'] = 'ActiveDirectoryPropertiesAccountType' ``` ### Go multi-api