Skip to content

[Python] TypeSpec migration for azure-mgmt-iothub#46490

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

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

Conversation

@ChenxiJiang333
Copy link
Copy Markdown
Member

[Python] TypeSpec migration for azure-mgmt-iothub

Source

Spec PR: Azure/azure-rest-api-specs#42465
Pre-migration swagger source: specification/iothub/resource-manager@5a8b568d
Swagger API version: 2025-08-01-preview (default tag: package-preview-2025-08)
Generated with apiVersion: 2025-08-01-preview (matched from swagger default tag)

Breaking Changes Analysis

# Breaking Change Classification Reason
1 Deleted or renamed client IotHubClient MITIGATE Category 4: Client naming — added "python" to @@clientName
2 Model Resource deleted or renamed its instance variable location ACCEPT Category 6: Common types upgrade
3 Model Resource deleted or renamed its instance variable tags ACCEPT Category 6: Common types upgrade
4 Deleted or renamed model CertificateBodyDescription ACCEPT Category 7: Unreferenced model removal
5 Method CertificatesOperations.create_or_update deleted parameter if_match ACCEPT Category 10: if_match → etag/match_condition
6 Method CertificatesOperations.delete deleted parameter if_match ACCEPT Category 10: if_match → etag/match_condition
7 Method CertificatesOperations.generate_verification_code deleted parameter if_match ACCEPT Category 10: if_match → etag/match_condition
8 Method CertificatesOperations.verify deleted parameter if_match ACCEPT Category 10: if_match → etag/match_condition
9 Method IotHubResourceOperations.begin_create_or_update deleted parameter if_match ACCEPT Category 10: if_match → etag/match_condition

Summary: 1 mitigated, 8 accepted

Spec Mitigation PR

cxznmhdcxz/azure-rest-api-specs#9

Accepted Breaking Changes (will remain)

  • Model Resource lost location and tags properties (common types v3 upgrade)
  • Model CertificateBodyDescription removed (unreferenced)
  • 5 methods: if_match parameter replaced by etag/match_condition (standard TypeSpec pattern)

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