Skip to content

Latest commit

 

History

History

samples

Google Cloud Platform logo

Open in Cloud Shell

Table of Contents

Before you begin

Before running the samples, make sure you've followed the steps outlined in Using the client library.

Samples

Create Feed

Create Feed.

View the source code.

Open in Cloud Shell

Usage:

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


Delete Feed

Delete Feed.

View the source code.

Open in Cloud Shell

Usage:

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


Export Assets

Export asserts to specified dump file path.

View the source code.

Open in Cloud Shell

Usage:

node exportAssets.js <gs:my-bucket/my-assets.txt>


Get Batch Asset History

Batch get history of assets.

View the source code.

Open in Cloud Shell

Usage:

node getBatchAssetHistory "storage.googleapis.com/<BUCKET_NAME>"


Get Feed

Get Feed.

View the source code.

Open in Cloud Shell

Usage:

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


List Feeds

List Feeds.

View the source code.

Open in Cloud Shell

Usage:

node listFeeds


Asset History Quickstart

Batch get history of assets.

View the source code.

Open in Cloud Shell

Usage:

node getBatchAssetHistory "storage.googleapis.com/<BUCKET_NAME>"


Update Feed

Update Feed.

View the source code.

Open in Cloud Shell

Usage:

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