File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 17
17
18
18
async function exportAssets ( dumpFilePath ) {
19
19
// [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 ( {
22
22
// optional auth parameters.
23
23
} ) ;
24
24
@@ -49,8 +49,8 @@ async function exportAssets(dumpFilePath) {
49
49
async function batchGetAssetsHistory ( assetNames ) {
50
50
// [START asset_quickstart_batch_get_assets_history]
51
51
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 ( {
54
54
// optional auth parameters.
55
55
} ) ;
56
56
You can’t perform that action at this time.
0 commit comments