Skip to content

Commit 7892e38

Browse files
feat: add the v1 version of the API (#120)
1 parent 02d2fa6 commit 7892e38

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

asset/snippets/quickstart.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
async function exportAssets(dumpFilePath) {
1919
// [START asset_quickstart_export_assets]
20-
const asset = require('@google-cloud/asset');
21-
const client = new asset.v1beta1.AssetServiceClient({
20+
const {AssetServiceClient} = require('@google-cloud/asset');
21+
const client = new AssetServiceClient({
2222
// optional auth parameters.
2323
});
2424

@@ -49,8 +49,8 @@ async function exportAssets(dumpFilePath) {
4949
async function batchGetAssetsHistory(assetNames) {
5050
// [START asset_quickstart_batch_get_assets_history]
5151
const util = require('util');
52-
const asset = require('@google-cloud/asset');
53-
const client = new asset.v1beta1.AssetServiceClient({
52+
const {AssetServiceClient} = require('@google-cloud/asset');
53+
const client = new AssetServiceClient({
5454
// optional auth parameters.
5555
});
5656

0 commit comments

Comments
 (0)