Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

haiyuazhang
Copy link
Member

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.

@Copilot Copilot AI review requested due to automatic review settings October 13, 2025 02:20
Copy link
Contributor

@Copilot 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 implements functionality to rename body parameters in non-resource methods from generic names to "content" for better API consistency. The change ensures that body parameters in non-resource methods use a standardized naming convention while maintaining the existing "patch" naming for resource update methods.

  • Introduces a caching mechanism for non-resource method providers to enable parameter renaming
  • Adds logic to identify and rename body parameters in non-resource methods to "content"
  • Extends the management input library to track models used as body parameters in non-resource methods

Reviewed Changes

Copilot reviewed 5 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
NameVisitor.cs Added logic to rename body parameters to "content" for non-resource methods and "patch" for resource methods
NonResourceMethodProviderCache.cs New utility class providing thread-safe caching for non-resource method providers
MockableResourceProvider.cs Updated to cache non-resource method providers during creation
ExtensionProvider.cs Extended to cache redirect methods when their target methods are non-resource methods
ManagementInputLibrary.cs Added functionality to identify models used as body parameters in non-resource methods

@github-actions github-actions bot added CodeGen Issues that relate to code generation Mgmt This issue is related to a management package. labels Oct 13, 2025
@haiyuazhang haiyuazhang marked this pull request as draft October 14, 2025 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CodeGen Issues that relate to code generation Mgmt This issue is related to a management package.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.