Skip to content

Commit

Permalink
Merge pull request #735 from stephenplusplus/spp--storage-create-buck…
Browse files Browse the repository at this point in the history
…et-in-region-docs

docs: storage.createBucket: show setting location
  • Loading branch information
callmehiphop committed Jul 23, 2015
2 parents 8838144 + b86de69 commit dfb139d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/storage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dfb139d

Please sign in to comment.