Skip to content
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

Enable Computer Vision Client to customize endpoint. #3440

Merged
merged 2 commits into from Jul 20, 2018
Merged

Enable Computer Vision Client to customize endpoint. #3440

merged 2 commits into from Jul 20, 2018

Conversation

yangyuan
Copy link
Member

@yangyuan yangyuan commented Jul 18, 2018

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

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
  • If applicable, the PR references the bug/issue that it fixes.
  • Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

@AutorestCI
Copy link

AutorestCI commented Jul 18, 2018

Automation for azure-sdk-for-python

The initial PR has been merged into your service PR:
Azure/azure-sdk-for-python#2978

@AutorestCI
Copy link

AutorestCI commented Jul 18, 2018

Automation for azure-sdk-for-node

The initial PR has been merged into your service PR:
Azure/azure-sdk-for-node#2901

@AutorestCI
Copy link

AutorestCI commented Jul 18, 2018

Automation for azure-sdk-for-java

The initial PR has been merged into your service PR:
Azure/azure-sdk-for-java#2237

@AutorestCI
Copy link

AutorestCI commented Jul 18, 2018

Automation for azure-sdk-for-ruby

The initial PR has been merged into your service PR:
Azure/azure-sdk-for-ruby#1403

@AutorestCI
Copy link

AutorestCI commented Jul 18, 2018

Automation for azure-sdk-for-go

The initial PR has been merged into your service PR:
Azure/azure-sdk-for-go#2282

@@ -8,7 +8,6 @@ nodejs:
package-name: azure-cognitiveservices-computervision
package-version: 2.0.0-preview
output-folder: $(node-sdks-folder)/lib/services/computerVision
override-client-name: ComputerVisionAPIClient
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove "override-client-name" since the Client name now naturally ends with "Client"

@yangyuan yangyuan requested a review from cthrash July 18, 2018 19:30
"parameters": [
{
"$ref": "#/parameters/AzureRegion"
"$ref": "#/parameters/Endpoint"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Endpoint has to be "$ref", otherwise, it behaves like "x-ms-parameter-location": "method".

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe you'll have to update all the examples, (like this).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cthrash Thanks, didn't know about the examples, they are now updated.

Copy link
Contributor

@cthrash cthrash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@sergey-shandar
Copy link
Contributor

@DavidLiCIG @felixwa please, review.

Copy link
Contributor

@sergey-shandar sergey-shandar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yangyuan what's the reason for breaking changes in the stable API?

@yangyuan
Copy link
Member Author

yangyuan commented Jul 19, 2018

@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",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@yangyuan
Copy link
Member Author

@sergey-shandar ping... :)

Copy link
Contributor

@sergey-shandar sergey-shandar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This's still potential SDK breaking changes. If you are ok with this, I will merge it.

@sergey-shandar sergey-shandar merged commit 6a7eb1d into Azure:master Jul 20, 2018
@yangyuan
Copy link
Member Author

yangyuan commented Jul 21, 2018

@sergey-shandar, we are aware that this is a breaking change. :) Please merge.

tfitzmac added a commit to tfitzmac/azure-rest-api-specs that referenced this pull request Jul 23, 2018
jhendrixMSFT pushed a commit that referenced this pull request Jul 23, 2018
* Revert "Enable Computer Vision Client to customize endpoint. (#3440)"

This reverts commit 6a7eb1d.

* Revert "Update custom image search Node.js properties (#3470)"

This reverts commit eddee65.

* Revert "updated description of sku name values (#3467)"

This reverts commit aa50b23.
thang911 pushed a commit to thang911/azure-rest-api-specs that referenced this pull request Aug 17, 2018
* Enable Computer Vision Client to customize endpoint.

* Update Corresponding examples.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants