Debian Codegraph @

docs/dyn/storage_v1.objectAccessControls.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.objectAccessControls.html">objectAccessControls</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, object, entity, generation=None, userProject=None)</a></code></p>
82 <p class="firstline">Permanently deletes the ACL entry for the specified entity on the specified object.</p>
83 <p class="toc_element">
84 <code><a href="#get">get(bucket, object, entity, generation=None, userProject=None)</a></code></p>
85 <p class="firstline">Returns the ACL entry for the specified entity on the specified object.</p>
86 <p class="toc_element">
87 <code><a href="#insert">insert(bucket, object, body=None, generation=None, userProject=None)</a></code></p>
88 <p class="firstline">Creates a new ACL entry on the specified object.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(bucket, object, generation=None, userProject=None)</a></code></p>
91 <p class="firstline">Retrieves ACL entries on the specified object.</p>
92 <p class="toc_element">
93 <code><a href="#patch">patch(bucket, object, entity, body=None, generation=None, userProject=None)</a></code></p>
94 <p class="firstline">Patches an ACL entry on the specified object.</p>
95 <p class="toc_element">
96 <code><a href="#update">update(bucket, object, entity, body=None, generation=None, userProject=None)</a></code></p>
97 <p class="firstline">Updates an ACL entry on the specified object.</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, object, entity, generation=None, userProject=None)</code>
106 <pre>Permanently deletes the ACL entry for the specified entity on the specified object.
107
108 Args:
109 bucket: string, Name of a bucket. (required)
110 object: string, Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding). (required)
111 entity: string, The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. (required)
112 generation: string, If present, selects a specific revision of this object (as opposed to the latest version, the default).
113 userProject: string, The project to be billed for this request. Required for Requester Pays buckets.
114 </pre>
115 </div>
116
117 <div class="method">
118 <code class="details" id="get">get(bucket, object, entity, generation=None, userProject=None)</code>
119 <pre>Returns the ACL entry for the specified entity on the specified object.
120
121 Args:
122 bucket: string, Name of a bucket. (required)
123 object: string, Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding). (required)
124 entity: string, The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. (required)
125 generation: string, If present, selects a specific revision of this object (as opposed to the latest version, the default).
126 userProject: string, The project to be billed for this request. Required for Requester Pays buckets.
127
128 Returns:
129 An object of the form:
130
131 { # An access-control entry.
132 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
133 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
134 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
135 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
136 # - user-userId
137 # - user-email
138 # - group-groupId
139 # - group-email
140 # - domain-domain
141 # - project-team-projectId
142 # - allUsers
143 # - allAuthenticatedUsers Examples:
144 # - The user [email protected] would be [email protected].
145 # - The group [email protected] would be [email protected].
146 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
147 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
148 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
149 &quot;generation&quot;: &quot;A String&quot;, # The content generation of the object, if applied to an object.
150 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
151 &quot;kind&quot;: &quot;storage#objectAccessControl&quot;, # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
152 &quot;object&quot;: &quot;A String&quot;, # The name of the object, if applied to an object.
153 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
154 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
155 &quot;team&quot;: &quot;A String&quot;, # The team.
156 },
157 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
158 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
159 }</pre>
160 </div>
161
162 <div class="method">
163 <code class="details" id="insert">insert(bucket, object, body=None, generation=None, userProject=None)</code>
164 <pre>Creates a new ACL entry on the specified object.
165
166 Args:
167 bucket: string, Name of a bucket. (required)
168 object: string, Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding). (required)
169 body: object, The request body.
170 The object takes the form of:
171
172 { # An access-control entry.
173 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
174 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
175 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
176 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
177 # - user-userId
178 # - user-email
179 # - group-groupId
180 # - group-email
181 # - domain-domain
182 # - project-team-projectId
183 # - allUsers
184 # - allAuthenticatedUsers Examples:
185 # - The user [email protected] would be [email protected].
186 # - The group [email protected] would be [email protected].
187 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
188 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
189 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
190 &quot;generation&quot;: &quot;A String&quot;, # The content generation of the object, if applied to an object.
191 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
192 &quot;kind&quot;: &quot;storage#objectAccessControl&quot;, # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
193 &quot;object&quot;: &quot;A String&quot;, # The name of the object, if applied to an object.
194 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
195 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
196 &quot;team&quot;: &quot;A String&quot;, # The team.
197 },
198 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
199 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
200 }
201
202 generation: string, If present, selects a specific revision of this object (as opposed to the latest version, the default).
203 userProject: string, The project to be billed for this request. Required for Requester Pays buckets.
204
205 Returns:
206 An object of the form:
207
208 { # An access-control entry.
209 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
210 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
211 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
212 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
213 # - user-userId
214 # - user-email
215 # - group-groupId
216 # - group-email
217 # - domain-domain
218 # - project-team-projectId
219 # - allUsers
220 # - allAuthenticatedUsers Examples:
221 # - The user [email protected] would be [email protected].
222 # - The group [email protected] would be [email protected].
223 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
224 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
225 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
226 &quot;generation&quot;: &quot;A String&quot;, # The content generation of the object, if applied to an object.
227 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
228 &quot;kind&quot;: &quot;storage#objectAccessControl&quot;, # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
229 &quot;object&quot;: &quot;A String&quot;, # The name of the object, if applied to an object.
230 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
231 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
232 &quot;team&quot;: &quot;A String&quot;, # The team.
233 },
234 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
235 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
236 }</pre>
237 </div>
238
239 <div class="method">
240 <code class="details" id="list">list(bucket, object, generation=None, userProject=None)</code>
241 <pre>Retrieves ACL entries on the specified object.
242
243 Args:
244 bucket: string, Name of a bucket. (required)
245 object: string, Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding). (required)
246 generation: string, If present, selects a specific revision of this object (as opposed to the latest version, the default).
247 userProject: string, The project to be billed for this request. Required for Requester Pays buckets.
248
249 Returns:
250 An object of the form:
251
252 { # An access-control list.
253 &quot;items&quot;: [ # The list of items.
254 { # An access-control entry.
255 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
256 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
257 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
258 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
259 # - user-userId
260 # - user-email
261 # - group-groupId
262 # - group-email
263 # - domain-domain
264 # - project-team-projectId
265 # - allUsers
266 # - allAuthenticatedUsers Examples:
267 # - The user [email protected] would be [email protected].
268 # - The group [email protected] would be [email protected].
269 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
270 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
271 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
272 &quot;generation&quot;: &quot;A String&quot;, # The content generation of the object, if applied to an object.
273 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
274 &quot;kind&quot;: &quot;storage#objectAccessControl&quot;, # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
275 &quot;object&quot;: &quot;A String&quot;, # The name of the object, if applied to an object.
276 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
277 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
278 &quot;team&quot;: &quot;A String&quot;, # The team.
279 },
280 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
281 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
282 },
283 ],
284 &quot;kind&quot;: &quot;storage#objectAccessControls&quot;, # The kind of item this is. For lists of object access control entries, this is always storage#objectAccessControls.
285 }</pre>
286 </div>
287
288 <div class="method">
289 <code class="details" id="patch">patch(bucket, object, entity, body=None, generation=None, userProject=None)</code>
290 <pre>Patches an ACL entry on the specified object.
291
292 Args:
293 bucket: string, Name of a bucket. (required)
294 object: string, Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding). (required)
295 entity: string, The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. (required)
296 body: object, The request body.
297 The object takes the form of:
298
299 { # An access-control entry.
300 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
301 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
302 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
303 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
304 # - user-userId
305 # - user-email
306 # - group-groupId
307 # - group-email
308 # - domain-domain
309 # - project-team-projectId
310 # - allUsers
311 # - allAuthenticatedUsers Examples:
312 # - The user [email protected] would be [email protected].
313 # - The group [email protected] would be [email protected].
314 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
315 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
316 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
317 &quot;generation&quot;: &quot;A String&quot;, # The content generation of the object, if applied to an object.
318 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
319 &quot;kind&quot;: &quot;storage#objectAccessControl&quot;, # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
320 &quot;object&quot;: &quot;A String&quot;, # The name of the object, if applied to an object.
321 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
322 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
323 &quot;team&quot;: &quot;A String&quot;, # The team.
324 },
325 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
326 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
327 }
328
329 generation: string, If present, selects a specific revision of this object (as opposed to the latest version, the default).
330 userProject: string, The project to be billed for this request. Required for Requester Pays buckets.
331
332 Returns:
333 An object of the form:
334
335 { # An access-control entry.
336 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
337 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
338 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
339 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
340 # - user-userId
341 # - user-email
342 # - group-groupId
343 # - group-email
344 # - domain-domain
345 # - project-team-projectId
346 # - allUsers
347 # - allAuthenticatedUsers Examples:
348 # - The user [email protected] would be [email protected].
349 # - The group [email protected] would be [email protected].
350 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
351 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
352 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
353 &quot;generation&quot;: &quot;A String&quot;, # The content generation of the object, if applied to an object.
354 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
355 &quot;kind&quot;: &quot;storage#objectAccessControl&quot;, # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
356 &quot;object&quot;: &quot;A String&quot;, # The name of the object, if applied to an object.
357 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
358 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
359 &quot;team&quot;: &quot;A String&quot;, # The team.
360 },
361 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
362 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
363 }</pre>
364 </div>
365
366 <div class="method">
367 <code class="details" id="update">update(bucket, object, entity, body=None, generation=None, userProject=None)</code>
368 <pre>Updates an ACL entry on the specified object.
369
370 Args:
371 bucket: string, Name of a bucket. (required)
372 object: string, Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding). (required)
373 entity: string, The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. (required)
374 body: object, The request body.
375 The object takes the form of:
376
377 { # An access-control entry.
378 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
379 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
380 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
381 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
382 # - user-userId
383 # - user-email
384 # - group-groupId
385 # - group-email
386 # - domain-domain
387 # - project-team-projectId
388 # - allUsers
389 # - allAuthenticatedUsers Examples:
390 # - The user [email protected] would be [email protected].
391 # - The group [email protected] would be [email protected].
392 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
393 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
394 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
395 &quot;generation&quot;: &quot;A String&quot;, # The content generation of the object, if applied to an object.
396 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
397 &quot;kind&quot;: &quot;storage#objectAccessControl&quot;, # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
398 &quot;object&quot;: &quot;A String&quot;, # The name of the object, if applied to an object.
399 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
400 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
401 &quot;team&quot;: &quot;A String&quot;, # The team.
402 },
403 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
404 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
405 }
406
407 generation: string, If present, selects a specific revision of this object (as opposed to the latest version, the default).
408 userProject: string, The project to be billed for this request. Required for Requester Pays buckets.
409
410 Returns:
411 An object of the form:
412
413 { # An access-control entry.
414 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket.
415 &quot;domain&quot;: &quot;A String&quot;, # The domain associated with the entity, if any.
416 &quot;email&quot;: &quot;A String&quot;, # The email address associated with the entity, if any.
417 &quot;entity&quot;: &quot;A String&quot;, # The entity holding the permission, in one of the following forms:
418 # - user-userId
419 # - user-email
420 # - group-groupId
421 # - group-email
422 # - domain-domain
423 # - project-team-projectId
424 # - allUsers
425 # - allAuthenticatedUsers Examples:
426 # - The user [email protected] would be [email protected].
427 # - The group [email protected] would be [email protected].
428 # - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
429 &quot;entityId&quot;: &quot;A String&quot;, # The ID for the entity, if any.
430 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the access-control entry.
431 &quot;generation&quot;: &quot;A String&quot;, # The content generation of the object, if applied to an object.
432 &quot;id&quot;: &quot;A String&quot;, # The ID of the access-control entry.
433 &quot;kind&quot;: &quot;storage#objectAccessControl&quot;, # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
434 &quot;object&quot;: &quot;A String&quot;, # The name of the object, if applied to an object.
435 &quot;projectTeam&quot;: { # The project team associated with the entity, if any.
436 &quot;projectNumber&quot;: &quot;A String&quot;, # The project number.
437 &quot;team&quot;: &quot;A String&quot;, # The team.
438 },
439 &quot;role&quot;: &quot;A String&quot;, # The access permission for the entity.
440 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this access-control entry.
441 }</pre>
442 </div>
443
444 </body></html>