[Python] TypeSpec migration for azure-mgmt-network#45896
Draft
msyyc wants to merge 11 commits intoAzure:mainfrom
Draft
[Python] TypeSpec migration for azure-mgmt-network#45896msyyc wants to merge 11 commits intoAzure:mainfrom
msyyc wants to merge 11 commits intoAzure:mainfrom
Conversation
…into sdk-azure-mgmt-network
…into sdk-azure-mgmt-network
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[Python] TypeSpec migration for azure-mgmt-network
Spec Source
Spec PR: Azure/azure-rest-api-specs#40226
Pre-migration Swagger
specification/network/resource-manager/Microsoft.Network/Network@56166c71Swagger API Version
Swagger API version:
2025-05-01(default tag:package-2025-05-01)Breaking Change Analysis
1120 breaking changes detected — ALL classified as ACCEPT
No mitigations required. All changes are expected outcomes of the TypeSpec migration.
propertiesbag (un-flattening)properties(§11)ProvisioningState.CANCELED,.CREATING)ResourceProvisioningState(renamedNetworkResourceProvisioningStatefor Python); unions includestringbase typeAzure.Core.Page<T>paging (§8)Compiler Fix Applied
A
@@clientName(Microsoft.Network.ResourceProvisioningState, "NetworkResourceProvisioningState", "python")decorator was added toclient.tspto resolve aduplicate-client-namecompiler error (conflicts withAzure.ResourceManager.ResourceProvisioningState).Spec Mitigation PR
mcgallan/azure-rest-api-specs#2
Accepted Breaking Changes Summary
The following breaking changes will remain in the migrated SDK:
Un-flattening (1067 items): Properties previously flattened directly onto models are now accessed via
.properties.*. This is the correct ARM resource structure. Example:gateway.provisioning_state→gateway.properties.provisioning_state.Enum values (2 items):
ProvisioningState.CANCELEDandProvisioningState.CREATINGremoved fromProvisioningStateenum but available inNetworkResourceProvisioningStateand as string literals.Deleted models (51 items): Pagination wrappers (37), enum-to-union conversions (6), internal/common types (8). These are expected TypeSpec migration artifacts with low customer impact.