-
Notifications
You must be signed in to change notification settings - Fork 5.1k
MPG migration - mongocluster #54639
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
base: main
Are you sure you want to change the base?
MPG migration - mongocluster #54639
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 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
additionalDirectoriesfield from tsp-location.yaml - Comprehensive refactoring of REST operations classes to use
RequestContextpattern - Parameter type changes from
stringtoGuidfor 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 |
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
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