Skip to content

Commit dfb139d

Browse files
committed
Merge pull request #735 from stephenplusplus/spp--storage-create-bucket-in-region-docs
docs: storage.createBucket: show setting location
2 parents 8838144 + b86de69 commit dfb139d

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

lib/storage/index.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,14 @@ Storage.prototype.bucket = function(name) {
198198
* gcs.createBucket('new-bucket', callback);
199199
*
200200
* //-
201-
* // Specify metadata.
201+
* // Create a bucket in a specific location and region. <em>See the <a
202+
* // href="https://cloud.google.com/storage/docs/json_api/v1/buckets/insert">
203+
* // Official JSON API docs</a> for complete details on the `location` option.
204+
* // </em>
202205
* //-
203206
* var metadata = {
204-
* mainPageSuffix: '/unknown/',
205-
* maxAgeSeconds: 90
207+
* location: 'US-CENTRAL1',
208+
* storageClass: 'DURABLE_REDUCED_AVAILABILITY'
206209
* };
207210
*
208211
* gcs.createBucket('new-bucket', metadata, callback);

0 commit comments

Comments
 (0)