Skip to content

Commit a98a48c

Browse files
change the name of a new enumeration in storage's latest api-version (#20157)
* change the name of a new enumeration * revert changes in python readme * add directive to mitigate go sdk breaking change Co-authored-by: Chenjie Shi <[email protected]>
1 parent 429ced7 commit a98a48c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

specification/storage/resource-manager/Microsoft.Storage/stable/2022-05-01/blob.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1476,7 +1476,7 @@
14761476
"Break"
14771477
],
14781478
"x-ms-enum": {
1479-
"name": "LeaseContainerRequest",
1479+
"name": "LeaseContainerRequestAction",
14801480
"modelAsString": true
14811481
},
14821482
"description": "Specifies the lease action. Can be one of the available actions."

specification/storage/resource-manager/readme.go.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ output-folder: $(go-sdk-folder)/$(module-name)
1717
azure-arm: true
1818
modelerfour:
1919
lenient-model-deduplication: true
20+
directive:
21+
- from: swagger-document
22+
where: $.definitions.CorsRule
23+
transform: $['properties']['allowedMethods']['items']['x-ms-enum']['name'] = 'CorsRuleAllowedMethodsItem'
24+
- from: swagger-document
25+
where: $.definitions.ActiveDirectoryProperties
26+
transform: $['properties']['accountType']['x-ms-enum']['name'] = 'ActiveDirectoryPropertiesAccountType'
2027
```
2128
2229
### Go multi-api

0 commit comments

Comments
 (0)