Skip to content

Commit

Permalink
Merge arm 0.42.1 hotfix back into main (#895)
Browse files Browse the repository at this point in the history
Co-authored-by: Timothee Guerin <[email protected]>
Co-authored-by: Timothee Guerin <[email protected]>
  • Loading branch information
3 people committed May 22, 2024
1 parent 4ad0a70 commit a633ee1
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/consistency.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- run: pnpm install
name: Install dependencies

- run: npx chronus verify
- run: npx chronus verify --since ${{ github.event.pull_request.base.ref }}
name: Check changelog
if: |
!startsWith(github.head_ref, 'publish/') &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1456,7 +1456,7 @@ model Azure.ResourceManager.Foundations.ManagedServiceIdentity
| tenantId? | `string` | The Active Directory tenant id of the principal. |
| principalId? | `string` | The active directory identifier of this principal. |
| type | [`ManagedServiceIdentityType`](./data-types.md#Azure.ResourceManager.Foundations.ManagedServiceIdentityType) | The type of managed identity assigned to this resource. |
| userAssignedIdentities? | [`UserAssignedIdentities`](./data-types.md#Azure.ResourceManager.Foundations.UserAssignedIdentities) | The identities assigned to this resource by the user. |
| userAssignedIdentities? | `Record<ResourceManager.Foundations.UserAssignedIdentity>` | The identities assigned to this resource by the user. |

### `Operation` {#Azure.ResourceManager.Foundations.Operation}

Expand Down
7 changes: 7 additions & 0 deletions packages/typespec-azure-resource-manager/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log - @azure-tools/typespec-azure-resource-manager

## 0.42.1

### Bug Fixes

- [#868](https://github.com/Azure/typespec-azure/pull/868) Changing back `ManagedServiceIdentity.userAssignedIdentities` back to `Record<UserAssignedIdentity`. Adding ARM common-type references for on all Managed Identity models.


## 0.42.0

### Bug Fixes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,21 @@ model ManagedServiceIdentity {
type: ManagedServiceIdentityType;

@doc("The identities assigned to this resource by the user.")
userAssignedIdentities?: UserAssignedIdentities;
userAssignedIdentities?: Record<UserAssignedIdentity>;
}

/** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", */
#deprecated "Do not use this model. Instead, use Record<UserAssignedIdentity> directly. Using this model will result in a different client SDK when generated from TypeSpec compared to the Swagger."
@armCommonDefinition(
"UserAssignedIdentities",
#{ version: Azure.ResourceManager.CommonTypes.Versions.v4, isDefault: true },
"managedidentity.json"
)
@armCommonDefinition(
"UserAssignedIdentities",
Azure.ResourceManager.CommonTypes.Versions.v5,
"managedidentity.json"
)
model UserAssignedIdentities is Record<UserAssignedIdentity>;

#deprecated "Please change ManagedSystemIdentityProperties to SystemAssignedServiceIdentity."
Expand Down Expand Up @@ -70,6 +81,16 @@ alias ManagedIdentityType = ManagedServiceIdentityType;
/**
* A managed identity assigned by the user.
*/
@armCommonDefinition(
"UserAssignedIdentity",
#{ version: Azure.ResourceManager.CommonTypes.Versions.v4, isDefault: true },
"managedidentity.json"
)
@armCommonDefinition(
"UserAssignedIdentity",
Azure.ResourceManager.CommonTypes.Versions.v5,
"managedidentity.json"
)
@doc("A managed identity assigned by the user.")
model UserAssignedIdentity {
@doc("The active directory client identifier for this principal.")
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-azure-resource-manager/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure-tools/typespec-azure-resource-manager",
"version": "0.42.0",
"version": "0.42.1",
"author": "Microsoft Corporation",
"description": "TypeSpec Azure Resource Manager library",
"homepage": "https://azure.github.io/typespec-azure",
Expand Down

0 comments on commit a633ee1

Please sign in to comment.