Skip to content

Commit

Permalink
feat: add the v1 version of the API (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored Mar 18, 2019
1 parent 8849c6a commit 14ef09f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions asset/snippets/quickstart.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
});

Expand Down Expand Up @@ -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.
});

Expand Down

0 comments on commit 14ef09f

Please sign in to comment.