Changes for updating SDK to new preview version and AlwaysServe flag.#32208
Changes for updating SDK to new preview version and AlwaysServe flag.#32208Yao725 merged 11 commits intoAzure:mainfrom
Conversation
...Azure.ResourceManager.TrafficManager/src/Generated/RestOperations/EndpointsRestOperations.cs
Outdated
Show resolved
Hide resolved
…com/imsiddhartha/azure-sdk-for-net into dev/ssaklecha/TM-2022-04-01-preview
|
There were some pipeline failures while generating .NET SDK for TM, thanks @Yao725 for the detailed analysis: Earlier when the stable version 1.0.0 was released, this commit was used as the source readme file from swagger repo, which means generator script will use the API file with same commit id, and you can see at that time the endpointType is just a string. And if you navigate to the latest API file, it becomes the enum. This is the root cause of this change, if you changed a path parameter to an enum, SDK generator will automatically split them to a new resource. For instance, previously we have a resource called TrafficManagerEndpoint, after the endpoint type explicitly marked as enum, generator will use three new resources(aka TrafficManagerAzureEndpoint, TrafficManagerExternalEndpoint and TrafficManagerNestedEndpoint) to replace the old resource. So we have the breaking changes. This is the PR responsible for the errors: trafficmanager: adding the missing enum values for traffic manager endpoint by tombuildsstuff · Pull Request #16472 · Azure/azure-rest-api-specs (github.com) I wonder why .NET SDK was not updated after this PR and was this accidental or it was supposed to be like that To minimize the breaking changes and keep backward compatibility, we removed the enum definition in the autorest.md configuration and added the supported endpoint type to the parameter description, please take a look at this commit and let me know if you are ok with this change. |
…Azure#32208) * Changes for updating SDK to new preview version and AlwaysServe flag. * Revert breaking changes. * Reverting changes. * Fix test, update API:2022-04-01-preview * Fix build. * minimize the breaking changes and fix the pipeline * Revert change. * Recorded tests against new API. Co-authored-by: Yao Kou <yaokou@microsoft.com>
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.