From 39537d35efd1f52d575a6c2a1dcd2789eddc3239 Mon Sep 17 00:00:00 2001 From: peter-zheng-g <43967553+peter-zheng-g@users.noreply.github.com> Date: Mon, 21 Jun 2021 08:42:24 -0700 Subject: [PATCH] samples: Update asset lib to v1 for ListAssets sample code (#505) Co-authored-by: Benjamin E. Coe --- asset/snippets/listAssets.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/asset/snippets/listAssets.js b/asset/snippets/listAssets.js index 63c74920bf5..b47636e4e58 100644 --- a/asset/snippets/listAssets.js +++ b/asset/snippets/listAssets.js @@ -23,8 +23,8 @@ async function main(assetTypes) { // [START asset_quickstart_list_assets] const util = require('util'); - const {v1p5beta1} = require('@google-cloud/asset'); - const client = new v1p5beta1.AssetServiceClient(); + const {v1} = require('@google-cloud/asset'); + const client = new v1.AssetServiceClient(); const projectId = await client.getProjectId(); const projectResource = `projects/${projectId}`; @@ -43,7 +43,7 @@ async function main(assetTypes) { // readTime: { seconds: 1593988758 }, }; - // Call cloud.assets.v1p5beta1.ListAssets API. + // Call cloud.assets.v1.ListAssets API. const result = await client.listAssets(request); // Handle the response. console.log(util.inspect(result, {depth: null}));