-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Update Azure.ResourceManager.Carbon project to use the new MPG #54407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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 |
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
|
should we remove autorest.csharp dependency? Line 10 in 9c9c368
|
|
/check-enforcer override |
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.