Enable Computer Vision Client to customize endpoint.#3440
Enable Computer Vision Client to customize endpoint.#3440sergey-shandar merged 2 commits intomasterfrom unknown repository
Conversation
Automation for azure-sdk-for-pythonThe initial PR has been merged into your service PR: |
Automation for azure-sdk-for-nodeThe initial PR has been merged into your service PR: |
Automation for azure-sdk-for-javaThe initial PR has been merged into your service PR: |
Automation for azure-sdk-for-rubyThe initial PR has been merged into your service PR: |
Automation for azure-sdk-for-goThe initial PR has been merged into your service PR: |
| package-name: azure-cognitiveservices-computervision | ||
| package-version: 2.0.0-preview | ||
| output-folder: $(node-sdks-folder)/lib/services/computerVision | ||
| override-client-name: ComputerVisionAPIClient |
There was a problem hiding this comment.
Remove "override-client-name" since the Client name now naturally ends with "Client"
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/AzureRegion" | ||
| "$ref": "#/parameters/Endpoint" |
There was a problem hiding this comment.
Endpoint has to be "$ref", otherwise, it behaves like "x-ms-parameter-location": "method".
There was a problem hiding this comment.
I believe you'll have to update all the examples, (like this).
There was a problem hiding this comment.
@cthrash Thanks, didn't know about the examples, they are now updated.
|
@DavidLiCIG @felixwa please, review. |
sergey-shandar
left a comment
There was a problem hiding this comment.
@yangyuan what's the reason for breaking changes in the stable API?
|
@sergey-shandar, no changes on operations/models. Just host template update so the client can be flexible to customize the base URI. |
| "description": "Supported Azure regions for Cognitive Services endpoints", | ||
| "Endpoint": { | ||
| "name": "Endpoint", | ||
| "description": "Supported Cognitive Services endpoints", |
There was a problem hiding this comment.
This is fine for now but would be great if there is a URL in here pointing users to a doc where he/she would be able to get the endpoint.
|
@sergey-shandar ping... :) |
sergey-shandar
left a comment
There was a problem hiding this comment.
This's still potential SDK breaking changes. If you are ok with this, I will merge it.
|
@sergey-shandar, we are aware that this is a breaking change. :) Please merge. |
)" This reverts commit 6a7eb1d.
* Enable Computer Vision Client to customize endpoint. * Update Corresponding examples.
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-versionin the path should match theapi-versionin the spec).Quality of Swagger