Skip to content

Commit f272ea2

Browse files
committed
Merge pull request #321 from stephenplusplus/spp--storage-acl-docs
storage: docs - explain scope values - fixes #319
2 parents d36802f + 43a850c commit f272ea2

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

lib/storage/acl.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,30 @@ var util = require('../common/util.js');
3636
* object or bucket (for example, `READ` or `WRITE`); the scope defines who the
3737
* permission applies to (for example, a specific user or group of users).
3838
*
39+
* Where a `scope` value is accepted, we follow the format the Cloud Storage API
40+
* expects.
41+
*
42+
* Refer to
43+
* https://cloud.google.com/storage/docs/json_api/v1/defaultObjectAccessControls
44+
* for the most up-to-date values.
45+
*
46+
* - `user-userId`
47+
* - `user-email`
48+
* - `group-groupId`
49+
* - `group-email`
50+
* - `domain-domain`
51+
* - `project-team-projectId`
52+
* - `allUsers`
53+
* - `allAuthenticatedUsers`
54+
*
55+
* Examples:
56+
*
57+
* - The user "liz@example.com" would be `user-liz@example.com`.
58+
* - The group "example@googlegroups.com" would be
59+
* `group-example@googlegroups.com`.
60+
* - To refer to all members of the Google Apps for Business domain
61+
* "example.com", the entity would be `domain-example.com`.
62+
*
3963
* For more detailed information, see
4064
* [About Access Control Lists](http://goo.gl/6qBBPO).
4165
*

0 commit comments

Comments
 (0)