Skip to content

Commit 8054de2

Browse files
author
Benjamin E. Coe
authored
fix(docs): update READMEs with new samples (#185)
1 parent 6944a8e commit 8054de2

File tree

1 file changed

+100
-0
lines changed

1 file changed

+100
-0
lines changed

asset/snippets/README.md

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

1313
* [Before you begin](#before-you-begin)
1414
* [Samples](#samples)
15+
* [Create Feed](#create-feed)
16+
* [Delete Feed](#delete-feed)
1517
* [Export Assets](#export-assets)
1618
* [Get Batch Asset History](#get-batch-asset-history)
19+
* [Get Feed](#get-feed)
20+
* [List Feeds](#list-feeds)
1721
* [Asset History Quickstart](#asset-history-quickstart)
22+
* [Update Feed](#update-feed)
1823

1924
## Before you begin
2025

@@ -25,6 +30,44 @@ Before running the samples, make sure you've followed the steps outlined in
2530

2631

2732

33+
### Create Feed
34+
35+
Create Feed.
36+
37+
View the [source code](https://github.com/googleapis/nodejs-asset/blob/master/samples/createFeed.js).
38+
39+
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-asset&page=editor&open_in_editor=samples/createFeed.js,samples/README.md)
40+
41+
__Usage:__
42+
43+
44+
`node createFeed <FEED_ID> "storage.googleapis.com/<BUCKET_NAME>", projects/<PROJECT_ID>/topics/<TOPIC_ID>`
45+
46+
47+
-----
48+
49+
50+
51+
52+
### Delete Feed
53+
54+
Delete Feed.
55+
56+
View the [source code](https://github.com/googleapis/nodejs-asset/blob/master/samples/deleteFeed.js).
57+
58+
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-asset&page=editor&open_in_editor=samples/deleteFeed.js,samples/README.md)
59+
60+
__Usage:__
61+
62+
63+
`node deleteFeed "project/<PROJECT_NUMBER>/feeds/<FEED_ID>"`
64+
65+
66+
-----
67+
68+
69+
70+
2871
### Export Assets
2972

3073
Export asserts to specified dump file path.
@@ -63,6 +106,44 @@ __Usage:__
63106

64107

65108

109+
### Get Feed
110+
111+
Get Feed.
112+
113+
View the [source code](https://github.com/googleapis/nodejs-asset/blob/master/samples/getFeed.js).
114+
115+
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-asset&page=editor&open_in_editor=samples/getFeed.js,samples/README.md)
116+
117+
__Usage:__
118+
119+
120+
`node getFeed "project/<PROJECT_NUMBER>/feeds/<FEED_ID>"`
121+
122+
123+
-----
124+
125+
126+
127+
128+
### List Feeds
129+
130+
List Feeds.
131+
132+
View the [source code](https://github.com/googleapis/nodejs-asset/blob/master/samples/listFeeds.js).
133+
134+
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-asset&page=editor&open_in_editor=samples/listFeeds.js,samples/README.md)
135+
136+
__Usage:__
137+
138+
139+
`node listFeeds`
140+
141+
142+
-----
143+
144+
145+
146+
66147
### Asset History Quickstart
67148

68149
Batch get history of assets.
@@ -77,6 +158,25 @@ __Usage:__
77158
`node getBatchAssetHistory "storage.googleapis.com/<BUCKET_NAME>"`
78159

79160

161+
-----
162+
163+
164+
165+
166+
### Update Feed
167+
168+
Update Feed.
169+
170+
View the [source code](https://github.com/googleapis/nodejs-asset/blob/master/samples/updateFeed.js).
171+
172+
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-asset&page=editor&open_in_editor=samples/updateFeed.js,samples/README.md)
173+
174+
__Usage:__
175+
176+
177+
`node updateFeed "project/<PROJECT_NUMBER>/feeds/<FEED_ID>" projects/<PROJECT_ID>/topics/<TOPIC_ID>`
178+
179+
80180

81181

82182

0 commit comments

Comments
 (0)