From b86de69b497bec7440d6177d50c195e32b6ac274 Mon Sep 17 00:00:00 2001 From: Stephen Sawchuk Date: Wed, 22 Jul 2015 16:54:35 -0400 Subject: [PATCH] docs: storage.createBucket: show setting location --- lib/storage/index.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/storage/index.js b/lib/storage/index.js index 3c9dee7f287..62eba5ab79a 100644 --- a/lib/storage/index.js +++ b/lib/storage/index.js @@ -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. See the + * // Official JSON API docs for complete details on the `location` option. + * // * //- * var metadata = { - * mainPageSuffix: '/unknown/', - * maxAgeSeconds: 90 + * location: 'US-CENTRAL1', + * storageClass: 'DURABLE_REDUCED_AVAILABILITY' * }; * * gcs.createBucket('new-bucket', metadata, callback);