-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
[Cognitive Services] Add Microsoft.CognitiveServices/skus operation #2666
Conversation
Add Microsoft.CognitiveServices/skus operation Add its example
Automation for azure-sdk-for-nodeThe initial PR has been merged into your service PR: |
Automation for azure-sdk-for-pythonEncountered a Subprocess error: (azure-sdk-for-python)
Command: ['/usr/local/bin/autorest', '/tmp/tmp9j53ewto/rest/specification/cognitiveservices/resource-manager/readme.md', '--multiapi', '--python', '--python-mode=update', '--python-sdks-folder=/tmp/tmp9j53ewto/sdk', '--use=@microsoft.azure/autorest.python@~3.0', '--version=preview'] AutoRest code generation utility [version: 2.0.4262; node: v7.10.1]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
Failure:
Error: Unable to resolve package '@microsoft.azure/autorest-core@preview'.
Error: Unable to resolve package '@microsoft.azure/autorest-core@preview'.
at fetch (/node_modules/@microsoft.azure/extension/dist/main.js:295:26)
at /node_modules/npm/node_modules/call-limit/call-limit.js:22:12
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9) |
Automation for azure-libraries-for-javaA PR has been created for you based on this PR content. Once this PR will be merged, content will be added to your service PR: |
Automation for azure-sdk-for-goThe initial PR has been merged into your service PR: |
"get": { | ||
"tags": [ | ||
"Skus", | ||
"AvailabilitySets" |
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.
not sure AvailabilitySets
make sense here, if not please remove it
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.
Right, that does not make sense, put CognitiveServicesAccounts there.
"items": { | ||
"type": "string" | ||
}, | ||
"description": "Locations where the SKU is restricted" |
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.
just confirming - this is the list of location where the specific sku is not available, right?
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 think so...but actually I took this from Compute/Skus.
@felixwa thank you. one question (this is just to understand the behavior of the API) Let say a specific |
@ravbhatnagar PR enables new endpoint to retrieve SKUs, there is no breaking change. But in case you want to take a look to ensure that the API shape follows standard pattern defined for SKU API across RPs. |
], | ||
"x-ms-enum": { | ||
"name": "ResourceSkuRestrictionsReasonCode", | ||
"modelAsString": false |
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.
It's recommended to use "modelAsString": true
so that languages generate extendable enum.
reasonCode modelAsString = true
@anuchandy , for your question wrt the behavior, I believe it is (2). we return one entry per location. You can also verify this in the example file (GetSkus.json) of this PR. |
@felixwa thank you for confirming. @ravbhatnagar are you fine with these changes? |
Looks good. Signing off! |
@anuchandy , Gaurave has signed off, could you merge the change now? |
@felixwa could you take the opportunity of this PR to change the incorrect value of |
x-ms-parameter-location 'client' to 'method'
@lmazuel, done |
Add Microsoft.CognitiveServices/skus operation
Add its example
This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information
api-version
in the path should match theapi-version
in the spec).Quality of Swagger