Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Side by Side Diff: third_party/gsutil/gslib/addlhelp/projects.py

Issue 10199002: Upgrade gsutil to 3.4 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/gsutil/gslib/addlhelp/prod.py ('k') | third_party/gsutil/gslib/addlhelp/subdirs.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2012 Google Inc.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 from gslib.help_provider import HELP_NAME
16 from gslib.help_provider import HELP_NAME_ALIASES
17 from gslib.help_provider import HELP_ONE_LINE_SUMMARY
18 from gslib.help_provider import HelpProvider
19 from gslib.help_provider import HELP_TEXT
20 from gslib.help_provider import HelpType
21 from gslib.help_provider import HELP_TYPE
22
23 _detailed_help_text = ("""
24 <B>OVERVIEW</B>
25 This section discusses how to work with projects in Google Cloud Storage.
26
27 For more information about using the Google APIs Console to administer
28 project memberships (which are automatically included in ACLs for buckets
29 you create) see https://code.google.com/apis/console#:storage:access.
30
31
32 <B>PROJECT MEMBERS AND PERMISSIONS</B>
33 You can define three groups of users for each project:
34
35 - Project Owners are allowed to list, create, and delete buckets,
36 and can also perform administrative tasks like adding and removing team
37 members and changing billing. The project owners group is the owner
38 of all buckets within a project, regardless of who may be the original
39 bucket creator.
40
41 - Project Editors are allowed to list, create, and delete buckets.
42
43 - All Project Team Members are allowed to list buckets within a project.
44
45
46 <B>HOW PROJECT MEMBERSHIP IS REFLECTED IN BUCKET ACLS</B>
47 When you create a bucket without specifying an ACL the bucket is given a
48 "project-private" ACL, which grants the permissions described in the previous
49 section. Here's an example of such an ACL:
50
51 <AccessControlList>
52 <Owner>
53 <ID>
54 00b4903a9740e42c29800f53bd5a9a62a2f96eb3f64a4313a115df3f3a776bf7
55 </ID>
56 </Owner>
57 <Entries>
58 <Entry>
59 <Scope type="GroupById">
60 <ID>
61 00b4903a9740e42c29800f53bd5a9a62a2f96eb3f64a4313a115df3f3a776bf7
62 </ID>
63 </Scope>
64 <Permission>
65 FULL_CONTROL
66 </Permission>
67 </Entry>
68 <Entry>
69 <Scope type="GroupById">
70 <ID>
71 00b4903a977fd817e9da167bc81306489181a110456bb635f466d71cf90a0d51
72 </ID>
73 </Scope>
74 <Permission>
75 FULL_CONTROL
76 </Permission>
77 </Entry>
78 <Entry>
79 <Scope type="GroupById">
80 <ID>
81 00b4903a974898cc8fc309f2f2835308ba3d3df1b889d3fc7e33e187d52d8e71
82 </ID>
83 </Scope>
84 <Permission>
85 READ
86 </Permission>
87 </Entry>
88 </Entries>
89 </AccessControlList>
90
91 The three "GroupById" scopes are the canonical IDs for the Project Owners,
92 Project Editors, and All Project Team Members groups.
93
94 You can edit the bucket ACL if you want to (see "gsutil help setacl"),
95 but for many cases you'll never need to, and instead can change group
96 membership via the APIs console.
97
98 <B>IDENTIFYING PROJECTS WHEN CREATING AND LISTING BUCKETS</B>
99 When you create a bucket or list your buckets, you need to provide the
100 project ID that want to create or list (using the gsutil mb -p option or
101 the gsutil ls -p option, respectively). The project's name shown in the
102 Google APIs Console is a user-friendly name that you can choose; this is
103 not the project ID required by the gsutil mb and ls commands. To find the
104 project ID, go to the Storage Access pane in the Google APIs Console. Your
105 project ID is listed under Identifying your project.
106 """)
107
108
109 class CommandOptions(HelpProvider):
110 """Additional help about Access Control Lists."""
111
112 help_spec = {
113 # Name of command or auxiliary help info for which this help applies.
114 HELP_NAME : 'projects',
115 # List of help name aliases.
116 HELP_NAME_ALIASES : ['apis console', 'console', 'dev console', 'project',
117 'proj', 'project-id'],
118 # Type of help:
119 HELP_TYPE : HelpType.ADDITIONAL_HELP,
120 # One line summary of this help.
121 HELP_ONE_LINE_SUMMARY : 'Working with projects',
122 # The full help text.
123 HELP_TEXT : _detailed_help_text,
124 }
OLDNEW
« no previous file with comments | « third_party/gsutil/gslib/addlhelp/prod.py ('k') | third_party/gsutil/gslib/addlhelp/subdirs.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698