-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Migrate Azure.Analytics.Purview.DataMap to new code generator #54156
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?
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 Azure.Analytics.Purview.DataMap SDK to a new code generator. The changes regenerate the src/Generated files using the updated generator, update test samples that are no longer auto-generated, and modify custom code to align with the new generator's patterns.
Key changes:
- Configuration updated to use the new TypeSpec HTTP client C# emitter
- Generated client code refactored with improved patterns (protocol methods first, convenience methods wrapper style)
- Sample test files updated to reflect renamed methods and removed API version parameters
- Model serialization updated to use newer patterns with
_additionalBinaryDataProperties
Reviewed changes
Copilot reviewed 4 out of 210 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tsp-location.yaml | Added emitter package configuration for new generator |
| Samples_TypeDefinition.cs | Updated samples with method name changes, removed apiVersion parameters, commented out samples for methods no longer generated |
| Samples_Relationship.cs | Renamed GetRelationship to Get, removed auto-generated comment |
| Samples_Lineage.cs | Renamed GetLineage to Get, removed apiVersion parameters |
| Samples_Glossary.cs | Renamed GetGlossary to Get |
| Samples_Entity.cs | Removed apiVersion parameters, updated ImportBusinessMetadata signature |
| Samples_Discovery.cs | Removed apiVersion parameters across all discovery samples |
| TypeDefinition.cs | Major refactoring with protocol methods first, convenience methods as wrappers, improved ordering |
| TypeDefinition.RestClient.cs | New file containing REST request creation logic separated from main client |
| TypeCategory.cs | Updated enum implementation with improved documentation |
| TimeBoundary.cs | Updated serialization field naming from _serializedAdditionalRawData to _additionalBinaryDataProperties |
| TermTemplateDef.cs | Updated model with improved property documentation |
| TermStatus.cs | Updated enum implementation pattern |
| TermSearchResultValue.cs | Updated serialization patterns |
| AzureAnalyticsPurviewDataMapContext.cs | Minor documentation link formatting update |
This PR migrates sdk/purview/Azure.Analytics.Purview.DataMap to the new code generator.
Fixes #54120