diff --git a/asset/snippets/exportAssets.js b/asset/snippets/exportAssets.js index 850a155225b..64f64a02a09 100644 --- a/asset/snippets/exportAssets.js +++ b/asset/snippets/exportAssets.js @@ -26,7 +26,7 @@ async function main(dumpFilePath) { async function exportAssets() { const projectId = await client.getProjectId(); - const projectResource = client.projectPath(projectId); + const projectResource = `projects/${projectId}`; // TODO(developer): choose the dump file path // const dumpFilePath = 'Dump file path, e.g.: gs:///' diff --git a/asset/snippets/getBatchAssetHistory.js b/asset/snippets/getBatchAssetHistory.js index e1d78a11ab0..38afb6a96f5 100644 --- a/asset/snippets/getBatchAssetHistory.js +++ b/asset/snippets/getBatchAssetHistory.js @@ -28,7 +28,7 @@ async function main(assetNames) { async function batchGetAssetsHistory() { const projectId = await client.getProjectId(); - const projectResource = client.projectPath(projectId); + const projectResource = `projects/${projectId}`; // TODO(developer): Choose asset names, such as //storage.googleapis.com/[YOUR_BUCKET_NAME]. // const assetNames = ['ASSET_NAME1', 'ASSET_NAME2', ...]; diff --git a/asset/snippets/quickstart.js b/asset/snippets/quickstart.js index 20103990aa3..11bc75706db 100644 --- a/asset/snippets/quickstart.js +++ b/asset/snippets/quickstart.js @@ -28,7 +28,7 @@ async function main(assetNames) { async function quickstart() { const projectId = await client.getProjectId(); - const projectResource = client.projectPath(projectId); + const projectResource = `projects/${projectId}`; // TODO(developer): Choose asset names, such as //storage.googleapis.com/[YOUR_BUCKET_NAME]. // const assetNames = ['ASSET_NAME1', 'ASSET_NAME2', ...];