Skip to content

Conversation

@haiyuazhang
Copy link
Member

@haiyuazhang haiyuazhang commented Dec 21, 2025

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.

Fixes #53885

Copilot AI review requested due to automatic review settings December 21, 2025 11:24
@github-actions github-actions bot added the Mgmt This issue is related to a management package. label Dec 21, 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 migrates the mongocluster SDK to a new Management Plane Generator (MPG). The changes involve:

  • Updating the emitter package configuration to use the new Azure TypeSpec HTTP client C# management emitter
  • Regenerating all code using the new generator, which results in significant refactoring of the generated REST operations and resource classes

Key Changes:

  • Migration from legacy emitter to azure-typespec-http-client-csharp-mgmt-emitter-package.json
  • Removal of additionalDirectories field from tsp-location.yaml
  • Comprehensive refactoring of REST operations classes to use RequestContext pattern
  • Parameter type changes from string to Guid for subscription IDs
  • Updated serialization patterns and class structure

Reviewed changes

Copilot reviewed 1 out of 149 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tsp-location.yaml Updates emitter package path and removes additionalDirectories field
UsersRestOperations.cs Refactored to use new RequestContext pattern, removed async/sync method pairs
ReplicasRestOperations.cs Simplified to core request creation methods with RequestContext
PrivateLinksRestOperations.cs Streamlined to use new generator patterns
PrivateEndpointConnectionsRestOperations.cs Refactored similar to other REST operations
MongoClustersRestOperations.cs Major simplification using RequestContext approach
FirewallRulesRestOperations.cs Updated to match new generator patterns
ProviderConstants.cs Added XML documentation and partial keyword
MongoClusterUserResource.cs Updated with new diagnostic scopes and request handling
MongoClusterUserData.cs Simplified with new serialization patterns
MongoClusterUserCollection.cs Refactored to use new pageable wrapper patterns
MongoClusterResource.cs Extensive updates to match new generator architecture
Various Serialization files Updated to use new serialization infrastructure

@github-actions
Copy link

API Change Check

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

Azure.ResourceManager.MongoCluster

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 - mongocluster

1 participant