Debian Codegraph @

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