Fixed an issue related to header response and added three new test cases #1524
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a comprehensive set of new TypeSpec files and configuration enhancements for the ElasticSan resource provider, focusing on improved ARM resource modeling, client generator customization, and operation handling. The changes include new resource definitions for ElasticSan, VolumeGroup, Volume, Snapshot, and PrivateEndpointConnection, alongside extensive use of decorators for client naming, property flattening, and operation grouping to support both ARM and client SDK generation scenarios.
Resource Modeling and Operations
ElasticSan
,VolumeGroup
,Volume
,Snapshot
, andPrivateEndpointConnection
, each with detailed ARM resource operations (CRUD, list, custom actions) and property constraints/documentation. [1] [2] [3] [4] [5]Client Generator and SDK Customization
client.tsp
andback-compatible.tsp
files to control client SDK generation, including custom client names, alternate types, property flattening, and operation grouping for C# and Go SDKs. [1] [2]@@clientLocation
) to ensure consistent SDK output and maintain compatibility with legacy clients. [1] [2]ARM and Metadata Handling
Operation and Protocol Logic
convertor.ts
to conditionally remove LRO headers only for polling responses with status codes 202 or 201, improving protocol compliance.Documentation and Constraints
References:
[1] [2] [3] [4] [5] [6] [7] [8]