Skip to content

Conversation

@mzhongl524
Copy link
Member

@mzhongl524 mzhongl524 commented Dec 2, 2025

Fixed: #53897
TSP PR: Azure/azure-rest-api-specs#39024

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 2, 2025

API Change Check

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

Azure.ResourceManager.SecretsStoreExtension

@mzhongl524 mzhongl524 marked this pull request as ready for review December 12, 2025 06:20
Copilot AI review requested due to automatic review settings December 12, 2025 06:20
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 Azure.ResourceManager.SecretsStoreExtension SDK to use the new code generator from TypeSpec (TSP) instead of the legacy emitter. The changes are primarily generated code updates that reflect the new generator's patterns and conventions.

Key changes:

  • Switch from legacy emitter to new TSP-based code generator (azure-typespec-http-client-csharp-mgmt-emitter)
  • Update parameter names from serializedAdditionalRawData to additionalBinaryDataProperties
  • Change subscription ID type from string to Guid in REST operations
  • Modernize code patterns (explicit types instead of var, updated documentation format)

Reviewed changes

Copilot reviewed 4 out of 78 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tsp-location.yaml Updates emitter package reference and commit hash for new generator
SecretSyncTests.cs Updates parameter name in test to match new generator output
SecretSyncResource.cs Regenerated with new patterns: Guid subscription IDs, updated REST client usage, explicit types
SecretSyncResource.Serialization.cs Updated serialization patterns with new naming conventions
SecretSyncData.cs Simplified constructors and updated property documentation
SecretSyncData.Serialization.cs Modernized serialization with protected methods and explicit types
SecretSyncCollection.cs Updated to use new REST client patterns and Guid subscription IDs
RestOperations/* Simplified to method factories returning HttpMessage instead of full request/response handling
Models/* Consistent updates to serialization patterns, documentation, and naming conventions
ProviderConstants.cs Added XML documentation
Utf8JsonRequestContent.cs Added XML documentation for public members

@haiyuazhang
Copy link
Member

please remove autorest.csharp dependency

@haiyuazhang haiyuazhang changed the title [SecretsStoreExtension] Verify that the new code generator generates SDK code from TSP MPG migration - SecretsStoreExtension Dec 12, 2025
@live1206 live1206 merged commit ab5fd4d into Azure:main Dec 12, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MPG migration - secretsstoreextension

3 participants