Skip to content

Commit

Permalink
Adjust ARM common type ManagedServiceIdentityType union versioned val…
Browse files Browse the repository at this point in the history
…ue (#1551)
  • Loading branch information
allenjzhang authored Sep 17, 2024
1 parent cdeb62c commit e133911
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
7 changes: 7 additions & 0 deletions .chronus/changes/commonTypeManagedId-2024-8-17-8-36-58.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: fix
packages:
- "@azure-tools/typespec-azure-resource-manager"
---

Correct ManagedServiceIdentityType versioning issue
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"description": "User assigned managed identity."
},
{
"name": "SystemAndUserAssignedV3",
"name": "SystemAssigned,UserAssigned",
"value": "SystemAssigned,UserAssigned",
"description": "System and user assigned managed identity."
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"description": "User assigned managed identity."
},
{
"name": "SystemAndUserAssignedV4",
"name": "SystemAssigned, UserAssigned",
"value": "SystemAssigned, UserAssigned",
"description": "System and user assigned managed identity."
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"description": "User assigned managed identity."
},
{
"name": "SystemAndUserAssigned",
"name": "SystemAssigned,UserAssigned",
"value": "SystemAssigned,UserAssigned",
"description": "System and user assigned managed identity."
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,28 +61,24 @@ model UserAssignedIdentity {
*/
union ManagedServiceIdentityType {
/** No managed identity. */
None: "None",
"None",

/** System assigned managed identity. */
SystemAssigned: "SystemAssigned",
"SystemAssigned",

/** User assigned managed identity. */
UserAssigned: "UserAssigned",
"UserAssigned",

/** System and user assigned managed identity. */
@renamedFrom(Versions.v3, "SystemAndUserAssigned")
@added(Versions.v3)
@removed(Versions.v4)
SystemAndUserAssignedV3: "SystemAssigned,UserAssigned",
@added(Versions.v5)
"SystemAssigned,UserAssigned",

/** System and user assigned managed identity. */
@added(Versions.v4)
@renamedFrom(Versions.v4, "SystemAndUserAssigned")
@removed(Versions.v5)
SystemAndUserAssignedV4: "SystemAssigned, UserAssigned",

/** System and user assigned managed identity. */
@added(Versions.v5)
SystemAndUserAssigned: "SystemAssigned,UserAssigned",
"SystemAssigned, UserAssigned",

string,
}
Expand Down

0 comments on commit e133911

Please sign in to comment.