Skip to content

Commit 3d62401

Browse files
authored
feat!: converts library to TypeScript adding v1p1beta1 surface (#250)
BREAKING CHANGE: removes projectPath helper, instead use "projects/${project}".
1 parent 581ee5e commit 3d62401

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

asset/snippets/exportAssets.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async function main(dumpFilePath) {
2626

2727
async function exportAssets() {
2828
const projectId = await client.getProjectId();
29-
const projectResource = client.projectPath(projectId);
29+
const projectResource = `projects/${projectId}`;
3030

3131
// TODO(developer): choose the dump file path
3232
// const dumpFilePath = 'Dump file path, e.g.: gs://<my_bucket>/<my_asset_file>'

asset/snippets/getBatchAssetHistory.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async function main(assetNames) {
2828

2929
async function batchGetAssetsHistory() {
3030
const projectId = await client.getProjectId();
31-
const projectResource = client.projectPath(projectId);
31+
const projectResource = `projects/${projectId}`;
3232
// TODO(developer): Choose asset names, such as //storage.googleapis.com/[YOUR_BUCKET_NAME].
3333
// const assetNames = ['ASSET_NAME1', 'ASSET_NAME2', ...];
3434

asset/snippets/quickstart.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async function main(assetNames) {
2828

2929
async function quickstart() {
3030
const projectId = await client.getProjectId();
31-
const projectResource = client.projectPath(projectId);
31+
const projectResource = `projects/${projectId}`;
3232
// TODO(developer): Choose asset names, such as //storage.googleapis.com/[YOUR_BUCKET_NAME].
3333
// const assetNames = ['ASSET_NAME1', 'ASSET_NAME2', ...];
3434

0 commit comments

Comments
 (0)