Skip to content

Commit

Permalink
docs: add batch samples to README files (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and callmehiphop committed Dec 5, 2019
1 parent ad637cc commit c6dcd00
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 3 deletions.
3 changes: 3 additions & 0 deletions packages/google-cloud-vision/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ has instructions for running the samples.

| Sample | Source Code | Try it |
| --------------------------- | --------------------------------- | ------ |
| Async-batch-annotate-images | [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/async-batch-annotate-images.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/async-batch-annotate-images.js,samples/README.md) |
| Batch-annotate-files-gcs | [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/batch-annotate-files-gcs.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/batch-annotate-files-gcs.js,samples/README.md) |
| Batch-annotate-files | [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/batch-annotate-files.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/batch-annotate-files.js,samples/README.md) |
| Detect | [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/detect.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.js,samples/README.md) |
| Detect.v1p1beta1 | [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/detect.v1p1beta1.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.v1p1beta1.js,samples/README.md) |
| 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) |
Expand Down
54 changes: 54 additions & 0 deletions packages/google-cloud-vision/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@

* [Before you begin](#before-you-begin)
* [Samples](#samples)
* [Async-batch-annotate-images](#async-batch-annotate-images)
* [Batch-annotate-files-gcs](#batch-annotate-files-gcs)
* [Batch-annotate-files](#batch-annotate-files)
* [Detect](#detect)
* [Detect.v1p1beta1](#detect.v1p1beta1)
* [Detect.v1p3beta1](#detect.v1p3beta1)
Expand All @@ -29,6 +32,57 @@ Before running the samples, make sure you've followed the steps outlined in



### Async-batch-annotate-images

View the [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/async-batch-annotate-images.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/async-batch-annotate-images.js,samples/README.md)

__Usage:__


`node async-batch-annotate-images.js`


-----




### Batch-annotate-files-gcs

View the [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/batch-annotate-files-gcs.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/batch-annotate-files-gcs.js,samples/README.md)

__Usage:__


`node batch-annotate-files-gcs.js`


-----




### Batch-annotate-files

View the [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/batch-annotate-files.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/batch-annotate-files.js,samples/README.md)

__Usage:__


`node batch-annotate-files.js`


-----




### Detect

View the [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/detect.js).
Expand Down
6 changes: 3 additions & 3 deletions packages/google-cloud-vision/synth.metadata
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"updateTime": "2019-11-27T12:31:12.179114Z",
"updateTime": "2019-12-03T12:28:28.228891Z",
"sources": [
{
"generator": {
Expand All @@ -12,8 +12,8 @@
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "d8896a3d8a191702a9e39f29cf4c2e16fa05f76d",
"internalRef": "282674885"
"sha": "38dc36a2a43cbab4a2a9183a43dd0441670098a9",
"internalRef": "283384331"
}
},
{
Expand Down

0 comments on commit c6dcd00

Please sign in to comment.