-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WebSites] Fixes to HTTP response codes, missing enum properties #3820
Conversation
@shahabhijeet Can you please review this PR? |
@@ -1,15 +1,15 @@ | |||
// <auto-generated> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The generated code looks fine, but:
(1) Please include the metadata file here:https://github.com/Azure/azure-sdk-for-net/tree/psSdkJson6/src/SDKs/_metadata which is automatically generated by AutoRest
(2) Please update the csproj with release notes and a version update
(3) Please include tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(1) I can't find this metadata file anywhere after generating the code with AuotRest. I'm running "autorest --csharp" from azure-rest-api-specs/specification/web/resource-manager with autorest 2.0.4166. The only output I see is C# code. Any advice on how I can get the metadata?
(3) I'll include a test for the PremiumV2 SKU that was added, but other updates in the PR are just metadata changes. Recorded tests should still be passing. Hopefully that's good enough for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Nking92 if you do not have a generate.cmd under you sdk folder, you should create one by modelling it from other RPs.
Let me know if you cannot find the generate.cmd file which will generate your SDK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, I was trying to directly use autorest instead of using the generate.cmd script. I regenerated with that script in the latest commit. It's a large number of changes once again, but it is working fine with our PowerShell project, which is good news.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I opened an issue to write more tests at #3844. Our API is so large that I would not be able to test it all without a huge time investment. I realize tests important, but we are also under pressure to get an SDK update published, which we can use for PowerShell, which has some broken commands that are causing pain for customers.
Description
This change adds some missing HTTP response codes for APIs required by the PowerShell project. It also adds missing SKUs to the AppServicePlans. It is needed to get our new PowerShell commands working. Most of the files have been modified with a small comment due to an Autorest update.
This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines
Testing Guidelines
SDK Generation Guidelines
*.csproj
andAssemblyInfo.cs
files have been updated with the new version of the SDK.