@@ -99,14 +99,14 @@ function Acl(options) {
99
99
* @return {object }
100
100
*
101
101
* @example
102
- * var storage = gcloud.storage({
102
+ * var gcs = gcloud.storage({
103
103
* projectId: 'grape-spaceship-123'
104
104
* });
105
105
*
106
106
* //-
107
107
* // Add a user as an owner of a file.
108
108
* //-
109
- * var myBucket = storage .bucket('my-bucket');
109
+ * var myBucket = gcs .bucket('my-bucket');
110
110
* var myFile = myBucket.file('my-file');
111
111
* myFile.acl.owners.addUser('[email protected] ', function(err, aclObject) {});
112
112
*
@@ -115,7 +115,7 @@ function Acl(options) {
115
115
* //-
116
116
* myFile.acl.add({
117
117
* entity: 'user-email@example .com',
118
- * role: storage .acl.OWNER_ROLE
118
+ * role: gcs .acl.OWNER_ROLE
119
119
* }, function(err, aclObject) {});
120
120
*/
121
121
Acl . prototype . owners = { } ;
@@ -154,7 +154,7 @@ Acl.prototype.owners = {};
154
154
* //-
155
155
* myFile.acl.add({
156
156
* entity: 'user-email@example .com',
157
- * role: storage .acl.READER_ROLE
157
+ * role: gcs .acl.READER_ROLE
158
158
* }, function(err, aclObject) {});
159
159
*/
160
160
Acl . prototype . readers = { } ;
@@ -193,7 +193,7 @@ Acl.prototype.readers = {};
193
193
* //-
194
194
* myFile.acl.add({
195
195
* entity: 'user-email@example .com',
196
- * role: storage .acl.WRITER_ROLE
196
+ * role: gcs .acl.WRITER_ROLE
197
197
* }, function(err, aclObject) {});
198
198
*/
199
199
Acl . prototype . writers = { } ;
@@ -216,7 +216,7 @@ nodeutil.inherits(Acl, AclRoleAccessorMethods);
216
216
* @example
217
217
* myBucket.acl.add({
218
218
* entity: 'user-useremail@example .com',
219
- * role: storage .acl.OWNER_ROLE
219
+ * role: gcs .acl.OWNER_ROLE
220
220
* }, function(err, aclObject, apiResponse) {});
221
221
*
222
222
* //-
@@ -226,7 +226,7 @@ nodeutil.inherits(Acl, AclRoleAccessorMethods);
226
226
* //-
227
227
* myFile.acl.add({
228
228
* entity: 'user-useremail@example .com',
229
- * role: storage .acl.OWNER_ROLE,
229
+ * role: gcs .acl.OWNER_ROLE,
230
230
* generation: 1
231
231
* }, function(err, aclObject, apiResponse) {});
232
232
*/
@@ -383,21 +383,21 @@ Acl.prototype.get = function(options, callback) {
383
383
* @alias acl.update
384
384
*
385
385
* @example
386
- * var storage = gcloud.storage({
386
+ * var gcs = gcloud.storage({
387
387
* projectId: 'grape-spaceship-123'
388
388
* });
389
389
*
390
390
* myBucket.acl.update({
391
391
* entity: 'user-useremail@example .com',
392
- * role: storage .acl.WRITER_ROLE
392
+ * role: gcs .acl.WRITER_ROLE
393
393
* }, function(err, apiResponse) {});
394
394
*
395
395
* //-
396
396
* // For file ACL operations, you can also specify a `generation` property.
397
397
* //-
398
398
* myFile.acl.update({
399
399
* entity: 'user-useremail@example .com',
400
- * role: storage .acl.WRITER_ROLE,
400
+ * role: gcs .acl.WRITER_ROLE,
401
401
* generation: 1
402
402
* }, function(err, apiResponse) {});
403
403
*/
0 commit comments