Skip to content

[Python] TypeSpec migration for azure-mgmt-extendedlocation#46303

Draft
ChenxiJiang333 wants to merge 3 commits intoAzure:mainfrom
ChenxiJiang333:sdk-azure-mgmt-extendedlocation
Draft

[Python] TypeSpec migration for azure-mgmt-extendedlocation#46303
ChenxiJiang333 wants to merge 3 commits intoAzure:mainfrom
ChenxiJiang333:sdk-azure-mgmt-extendedlocation

Conversation

@ChenxiJiang333
Copy link
Copy Markdown
Member

@ChenxiJiang333 ChenxiJiang333 commented Apr 14, 2026

[Python] TypeSpec migration for azure-mgmt-extendedlocation

Spec Source

Spec PR: Azure/azure-rest-api-specs#42299

Pre-migration swagger source: specification/extendedlocation/resource-manager@98a4db5d

Swagger API version: 2021-08-31-preview (default tag: package-2021-08-31-preview)

Generated with apiVersion: 2021-08-31-preview (matched from swagger default tag)

Spec Customizations Applied

  • @@clientName(Microsoft.ExtendedLocation, "CustomLocations", "python") — restore original client name
  • @@override(CustomLocations.update, ...) — flatten body into identity, properties, tags kwargs

Breaking Change Analysis

  • 1 mitigated breaking change (client rename)
  • 33 accepted breaking changes

Mitigated Breaking Change

Breaking Change Classification Mitigation
Client renamed from CustomLocations to CustomLocationsMgmtClient Guide #4: Client Naming Changes @@clientName(Microsoft.ExtendedLocation, "CustomLocations", "python")

Accepted Breaking Changes (will remain)

Guide #11 - Removal of multi-level flattened properties (handled by existing @@Legacy.flattenProperty in back-compatible.tsp):

  • CustomLocationOperation: description, operation, provider, resource moved into nested display object
  • PatchableCustomLocations: authentication, cluster_extension_ids, etc. moved into nested properties object
  • PatchableResourceSyncRule: priority, provisioning_state, selector, target_resource_group moved into nested properties object
  • CustomLocationsOperations.update: identity, tags changed to keyword-only; nested properties moved into properties param
  • ResourceSyncRulesOperations.begin_update: individual parameters replaced by single parameters object

Guide #8 - Removal of Pageable Models:

  • CustomLocationOperationsList removed (pageable behavior preserved via ItemPaged)

Guide #12 - Property name conflict with base model methods:

  • MatchExpressionsProperties.values renamed to values_property

@ChenxiJiang333 ChenxiJiang333 force-pushed the sdk-azure-mgmt-extendedlocation branch from 299e45c to 80e047c Compare April 15, 2026 07:50
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