From 7892e389a800e0612c561a64e544d37e719dc060 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Mon, 18 Mar 2019 03:30:25 -0700 Subject: [PATCH] feat: add the v1 version of the API (#120) --- asset/snippets/quickstart.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/asset/snippets/quickstart.js b/asset/snippets/quickstart.js index 682cc327ef0..8bb9c04d439 100644 --- a/asset/snippets/quickstart.js +++ b/asset/snippets/quickstart.js @@ -17,8 +17,8 @@ async function exportAssets(dumpFilePath) { // [START asset_quickstart_export_assets] - const asset = require('@google-cloud/asset'); - const client = new asset.v1beta1.AssetServiceClient({ + const {AssetServiceClient} = require('@google-cloud/asset'); + const client = new AssetServiceClient({ // optional auth parameters. }); @@ -49,8 +49,8 @@ async function exportAssets(dumpFilePath) { async function batchGetAssetsHistory(assetNames) { // [START asset_quickstart_batch_get_assets_history] const util = require('util'); - const asset = require('@google-cloud/asset'); - const client = new asset.v1beta1.AssetServiceClient({ + const {AssetServiceClient} = require('@google-cloud/asset'); + const client = new AssetServiceClient({ // optional auth parameters. });