Skip to content

Commit

Permalink
docs: Updated README (#1423)
Browse files Browse the repository at this point in the history
autosynth cannot find the source of changes triggered by earlier changes in this
        repository, or by version upgrades to tools such as linters.
  • Loading branch information
yoshi-automation authored Mar 22, 2021
1 parent 9b08741 commit d0c165c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 26 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) |
Expand Down
20 changes: 1 addition & 19 deletions samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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).
Expand Down Expand Up @@ -1514,7 +1496,7 @@ View the [source code](https://github.com/googleapis/nodejs-storage/blob/master/
__Usage:__


`node removeBucketLabel.js <BUCKET_NAME> JSON.stringify(['labelone','labelone'])`
`node removeBucketLabel.js <BUCKET_NAME> labelone)`


-----
Expand Down
2 changes: 1 addition & 1 deletion synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/nodejs-storage.git",
"sha": "421c0a4862bed5464b5a2f75b99dc8fb318323a2"
"sha": "9b087412f41bd55926fb4df270877a27060ee749"
}
},
{
Expand Down

0 comments on commit d0c165c

Please sign in to comment.