From eb7d16709d333a22a45656f092f62105177f4e34 Mon Sep 17 00:00:00 2001 From: Brad Miro Date: Tue, 26 Nov 2019 14:16:28 -0500 Subject: [PATCH] feat(samples): add sample of configuring alternate apiEndpoint (#473) --- packages/google-cloud-vision/README.md | 1 + .../google-cloud-vision/linkinator.config.json | 3 ++- packages/google-cloud-vision/samples/README.md | 17 +++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/packages/google-cloud-vision/README.md b/packages/google-cloud-vision/README.md index a67d392dedf..27b41e31e5c 100644 --- a/packages/google-cloud-vision/README.md +++ b/packages/google-cloud-vision/README.md @@ -85,6 +85,7 @@ has instructions for running the samples. | Detect.v1p3beta1 | [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/detect.v1p3beta1.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/detect.v1p3beta1.js,samples/README.md) | | Face Detection | [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/faceDetection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/faceDetection.js,samples/README.md) | | Quickstart | [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) | +| Set Endpoint | [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/setEndpoint.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/setEndpoint.js,samples/README.md) | | Text Detection | [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/textDetection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/textDetection.js,samples/README.md) | diff --git a/packages/google-cloud-vision/linkinator.config.json b/packages/google-cloud-vision/linkinator.config.json index d780d6bfff5..cad97afdc56 100644 --- a/packages/google-cloud-vision/linkinator.config.json +++ b/packages/google-cloud-vision/linkinator.config.json @@ -2,6 +2,7 @@ "recurse": true, "skip": [ "https://codecov.io/gh/googleapis/", - "www.googleapis.com" + "www.googleapis.com", + "setEndpoint.js" ] } diff --git a/packages/google-cloud-vision/samples/README.md b/packages/google-cloud-vision/samples/README.md index 67a854b8bdb..8c8cdf5a04c 100644 --- a/packages/google-cloud-vision/samples/README.md +++ b/packages/google-cloud-vision/samples/README.md @@ -17,6 +17,7 @@ * [Detect.v1p3beta1](#detect.v1p3beta1) * [Face Detection](#face-detection) * [Quickstart](#quickstart) + * [Set Endpoint](#set-endpoint) * [Text Detection](#text-detection) ## Before you begin @@ -113,6 +114,22 @@ __Usage:__ +### Set Endpoint + +View the [source code]https://github.com/googleapis/nodejs-vision/blob/master/samples/setEndpoint.js) + +[![Open in Cloud shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/setEndpoint.js,samples/README.md) + +__Usage:__ + +`node setEndpoint.js` + +----- + + + + + ### Text Detection View the [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/textDetection.js).