Skip to content

Commit a2f6f74

Browse files
authored
Fix regression to KeyRotationPolicyAction from 7.4 (#26573)
We renamed via `x-ms-enum.name` `LifetimeActionsType` to `KeyRotationPolicyAction` for external partners, only to be changed back to `ActionType` via autorest transform that should end up in the Azure SDKs. This was to disambiguate to instances of `ActionType` across `keys.json` and `certificates.json`.
1 parent 6aaa945 commit a2f6f74

File tree

2 files changed

+2
-1
lines changed
  • specification/keyvault/data-plane

2 files changed

+2
-1
lines changed

specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.5-preview.1/keys.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2205,7 +2205,7 @@
22052205
"Notify"
22062206
],
22072207
"x-ms-enum": {
2208-
"name": "ActionType",
2208+
"name": "KeyRotationPolicyAction",
22092209
"modelAsString": false,
22102210
"values": [
22112211
{

specification/keyvault/data-plane/readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ These transforms apply to any generator.
218218
directive:
219219
# Rename models back to what they were before 7.4 for autorest-based code generators.
220220
# Generated names were disambiguated for generators not using autorest but still processing x-ms-enum.name.
221+
# See https://github.com/Azure/azure-rest-api-specs/pull/22435 for details.
221222
- from: certificates.json
222223
where: $.definitions.Action
223224
transform: $.properties.action_type["x-ms-enum"].name = "ActionType";

0 commit comments

Comments
 (0)