Skip to content

[Python] TypeSpec migration for azure-mgmt-resource#46194

Draft
ChenxiJiang333 wants to merge 5 commits intoAzure:mainfrom
ChenxiJiang333:sdk-azure-mgmt-resource
Draft

[Python] TypeSpec migration for azure-mgmt-resource#46194
ChenxiJiang333 wants to merge 5 commits intoAzure:mainfrom
ChenxiJiang333:sdk-azure-mgmt-resource

Conversation

@ChenxiJiang333
Copy link
Copy Markdown
Member

TypeSpec Migration SDK Output for azure-mgmt-resource (resources sub-service)

Source

Breaking Change Analysis

All breaking changes are classified as ACCEPT — no spec mitigations needed.

Breaking Changes Summary

Category Count Classification
Removed models (pageable/unreferenced/filter) 9 ACCEPT
Model property changes (common types upgrade) 3 ACCEPT
Property rename (base model method conflict) 1 ACCEPT
Removed api_version parameter from operations 10 ACCEPT

Removed Models (ACCEPT — §7 Unreferenced / §8 Pageable)

  • GenericResourceFilter — filter model, not used in API responses
  • ResourceGroupFilter — filter model, not used in API responses
  • OperationListResult — pageable wrapper, Python SDK handles pagination internally
  • ProviderListResult — pageable wrapper
  • ResourceGroupListResult — pageable wrapper
  • ResourceListResult — pageable wrapper
  • TagsListResult — pageable wrapper
  • ResourceProviderOperationDisplayProperties — unreferenced model
  • SubResource — common type, unreferenced in user-facing API

Model Property Changes (ACCEPT — §6 Common Types Upgrade)

  • Resource: removed properties extended_location, location, tags (ARM common type change)
  • Resource: added property system_data
  • GenericResource, GenericResourceExpanded, ResourceGroup, TagsResource: added property system_data

Property Rename (ACCEPT — §12 Base Model Method Conflict)

  • TagDetails: valuesvalues_property (conflicts with dict-like values() method)

Removed api_version Parameter (ACCEPT — TypeSpec design)

The following operations no longer expose api_version as a user-facing parameter (handled by client configuration):

  • ResourcesOperations.begin_create_or_update
  • ResourcesOperations.begin_create_or_update_by_id
  • ResourcesOperations.begin_delete
  • ResourcesOperations.begin_delete_by_id
  • ResourcesOperations.begin_update
  • ResourcesOperations.begin_update_by_id
  • ResourcesOperations.check_existence
  • ResourcesOperations.check_existence_by_id
  • ResourcesOperations.get
  • ResourcesOperations.get_by_id

Features Added

  • Models GenericResource, GenericResourceExpanded, Resource, ResourceGroup, TagsResource: added system_data property
  • Model Operation: added action_type, is_data_action, origin properties
  • Model TagDetails: added values_property
  • New models: ActionType, CloudError, CreatedByType, ErrorDetail, ExtensionResource, Origin, ProxyResource, SystemData, TrackedResource

@ChenxiJiang333 ChenxiJiang333 force-pushed the sdk-azure-mgmt-resource branch from 86b23d8 to d0a0aee Compare April 8, 2026 08:12
@ChenxiJiang333 ChenxiJiang333 force-pushed the sdk-azure-mgmt-resource branch from d0a0aee to 254d83e Compare April 8, 2026 08:17
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