MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples / updateFeed

Function updateFeed

asset/snippets/updateFeed.js:29–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 const client = new AssetServiceClient();
28
29 async function updateFeed() {
30 const request = {
31 feed: {
32 name: feedName,
33 feedOutputConfig: {
34 pubsubDestination: {
35 topic: topicName,
36 },
37 },
38 },
39 updateMask: {
40 paths: ['feed_output_config.pubsub_destination.topic'],
41 },
42 };
43
44 // Handle the operation using the promise pattern.
45 const result = await client.updateFeed(request);
46 // Do things with with the response.
47 console.log(util.inspect(result, {depth: null}));
48 // [END asset_quickstart_update_feed]
49 }
50 updateFeed();
51}
52

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected