Skip to content

Commit

Permalink
docs: storage.createBucket: show setting location
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus committed Jul 22, 2015
1 parent 8838144 commit b86de69
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 b86de69

Please sign in to comment.