Skip to content

[Python] TypeSpec migration for azure-mgmt-msi#47109

Closed
msyyc wants to merge 4 commits into
Azure:mainfrom
msyyc:sdk-azure-mgmt-msi
Closed

[Python] TypeSpec migration for azure-mgmt-msi#47109
msyyc wants to merge 4 commits into
Azure:mainfrom
msyyc:sdk-azure-mgmt-msi

Conversation

@msyyc
Copy link
Copy Markdown
Member

@msyyc msyyc commented May 25, 2026

TypeSpec Migration: azure-mgmt-msi

Source

Breaking change analysis

# Breaking change Classification Action
1 Deleted or renamed client ManagedServiceIdentityClient MITIGATE (#4 Client Naming) Added python scope to @@clientName(Microsoft.ManagedIdentity, "ManagedServiceIdentityClient", ...) in client.tsp
2 Model Identity lost tenant_id / principal_id / client_id / isolation_scope; added properties: UserAssignedIdentityProperties ACCEPT (#11 Removal of multi-level flattened properties) None — TypeSpec preserves the real REST hierarchy; users access via identity.properties.tenant_id etc.
3 Model IdentityUpdate lost tenant_id / principal_id / client_id / isolation_scope; added properties ACCEPT (#11) None — same hierarchy fix as Identity
4 Method FederatedIdentityCredentialsOperations.list changed skiptoken from positional_or_keyword to keyword_only ACCEPT (#9 Parameters Changed to Keyword-only) None — users must pass skiptoken=... as a keyword argument

Mitigations applied

  • client.tsp: extended @@clientName(Microsoft.ManagedIdentity, "ManagedServiceIdentityClient", ...) scope from "javascript, java" to "javascript, java, python" so the Python client class keeps its original name.

Accepted breaking changes (will remain in this release)

These are intentional consequences of the TypeSpec migration and follow the standard guidance in sdk-breaking-changes-guide.md:

  • Identity.tenant_id / principal_id / client_id / isolation_scope → now under Identity.properties (UserAssignedIdentityProperties).
  • IdentityUpdate.tenant_id / principal_id / client_id / isolation_scope → now under IdentityUpdate.properties.
  • FederatedIdentityCredentialsOperations.list(..., skiptoken=...)skiptoken is now keyword-only.

@msyyc msyyc closed this May 25, 2026
@msyyc msyyc deleted the sdk-azure-mgmt-msi branch May 25, 2026 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant