Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: storage.createBucket: show setting location #735

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
docs: storage.createBucket: show setting location
stephenplusplus committed Jul 22, 2015
commit b86de69b497bec7440d6177d50c195e32b6ac274
9 changes: 6 additions & 3 deletions lib/storage/index.js
Original file line number Diff line number Diff line change
@@ -198,11 +198,14 @@ Storage.prototype.bucket = function(name) {
* gcs.createBucket('new-bucket', callback);
*
* //-
* // Specify metadata.
* // Create a bucket in a specific location and region. <em>See the <a
* // href="https://cloud.google.com/storage/docs/json_api/v1/buckets/insert">
* // Official JSON API docs</a> for complete details on the `location` option.
* // </em>
* //-
* var metadata = {
* mainPageSuffix: '/unknown/',
* maxAgeSeconds: 90
* location: 'US-CENTRAL1',
* storageClass: 'DURABLE_REDUCED_AVAILABILITY'
* };
*
* gcs.createBucket('new-bucket', metadata, callback);