Skip to content

Commit c6dcd00

Browse files
yoshi-automationcallmehiphop
authored andcommitted
docs: add batch samples to README files (#496)
1 parent ad637cc commit c6dcd00

File tree

3 files changed

+60
-3
lines changed

3 files changed

+60
-3
lines changed

packages/google-cloud-vision/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ has instructions for running the samples.
8080

8181
| Sample | Source Code | Try it |
8282
| --------------------------- | --------------------------------- | ------ |
83+
| 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) |
84+
| 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) |
85+
| 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) |
8386
| 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) |
8487
| 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) |
8588
| 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) |

packages/google-cloud-vision/samples/README.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212

1313
* [Before you begin](#before-you-begin)
1414
* [Samples](#samples)
15+
* [Async-batch-annotate-images](#async-batch-annotate-images)
16+
* [Batch-annotate-files-gcs](#batch-annotate-files-gcs)
17+
* [Batch-annotate-files](#batch-annotate-files)
1518
* [Detect](#detect)
1619
* [Detect.v1p1beta1](#detect.v1p1beta1)
1720
* [Detect.v1p3beta1](#detect.v1p3beta1)
@@ -29,6 +32,57 @@ Before running the samples, make sure you've followed the steps outlined in
2932

3033

3134

35+
### Async-batch-annotate-images
36+
37+
View the [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/async-batch-annotate-images.js).
38+
39+
[![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)
40+
41+
__Usage:__
42+
43+
44+
`node async-batch-annotate-images.js`
45+
46+
47+
-----
48+
49+
50+
51+
52+
### Batch-annotate-files-gcs
53+
54+
View the [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/batch-annotate-files-gcs.js).
55+
56+
[![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)
57+
58+
__Usage:__
59+
60+
61+
`node batch-annotate-files-gcs.js`
62+
63+
64+
-----
65+
66+
67+
68+
69+
### Batch-annotate-files
70+
71+
View the [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/batch-annotate-files.js).
72+
73+
[![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)
74+
75+
__Usage:__
76+
77+
78+
`node batch-annotate-files.js`
79+
80+
81+
-----
82+
83+
84+
85+
3286
### Detect
3387

3488
View the [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/detect.js).

packages/google-cloud-vision/synth.metadata

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"updateTime": "2019-11-27T12:31:12.179114Z",
2+
"updateTime": "2019-12-03T12:28:28.228891Z",
33
"sources": [
44
{
55
"generator": {
@@ -12,8 +12,8 @@
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "d8896a3d8a191702a9e39f29cf4c2e16fa05f76d",
16-
"internalRef": "282674885"
15+
"sha": "38dc36a2a43cbab4a2a9183a43dd0441670098a9",
16+
"internalRef": "283384331"
1717
}
1818
},
1919
{

0 commit comments

Comments
 (0)