Skip to content

Conversation

@ArthurMa1978
Copy link
Member

@ArthurMa1978 ArthurMa1978 commented Dec 9, 2025

Fixes #53867

Contributing to the Azure SDK

Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.

For specific information about pull request etiquette and best practices, see this section.

Copilot AI review requested due to automatic review settings December 9, 2025 17:10
@github-actions github-actions bot added the Mgmt This issue is related to a management package. label Dec 9, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request updates the Azure.ResourceManager.CarbonOptimization SDK to use the new Management Plane Generator (MPG). The changes are entirely code generation updates resulting from switching the emitter package reference in the tsp-location.yaml file.

Key changes:

  • Updated the emitter package path from legacy to the new azure-typespec-http-client-csharp-mgmt-emitter
  • Updated the TypeSpec commit reference
  • Regenerated all SDK code with the new generator, producing consistent patterns across models and serialization code

Reviewed changes

Copilot reviewed 16 out of 93 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tsp-location.yaml Updated emitter package path to new MPG and updated commit reference
CarbonServiceRestOperations.cs Refactored to CarbonService class with new structure and RequestContext pattern
ProviderConstants.cs Added partial modifier and XML documentation
UnknownCarbonEmissionQueryFilter.cs Updated constructor patterns and field naming conventions
UnknownCarbonEmissionQueryFilter.Serialization.cs Updated serialization implementation with new patterns
UnknownCarbonEmission.cs Updated constructor patterns and field naming
UnknownCarbonEmission.Serialization.cs Updated serialization methods and patterns
TopItemsSummaryReportQueryFilter.cs Removed public constructor, updated internal constructor
TopItemsSummaryReportQueryFilter.Serialization.cs Updated serialization with new deserialization patterns
TopItemsMonthlySummaryReportQueryFilter.cs Removed public constructor, updated internal constructor
TopItemsMonthlySummaryReportQueryFilter.Serialization.cs Updated serialization with new patterns
SubscriptionAccessDecision.cs Updated field naming and access modifiers
SubscriptionAccessDecision.Serialization.cs Updated serialization methods
Multiple Resource* model files Updated constructors and field naming across all resource models
Multiple Item* and Carbon* model files Consistent updates to match new generator patterns
CarbonEmissionScope.cs Added XML documentation and nullable implicit operator
CarbonEmissionQuerySortDirection.cs Added XML documentation and nullable implicit operator
CarbonEmissionQueryReportType.cs Added XML documentation and nullable implicit operator
CarbonEmissionQueryOrderByColumn.cs Added XML documentation and nullable implicit operator
CarbonEmissionQueryFilter.cs Made class abstract, updated constructors and field naming
CarbonEmissionQueryFilter.Serialization.cs Added serialization helper methods and updated patterns
CarbonEmissionQueryDateRange.cs Updated field naming and removed deserialization constructor
CarbonEmissionQueryDateRange.Serialization.cs Updated serialization methods
CarbonEmissionOverallSummary.cs Updated constructor patterns
CarbonEmissionMonthlySummary.cs Updated constructor patterns and field naming

@github-actions
Copy link

github-actions bot commented Dec 9, 2025

API Change Check

APIView identified API level changes in this PR and created the following API reviews

Azure.ResourceManager.CarbonOptimization

@haiyuazhang
Copy link
Member

should we remove autorest.csharp dependency?

@ArthurMa1978
Copy link
Member Author

/check-enforcer override

@live1206 live1206 merged commit c087903 into main Dec 11, 2025
21 checks passed
@live1206 live1206 deleted the mgmt-carbon branch December 11, 2025 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Mgmt This issue is related to a management package.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MPG migration - carbon

4 participants