File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 */
143143Storage . prototype . bucket = function ( options ) {
144144 if ( util . is ( options , 'string' ) ) {
You can’t perform that action at this time.
0 commit comments