Skip to content

Commit

Permalink
fix(docs): update READMEs with new samples (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Aug 26, 2019
1 parent 6944a8e commit 8054de2
Showing 1 changed file with 100 additions and 0 deletions.
100 changes: 100 additions & 0 deletions asset/snippets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,14 @@

* [Before you begin](#before-you-begin)
* [Samples](#samples)
* [Create Feed](#create-feed)
* [Delete Feed](#delete-feed)
* [Export Assets](#export-assets)
* [Get Batch Asset History](#get-batch-asset-history)
* [Get Feed](#get-feed)
* [List Feeds](#list-feeds)
* [Asset History Quickstart](#asset-history-quickstart)
* [Update Feed](#update-feed)

## Before you begin

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



### Create Feed

Create Feed.

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

[![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)

__Usage:__


`node createFeed <FEED_ID> "storage.googleapis.com/<BUCKET_NAME>", projects/<PROJECT_ID>/topics/<TOPIC_ID>`


-----




### Delete Feed

Delete Feed.

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

[![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)

__Usage:__


`node deleteFeed "project/<PROJECT_NUMBER>/feeds/<FEED_ID>"`


-----




### Export Assets

Export asserts to specified dump file path.
Expand Down Expand Up @@ -63,6 +106,44 @@ __Usage:__



### Get Feed

Get Feed.

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

[![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)

__Usage:__


`node getFeed "project/<PROJECT_NUMBER>/feeds/<FEED_ID>"`


-----




### List Feeds

List Feeds.

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

[![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)

__Usage:__


`node listFeeds`


-----




### Asset History Quickstart

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


-----




### Update Feed

Update Feed.

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

[![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)

__Usage:__


`node updateFeed "project/<PROJECT_NUMBER>/feeds/<FEED_ID>" projects/<PROJECT_ID>/topics/<TOPIC_ID>`





Expand Down

0 comments on commit 8054de2

Please sign in to comment.