Skip to content

[Grafana] Verify that the new code generator generates SDK code from TSP#54273

Merged
ArthurMa1978 merged 6 commits intoAzure:mainfrom
mzhongl524:pr-grafana-from-tsp
Jan 4, 2026
Merged

[Grafana] Verify that the new code generator generates SDK code from TSP#54273
ArthurMa1978 merged 6 commits intoAzure:mainfrom
mzhongl524:pr-grafana-from-tsp

Conversation

@mzhongl524
Copy link
Member

@mzhongl524 mzhongl524 commented Dec 3, 2025

Fixed: #53880
TPS PR: Azure/azure-rest-api-specs#39052

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.

@github-actions
Copy link

github-actions bot commented Dec 30, 2025

API Change Check

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

Azure.ResourceManager.Grafana

@RodgeFu RodgeFu marked this pull request as ready for review January 4, 2026 04:34
@RodgeFu RodgeFu requested a review from qingquanzhao as a code owner January 4, 2026 04:34
Copilot AI review requested due to automatic review settings January 4, 2026 04:34
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 PR migrates the Grafana SDK from the legacy code generator to the new Azure Management Generator by updating the TSP configuration to use the new emitter package. The changes include regenerated code with updated patterns for REST operations, models, and serialization logic.

Key Changes:

  • Updated emitter configuration to use the new Azure TypeSpec management emitter
  • Regenerated all REST operation classes with new naming conventions and structure
  • Updated model serialization patterns across multiple classes
  • Added new model classes for private endpoint functionality

Reviewed changes

Copilot reviewed 7 out of 199 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tsp-location.yaml Updated emitter package reference to new management generator
PrivateLinkResourcesRestOperations.cs Refactored class structure with new naming and protocol method patterns
PrivateEndpointConnectionsRestOperations.cs Similar refactoring to use new generator patterns
ManagedPrivateEndpointModelsRestOperations.cs Updated to new REST operations structure
ManagedGrafanasRestOperations.cs Comprehensive refactoring with new method signatures
ManagedDashboardsRestOperations.cs Updated REST operations with protocol methods
IntegrationFabricsRestOperations.cs Regenerated with new generator patterns
DashboardDefinitionsRestOperations.cs New file added by generator
ProviderConstants.cs Minor modifier change (internal static → internal static partial)
Various Model files Updated serialization patterns and field naming conventions

@ArthurMa1978 ArthurMa1978 merged commit 37c9cf6 into Azure:main Jan 4, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MPG migration - grafana

3 participants