Skip to content

[Python] TypeSpec migration for azure-mgmt-policyinsights - #45935

Closed
ChenxiJiang333 wants to merge 7 commits into
Azure:mainfrom
ChenxiJiang333:sdk-azure-mgmt-policyinsights
Closed

ChenxiJiang333 wants to merge 7 commits into
Azure:mainfrom
ChenxiJiang333:sdk-azure-mgmt-policyinsights

Conversation

@ChenxiJiang333

Copy link
Copy Markdown
Member

[Python] TypeSpec migration for azure-mgmt-policyinsights

SDK output comparison for the TypeSpec migration of azure-mgmt-policyinsights (PR Azure/azure-rest-api-specs#41735).

Pre-migration Swagger Source

specification/policyinsights/resource-manager @ a41799da

Breaking Change Analysis

Classification Count Description
MITIGATE 3 Client rename, property renames
ACCEPT ~100 Parameter kind changes, model removals, subscription_id promotion, QueryOptions inlining

Mitigated Breaking Changes (spec PR)

Spec mitigation PR: cxznmhdcxz/azure-rest-api-specs#4

Breaking Change Mitigation
Client PolicyInsightsClient → PolicyInsightsManagementClient @@clientName decorator
FieldRestriction.values renamed to values_property @@clientName decorator
PendingField.values renamed to values_property @@clientName decorator

Accepted Breaking Changes (will remain)

Per the SDK Breaking Changes Guide:

  • Deleted auto-generated error models: ErrorDefinitionAutoGenerated, ErrorDefinitionAutoGenerated2, ErrorResponseAutoGenerated, ErrorResponseAutoGenerated2
  • Deleted pageable wrapper models: PolicyEventsQueryResults, PolicyStatesQueryResults, PolicyTrackedResourcesQueryResults, PolicyMetadataCollection
  • Deleted wrapper model: QueryOptions (parameters inlined into methods)
  • Parameter removals: query_options removed from ~30 methods (replaced by inline top, filter, order_by, etc.)
  • Parameter removals: subscription_id removed from ~20 methods (promoted to client-level)
  • Parameter kind changes: ~25 parameters changed from positional_or_keyword to keyword_only
  • Parameter re-orderings: ~5 methods due to QueryOptions removal

Commits

  1. generated from swagger:a41799da — SDK from pre-migration swagger spec
  2. generated from typespec:2591fd84 — SDK from PR TypeSpec spec
  3. changelog from report comparison — Breaking change changelog

@ChenxiJiang333
ChenxiJiang333 force-pushed the sdk-azure-mgmt-policyinsights branch from 622e00e to 86c8438 Compare April 28, 2026 06:01
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Hi ChenxiJiang333. Thank you for your interest in helping to improve the Azure SDK experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment. Otherwise, we'll close this out in 7 days.

@github-actions github-actions Bot added the no-recent-activity There has been no recent activity on this issue. label Jul 3, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi ChenxiJiang333. Thank you for your contribution. Since there hasn't been recent engagement, we're going to close this out. Feel free to respond with a comment containing /reopen if you'd like to continue working on these changes. Please be sure to use the command to reopen or remove the no-recent-activity label; otherwise, this is likely to be closed again with the next cleanup pass.

@github-actions github-actions Bot closed this Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-recent-activity There has been no recent activity on this issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant