Debian Codegraph @

docs/dyn/storage_v1.managedFolders.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.managedFolders.html">managedFolders</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, managedFolder, allowNonEmpty=None, ifMetagenerationMatch=None, ifMetagenerationNotMatch=None)</a></code></p>
82 <p class="firstline">Permanently deletes a managed folder.</p>
83 <p class="toc_element">
84 <code><a href="#get">get(bucket, managedFolder, ifMetagenerationMatch=None, ifMetagenerationNotMatch=None)</a></code></p>
85 <p class="firstline">Returns metadata of the specified managed folder.</p>
86 <p class="toc_element">
87 <code><a href="#getIamPolicy">getIamPolicy(bucket, managedFolder, optionsRequestedPolicyVersion=None, userProject=None)</a></code></p>
88 <p class="firstline">Returns an IAM policy for the specified managed folder.</p>
89 <p class="toc_element">
90 <code><a href="#insert">insert(bucket, body=None)</a></code></p>
91 <p class="firstline">Creates a new managed folder.</p>
92 <p class="toc_element">
93 <code><a href="#list">list(bucket, pageSize=None, pageToken=None, prefix=None)</a></code></p>
94 <p class="firstline">Lists managed folders in the given bucket.</p>
95 <p class="toc_element">
96 <code><a href="#list_next">list_next()</a></code></p>
97 <p class="firstline">Retrieves the next page of results.</p>
98 <p class="toc_element">
99 <code><a href="#setIamPolicy">setIamPolicy(bucket, managedFolder, body=None, userProject=None)</a></code></p>
100 <p class="firstline">Updates an IAM policy for the specified managed folder.</p>
101 <p class="toc_element">
102 <code><a href="#testIamPermissions">testIamPermissions(bucket, managedFolder, permissions, userProject=None)</a></code></p>
103 <p class="firstline">Tests a set of permissions on the given managed folder to see which, if any, are held by the caller.</p>
104 <h3>Method Details</h3>
105 <div class="method">
106 <code class="details" id="close">close()</code>
107 <pre>Close httplib2 connections.</pre>
108 </div>
109
110 <div class="method">
111 <code class="details" id="delete">delete(bucket, managedFolder, allowNonEmpty=None, ifMetagenerationMatch=None, ifMetagenerationNotMatch=None)</code>
112 <pre>Permanently deletes a managed folder.
113
114 Args:
115 bucket: string, Name of the bucket containing the managed folder. (required)
116 managedFolder: string, The managed folder name/path. (required)
117 allowNonEmpty: boolean, Allows the deletion of a managed folder even if it is not empty. A managed folder is empty if there are no objects or managed folders that it applies to. Callers must have storage.managedFolders.setIamPolicy permission.
118 ifMetagenerationMatch: string, If set, only deletes the managed folder if its metageneration matches this value.
119 ifMetagenerationNotMatch: string, If set, only deletes the managed folder if its metageneration does not match this value.
120 </pre>
121 </div>
122
123 <div class="method">
124 <code class="details" id="get">get(bucket, managedFolder, ifMetagenerationMatch=None, ifMetagenerationNotMatch=None)</code>
125 <pre>Returns metadata of the specified managed folder.
126
127 Args:
128 bucket: string, Name of the bucket containing the managed folder. (required)
129 managedFolder: string, The managed folder name/path. (required)
130 ifMetagenerationMatch: string, Makes the return of the managed folder metadata conditional on whether the managed folder&#x27;s current metageneration matches the given value.
131 ifMetagenerationNotMatch: string, Makes the return of the managed folder metadata conditional on whether the managed folder&#x27;s current metageneration does not match the given value.
132
133 Returns:
134 An object of the form:
135
136 { # A managed folder.
137 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket containing this managed folder.
138 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the managed folder in RFC 3339 format.
139 &quot;id&quot;: &quot;A String&quot;, # The ID of the managed folder, including the bucket name and managed folder name.
140 &quot;kind&quot;: &quot;storage#managedFolder&quot;, # The kind of item this is. For managed folders, this is always storage#managedFolder.
141 &quot;metageneration&quot;: &quot;A String&quot;, # The version of the metadata for this managed folder. Used for preconditions and for detecting changes in metadata.
142 &quot;name&quot;: &quot;A String&quot;, # The name of the managed folder. Required if not specified by URL parameter.
143 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this managed folder.
144 &quot;updateTime&quot;: &quot;A String&quot;, # The last update time of the managed folder metadata in RFC 3339 format.
145 }</pre>
146 </div>
147
148 <div class="method">
149 <code class="details" id="getIamPolicy">getIamPolicy(bucket, managedFolder, optionsRequestedPolicyVersion=None, userProject=None)</code>
150 <pre>Returns an IAM policy for the specified managed folder.
151
152 Args:
153 bucket: string, Name of the bucket containing the managed folder. (required)
154 managedFolder: string, The managed folder name/path. (required)
155 optionsRequestedPolicyVersion: integer, The IAM policy format version to be returned. If the optionsRequestedPolicyVersion is for an older version that doesn&#x27;t support part of the requested IAM policy, the request fails.
156 userProject: string, The project to be billed for this request. Required for Requester Pays buckets.
157
158 Returns:
159 An object of the form:
160
161 { # A bucket/object/managedFolder IAM policy.
162 &quot;bindings&quot;: [ # An association between a role, which comes with a set of permissions, and members who may assume that role.
163 {
164 &quot;condition&quot;: { # Represents an expression text. Example: title: &quot;User account presence&quot; description: &quot;Determines whether the request has a user account&quot; expression: &quot;size(request.user) &gt; 0&quot; # The condition that is associated with this binding. NOTE: an unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
165 &quot;description&quot;: &quot;A String&quot;, # An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
166 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax. The application context of the containing message determines which well-known feature set of CEL is supported.
167 &quot;location&quot;: &quot;A String&quot;, # An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
168 &quot;title&quot;: &quot;A String&quot;, # An optional title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
169 },
170 &quot;members&quot;: [ # A collection of identifiers for members who may assume the provided role. Recognized identifiers are as follows:
171 # - allUsers - A special identifier that represents anyone on the internet; with or without a Google account.
172 # - allAuthenticatedUsers - A special identifier that represents anyone who is authenticated with a Google account or a service account.
173 # - user:emailid - An email address that represents a specific account. For example, user:[email protected] or user:[email protected].
174 # - serviceAccount:emailid - An email address that represents a service account. For example, serviceAccount:[email protected] .
175 # - group:emailid - An email address that represents a Google group. For example, group:[email protected].
176 # - domain:domain - A Google Apps domain name that represents all the users of that domain. For example, domain:google.com or domain:example.com.
177 # - projectOwner:projectid - Owners of the given project. For example, projectOwner:my-example-project
178 # - projectEditor:projectid - Editors of the given project. For example, projectEditor:my-example-project
179 # - projectViewer:projectid - Viewers of the given project. For example, projectViewer:my-example-project
180 &quot;A String&quot;,
181 ],
182 &quot;role&quot;: &quot;A String&quot;, # The role to which members belong. Two types of roles are supported: new IAM roles, which grant permissions that do not map directly to those provided by ACLs, and legacy IAM roles, which do map directly to ACL permissions. All roles are of the format roles/storage.specificRole.
183 # The new IAM roles are:
184 # - roles/storage.admin - Full control of Google Cloud Storage resources.
185 # - roles/storage.objectViewer - Read-Only access to Google Cloud Storage objects.
186 # - roles/storage.objectCreator - Access to create objects in Google Cloud Storage.
187 # - roles/storage.objectAdmin - Full control of Google Cloud Storage objects. The legacy IAM roles are:
188 # - roles/storage.legacyObjectReader - Read-only access to objects without listing. Equivalent to an ACL entry on an object with the READER role.
189 # - roles/storage.legacyObjectOwner - Read/write access to existing objects without listing. Equivalent to an ACL entry on an object with the OWNER role.
190 # - roles/storage.legacyBucketReader - Read access to buckets with object listing. Equivalent to an ACL entry on a bucket with the READER role.
191 # - roles/storage.legacyBucketWriter - Read access to buckets with object listing/creation/deletion. Equivalent to an ACL entry on a bucket with the WRITER role.
192 # - roles/storage.legacyBucketOwner - Read and write access to existing buckets with object listing/creation/deletion. Equivalent to an ACL entry on a bucket with the OWNER role.
193 },
194 ],
195 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the policy.
196 &quot;kind&quot;: &quot;storage#policy&quot;, # The kind of item this is. For policies, this is always storage#policy. This field is ignored on input.
197 &quot;resourceId&quot;: &quot;A String&quot;, # The ID of the resource to which this policy belongs. Will be of the form projects/_/buckets/bucket for buckets, projects/_/buckets/bucket/objects/object for objects, and projects/_/buckets/bucket/managedFolders/managedFolder. A specific generation may be specified by appending #generationNumber to the end of the object name, e.g. projects/_/buckets/my-bucket/objects/data.txt#17. The current generation can be denoted with #0. This field is ignored on input.
198 &quot;version&quot;: 42, # The IAM policy format version.
199 }</pre>
200 </div>
201
202 <div class="method">
203 <code class="details" id="insert">insert(bucket, body=None)</code>
204 <pre>Creates a new managed folder.
205
206 Args:
207 bucket: string, Name of the bucket containing the managed folder. (required)
208 body: object, The request body.
209 The object takes the form of:
210
211 { # A managed folder.
212 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket containing this managed folder.
213 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the managed folder in RFC 3339 format.
214 &quot;id&quot;: &quot;A String&quot;, # The ID of the managed folder, including the bucket name and managed folder name.
215 &quot;kind&quot;: &quot;storage#managedFolder&quot;, # The kind of item this is. For managed folders, this is always storage#managedFolder.
216 &quot;metageneration&quot;: &quot;A String&quot;, # The version of the metadata for this managed folder. Used for preconditions and for detecting changes in metadata.
217 &quot;name&quot;: &quot;A String&quot;, # The name of the managed folder. Required if not specified by URL parameter.
218 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this managed folder.
219 &quot;updateTime&quot;: &quot;A String&quot;, # The last update time of the managed folder metadata in RFC 3339 format.
220 }
221
222
223 Returns:
224 An object of the form:
225
226 { # A managed folder.
227 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket containing this managed folder.
228 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the managed folder in RFC 3339 format.
229 &quot;id&quot;: &quot;A String&quot;, # The ID of the managed folder, including the bucket name and managed folder name.
230 &quot;kind&quot;: &quot;storage#managedFolder&quot;, # The kind of item this is. For managed folders, this is always storage#managedFolder.
231 &quot;metageneration&quot;: &quot;A String&quot;, # The version of the metadata for this managed folder. Used for preconditions and for detecting changes in metadata.
232 &quot;name&quot;: &quot;A String&quot;, # The name of the managed folder. Required if not specified by URL parameter.
233 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this managed folder.
234 &quot;updateTime&quot;: &quot;A String&quot;, # The last update time of the managed folder metadata in RFC 3339 format.
235 }</pre>
236 </div>
237
238 <div class="method">
239 <code class="details" id="list">list(bucket, pageSize=None, pageToken=None, prefix=None)</code>
240 <pre>Lists managed folders in the given bucket.
241
242 Args:
243 bucket: string, Name of the bucket containing the managed folder. (required)
244 pageSize: integer, Maximum number of items to return in a single page of responses.
245 pageToken: string, A previously-returned page token representing part of the larger set of results to view.
246 prefix: string, The managed folder name/path prefix to filter the output list of results.
247
248 Returns:
249 An object of the form:
250
251 { # A list of managed folders.
252 &quot;items&quot;: [ # The list of items.
253 { # A managed folder.
254 &quot;bucket&quot;: &quot;A String&quot;, # The name of the bucket containing this managed folder.
255 &quot;createTime&quot;: &quot;A String&quot;, # The creation time of the managed folder in RFC 3339 format.
256 &quot;id&quot;: &quot;A String&quot;, # The ID of the managed folder, including the bucket name and managed folder name.
257 &quot;kind&quot;: &quot;storage#managedFolder&quot;, # The kind of item this is. For managed folders, this is always storage#managedFolder.
258 &quot;metageneration&quot;: &quot;A String&quot;, # The version of the metadata for this managed folder. Used for preconditions and for detecting changes in metadata.
259 &quot;name&quot;: &quot;A String&quot;, # The name of the managed folder. Required if not specified by URL parameter.
260 &quot;selfLink&quot;: &quot;A String&quot;, # The link to this managed folder.
261 &quot;updateTime&quot;: &quot;A String&quot;, # The last update time of the managed folder metadata in RFC 3339 format.
262 },
263 ],
264 &quot;kind&quot;: &quot;storage#managedFolders&quot;, # The kind of item this is. For lists of managed folders, this is always storage#managedFolders.
265 &quot;nextPageToken&quot;: &quot;A String&quot;, # The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
266 }</pre>
267 </div>
268
269 <div class="method">
270 <code class="details" id="list_next">list_next()</code>
271 <pre>Retrieves the next page of results.
272
273 Args:
274 previous_request: The request for the previous page. (required)
275 previous_response: The response from the request for the previous page. (required)
276
277 Returns:
278 A request object that you can call &#x27;execute()&#x27; on to request the next
279 page. Returns None if there are no more items in the collection.
280 </pre>
281 </div>
282
283 <div class="method">
284 <code class="details" id="setIamPolicy">setIamPolicy(bucket, managedFolder, body=None, userProject=None)</code>
285 <pre>Updates an IAM policy for the specified managed folder.
286
287 Args:
288 bucket: string, Name of the bucket containing the managed folder. (required)
289 managedFolder: string, The managed folder name/path. (required)
290 body: object, The request body.
291 The object takes the form of:
292
293 { # A bucket/object/managedFolder IAM policy.
294 &quot;bindings&quot;: [ # An association between a role, which comes with a set of permissions, and members who may assume that role.
295 {
296 &quot;condition&quot;: { # Represents an expression text. Example: title: &quot;User account presence&quot; description: &quot;Determines whether the request has a user account&quot; expression: &quot;size(request.user) &gt; 0&quot; # The condition that is associated with this binding. NOTE: an unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
297 &quot;description&quot;: &quot;A String&quot;, # An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
298 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax. The application context of the containing message determines which well-known feature set of CEL is supported.
299 &quot;location&quot;: &quot;A String&quot;, # An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
300 &quot;title&quot;: &quot;A String&quot;, # An optional title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
301 },
302 &quot;members&quot;: [ # A collection of identifiers for members who may assume the provided role. Recognized identifiers are as follows:
303 # - allUsers - A special identifier that represents anyone on the internet; with or without a Google account.
304 # - allAuthenticatedUsers - A special identifier that represents anyone who is authenticated with a Google account or a service account.
305 # - user:emailid - An email address that represents a specific account. For example, user:[email protected] or user:[email protected].
306 # - serviceAccount:emailid - An email address that represents a service account. For example, serviceAccount:[email protected] .
307 # - group:emailid - An email address that represents a Google group. For example, group:[email protected].
308 # - domain:domain - A Google Apps domain name that represents all the users of that domain. For example, domain:google.com or domain:example.com.
309 # - projectOwner:projectid - Owners of the given project. For example, projectOwner:my-example-project
310 # - projectEditor:projectid - Editors of the given project. For example, projectEditor:my-example-project
311 # - projectViewer:projectid - Viewers of the given project. For example, projectViewer:my-example-project
312 &quot;A String&quot;,
313 ],
314 &quot;role&quot;: &quot;A String&quot;, # The role to which members belong. Two types of roles are supported: new IAM roles, which grant permissions that do not map directly to those provided by ACLs, and legacy IAM roles, which do map directly to ACL permissions. All roles are of the format roles/storage.specificRole.
315 # The new IAM roles are:
316 # - roles/storage.admin - Full control of Google Cloud Storage resources.
317 # - roles/storage.objectViewer - Read-Only access to Google Cloud Storage objects.
318 # - roles/storage.objectCreator - Access to create objects in Google Cloud Storage.
319 # - roles/storage.objectAdmin - Full control of Google Cloud Storage objects. The legacy IAM roles are:
320 # - roles/storage.legacyObjectReader - Read-only access to objects without listing. Equivalent to an ACL entry on an object with the READER role.
321 # - roles/storage.legacyObjectOwner - Read/write access to existing objects without listing. Equivalent to an ACL entry on an object with the OWNER role.
322 # - roles/storage.legacyBucketReader - Read access to buckets with object listing. Equivalent to an ACL entry on a bucket with the READER role.
323 # - roles/storage.legacyBucketWriter - Read access to buckets with object listing/creation/deletion. Equivalent to an ACL entry on a bucket with the WRITER role.
324 # - roles/storage.legacyBucketOwner - Read and write access to existing buckets with object listing/creation/deletion. Equivalent to an ACL entry on a bucket with the OWNER role.
325 },
326 ],
327 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the policy.
328 &quot;kind&quot;: &quot;storage#policy&quot;, # The kind of item this is. For policies, this is always storage#policy. This field is ignored on input.
329 &quot;resourceId&quot;: &quot;A String&quot;, # The ID of the resource to which this policy belongs. Will be of the form projects/_/buckets/bucket for buckets, projects/_/buckets/bucket/objects/object for objects, and projects/_/buckets/bucket/managedFolders/managedFolder. A specific generation may be specified by appending #generationNumber to the end of the object name, e.g. projects/_/buckets/my-bucket/objects/data.txt#17. The current generation can be denoted with #0. This field is ignored on input.
330 &quot;version&quot;: 42, # The IAM policy format version.
331 }
332
333 userProject: string, The project to be billed for this request. Required for Requester Pays buckets.
334
335 Returns:
336 An object of the form:
337
338 { # A bucket/object/managedFolder IAM policy.
339 &quot;bindings&quot;: [ # An association between a role, which comes with a set of permissions, and members who may assume that role.
340 {
341 &quot;condition&quot;: { # Represents an expression text. Example: title: &quot;User account presence&quot; description: &quot;Determines whether the request has a user account&quot; expression: &quot;size(request.user) &gt; 0&quot; # The condition that is associated with this binding. NOTE: an unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
342 &quot;description&quot;: &quot;A String&quot;, # An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
343 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax. The application context of the containing message determines which well-known feature set of CEL is supported.
344 &quot;location&quot;: &quot;A String&quot;, # An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
345 &quot;title&quot;: &quot;A String&quot;, # An optional title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
346 },
347 &quot;members&quot;: [ # A collection of identifiers for members who may assume the provided role. Recognized identifiers are as follows:
348 # - allUsers - A special identifier that represents anyone on the internet; with or without a Google account.
349 # - allAuthenticatedUsers - A special identifier that represents anyone who is authenticated with a Google account or a service account.
350 # - user:emailid - An email address that represents a specific account. For example, user:[email protected] or user:[email protected].
351 # - serviceAccount:emailid - An email address that represents a service account. For example, serviceAccount:[email protected] .
352 # - group:emailid - An email address that represents a Google group. For example, group:[email protected].
353 # - domain:domain - A Google Apps domain name that represents all the users of that domain. For example, domain:google.com or domain:example.com.
354 # - projectOwner:projectid - Owners of the given project. For example, projectOwner:my-example-project
355 # - projectEditor:projectid - Editors of the given project. For example, projectEditor:my-example-project
356 # - projectViewer:projectid - Viewers of the given project. For example, projectViewer:my-example-project
357 &quot;A String&quot;,
358 ],
359 &quot;role&quot;: &quot;A String&quot;, # The role to which members belong. Two types of roles are supported: new IAM roles, which grant permissions that do not map directly to those provided by ACLs, and legacy IAM roles, which do map directly to ACL permissions. All roles are of the format roles/storage.specificRole.
360 # The new IAM roles are:
361 # - roles/storage.admin - Full control of Google Cloud Storage resources.
362 # - roles/storage.objectViewer - Read-Only access to Google Cloud Storage objects.
363 # - roles/storage.objectCreator - Access to create objects in Google Cloud Storage.
364 # - roles/storage.objectAdmin - Full control of Google Cloud Storage objects. The legacy IAM roles are:
365 # - roles/storage.legacyObjectReader - Read-only access to objects without listing. Equivalent to an ACL entry on an object with the READER role.
366 # - roles/storage.legacyObjectOwner - Read/write access to existing objects without listing. Equivalent to an ACL entry on an object with the OWNER role.
367 # - roles/storage.legacyBucketReader - Read access to buckets with object listing. Equivalent to an ACL entry on a bucket with the READER role.
368 # - roles/storage.legacyBucketWriter - Read access to buckets with object listing/creation/deletion. Equivalent to an ACL entry on a bucket with the WRITER role.
369 # - roles/storage.legacyBucketOwner - Read and write access to existing buckets with object listing/creation/deletion. Equivalent to an ACL entry on a bucket with the OWNER role.
370 },
371 ],
372 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for the policy.
373 &quot;kind&quot;: &quot;storage#policy&quot;, # The kind of item this is. For policies, this is always storage#policy. This field is ignored on input.
374 &quot;resourceId&quot;: &quot;A String&quot;, # The ID of the resource to which this policy belongs. Will be of the form projects/_/buckets/bucket for buckets, projects/_/buckets/bucket/objects/object for objects, and projects/_/buckets/bucket/managedFolders/managedFolder. A specific generation may be specified by appending #generationNumber to the end of the object name, e.g. projects/_/buckets/my-bucket/objects/data.txt#17. The current generation can be denoted with #0. This field is ignored on input.
375 &quot;version&quot;: 42, # The IAM policy format version.
376 }</pre>
377 </div>
378
379 <div class="method">
380 <code class="details" id="testIamPermissions">testIamPermissions(bucket, managedFolder, permissions, userProject=None)</code>
381 <pre>Tests a set of permissions on the given managed folder to see which, if any, are held by the caller.
382
383 Args:
384 bucket: string, Name of the bucket containing the managed folder. (required)
385 managedFolder: string, The managed folder name/path. (required)
386 permissions: string, Permissions to test. (required) (repeated)
387 userProject: string, The project to be billed for this request. Required for Requester Pays buckets.
388
389 Returns:
390 An object of the form:
391
392 { # A storage.(buckets|objects|managedFolders).testIamPermissions response.
393 &quot;kind&quot;: &quot;storage#testIamPermissionsResponse&quot;, # The kind of item this is.
394 &quot;permissions&quot;: [ # The permissions held by the caller. Permissions are always of the format storage.resource.capability, where resource is one of buckets, objects, or managedFolders. The supported permissions are as follows:
395 # - storage.buckets.delete - Delete bucket.
396 # - storage.buckets.get - Read bucket metadata.
397 # - storage.buckets.getIamPolicy - Read bucket IAM policy.
398 # - storage.buckets.create - Create bucket.
399 # - storage.buckets.list - List buckets.
400 # - storage.buckets.setIamPolicy - Update bucket IAM policy.
401 # - storage.buckets.update - Update bucket metadata.
402 # - storage.objects.delete - Delete object.
403 # - storage.objects.get - Read object data and metadata.
404 # - storage.objects.getIamPolicy - Read object IAM policy.
405 # - storage.objects.create - Create object.
406 # - storage.objects.list - List objects.
407 # - storage.objects.setIamPolicy - Update object IAM policy.
408 # - storage.objects.update - Update object metadata.
409 # - storage.managedFolders.delete - Delete managed folder.
410 # - storage.managedFolders.get - Read managed folder metadata.
411 # - storage.managedFolders.getIamPolicy - Read managed folder IAM policy.
412 # - storage.managedFolders.create - Create managed folder.
413 # - storage.managedFolders.list - List managed folders.
414 # - storage.managedFolders.setIamPolicy - Update managed folder IAM policy.
415 &quot;A String&quot;,
416 ],
417 }</pre>
418 </div>
419
420 </body></html>