Skip to content

[Python] TypeSpec migration for azure-mgmt-applicationinsights#45931

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

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

Conversation

@ChenxiJiang333
Copy link
Copy Markdown
Member

[Python] TypeSpec migration for azure-mgmt-applicationinsights

Generated Python SDK from TypeSpec for azure-mgmt-applicationinsights to compare with the pre-migration Swagger SDK output.

Pre-migration swagger source

specification/applicationinsights/resource-manager @ 5ce63776

Breaking Change Analysis

3 mitigated via @@clientName decorators, 17 accepted (removed/deprecated APIs).

Accepted Breaking Changes (will remain)

Breaking Change Reason
Package structure changed (multi-api to flat) Standard TypeSpec migration pattern
Removed MyWorkbooksOperations API removed from spec (deprecated)
Removed ComponentCurrentPricingPlanOperations API removed from spec
Removed EASubscriptionListMigrationDateOperations API removed from spec
Removed EASubscriptionMigrateToNewPricingModelOperations API removed from spec
Removed EASubscriptionRollbackToLegacyPricingModelOperations API removed from spec
Removed MyWorkbook* models (6 models) MyWorkbooks API removed
Removed ApplicationInsightsComponentPricingPlan Pricing API removed
Removed EASubscriptionMigrationDate EA API removed
Removed Kind From removed MyWorkbooks API
Removed WorkbookResource Unreferenced base resource model

Mitigated Breaking Changes

Breaking Change Mitigation
WebTestLocationsOperations renamed to webTestLocationsOperations @@clientName restores WebTestLocations
SharedTypeKind renamed to WorkbookSharedTypeKind @@clientName restores SharedTypeKind
WebTestKindEnum renamed to WebTestKind @@clientName restores WebTestKindEnum

Compilation Fix

Also added @@clientName decorators to resolve 5 duplicate client name errors that prevented Python SDK generation:

  • TagsResource, ErrorResponseLinkedStorage, ErrorResponseLinkedStorageError, CategoryType, WorkbookSharedTypeKind

Spec mitigation PR

cxznmhdcxz/azure-rest-api-specs#3

Related spec PR

Azure/azure-rest-api-specs#41414

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