@@ -74,7 +74,8 @@ var STORAGE_BASE_URL = 'https://www.googleapis.com/storage/v1/b';
7474 * //-
7575 *
7676 * // Access `storage` through the `gcloud` module directly.
77- * var musicBucket = gcloud.storage().bucket('music');
77+ * var storage = gcloud.storage();
78+ * var musicBucket = storage.bucket('music');
7879 *
7980 * //-
8081 * // Elsewhere.
@@ -86,8 +87,10 @@ var STORAGE_BASE_URL = 'https://www.googleapis.com/storage/v1/b';
8687 * projectId: 'my-project'
8788 * });
8889 *
89- * var albums = myProject.storage().bucket('albums');
90- * var photos = myProject.storage().bucket('photos');
90+ * // Use default configuration details.
91+ * var storage = myProject.storage();
92+ * var albums = storage.bucket('albums');
93+ * var photos = storage.bucket('photos');
9194 *
9295 *
9396 * // Override default configuration details.
@@ -118,9 +121,9 @@ function Storage(config) {
118121 * This object provides constants to refer to the three permission levels that
119122 * can be granted to a scope:
120123 *
121- * - `Storage .acl.OWNER_ROLE` - ("OWNER")
122- * - `Storage .acl.READER_ROLE` - ("READER")
123- * - `Storage .acl.WRITER_ROLE` - ("WRITER")
124+ * - `storage .acl.OWNER_ROLE` - ("OWNER")
125+ * - `storage .acl.READER_ROLE` - ("READER")
126+ * - `storage .acl.WRITER_ROLE` - ("WRITER")
124127 *
125128 * For more detailed information, see
126129 * [About Access Control Lists](http://goo.gl/6qBBPO).
@@ -136,15 +139,15 @@ function Storage(config) {
136139 * //-
137140 * albums.acl.add({
138141 * scope: 'allUsers',
139- * permission: Storage .acl.READER_ROLE
142+ * permission: storage .acl.READER_ROLE
140143 * }, function(err, aclObject) {});
141144 *
142145 * //-
143146 * // Make any new objects added to a bucket publicly readable.
144147 * //-
145148 * albums.acl.default.add({
146149 * scope: 'allUsers',
147- * permission: Storage .acl.READER_ROLE
150+ * permission: storage .acl.READER_ROLE
148151 * }, function(err, aclObject) {});
149152 *
150153 * //-
@@ -153,7 +156,7 @@ function Storage(config) {
153156 *
154157 * albums.acl.add({
155158 * scope: 'user-useremail@example .com',
156- * permission: Storage .acl.OWNER_ROLE
159+ * permission: storage .acl.OWNER_ROLE
157160 * }, function(err, aclObject) {});
158161 */
159162Storage . acl = {
@@ -175,8 +178,10 @@ Storage.prototype.acl = Storage.acl;
175178 * keyFilename: '/path/to/keyfile.json'
176179 * });
177180 *
178- * var albums = gcloud.storage().bucket('albums');
179- * var photos = gcloud.storage().bucket('photos');
181+ * var storage = gcloud.storage();
182+ *
183+ * var albums = storage.bucket('albums');
184+ * var photos = storage.bucket('photos');
180185 */
181186Storage . prototype . bucket = function ( name ) {
182187 return new Bucket ( this , name ) ;
0 commit comments