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

Function getAsset

media/livestream/getAsset.js:33–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 const livestreamServiceClient = new LivestreamServiceClient();
32
33 async function getAsset() {
34 // Construct request
35 const request = {
36 name: livestreamServiceClient.assetPath(projectId, location, assetId),
37 };
38 const [asset] = await livestreamServiceClient.getAsset(request);
39 console.log(`Asset: ${asset.name}`);
40 }
41
42 getAsset();
43 // [END livestream_get_asset]

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected