Debian Codegraph @

docs/dyn/storage_v1.bucketAccessControls.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="storage_v1.html">Cloud Storage JSON API</a> . <a href="storage_v1.bucketAccessControls.html">bucketAccessControls</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#delete">delete(bucket, entity, userProject=None)</a></code></p>
82 <p class="firstline">Permanently deletes the ACL entry for the specified entity on the specified bucket.</p>
83 <p class="toc_element">
84 <code><a href="#get">get(bucket, entity, userProject=None)</a></code></p>
85 <p class="firstline">Returns the ACL entry for the specified entity on the specified bucket.</p>
86 <p class="toc_element">
87 <code><a href="#insert">insert(bucket, body=None, userProject=None)</a></code></p>
88 <p class="firstline">Creates a new ACL entry on the specified bucket.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(bucket, userProject=None)</a></code></p>
91 <p class="firstline">Retrieves ACL entries on the specified bucket.</p>
92 <p class="toc_element">
93 <code><a href="#patch">patch(bucket, entity, body=None, userProject=None)</a></code></p>
94 <p class="firstline">Patches an ACL entry on the specified bucket.</p>
95 <p class="toc_element">
96 <code><a href="#update">update(bucket, entity, body=None, userProject=None)</a></code></p>
97 <p class="firstline">Updates an ACL entry on the specified bucket.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="delete">delete(bucket, entity, userProject=None)</code>
106 <pre>Permanently deletes the ACL entry for the specified entity on the specified bucket.
107
108 Args:
109 bucket: string, Name of a bucket. (required)
110 entity: string, The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. (required)
111 userProject: string, The project to be billed for this request. Required for Requester Pays buckets.
112 </pre>
113 </div>
114
115 <div class="method">
116 <code class="details" id="get">get(bucket, entity, userProject=None)</code>
117 <pre>Returns the ACL entry for the specified entity on the specified bucket.
118
119 Args:
120 bucket: string, Name of a bucket. (required)
121 entity: string, The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. (required)
122 userProject: string, The project to be billed for this request. Required for Requester Pays buckets.
123
124 Returns:
125 An object of the form:
126
127 { # An access-control entry.
128 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
129 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
130 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
131 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
132 # - user-userId
133 # - user-email
134 # - group-groupId
135 # - group-email
136 # - domain-domain
137 # - project-team-projectId
138 # - allUsers
139 # - allAuthenticatedUsers Examples:
140 # - The user [email protected] would be [email protected].
141 # - The group [email protected] would be [email protected].
142 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
143 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
144 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
145 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
146 &quot;kind&quot;: &quot;storage#bucketAccessControl&quot;, # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
147 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
148 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
149 &quot;team&quot;: &quot;A String&quot;, # The team.
150 },
151 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
152 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
153 }</pre>
154 </div>
155
156 <div class="method">
157 <code class="details" id="insert">insert(bucket, body=None, userProject=None)</code>
158 <pre>Creates a new ACL entry on the specified bucket.
159
160 Args:
161 bucket: string, Name of a bucket. (required)
162 body: object, The request body.
163 The object takes the form of:
164
165 { # An access-control entry.
166 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
167 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
168 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
169 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
170 # - user-userId
171 # - user-email
172 # - group-groupId
173 # - group-email
174 # - domain-domain
175 # - project-team-projectId
176 # - allUsers
177 # - allAuthenticatedUsers Examples:
178 # - The user [email protected] would be [email protected].
179 # - The group [email protected] would be [email protected].
180 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
181 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
182 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
183 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
184 &quot;kind&quot;: &quot;storage#bucketAccessControl&quot;, # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
185 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
186 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
187 &quot;team&quot;: &quot;A String&quot;, # The team.
188 },
189 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
190 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
191 }
192
193 userProject: string, The project to be billed for this request. Required for Requester Pays buckets.
194
195 Returns:
196 An object of the form:
197
198 { # An access-control entry.
199 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
200 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
201 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
202 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
203 # - user-userId
204 # - user-email
205 # - group-groupId
206 # - group-email
207 # - domain-domain
208 # - project-team-projectId
209 # - allUsers
210 # - allAuthenticatedUsers Examples:
211 # - The user [email protected] would be [email protected].
212 # - The group [email protected] would be [email protected].
213 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
214 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
215 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
216 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
217 &quot;kind&quot;: &quot;storage#bucketAccessControl&quot;, # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
218 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
219 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
220 &quot;team&quot;: &quot;A String&quot;, # The team.
221 },
222 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
223 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
224 }</pre>
225 </div>
226
227 <div class="method">
228 <code class="details" id="list">list(bucket, userProject=None)</code>
229 <pre>Retrieves ACL entries on the specified bucket.
230
231 Args:
232 bucket: string, Name of a bucket. (required)
233 userProject: string, The project to be billed for this request. Required for Requester Pays buckets.
234
235 Returns:
236 An object of the form:
237
238 { # An access-control list.
239 &quot;items&quot;: [ # The list of items.
240 { # An access-control entry.
241 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
242 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
243 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
244 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
245 # - user-userId
246 # - user-email
247 # - group-groupId
248 # - group-email
249 # - domain-domain
250 # - project-team-projectId
251 # - allUsers
252 # - allAuthenticatedUsers Examples:
253 # - The user [email protected] would be [email protected].
254 # - The group [email protected] would be [email protected].
255 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
256 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
257 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
258 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
259 &quot;kind&quot;: &quot;storage#bucketAccessControl&quot;, # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
260 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
261 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
262 &quot;team&quot;: &quot;A String&quot;, # The team.
263 },
264 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
265 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
266 },
267 ],
268 &quot;kind&quot;: &quot;storage#bucketAccessControls&quot;, # The kind of item this is. For lists of bucket access control entries, this is always storage#bucketAccessControls.
269 }</pre>
270 </div>
271
272 <div class="method">
273 <code class="details" id="patch">patch(bucket, entity, body=None, userProject=None)</code>
274 <pre>Patches an ACL entry on the specified bucket.
275
276 Args:
277 bucket: string, Name of a bucket. (required)
278 entity: string, The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. (required)
279 body: object, The request body.
280 The object takes the form of:
281
282 { # An access-control entry.
283 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
284 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
285 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
286 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
287 # - user-userId
288 # - user-email
289 # - group-groupId
290 # - group-email
291 # - domain-domain
292 # - project-team-projectId
293 # - allUsers
294 # - allAuthenticatedUsers Examples:
295 # - The user [email protected] would be [email protected].
296 # - The group [email protected] would be [email protected].
297 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
298 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
299 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
300 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
301 &quot;kind&quot;: &quot;storage#bucketAccessControl&quot;, # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
302 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
303 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
304 &quot;team&quot;: &quot;A String&quot;, # The team.
305 },
306 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
307 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
308 }
309
310 userProject: string, The project to be billed for this request. Required for Requester Pays buckets.
311
312 Returns:
313 An object of the form:
314
315 { # An access-control entry.
316 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
317 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
318 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
319 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
320 # - user-userId
321 # - user-email
322 # - group-groupId
323 # - group-email
324 # - domain-domain
325 # - project-team-projectId
326 # - allUsers
327 # - allAuthenticatedUsers Examples:
328 # - The user [email protected] would be [email protected].
329 # - The group [email protected] would be [email protected].
330 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
331 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
332 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
333 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
334 &quot;kind&quot;: &quot;storage#bucketAccessControl&quot;, # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
335 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
336 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
337 &quot;team&quot;: &quot;A String&quot;, # The team.
338 },
339 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
340 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
341 }</pre>
342 </div>
343
344 <div class="method">
345 <code class="details" id="update">update(bucket, entity, body=None, userProject=None)</code>
346 <pre>Updates an ACL entry on the specified bucket.
347
348 Args:
349 bucket: string, Name of a bucket. (required)
350 entity: string, The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. (required)
351 body: object, The request body.
352 The object takes the form of:
353
354 { # An access-control entry.
355 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
356 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
357 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
358 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
359 # - user-userId
360 # - user-email
361 # - group-groupId
362 # - group-email
363 # - domain-domain
364 # - project-team-projectId
365 # - allUsers
366 # - allAuthenticatedUsers Examples:
367 # - The user [email protected] would be [email protected].
368 # - The group [email protected] would be [email protected].
369 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
370 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
371 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
372 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
373 &quot;kind&quot;: &quot;storage#bucketAccessControl&quot;, # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
374 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
375 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
376 &quot;team&quot;: &quot;A String&quot;, # The team.
377 },
378 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
379 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
380 }
381
382 userProject: string, The project to be billed for this request. Required for Requester Pays buckets.
383
384 Returns:
385 An object of the form:
386
387 { # An access-control entry.
388 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
389 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
390 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
391 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
392 # - user-userId
393 # - user-email
394 # - group-groupId
395 # - group-email
396 # - domain-domain
397 # - project-team-projectId
398 # - allUsers
399 # - allAuthenticatedUsers Examples:
400 # - The user [email protected] would be [email protected].
401 # - The group [email protected] would be [email protected].
402 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
403 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
404 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
405 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
406 &quot;kind&quot;: &quot;storage#bucketAccessControl&quot;, # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
407 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
408 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
409 &quot;team&quot;: &quot;A String&quot;, # The team.
410 },
411 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
412 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
413 }</pre>
414 </div>
415
416 </body></html>