Skip to content

Conversation

@JonathanCrd
Copy link
Member

@JonathanCrd JonathanCrd commented Nov 25, 2025

This PR migrates sdk/purview/Azure.Analytics.Purview.DataMap to the new code generator.
Fixes #54120

  • Regenerates the src/Generated files using the new generator.
  • Updates the generated samples on the test project, which are not longer generated.
  • Updates custom code.

@JonathanCrd JonathanCrd self-assigned this Nov 25, 2025
Copilot AI review requested due to automatic review settings November 25, 2025 23:28
@JonathanCrd JonathanCrd requested a review from jsquire as a code owner November 25, 2025 23:28
Copilot finished reviewing on behalf of JonathanCrd November 25, 2025 23:30
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 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate Azure.Analytics.Purview.DataMap to new code generator

2 participants