Skip to content

Commit c10073f

Browse files
storage(docs): storage.bucket -> storage().bucket
Update example from docs to show: storage().bucket('name'); instead of: storage.bucket('name');
1 parent 1c2b45a commit c10073f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/storage/index.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ var STORAGE_BASE_URL = 'https://www.googleapis.com/storage/v1/b';
8080
* //-
8181
*
8282
* // Access `storage` through the `gcloud` module directly.
83-
* var musicBucket = gcloud.storage.bucket('music');
83+
* var musicBucket = gcloud.storage().bucket('music');
8484
*
8585
* //-
8686
* // Elsewhere.
@@ -92,8 +92,8 @@ var STORAGE_BASE_URL = 'https://www.googleapis.com/storage/v1/b';
9292
* projectId: 'my-project'
9393
* });
9494
*
95-
* var albums = myProject.storage.bucket('albums');
96-
* var photos = myProject.storage.bucket('photos');
95+
* var albums = myProject.storage().bucket('albums');
96+
* var photos = myProject.storage().bucket('photos');
9797
*
9898
*
9999
* // Override default configuration details.
@@ -137,8 +137,8 @@ function Storage(config) {
137137
* keyFilename: '/path/to/keyfile.json'
138138
* });
139139
*
140-
* var albums = gcloud.storage.bucket('albums');
141-
* var photos = gcloud.storage.bucket('photos');
140+
* var albums = gcloud.storage().bucket('albums');
141+
* var photos = gcloud.storage().bucket('photos');
142142
*/
143143
Storage.prototype.bucket = function(options) {
144144
if (util.is(options, 'string')) {

0 commit comments

Comments
 (0)