Skip to content

Commit

Permalink
feat!: converts library to TypeScript adding v1p1beta1 surface (#250)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: removes projectPath helper, instead use "projects/${project}".
  • Loading branch information
bcoe authored Jan 30, 2020
1 parent 87d8ff5 commit 49155e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion asset/snippets/exportAssets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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://<my_bucket>/<my_asset_file>'
Expand Down
2 changes: 1 addition & 1 deletion asset/snippets/getBatchAssetHistory.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', ...];

Expand Down
2 changes: 1 addition & 1 deletion asset/snippets/quickstart.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', ...];

Expand Down

0 comments on commit 49155e9

Please sign in to comment.