diff --git a/README.md b/README.md index a2a4e1aba..4a2bad4bf 100644 --- a/README.md +++ b/README.md @@ -67,16 +67,20 @@ npm install @google-cloud/storage // Imports the Google Cloud client library const {Storage} = require('@google-cloud/storage'); -// Creates a client +// For more information on ways to initialize Storage, please see +// https://googleapis.dev/nodejs/storage/latest/Storage.html + +// Creates a client using Application Default Credentials const storage = new Storage(); -// Creates a client from a Google service account key. -// const storage = new Storage({keyFilename: "key.json"}); -// For more information on ways to initialize Storage, please see https://googleapis.dev/nodejs/storage/latest/Storage.html + +// Creates a client from a Google service account key +// const storage = new Storage({keyFilename: 'key.json'}); /** * TODO(developer): Uncomment these variables before running the sample. */ -// const bucketName = 'bucket-name'; +// The ID of your GCS bucket +// const bucketName = 'your-unique-bucket-name'; async function createBucket() { // Creates the new bucket @@ -162,7 +166,6 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-storage/tre | Storage Make Bucket Public. | [source code](https://github.com/googleapis/nodejs-storage/blob/master/samples/makeBucketPublic.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/makeBucketPublic.js,samples/README.md) | | Make Public | [source code](https://github.com/googleapis/nodejs-storage/blob/master/samples/makePublic.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/makePublic.js,samples/README.md) | | Move File | [source code](https://github.com/googleapis/nodejs-storage/blob/master/samples/moveFile.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/moveFile.js,samples/README.md) | -| Notifications | [source code](https://github.com/googleapis/nodejs-storage/blob/master/samples/notifications.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/notifications.js,samples/README.md) | | Print Bucket Acl | [source code](https://github.com/googleapis/nodejs-storage/blob/master/samples/printBucketAcl.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/printBucketAcl.js,samples/README.md) | | Print Bucket Acl For User | [source code](https://github.com/googleapis/nodejs-storage/blob/master/samples/printBucketAclForUser.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/printBucketAclForUser.js,samples/README.md) | | Print File Acl | [source code](https://github.com/googleapis/nodejs-storage/blob/master/samples/printFileAcl.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/printFileAcl.js,samples/README.md) | diff --git a/samples/README.md b/samples/README.md index 6c4090062..30f737ac2 100644 --- a/samples/README.md +++ b/samples/README.md @@ -84,7 +84,6 @@ objects to users via direct download. * [Storage Make Bucket Public.](#storage-make-bucket-public.) * [Make Public](#make-public) * [Move File](#move-file) - * [Notifications](#notifications) * [Print Bucket Acl](#print-bucket-acl) * [Print Bucket Acl For User](#print-bucket-acl-for-user) * [Print File Acl](#print-file-acl) @@ -1297,23 +1296,6 @@ __Usage:__ -### Notifications - -View the [source code](https://github.com/googleapis/nodejs-storage/blob/master/samples/notifications.js). - -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/notifications.js,samples/README.md) - -__Usage:__ - - -`node samples/notifications.js` - - ------ - - - - ### Print Bucket Acl View the [source code](https://github.com/googleapis/nodejs-storage/blob/master/samples/printBucketAcl.js). @@ -1514,7 +1496,7 @@ View the [source code](https://github.com/googleapis/nodejs-storage/blob/master/ __Usage:__ -`node removeBucketLabel.js JSON.stringify(['labelone','labelone'])` +`node removeBucketLabel.js labelone)` ----- diff --git a/synth.metadata b/synth.metadata index 11f993965..ff82ad515 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-storage.git", - "sha": "421c0a4862bed5464b5a2f75b99dc8fb318323a2" + "sha": "9b087412f41bd55926fb4df270877a27060ee749" } }, {