Merged
Conversation
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR migrates the Azure HealthBot SDK from the legacy AutoRest code generator to the new Management Plane Generator (MPG) using TypeSpec. The migration involves regenerating all SDK code with the new generator, which produces different code patterns and structures while maintaining the same API functionality.
Key Changes:
- Added
tsp-location.yamlconfiguration for TypeSpec-based generation - Backed up old
autorest.mdconfiguration - Regenerated all model classes with updated serialization patterns
- Refactored REST operations to use protocol methods with
RequestContext - Updated internal utilities and helper classes for the new generator
Reviewed changes
Copilot reviewed 8 out of 62 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tsp-location.yaml | New TypeSpec configuration specifying the API spec location and commit |
| autorest.md.bak | Backup of legacy AutoRest configuration |
| BotsRestOperations.cs | Refactored to protocol-style methods using RequestContext |
| ProviderConstants.cs | Made partial and added documentation |
| HealthBotSkuName.Serialization.cs | Removed S1 SKU value and improved formatting |
| Model classes (.cs) | Updated to use _additionalBinaryDataProperties instead of _serializedAdditionalRawData |
| Serialization classes | Enhanced with proper documentation and protected virtual methods |
| HealthBotResource.cs | Updated to use protocol methods with RequestContext |
| HealthBotData.cs | Restructured constructor parameter order and improved documentation |
| HealthBotCollection.cs | Refactored to use new pageable wrappers |
| Internal utility classes | Added new helper classes for the MPG generator |
| Custom model files | Minor cleanup and formatting changes |
ArthurMa1978
approved these changes
Jan 14, 2026
ArthurMa1978
approved these changes
Jan 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixed: #54755
Spec PR: Azure/azure-rest-api-specs#39542
Use the new code generator to generate SDK code from TSP.
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.