blob: 9425a79816296efa6e508754f83629face16b703 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, 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
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, 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="cloudresourcemanager_v2.html">Cloud Resource Manager API</a> . <a href="cloudresourcemanager_v2.folders.html">folders</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#create">create(body=None, parent=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Creates a Folder in the resource hierarchy.</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
82<p class="firstline">Requests deletion of a Folder. The Folder is moved into the</p>
83<p class="toc_element">
84 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Retrieves a Folder identified by the supplied resource name.</p>
86<p class="toc_element">
87 <code><a href="#getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Gets the access control policy for a Folder. The returned policy may be</p>
89<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070090 <code><a href="#list">list(showDeleted=None, parent=None, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Lists the Folders that are direct descendants of supplied parent resource.</p>
92<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#move">move(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Moves a Folder under a new resource parent.</p>
98<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<p class="firstline">Updates a Folder, changing its display_name.</p>
101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#search">search(body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<p class="firstline">Search for folders that match specific filter criteria.</p>
104<p class="toc_element">
105 <code><a href="#search_next">search_next(previous_request, previous_response)</a></code></p>
106<p class="firstline">Retrieves the next page of results.</p>
107<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109<p class="firstline">Sets the access control policy on a Folder, replacing any existing policy.</p>
110<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700112<p class="firstline">Returns permissions that a caller has on the specified Folder.</p>
113<p class="toc_element">
114 <code><a href="#undelete">undelete(name, body=None, x__xgafv=None)</a></code></p>
115<p class="firstline">Cancels the deletion request for a Folder. This method may only be</p>
116<h3>Method Details</h3>
117<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700118 <code class="details" id="create">create(body=None, parent=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700119 <pre>Creates a Folder in the resource hierarchy.
120Returns an Operation which can be used to track the progress of the
121folder creation workflow.
122Upon success the Operation.response field will be populated with the
123created Folder.
124
125In order to succeed, the addition of this new Folder must not violate
126the Folder naming, height or fanout constraints.
127
Bu Sun Kim65020912020-05-20 12:08:20 -0700128+ The Folder&#x27;s display_name must be distinct from all other Folder&#x27;s that
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700129share its parent.
130+ The addition of the Folder must not cause the active Folder hierarchy
131to exceed a height of 4. Note, the full active + deleted Folder hierarchy
132is allowed to reach a height of 8; this provides additional headroom when
133moving folders that contain deleted folders.
134+ The addition of the Folder must not cause the total number of Folders
135under its parent to exceed 100.
136
137If the operation fails due to a folder constraint violation, some errors
138may be returned by the CreateFolder request, with status code
139FAILED_PRECONDITION and an error description. Other folder constraint
140violations will be communicated in the Operation, with the specific
141PreconditionFailure returned via the details list in the Operation.error
142field.
143
144The caller must have `resourcemanager.folders.create` permission on the
145identified parent.
146
147Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700148 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700149 The object takes the form of:
150
Bu Sun Kim65020912020-05-20 12:08:20 -0700151{ # A Folder in an Organization&#x27;s resource hierarchy, used to
152 # organize that Organization&#x27;s resources.
Bu Sun Kim65020912020-05-20 12:08:20 -0700153 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Folder.
154 # Its format is `folders/{folder_id}`, for example: &quot;folders/1234&quot;.
155 &quot;displayName&quot;: &quot;A String&quot;, # The folder’s display name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700156 # A folder’s display name must be unique amongst its siblings, e.g.
157 # no two folders with the same parent can share the same display name.
158 # The display name must start and end with a letter or digit, may contain
159 # letters, digits, spaces, hyphens and underscores and can be no longer
160 # than 30 characters. This is captured by the regular expression:
161 # [\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700162 &quot;lifecycleState&quot;: &quot;A String&quot;, # Output only. The lifecycle state of the folder.
163 # Updates to the lifecycle_state must be performed via
164 # DeleteFolder and
165 # UndeleteFolder.
166 &quot;parent&quot;: &quot;A String&quot;, # Required. The Folder’s parent&#x27;s resource name.
167 # Updates to the folder&#x27;s parent must be performed via
168 # MoveFolder.
169 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the Folder was created. Assigned by the server.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700170}
171
Bu Sun Kim65020912020-05-20 12:08:20 -0700172 parent: string, Required. The resource name of the new Folder&#x27;s parent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700173Must be of the form `folders/{folder_id}` or `organizations/{org_id}`.
174 x__xgafv: string, V1 error format.
175 Allowed values
176 1 - v1 error format
177 2 - v2 error format
178
179Returns:
180 An object of the form:
181
182 { # This resource represents a long-running operation that is the result of a
183 # network API call.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700184 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
185 # contains progress information and common metadata such as create time.
186 # Some services might not provide such metadata. Any method that returns a
187 # long-running operation should document the metadata type, if any.
Bu Sun Kim65020912020-05-20 12:08:20 -0700188 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700189 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700190 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700191 # originally returns it. If you use the default HTTP mapping, the
192 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700193 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700194 # different programming environments, including REST APIs and RPC APIs. It is
195 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
196 # three pieces of data: error code, error message, and error details.
197 #
198 # You can find out more about this error model and how to work with it in the
199 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700200 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700201 # message types for APIs to use.
202 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700203 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700204 },
205 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700206 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
207 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
208 # user-facing error message should be localized and sent in the
209 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700210 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700211 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
212 # If `true`, the operation is completed, and either `error` or `response` is
213 # available.
214 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
215 # method returns no data on success, such as `Delete`, the response is
216 # `google.protobuf.Empty`. If the original method is standard
217 # `Get`/`Create`/`Update`, the response should be the resource. For other
218 # methods, the response should have the type `XxxResponse`, where `Xxx`
219 # is the original method name. For example, if the original method name
220 # is `TakeSnapshot()`, the inferred response type is
221 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700222 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
223 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700224 }</pre>
225</div>
226
227<div class="method">
228 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
229 <pre>Requests deletion of a Folder. The Folder is moved into the
230DELETE_REQUESTED state
231immediately, and is deleted approximately 30 days later. This method may
232only be called on an empty Folder in the
233ACTIVE state, where a Folder is empty if
Bu Sun Kim65020912020-05-20 12:08:20 -0700234it doesn&#x27;t contain any Folders or Projects in the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700235ACTIVE state.
236The caller must have `resourcemanager.folders.delete` permission on the
237identified folder.
238
239Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700240 name: string, Required. the resource name of the Folder to be deleted.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700241Must be of the form `folders/{folder_id}`. (required)
242 x__xgafv: string, V1 error format.
243 Allowed values
244 1 - v1 error format
245 2 - v2 error format
246
247Returns:
248 An object of the form:
249
Bu Sun Kim65020912020-05-20 12:08:20 -0700250 { # A Folder in an Organization&#x27;s resource hierarchy, used to
251 # organize that Organization&#x27;s resources.
Bu Sun Kim65020912020-05-20 12:08:20 -0700252 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Folder.
253 # Its format is `folders/{folder_id}`, for example: &quot;folders/1234&quot;.
254 &quot;displayName&quot;: &quot;A String&quot;, # The folder’s display name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700255 # A folder’s display name must be unique amongst its siblings, e.g.
256 # no two folders with the same parent can share the same display name.
257 # The display name must start and end with a letter or digit, may contain
258 # letters, digits, spaces, hyphens and underscores and can be no longer
259 # than 30 characters. This is captured by the regular expression:
260 # [\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700261 &quot;lifecycleState&quot;: &quot;A String&quot;, # Output only. The lifecycle state of the folder.
262 # Updates to the lifecycle_state must be performed via
263 # DeleteFolder and
264 # UndeleteFolder.
265 &quot;parent&quot;: &quot;A String&quot;, # Required. The Folder’s parent&#x27;s resource name.
266 # Updates to the folder&#x27;s parent must be performed via
267 # MoveFolder.
268 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the Folder was created. Assigned by the server.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700269 }</pre>
270</div>
271
272<div class="method">
273 <code class="details" id="get">get(name, x__xgafv=None)</code>
274 <pre>Retrieves a Folder identified by the supplied resource name.
275Valid Folder resource names have the format `folders/{folder_id}`
276(for example, `folders/1234`).
277The caller must have `resourcemanager.folders.get` permission on the
278identified folder.
279
280Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700281 name: string, Required. The resource name of the Folder to retrieve.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700282Must be of the form `folders/{folder_id}`. (required)
283 x__xgafv: string, V1 error format.
284 Allowed values
285 1 - v1 error format
286 2 - v2 error format
287
288Returns:
289 An object of the form:
290
Bu Sun Kim65020912020-05-20 12:08:20 -0700291 { # A Folder in an Organization&#x27;s resource hierarchy, used to
292 # organize that Organization&#x27;s resources.
Bu Sun Kim65020912020-05-20 12:08:20 -0700293 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Folder.
294 # Its format is `folders/{folder_id}`, for example: &quot;folders/1234&quot;.
295 &quot;displayName&quot;: &quot;A String&quot;, # The folder’s display name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700296 # A folder’s display name must be unique amongst its siblings, e.g.
297 # no two folders with the same parent can share the same display name.
298 # The display name must start and end with a letter or digit, may contain
299 # letters, digits, spaces, hyphens and underscores and can be no longer
300 # than 30 characters. This is captured by the regular expression:
301 # [\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700302 &quot;lifecycleState&quot;: &quot;A String&quot;, # Output only. The lifecycle state of the folder.
303 # Updates to the lifecycle_state must be performed via
304 # DeleteFolder and
305 # UndeleteFolder.
306 &quot;parent&quot;: &quot;A String&quot;, # Required. The Folder’s parent&#x27;s resource name.
307 # Updates to the folder&#x27;s parent must be performed via
308 # MoveFolder.
309 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the Folder was created. Assigned by the server.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700310 }</pre>
311</div>
312
313<div class="method">
314 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
315 <pre>Gets the access control policy for a Folder. The returned policy may be
316empty if no such policy or resource exists. The `resource` field should
Bu Sun Kim65020912020-05-20 12:08:20 -0700317be the Folder&#x27;s resource name, e.g. &quot;folders/1234&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700318The caller must have `resourcemanager.folders.getIamPolicy` permission
319on the identified folder.
320
321Args:
322 resource: string, REQUIRED: The resource for which the policy is being requested.
323See the operation documentation for the appropriate value for this field. (required)
324 body: object, The request body.
325 The object takes the form of:
326
327{ # Request message for `GetIamPolicy` method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700328 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to
Dan O'Mearadd494642020-05-01 07:42:23 -0700329 # `GetIamPolicy`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700330 &quot;requestedPolicyVersion&quot;: 42, # Optional. The policy format version to be returned.
Dan O'Mearadd494642020-05-01 07:42:23 -0700331 #
332 # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
333 # rejected.
334 #
335 # Requests for policies with any conditional bindings must specify version 3.
336 # Policies without any conditional bindings may specify any valid value or
337 # leave the field unset.
Bu Sun Kim65020912020-05-20 12:08:20 -0700338 #
339 # To learn which resources support conditions in their IAM policies, see the
340 # [IAM
341 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -0700342 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700343 }
344
345 x__xgafv: string, V1 error format.
346 Allowed values
347 1 - v1 error format
348 2 - v2 error format
349
350Returns:
351 An object of the form:
352
Dan O'Mearadd494642020-05-01 07:42:23 -0700353 { # An Identity and Access Management (IAM) policy, which specifies access
354 # controls for Google Cloud resources.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700355 #
356 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700357 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
358 # `members` to a single `role`. Members can be user accounts, service accounts,
359 # Google groups, and domains (such as G Suite). A `role` is a named list of
360 # permissions; each `role` can be an IAM predefined role or a user-created
361 # custom role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700362 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700363 # For some types of Google Cloud resources, a `binding` can also specify a
364 # `condition`, which is a logical expression that allows access to a resource
365 # only if the expression evaluates to `true`. A condition can add constraints
366 # based on attributes of the request, the resource, or both. To learn which
367 # resources support conditions in their IAM policies, see the
368 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -0700369 #
370 # **JSON example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700371 #
372 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700373 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700374 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700375 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
376 # &quot;members&quot;: [
377 # &quot;user:mike@example.com&quot;,
378 # &quot;group:admins@example.com&quot;,
379 # &quot;domain:google.com&quot;,
380 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700381 # ]
382 # },
383 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700384 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
385 # &quot;members&quot;: [
386 # &quot;user:eve@example.com&quot;
387 # ],
388 # &quot;condition&quot;: {
389 # &quot;title&quot;: &quot;expirable access&quot;,
390 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
391 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700392 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700393 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700394 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700395 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
396 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700397 # }
398 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700399 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700400 #
401 # bindings:
402 # - members:
403 # - user:mike@example.com
404 # - group:admins@example.com
405 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -0700406 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
407 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700408 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -0700409 # - user:eve@example.com
410 # role: roles/resourcemanager.organizationViewer
411 # condition:
412 # title: expirable access
413 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -0700414 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -0700415 # - etag: BwWWja0YfJA=
416 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700417 #
418 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -0700419 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700420 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
421 { # Specifies the audit configuration for a service.
422 # The configuration determines which permission types are logged, and what
423 # identities, if any, are exempted from logging.
424 # An AuditConfig must have one or more AuditLogConfigs.
425 #
426 # If there are AuditConfigs for both `allServices` and a specific service,
427 # the union of the two AuditConfigs is used for that service: the log_types
428 # specified in each AuditConfig are enabled, and the exempted_members in each
429 # AuditLogConfig are exempted.
430 #
431 # Example Policy with multiple AuditConfigs:
432 #
433 # {
434 # &quot;audit_configs&quot;: [
435 # {
436 # &quot;service&quot;: &quot;allServices&quot;,
437 # &quot;audit_log_configs&quot;: [
438 # {
439 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
440 # &quot;exempted_members&quot;: [
441 # &quot;user:jose@example.com&quot;
442 # ]
443 # },
444 # {
445 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
446 # },
447 # {
448 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
449 # }
450 # ]
451 # },
452 # {
453 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
454 # &quot;audit_log_configs&quot;: [
455 # {
456 # &quot;log_type&quot;: &quot;DATA_READ&quot;
457 # },
458 # {
459 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
460 # &quot;exempted_members&quot;: [
461 # &quot;user:aliya@example.com&quot;
462 # ]
463 # }
464 # ]
465 # }
466 # ]
467 # }
468 #
469 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
470 # logging. It also exempts jose@example.com from DATA_READ logging, and
471 # aliya@example.com from DATA_WRITE logging.
472 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
473 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
474 # `allServices` is a special value that covers all services.
475 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
476 { # Provides the configuration for logging a type of permissions.
477 # Example:
478 #
479 # {
480 # &quot;audit_log_configs&quot;: [
481 # {
482 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
483 # &quot;exempted_members&quot;: [
484 # &quot;user:jose@example.com&quot;
485 # ]
486 # },
487 # {
488 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
489 # }
490 # ]
491 # }
492 #
493 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
494 # jose@example.com from DATA_READ logging.
495 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
496 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
497 # permission.
498 # Follows the same format of Binding.members.
499 &quot;A String&quot;,
500 ],
501 },
502 ],
503 },
504 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700505 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
506 # `condition` that determines how and when the `bindings` are applied. Each
507 # of the `bindings` must contain at least one member.
508 { # Associates `members` with a `role`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700509 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
510 # `members` can have the following values:
511 #
512 # * `allUsers`: A special identifier that represents anyone who is
513 # on the internet; with or without a Google account.
514 #
515 # * `allAuthenticatedUsers`: A special identifier that represents anyone
516 # who is authenticated with a Google account or a service account.
517 #
518 # * `user:{emailid}`: An email address that represents a specific Google
519 # account. For example, `alice@example.com` .
520 #
521 #
522 # * `serviceAccount:{emailid}`: An email address that represents a service
523 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
524 #
525 # * `group:{emailid}`: An email address that represents a Google group.
526 # For example, `admins@example.com`.
527 #
528 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
529 # identifier) representing a user that has been recently deleted. For
530 # example, `alice@example.com?uid=123456789012345678901`. If the user is
531 # recovered, this value reverts to `user:{emailid}` and the recovered user
532 # retains the role in the binding.
533 #
534 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
535 # unique identifier) representing a service account that has been recently
536 # deleted. For example,
537 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
538 # If the service account is undeleted, this value reverts to
539 # `serviceAccount:{emailid}` and the undeleted service account retains the
540 # role in the binding.
541 #
542 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
543 # identifier) representing a Google group that has been recently
544 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
545 # the group is recovered, this value reverts to `group:{emailid}` and the
546 # recovered group retains the role in the binding.
547 #
548 #
549 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
550 # users of that domain. For example, `google.com` or `example.com`.
551 #
552 &quot;A String&quot;,
553 ],
554 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
555 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700556 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
557 #
558 # If the condition evaluates to `true`, then this binding applies to the
559 # current request.
560 #
561 # If the condition evaluates to `false`, then this binding does not apply to
562 # the current request. However, a different role binding might grant the same
563 # role to one or more of the members in this binding.
564 #
565 # To learn which resources support conditions in their IAM policies, see the
566 # [IAM
567 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
568 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
569 # are documented at https://github.com/google/cel-spec.
570 #
571 # Example (Comparison):
572 #
573 # title: &quot;Summary size limit&quot;
574 # description: &quot;Determines if a summary is less than 100 chars&quot;
575 # expression: &quot;document.summary.size() &lt; 100&quot;
576 #
577 # Example (Equality):
578 #
579 # title: &quot;Requestor is owner&quot;
580 # description: &quot;Determines if requestor is the document owner&quot;
581 # expression: &quot;document.owner == request.auth.claims.email&quot;
582 #
583 # Example (Logic):
584 #
585 # title: &quot;Public documents&quot;
586 # description: &quot;Determine whether the document should be publicly visible&quot;
587 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
588 #
589 # Example (Data Manipulation):
590 #
591 # title: &quot;Notification string&quot;
592 # description: &quot;Create a notification string with a timestamp.&quot;
593 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
594 #
595 # The exact variables and functions that may be referenced within an expression
596 # are determined by the service that evaluates it. See the service
597 # documentation for additional information.
598 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
599 # reporting, e.g. a file name and a position in the file.
600 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
601 # syntax.
602 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
603 # its purpose. This can be used e.g. in UIs which allow to enter the
604 # expression.
605 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
606 # describes the expression, e.g. when hovered over it in a UI.
607 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700608 },
609 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700610 &quot;version&quot;: 42, # Specifies the format of the policy.
Dan O'Mearadd494642020-05-01 07:42:23 -0700611 #
612 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
613 # are rejected.
614 #
615 # Any operation that affects conditional role bindings must specify version
616 # `3`. This requirement applies to the following operations:
617 #
618 # * Getting a policy that includes a conditional role binding
619 # * Adding a conditional role binding to a policy
620 # * Changing a conditional role binding in a policy
621 # * Removing any role binding, with or without a condition, from a policy
622 # that includes conditions
623 #
624 # **Important:** If you use IAM Conditions, you must include the `etag` field
625 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
626 # you to overwrite a version `3` policy with a version `1` policy, and all of
627 # the conditions in the version `3` policy are lost.
628 #
629 # If a policy does not include any conditions, operations on that policy may
630 # specify any valid version or leave the field unset.
Bu Sun Kim65020912020-05-20 12:08:20 -0700631 #
632 # To learn which resources support conditions in their IAM policies, see the
633 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700634 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
635 # prevent simultaneous updates of a policy from overwriting each other.
636 # It is strongly suggested that systems make use of the `etag` in the
637 # read-modify-write cycle to perform policy updates in order to avoid race
638 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
639 # systems are expected to put that etag in the request to `setIamPolicy` to
640 # ensure that their change will be applied to the same version of the policy.
641 #
642 # **Important:** If you use IAM Conditions, you must include the `etag` field
643 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
644 # you to overwrite a version `3` policy with a version `1` policy, and all of
645 # the conditions in the version `3` policy are lost.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700646 }</pre>
647</div>
648
649<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700650 <code class="details" id="list">list(showDeleted=None, parent=None, pageToken=None, pageSize=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700651 <pre>Lists the Folders that are direct descendants of supplied parent resource.
652List provides a strongly consistent view of the Folders underneath
653the specified parent resource.
654List returns Folders sorted based upon the (ascending) lexical ordering
655of their display_name.
656The caller must have `resourcemanager.folders.list` permission on the
657identified parent.
658
659Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700660 showDeleted: boolean, Optional. Controls whether Folders in the
661DELETE_REQUESTED
662state should be returned. Defaults to false.
Dan O'Mearadd494642020-05-01 07:42:23 -0700663 parent: string, Required. The resource name of the Organization or Folder whose Folders are
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700664being listed.
665Must be of the form `folders/{folder_id}` or `organizations/{org_id}`.
666Access to this method is controlled by checking the
667`resourcemanager.folders.list` permission on the `parent`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700668 pageToken: string, Optional. A pagination token returned from a previous call to `ListFolders`
669that indicates where this listing should continue from.
670 pageSize: integer, Optional. The maximum number of Folders to return in the response.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700671 x__xgafv: string, V1 error format.
672 Allowed values
673 1 - v1 error format
674 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700675
676Returns:
677 An object of the form:
678
679 { # The ListFolders response message.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700680 &quot;nextPageToken&quot;: &quot;A String&quot;, # A pagination token returned from a previous call to `ListFolders`
681 # that indicates from where listing should continue.
Bu Sun Kim65020912020-05-20 12:08:20 -0700682 &quot;folders&quot;: [ # A possibly paginated list of Folders that are direct descendants of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700683 # the specified parent resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700684 { # A Folder in an Organization&#x27;s resource hierarchy, used to
685 # organize that Organization&#x27;s resources.
Bu Sun Kim65020912020-05-20 12:08:20 -0700686 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Folder.
687 # Its format is `folders/{folder_id}`, for example: &quot;folders/1234&quot;.
688 &quot;displayName&quot;: &quot;A String&quot;, # The folder’s display name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700689 # A folder’s display name must be unique amongst its siblings, e.g.
690 # no two folders with the same parent can share the same display name.
691 # The display name must start and end with a letter or digit, may contain
692 # letters, digits, spaces, hyphens and underscores and can be no longer
693 # than 30 characters. This is captured by the regular expression:
694 # [\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700695 &quot;lifecycleState&quot;: &quot;A String&quot;, # Output only. The lifecycle state of the folder.
696 # Updates to the lifecycle_state must be performed via
697 # DeleteFolder and
698 # UndeleteFolder.
699 &quot;parent&quot;: &quot;A String&quot;, # Required. The Folder’s parent&#x27;s resource name.
700 # Updates to the folder&#x27;s parent must be performed via
701 # MoveFolder.
702 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the Folder was created. Assigned by the server.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700703 },
704 ],
705 }</pre>
706</div>
707
708<div class="method">
709 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
710 <pre>Retrieves the next page of results.
711
712Args:
713 previous_request: The request for the previous page. (required)
714 previous_response: The response from the request for the previous page. (required)
715
716Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700717 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700718 page. Returns None if there are no more items in the collection.
719 </pre>
720</div>
721
722<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700723 <code class="details" id="move">move(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700724 <pre>Moves a Folder under a new resource parent.
725Returns an Operation which can be used to track the progress of the
726folder move workflow.
727Upon success the Operation.response field will be populated with the
728moved Folder.
729Upon failure, a FolderOperationError categorizing the failure cause will
730be returned - if the failure occurs synchronously then the
731FolderOperationError will be returned via the Status.details field
732and if it occurs asynchronously then the FolderOperation will be returned
733via the Operation.error field.
734In addition, the Operation.metadata field will be populated with a
735FolderOperation message as an aid to stateless clients.
736Folder moves will be rejected if they violate either the naming, height
737or fanout constraints described in the
738CreateFolder documentation.
739The caller must have `resourcemanager.folders.move` permission on the
Bu Sun Kim65020912020-05-20 12:08:20 -0700740folder&#x27;s current and proposed new parent.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700741
742Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700743 name: string, Required. The resource name of the Folder to move.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700744Must be of the form folders/{folder_id} (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700745 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700746 The object takes the form of:
747
748{ # The MoveFolder request message.
Bu Sun Kim65020912020-05-20 12:08:20 -0700749 &quot;destinationParent&quot;: &quot;A String&quot;, # Required. The resource name of the Folder or Organization to reparent
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700750 # the folder under.
751 # Must be of the form `folders/{folder_id}` or `organizations/{org_id}`.
752 }
753
754 x__xgafv: string, V1 error format.
755 Allowed values
756 1 - v1 error format
757 2 - v2 error format
758
759Returns:
760 An object of the form:
761
762 { # This resource represents a long-running operation that is the result of a
763 # network API call.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700764 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
765 # contains progress information and common metadata such as create time.
766 # Some services might not provide such metadata. Any method that returns a
767 # long-running operation should document the metadata type, if any.
Bu Sun Kim65020912020-05-20 12:08:20 -0700768 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700769 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700770 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700771 # originally returns it. If you use the default HTTP mapping, the
772 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700773 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700774 # different programming environments, including REST APIs and RPC APIs. It is
775 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
776 # three pieces of data: error code, error message, and error details.
777 #
778 # You can find out more about this error model and how to work with it in the
779 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700780 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700781 # message types for APIs to use.
782 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700783 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700784 },
785 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700786 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
787 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
788 # user-facing error message should be localized and sent in the
789 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700790 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700791 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
792 # If `true`, the operation is completed, and either `error` or `response` is
793 # available.
794 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
795 # method returns no data on success, such as `Delete`, the response is
796 # `google.protobuf.Empty`. If the original method is standard
797 # `Get`/`Create`/`Update`, the response should be the resource. For other
798 # methods, the response should have the type `XxxResponse`, where `Xxx`
799 # is the original method name. For example, if the original method name
800 # is `TakeSnapshot()`, the inferred response type is
801 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700802 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
803 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700804 }</pre>
805</div>
806
807<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700808 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700809 <pre>Updates a Folder, changing its display_name.
810Changes to the folder display_name will be rejected if they violate either
811the display_name formatting rules or naming constraints described in
812the CreateFolder documentation.
813
Bu Sun Kim65020912020-05-20 12:08:20 -0700814The Folder&#x27;s display name must start and end with a letter or digit,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700815may contain letters, digits, spaces, hyphens and underscores and can be
816no longer than 30 characters. This is captured by the regular expression:
817[\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?.
818The caller must have `resourcemanager.folders.update` permission on the
819identified folder.
820
821If the update fails due to the unique name constraint then a
822PreconditionFailure explaining this violation will be returned
823in the Status.details field.
824
825Args:
826 name: string, Output only. The resource name of the Folder.
Bu Sun Kim65020912020-05-20 12:08:20 -0700827Its format is `folders/{folder_id}`, for example: &quot;folders/1234&quot;. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700828 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700829 The object takes the form of:
830
Bu Sun Kim65020912020-05-20 12:08:20 -0700831{ # A Folder in an Organization&#x27;s resource hierarchy, used to
832 # organize that Organization&#x27;s resources.
Bu Sun Kim65020912020-05-20 12:08:20 -0700833 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Folder.
834 # Its format is `folders/{folder_id}`, for example: &quot;folders/1234&quot;.
835 &quot;displayName&quot;: &quot;A String&quot;, # The folder’s display name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700836 # A folder’s display name must be unique amongst its siblings, e.g.
837 # no two folders with the same parent can share the same display name.
838 # The display name must start and end with a letter or digit, may contain
839 # letters, digits, spaces, hyphens and underscores and can be no longer
840 # than 30 characters. This is captured by the regular expression:
841 # [\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700842 &quot;lifecycleState&quot;: &quot;A String&quot;, # Output only. The lifecycle state of the folder.
843 # Updates to the lifecycle_state must be performed via
844 # DeleteFolder and
845 # UndeleteFolder.
846 &quot;parent&quot;: &quot;A String&quot;, # Required. The Folder’s parent&#x27;s resource name.
847 # Updates to the folder&#x27;s parent must be performed via
848 # MoveFolder.
849 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the Folder was created. Assigned by the server.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700850}
851
Dan O'Mearadd494642020-05-01 07:42:23 -0700852 updateMask: string, Required. Fields to be updated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700853Only the `display_name` can be updated.
854 x__xgafv: string, V1 error format.
855 Allowed values
856 1 - v1 error format
857 2 - v2 error format
858
859Returns:
860 An object of the form:
861
Bu Sun Kim65020912020-05-20 12:08:20 -0700862 { # A Folder in an Organization&#x27;s resource hierarchy, used to
863 # organize that Organization&#x27;s resources.
Bu Sun Kim65020912020-05-20 12:08:20 -0700864 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Folder.
865 # Its format is `folders/{folder_id}`, for example: &quot;folders/1234&quot;.
866 &quot;displayName&quot;: &quot;A String&quot;, # The folder’s display name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700867 # A folder’s display name must be unique amongst its siblings, e.g.
868 # no two folders with the same parent can share the same display name.
869 # The display name must start and end with a letter or digit, may contain
870 # letters, digits, spaces, hyphens and underscores and can be no longer
871 # than 30 characters. This is captured by the regular expression:
872 # [\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700873 &quot;lifecycleState&quot;: &quot;A String&quot;, # Output only. The lifecycle state of the folder.
874 # Updates to the lifecycle_state must be performed via
875 # DeleteFolder and
876 # UndeleteFolder.
877 &quot;parent&quot;: &quot;A String&quot;, # Required. The Folder’s parent&#x27;s resource name.
878 # Updates to the folder&#x27;s parent must be performed via
879 # MoveFolder.
880 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the Folder was created. Assigned by the server.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700881 }</pre>
882</div>
883
884<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700885 <code class="details" id="search">search(body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700886 <pre>Search for folders that match specific filter criteria.
887Search provides an eventually consistent view of the folders a user has
888access to which meet the specified filter criteria.
889
890This will only return folders on which the caller has the
891permission `resourcemanager.folders.get`.
892
893Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700894 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700895 The object takes the form of:
896
897{ # The request message for searching folders.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700898 &quot;pageSize&quot;: 42, # Optional. The maximum number of folders to return in the response.
Bu Sun Kim65020912020-05-20 12:08:20 -0700899 &quot;pageToken&quot;: &quot;A String&quot;, # Optional. A pagination token returned from a previous call to `SearchFolders`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700900 # that indicates from where search should continue.
Bu Sun Kim65020912020-05-20 12:08:20 -0700901 &quot;query&quot;: &quot;A String&quot;, # Search criteria used to select the Folders to return.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700902 # If no search criteria is specified then all accessible folders will be
903 # returned.
904 #
905 # Query expressions can be used to restrict results based upon displayName,
906 # lifecycleState and parent, where the operators `=`, `NOT`, `AND` and `OR`
907 # can be used along with the suffix wildcard symbol `*`.
908 #
909 # The displayName field in a query expression should use escaped quotes
910 # for values that include whitespace to prevent unexpected behavior.
911 #
912 # Some example queries are:
913 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700914 # * Query `displayName=Test*` returns Folder resources whose display name
Bu Sun Kim65020912020-05-20 12:08:20 -0700915 # starts with &quot;Test&quot;.
Dan O'Mearadd494642020-05-01 07:42:23 -0700916 # * Query `lifecycleState=ACTIVE` returns Folder resources with
917 # `lifecycleState` set to `ACTIVE`.
918 # * Query `parent=folders/123` returns Folder resources that have
919 # `folders/123` as a parent resource.
920 # * Query `parent=folders/123 AND lifecycleState=ACTIVE` returns active
921 # Folder resources that have `folders/123` as a parent resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700922 # * Query `displayName=\\&quot;Test String\\&quot;` returns Folder resources with
923 # display names that include both &quot;Test&quot; and &quot;String&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700924 }
925
926 x__xgafv: string, V1 error format.
927 Allowed values
928 1 - v1 error format
929 2 - v2 error format
930
931Returns:
932 An object of the form:
933
934 { # The response message for searching folders.
Bu Sun Kim65020912020-05-20 12:08:20 -0700935 &quot;folders&quot;: [ # A possibly paginated folder search results.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700936 # the specified parent resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700937 { # A Folder in an Organization&#x27;s resource hierarchy, used to
938 # organize that Organization&#x27;s resources.
Bu Sun Kim65020912020-05-20 12:08:20 -0700939 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Folder.
940 # Its format is `folders/{folder_id}`, for example: &quot;folders/1234&quot;.
941 &quot;displayName&quot;: &quot;A String&quot;, # The folder’s display name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700942 # A folder’s display name must be unique amongst its siblings, e.g.
943 # no two folders with the same parent can share the same display name.
944 # The display name must start and end with a letter or digit, may contain
945 # letters, digits, spaces, hyphens and underscores and can be no longer
946 # than 30 characters. This is captured by the regular expression:
947 # [\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700948 &quot;lifecycleState&quot;: &quot;A String&quot;, # Output only. The lifecycle state of the folder.
949 # Updates to the lifecycle_state must be performed via
950 # DeleteFolder and
951 # UndeleteFolder.
952 &quot;parent&quot;: &quot;A String&quot;, # Required. The Folder’s parent&#x27;s resource name.
953 # Updates to the folder&#x27;s parent must be performed via
954 # MoveFolder.
955 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the Folder was created. Assigned by the server.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700956 },
957 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700958 &quot;nextPageToken&quot;: &quot;A String&quot;, # A pagination token returned from a previous call to `SearchFolders`
959 # that indicates from where searching should continue.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700960 }</pre>
961</div>
962
963<div class="method">
964 <code class="details" id="search_next">search_next(previous_request, previous_response)</code>
965 <pre>Retrieves the next page of results.
966
967Args:
968 previous_request: The request for the previous page. (required)
969 previous_response: The response from the request for the previous page. (required)
970
971Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700972 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700973 page. Returns None if there are no more items in the collection.
974 </pre>
975</div>
976
977<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700978 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700979 <pre>Sets the access control policy on a Folder, replacing any existing policy.
Bu Sun Kim65020912020-05-20 12:08:20 -0700980The `resource` field should be the Folder&#x27;s resource name, e.g.
981&quot;folders/1234&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700982The caller must have `resourcemanager.folders.setIamPolicy` permission
983on the identified folder.
984
985Args:
986 resource: string, REQUIRED: The resource for which the policy is being specified.
987See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700988 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700989 The object takes the form of:
990
991{ # Request message for `SetIamPolicy` method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700992 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access # REQUIRED: The complete policy to be applied to the `resource`. The size of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700993 # the policy is limited to a few 10s of KB. An empty policy is a
994 # valid policy but certain Cloud Platform services (such as Projects)
995 # might reject them.
Dan O'Mearadd494642020-05-01 07:42:23 -0700996 # controls for Google Cloud resources.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700997 #
998 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700999 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
1000 # `members` to a single `role`. Members can be user accounts, service accounts,
1001 # Google groups, and domains (such as G Suite). A `role` is a named list of
1002 # permissions; each `role` can be an IAM predefined role or a user-created
1003 # custom role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001004 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001005 # For some types of Google Cloud resources, a `binding` can also specify a
1006 # `condition`, which is a logical expression that allows access to a resource
1007 # only if the expression evaluates to `true`. A condition can add constraints
1008 # based on attributes of the request, the resource, or both. To learn which
1009 # resources support conditions in their IAM policies, see the
1010 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07001011 #
1012 # **JSON example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001013 #
1014 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001015 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001016 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001017 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1018 # &quot;members&quot;: [
1019 # &quot;user:mike@example.com&quot;,
1020 # &quot;group:admins@example.com&quot;,
1021 # &quot;domain:google.com&quot;,
1022 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001023 # ]
1024 # },
1025 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001026 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
1027 # &quot;members&quot;: [
1028 # &quot;user:eve@example.com&quot;
1029 # ],
1030 # &quot;condition&quot;: {
1031 # &quot;title&quot;: &quot;expirable access&quot;,
1032 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1033 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001034 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001035 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07001036 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001037 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1038 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001039 # }
1040 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001041 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001042 #
1043 # bindings:
1044 # - members:
1045 # - user:mike@example.com
1046 # - group:admins@example.com
1047 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07001048 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1049 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001050 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07001051 # - user:eve@example.com
1052 # role: roles/resourcemanager.organizationViewer
1053 # condition:
1054 # title: expirable access
1055 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07001056 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07001057 # - etag: BwWWja0YfJA=
1058 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001059 #
1060 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -07001061 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001062 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1063 { # Specifies the audit configuration for a service.
1064 # The configuration determines which permission types are logged, and what
1065 # identities, if any, are exempted from logging.
1066 # An AuditConfig must have one or more AuditLogConfigs.
1067 #
1068 # If there are AuditConfigs for both `allServices` and a specific service,
1069 # the union of the two AuditConfigs is used for that service: the log_types
1070 # specified in each AuditConfig are enabled, and the exempted_members in each
1071 # AuditLogConfig are exempted.
1072 #
1073 # Example Policy with multiple AuditConfigs:
1074 #
1075 # {
1076 # &quot;audit_configs&quot;: [
1077 # {
1078 # &quot;service&quot;: &quot;allServices&quot;,
1079 # &quot;audit_log_configs&quot;: [
1080 # {
1081 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1082 # &quot;exempted_members&quot;: [
1083 # &quot;user:jose@example.com&quot;
1084 # ]
1085 # },
1086 # {
1087 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
1088 # },
1089 # {
1090 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
1091 # }
1092 # ]
1093 # },
1094 # {
1095 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
1096 # &quot;audit_log_configs&quot;: [
1097 # {
1098 # &quot;log_type&quot;: &quot;DATA_READ&quot;
1099 # },
1100 # {
1101 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1102 # &quot;exempted_members&quot;: [
1103 # &quot;user:aliya@example.com&quot;
1104 # ]
1105 # }
1106 # ]
1107 # }
1108 # ]
1109 # }
1110 #
1111 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1112 # logging. It also exempts jose@example.com from DATA_READ logging, and
1113 # aliya@example.com from DATA_WRITE logging.
1114 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
1115 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1116 # `allServices` is a special value that covers all services.
1117 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1118 { # Provides the configuration for logging a type of permissions.
1119 # Example:
1120 #
1121 # {
1122 # &quot;audit_log_configs&quot;: [
1123 # {
1124 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1125 # &quot;exempted_members&quot;: [
1126 # &quot;user:jose@example.com&quot;
1127 # ]
1128 # },
1129 # {
1130 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
1131 # }
1132 # ]
1133 # }
1134 #
1135 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
1136 # jose@example.com from DATA_READ logging.
1137 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1138 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1139 # permission.
1140 # Follows the same format of Binding.members.
1141 &quot;A String&quot;,
1142 ],
1143 },
1144 ],
1145 },
1146 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001147 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
1148 # `condition` that determines how and when the `bindings` are applied. Each
1149 # of the `bindings` must contain at least one member.
1150 { # Associates `members` with a `role`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001151 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
1152 # `members` can have the following values:
1153 #
1154 # * `allUsers`: A special identifier that represents anyone who is
1155 # on the internet; with or without a Google account.
1156 #
1157 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1158 # who is authenticated with a Google account or a service account.
1159 #
1160 # * `user:{emailid}`: An email address that represents a specific Google
1161 # account. For example, `alice@example.com` .
1162 #
1163 #
1164 # * `serviceAccount:{emailid}`: An email address that represents a service
1165 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1166 #
1167 # * `group:{emailid}`: An email address that represents a Google group.
1168 # For example, `admins@example.com`.
1169 #
1170 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1171 # identifier) representing a user that has been recently deleted. For
1172 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1173 # recovered, this value reverts to `user:{emailid}` and the recovered user
1174 # retains the role in the binding.
1175 #
1176 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1177 # unique identifier) representing a service account that has been recently
1178 # deleted. For example,
1179 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1180 # If the service account is undeleted, this value reverts to
1181 # `serviceAccount:{emailid}` and the undeleted service account retains the
1182 # role in the binding.
1183 #
1184 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1185 # identifier) representing a Google group that has been recently
1186 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1187 # the group is recovered, this value reverts to `group:{emailid}` and the
1188 # recovered group retains the role in the binding.
1189 #
1190 #
1191 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1192 # users of that domain. For example, `google.com` or `example.com`.
1193 #
1194 &quot;A String&quot;,
1195 ],
1196 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1197 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001198 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1199 #
1200 # If the condition evaluates to `true`, then this binding applies to the
1201 # current request.
1202 #
1203 # If the condition evaluates to `false`, then this binding does not apply to
1204 # the current request. However, a different role binding might grant the same
1205 # role to one or more of the members in this binding.
1206 #
1207 # To learn which resources support conditions in their IAM policies, see the
1208 # [IAM
1209 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1210 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1211 # are documented at https://github.com/google/cel-spec.
1212 #
1213 # Example (Comparison):
1214 #
1215 # title: &quot;Summary size limit&quot;
1216 # description: &quot;Determines if a summary is less than 100 chars&quot;
1217 # expression: &quot;document.summary.size() &lt; 100&quot;
1218 #
1219 # Example (Equality):
1220 #
1221 # title: &quot;Requestor is owner&quot;
1222 # description: &quot;Determines if requestor is the document owner&quot;
1223 # expression: &quot;document.owner == request.auth.claims.email&quot;
1224 #
1225 # Example (Logic):
1226 #
1227 # title: &quot;Public documents&quot;
1228 # description: &quot;Determine whether the document should be publicly visible&quot;
1229 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1230 #
1231 # Example (Data Manipulation):
1232 #
1233 # title: &quot;Notification string&quot;
1234 # description: &quot;Create a notification string with a timestamp.&quot;
1235 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1236 #
1237 # The exact variables and functions that may be referenced within an expression
1238 # are determined by the service that evaluates it. See the service
1239 # documentation for additional information.
1240 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1241 # reporting, e.g. a file name and a position in the file.
1242 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1243 # syntax.
1244 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1245 # its purpose. This can be used e.g. in UIs which allow to enter the
1246 # expression.
1247 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1248 # describes the expression, e.g. when hovered over it in a UI.
1249 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001250 },
1251 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001252 &quot;version&quot;: 42, # Specifies the format of the policy.
Dan O'Mearadd494642020-05-01 07:42:23 -07001253 #
1254 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1255 # are rejected.
1256 #
1257 # Any operation that affects conditional role bindings must specify version
1258 # `3`. This requirement applies to the following operations:
1259 #
1260 # * Getting a policy that includes a conditional role binding
1261 # * Adding a conditional role binding to a policy
1262 # * Changing a conditional role binding in a policy
1263 # * Removing any role binding, with or without a condition, from a policy
1264 # that includes conditions
1265 #
1266 # **Important:** If you use IAM Conditions, you must include the `etag` field
1267 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1268 # you to overwrite a version `3` policy with a version `1` policy, and all of
1269 # the conditions in the version `3` policy are lost.
1270 #
1271 # If a policy does not include any conditions, operations on that policy may
1272 # specify any valid version or leave the field unset.
Bu Sun Kim65020912020-05-20 12:08:20 -07001273 #
1274 # To learn which resources support conditions in their IAM policies, see the
1275 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001276 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1277 # prevent simultaneous updates of a policy from overwriting each other.
1278 # It is strongly suggested that systems make use of the `etag` in the
1279 # read-modify-write cycle to perform policy updates in order to avoid race
1280 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1281 # systems are expected to put that etag in the request to `setIamPolicy` to
1282 # ensure that their change will be applied to the same version of the policy.
1283 #
1284 # **Important:** If you use IAM Conditions, you must include the `etag` field
1285 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1286 # you to overwrite a version `3` policy with a version `1` policy, and all of
1287 # the conditions in the version `3` policy are lost.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001288 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001289 &quot;updateMask&quot;: &quot;A String&quot;, # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001290 # the fields in the mask will be modified. If no mask is provided, the
1291 # following default mask is used:
Dan O'Mearadd494642020-05-01 07:42:23 -07001292 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001293 # `paths: &quot;bindings, etag&quot;`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001294 }
1295
1296 x__xgafv: string, V1 error format.
1297 Allowed values
1298 1 - v1 error format
1299 2 - v2 error format
1300
1301Returns:
1302 An object of the form:
1303
Dan O'Mearadd494642020-05-01 07:42:23 -07001304 { # An Identity and Access Management (IAM) policy, which specifies access
1305 # controls for Google Cloud resources.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001306 #
1307 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001308 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
1309 # `members` to a single `role`. Members can be user accounts, service accounts,
1310 # Google groups, and domains (such as G Suite). A `role` is a named list of
1311 # permissions; each `role` can be an IAM predefined role or a user-created
1312 # custom role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001313 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001314 # For some types of Google Cloud resources, a `binding` can also specify a
1315 # `condition`, which is a logical expression that allows access to a resource
1316 # only if the expression evaluates to `true`. A condition can add constraints
1317 # based on attributes of the request, the resource, or both. To learn which
1318 # resources support conditions in their IAM policies, see the
1319 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07001320 #
1321 # **JSON example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001322 #
1323 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001324 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001325 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001326 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1327 # &quot;members&quot;: [
1328 # &quot;user:mike@example.com&quot;,
1329 # &quot;group:admins@example.com&quot;,
1330 # &quot;domain:google.com&quot;,
1331 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001332 # ]
1333 # },
1334 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001335 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
1336 # &quot;members&quot;: [
1337 # &quot;user:eve@example.com&quot;
1338 # ],
1339 # &quot;condition&quot;: {
1340 # &quot;title&quot;: &quot;expirable access&quot;,
1341 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1342 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001343 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001344 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07001345 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001346 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1347 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001348 # }
1349 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001350 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001351 #
1352 # bindings:
1353 # - members:
1354 # - user:mike@example.com
1355 # - group:admins@example.com
1356 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07001357 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1358 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001359 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07001360 # - user:eve@example.com
1361 # role: roles/resourcemanager.organizationViewer
1362 # condition:
1363 # title: expirable access
1364 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07001365 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07001366 # - etag: BwWWja0YfJA=
1367 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001368 #
1369 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -07001370 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001371 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1372 { # Specifies the audit configuration for a service.
1373 # The configuration determines which permission types are logged, and what
1374 # identities, if any, are exempted from logging.
1375 # An AuditConfig must have one or more AuditLogConfigs.
1376 #
1377 # If there are AuditConfigs for both `allServices` and a specific service,
1378 # the union of the two AuditConfigs is used for that service: the log_types
1379 # specified in each AuditConfig are enabled, and the exempted_members in each
1380 # AuditLogConfig are exempted.
1381 #
1382 # Example Policy with multiple AuditConfigs:
1383 #
1384 # {
1385 # &quot;audit_configs&quot;: [
1386 # {
1387 # &quot;service&quot;: &quot;allServices&quot;,
1388 # &quot;audit_log_configs&quot;: [
1389 # {
1390 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1391 # &quot;exempted_members&quot;: [
1392 # &quot;user:jose@example.com&quot;
1393 # ]
1394 # },
1395 # {
1396 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
1397 # },
1398 # {
1399 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
1400 # }
1401 # ]
1402 # },
1403 # {
1404 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
1405 # &quot;audit_log_configs&quot;: [
1406 # {
1407 # &quot;log_type&quot;: &quot;DATA_READ&quot;
1408 # },
1409 # {
1410 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1411 # &quot;exempted_members&quot;: [
1412 # &quot;user:aliya@example.com&quot;
1413 # ]
1414 # }
1415 # ]
1416 # }
1417 # ]
1418 # }
1419 #
1420 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1421 # logging. It also exempts jose@example.com from DATA_READ logging, and
1422 # aliya@example.com from DATA_WRITE logging.
1423 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
1424 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1425 # `allServices` is a special value that covers all services.
1426 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1427 { # Provides the configuration for logging a type of permissions.
1428 # Example:
1429 #
1430 # {
1431 # &quot;audit_log_configs&quot;: [
1432 # {
1433 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1434 # &quot;exempted_members&quot;: [
1435 # &quot;user:jose@example.com&quot;
1436 # ]
1437 # },
1438 # {
1439 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
1440 # }
1441 # ]
1442 # }
1443 #
1444 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
1445 # jose@example.com from DATA_READ logging.
1446 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1447 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1448 # permission.
1449 # Follows the same format of Binding.members.
1450 &quot;A String&quot;,
1451 ],
1452 },
1453 ],
1454 },
1455 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001456 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
1457 # `condition` that determines how and when the `bindings` are applied. Each
1458 # of the `bindings` must contain at least one member.
1459 { # Associates `members` with a `role`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001460 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
1461 # `members` can have the following values:
1462 #
1463 # * `allUsers`: A special identifier that represents anyone who is
1464 # on the internet; with or without a Google account.
1465 #
1466 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1467 # who is authenticated with a Google account or a service account.
1468 #
1469 # * `user:{emailid}`: An email address that represents a specific Google
1470 # account. For example, `alice@example.com` .
1471 #
1472 #
1473 # * `serviceAccount:{emailid}`: An email address that represents a service
1474 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1475 #
1476 # * `group:{emailid}`: An email address that represents a Google group.
1477 # For example, `admins@example.com`.
1478 #
1479 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1480 # identifier) representing a user that has been recently deleted. For
1481 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1482 # recovered, this value reverts to `user:{emailid}` and the recovered user
1483 # retains the role in the binding.
1484 #
1485 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1486 # unique identifier) representing a service account that has been recently
1487 # deleted. For example,
1488 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1489 # If the service account is undeleted, this value reverts to
1490 # `serviceAccount:{emailid}` and the undeleted service account retains the
1491 # role in the binding.
1492 #
1493 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1494 # identifier) representing a Google group that has been recently
1495 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1496 # the group is recovered, this value reverts to `group:{emailid}` and the
1497 # recovered group retains the role in the binding.
1498 #
1499 #
1500 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1501 # users of that domain. For example, `google.com` or `example.com`.
1502 #
1503 &quot;A String&quot;,
1504 ],
1505 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1506 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001507 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1508 #
1509 # If the condition evaluates to `true`, then this binding applies to the
1510 # current request.
1511 #
1512 # If the condition evaluates to `false`, then this binding does not apply to
1513 # the current request. However, a different role binding might grant the same
1514 # role to one or more of the members in this binding.
1515 #
1516 # To learn which resources support conditions in their IAM policies, see the
1517 # [IAM
1518 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1519 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1520 # are documented at https://github.com/google/cel-spec.
1521 #
1522 # Example (Comparison):
1523 #
1524 # title: &quot;Summary size limit&quot;
1525 # description: &quot;Determines if a summary is less than 100 chars&quot;
1526 # expression: &quot;document.summary.size() &lt; 100&quot;
1527 #
1528 # Example (Equality):
1529 #
1530 # title: &quot;Requestor is owner&quot;
1531 # description: &quot;Determines if requestor is the document owner&quot;
1532 # expression: &quot;document.owner == request.auth.claims.email&quot;
1533 #
1534 # Example (Logic):
1535 #
1536 # title: &quot;Public documents&quot;
1537 # description: &quot;Determine whether the document should be publicly visible&quot;
1538 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1539 #
1540 # Example (Data Manipulation):
1541 #
1542 # title: &quot;Notification string&quot;
1543 # description: &quot;Create a notification string with a timestamp.&quot;
1544 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1545 #
1546 # The exact variables and functions that may be referenced within an expression
1547 # are determined by the service that evaluates it. See the service
1548 # documentation for additional information.
1549 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1550 # reporting, e.g. a file name and a position in the file.
1551 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1552 # syntax.
1553 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1554 # its purpose. This can be used e.g. in UIs which allow to enter the
1555 # expression.
1556 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1557 # describes the expression, e.g. when hovered over it in a UI.
1558 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001559 },
1560 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001561 &quot;version&quot;: 42, # Specifies the format of the policy.
Dan O'Mearadd494642020-05-01 07:42:23 -07001562 #
1563 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1564 # are rejected.
1565 #
1566 # Any operation that affects conditional role bindings must specify version
1567 # `3`. This requirement applies to the following operations:
1568 #
1569 # * Getting a policy that includes a conditional role binding
1570 # * Adding a conditional role binding to a policy
1571 # * Changing a conditional role binding in a policy
1572 # * Removing any role binding, with or without a condition, from a policy
1573 # that includes conditions
1574 #
1575 # **Important:** If you use IAM Conditions, you must include the `etag` field
1576 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1577 # you to overwrite a version `3` policy with a version `1` policy, and all of
1578 # the conditions in the version `3` policy are lost.
1579 #
1580 # If a policy does not include any conditions, operations on that policy may
1581 # specify any valid version or leave the field unset.
Bu Sun Kim65020912020-05-20 12:08:20 -07001582 #
1583 # To learn which resources support conditions in their IAM policies, see the
1584 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001585 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1586 # prevent simultaneous updates of a policy from overwriting each other.
1587 # It is strongly suggested that systems make use of the `etag` in the
1588 # read-modify-write cycle to perform policy updates in order to avoid race
1589 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1590 # systems are expected to put that etag in the request to `setIamPolicy` to
1591 # ensure that their change will be applied to the same version of the policy.
1592 #
1593 # **Important:** If you use IAM Conditions, you must include the `etag` field
1594 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1595 # you to overwrite a version `3` policy with a version `1` policy, and all of
1596 # the conditions in the version `3` policy are lost.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001597 }</pre>
1598</div>
1599
1600<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001601 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001602 <pre>Returns permissions that a caller has on the specified Folder.
Bu Sun Kim65020912020-05-20 12:08:20 -07001603The `resource` field should be the Folder&#x27;s resource name,
1604e.g. &quot;folders/1234&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001605
1606There are no permissions required for making this API call.
1607
1608Args:
1609 resource: string, REQUIRED: The resource for which the policy detail is being requested.
1610See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001611 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001612 The object takes the form of:
1613
1614{ # Request message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001615 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with
1616 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001617 # information see
1618 # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
Bu Sun Kim65020912020-05-20 12:08:20 -07001619 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001620 ],
1621 }
1622
1623 x__xgafv: string, V1 error format.
1624 Allowed values
1625 1 - v1 error format
1626 2 - v2 error format
1627
1628Returns:
1629 An object of the form:
1630
1631 { # Response message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001632 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001633 # allowed.
Bu Sun Kim65020912020-05-20 12:08:20 -07001634 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001635 ],
1636 }</pre>
1637</div>
1638
1639<div class="method">
1640 <code class="details" id="undelete">undelete(name, body=None, x__xgafv=None)</code>
1641 <pre>Cancels the deletion request for a Folder. This method may only be
1642called on a Folder in the
1643DELETE_REQUESTED state.
Bu Sun Kim65020912020-05-20 12:08:20 -07001644In order to succeed, the Folder&#x27;s parent must be in the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001645ACTIVE state.
1646In addition, reintroducing the folder into the tree must not violate
1647folder naming, height and fanout constraints described in the
1648CreateFolder documentation.
1649The caller must have `resourcemanager.folders.undelete` permission on the
1650identified folder.
1651
1652Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001653 name: string, Required. The resource name of the Folder to undelete.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001654Must be of the form `folders/{folder_id}`. (required)
1655 body: object, The request body.
1656 The object takes the form of:
1657
1658{ # The UndeleteFolder request message.
1659 }
1660
1661 x__xgafv: string, V1 error format.
1662 Allowed values
1663 1 - v1 error format
1664 2 - v2 error format
1665
1666Returns:
1667 An object of the form:
1668
Bu Sun Kim65020912020-05-20 12:08:20 -07001669 { # A Folder in an Organization&#x27;s resource hierarchy, used to
1670 # organize that Organization&#x27;s resources.
Bu Sun Kim65020912020-05-20 12:08:20 -07001671 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Folder.
1672 # Its format is `folders/{folder_id}`, for example: &quot;folders/1234&quot;.
1673 &quot;displayName&quot;: &quot;A String&quot;, # The folder’s display name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001674 # A folder’s display name must be unique amongst its siblings, e.g.
1675 # no two folders with the same parent can share the same display name.
1676 # The display name must start and end with a letter or digit, may contain
1677 # letters, digits, spaces, hyphens and underscores and can be no longer
1678 # than 30 characters. This is captured by the regular expression:
1679 # [\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001680 &quot;lifecycleState&quot;: &quot;A String&quot;, # Output only. The lifecycle state of the folder.
1681 # Updates to the lifecycle_state must be performed via
1682 # DeleteFolder and
1683 # UndeleteFolder.
1684 &quot;parent&quot;: &quot;A String&quot;, # Required. The Folder’s parent&#x27;s resource name.
1685 # Updates to the folder&#x27;s parent must be performed via
1686 # MoveFolder.
1687 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the Folder was created. Assigned by the server.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001688 }</pre>
1689</div>
1690
1691</body></html>