blob: 6b5faf80d8e49bd7c8c733d4ab79cbe8207802b3 [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 Kim65020912020-05-20 12:08:20 -070090 <code><a href="#list">list(pageToken=None, pageSize=None, parent=None, showDeleted=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 Kim4ed7d3f2020-05-27 12:20:54 -0700153 &quot;parent&quot;: &quot;A String&quot;, # Required. The Folder’s parent&#x27;s resource name.
154 # Updates to the folder&#x27;s parent must be performed via
155 # MoveFolder.
156 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the Folder was created. Assigned by the server.
Bu Sun Kim65020912020-05-20 12:08:20 -0700157 &quot;lifecycleState&quot;: &quot;A String&quot;, # Output only. The lifecycle state of the folder.
Dan O'Mearadd494642020-05-01 07:42:23 -0700158 # Updates to the lifecycle_state must be performed via
159 # DeleteFolder and
160 # UndeleteFolder.
Bu Sun Kim65020912020-05-20 12:08:20 -0700161 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Folder.
162 # Its format is `folders/{folder_id}`, for example: &quot;folders/1234&quot;.
163 &quot;displayName&quot;: &quot;A String&quot;, # The folder’s display name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700164 # A folder’s display name must be unique amongst its siblings, e.g.
165 # no two folders with the same parent can share the same display name.
166 # The display name must start and end with a letter or digit, may contain
167 # letters, digits, spaces, hyphens and underscores and can be no longer
168 # than 30 characters. This is captured by the regular expression:
169 # [\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?.
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 Kim65020912020-05-20 12:08:20 -0700184 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
185 # If `true`, the operation is completed, and either `error` or `response` is
186 # available.
187 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700188 # method returns no data on success, such as `Delete`, the response is
189 # `google.protobuf.Empty`. If the original method is standard
190 # `Get`/`Create`/`Update`, the response should be the resource. For other
191 # methods, the response should have the type `XxxResponse`, where `Xxx`
192 # is the original method name. For example, if the original method name
193 # is `TakeSnapshot()`, the inferred response type is
194 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700195 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700196 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700197 &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 -0700198 # originally returns it. If you use the default HTTP mapping, the
199 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700200 &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 -0700201 # different programming environments, including REST APIs and RPC APIs. It is
202 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
203 # three pieces of data: error code, error message, and error details.
204 #
205 # You can find out more about this error model and how to work with it in the
206 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700207 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
208 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700209 # user-facing error message should be localized and sent in the
210 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -0700211 &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 -0700212 # message types for APIs to use.
213 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700214 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700215 },
216 ],
217 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700218 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
219 # contains progress information and common metadata such as create time.
220 # Some services might not provide such metadata. Any method that returns a
221 # long-running operation should document the metadata type, if any.
222 &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 Kim4ed7d3f2020-05-27 12:20:54 -0700252 &quot;parent&quot;: &quot;A String&quot;, # Required. The Folder’s parent&#x27;s resource name.
253 # Updates to the folder&#x27;s parent must be performed via
254 # MoveFolder.
255 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the Folder was created. Assigned by the server.
Bu Sun Kim65020912020-05-20 12:08:20 -0700256 &quot;lifecycleState&quot;: &quot;A String&quot;, # Output only. The lifecycle state of the folder.
Dan O'Mearadd494642020-05-01 07:42:23 -0700257 # Updates to the lifecycle_state must be performed via
258 # DeleteFolder and
259 # UndeleteFolder.
Bu Sun Kim65020912020-05-20 12:08:20 -0700260 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Folder.
261 # Its format is `folders/{folder_id}`, for example: &quot;folders/1234&quot;.
262 &quot;displayName&quot;: &quot;A String&quot;, # The folder’s display name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700263 # A folder’s display name must be unique amongst its siblings, e.g.
264 # no two folders with the same parent can share the same display name.
265 # The display name must start and end with a letter or digit, may contain
266 # letters, digits, spaces, hyphens and underscores and can be no longer
267 # than 30 characters. This is captured by the regular expression:
268 # [\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?.
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 Kim4ed7d3f2020-05-27 12:20:54 -0700293 &quot;parent&quot;: &quot;A String&quot;, # Required. The Folder’s parent&#x27;s resource name.
294 # Updates to the folder&#x27;s parent must be performed via
295 # MoveFolder.
296 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the Folder was created. Assigned by the server.
Bu Sun Kim65020912020-05-20 12:08:20 -0700297 &quot;lifecycleState&quot;: &quot;A String&quot;, # Output only. The lifecycle state of the folder.
Dan O'Mearadd494642020-05-01 07:42:23 -0700298 # Updates to the lifecycle_state must be performed via
299 # DeleteFolder and
300 # UndeleteFolder.
Bu Sun Kim65020912020-05-20 12:08:20 -0700301 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Folder.
302 # Its format is `folders/{folder_id}`, for example: &quot;folders/1234&quot;.
303 &quot;displayName&quot;: &quot;A String&quot;, # The folder’s display name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700304 # A folder’s display name must be unique amongst its siblings, e.g.
305 # no two folders with the same parent can share the same display name.
306 # The display name must start and end with a letter or digit, may contain
307 # letters, digits, spaces, hyphens and underscores and can be no longer
308 # than 30 characters. This is captured by the regular expression:
309 # [\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?.
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 Kim4ed7d3f2020-05-27 12:20:54 -0700420 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
421 # `condition` that determines how and when the `bindings` are applied. Each
422 # of the `bindings` must contain at least one member.
423 { # Associates `members` with a `role`.
424 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
425 #
426 # If the condition evaluates to `true`, then this binding applies to the
427 # current request.
428 #
429 # If the condition evaluates to `false`, then this binding does not apply to
430 # the current request. However, a different role binding might grant the same
431 # role to one or more of the members in this binding.
432 #
433 # To learn which resources support conditions in their IAM policies, see the
434 # [IAM
435 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
436 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
437 # are documented at https://github.com/google/cel-spec.
438 #
439 # Example (Comparison):
440 #
441 # title: &quot;Summary size limit&quot;
442 # description: &quot;Determines if a summary is less than 100 chars&quot;
443 # expression: &quot;document.summary.size() &lt; 100&quot;
444 #
445 # Example (Equality):
446 #
447 # title: &quot;Requestor is owner&quot;
448 # description: &quot;Determines if requestor is the document owner&quot;
449 # expression: &quot;document.owner == request.auth.claims.email&quot;
450 #
451 # Example (Logic):
452 #
453 # title: &quot;Public documents&quot;
454 # description: &quot;Determine whether the document should be publicly visible&quot;
455 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
456 #
457 # Example (Data Manipulation):
458 #
459 # title: &quot;Notification string&quot;
460 # description: &quot;Create a notification string with a timestamp.&quot;
461 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
462 #
463 # The exact variables and functions that may be referenced within an expression
464 # are determined by the service that evaluates it. See the service
465 # documentation for additional information.
466 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
467 # its purpose. This can be used e.g. in UIs which allow to enter the
468 # expression.
469 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
470 # reporting, e.g. a file name and a position in the file.
471 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
472 # describes the expression, e.g. when hovered over it in a UI.
473 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
474 # syntax.
475 },
476 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
477 # `members` can have the following values:
478 #
479 # * `allUsers`: A special identifier that represents anyone who is
480 # on the internet; with or without a Google account.
481 #
482 # * `allAuthenticatedUsers`: A special identifier that represents anyone
483 # who is authenticated with a Google account or a service account.
484 #
485 # * `user:{emailid}`: An email address that represents a specific Google
486 # account. For example, `alice@example.com` .
487 #
488 #
489 # * `serviceAccount:{emailid}`: An email address that represents a service
490 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
491 #
492 # * `group:{emailid}`: An email address that represents a Google group.
493 # For example, `admins@example.com`.
494 #
495 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
496 # identifier) representing a user that has been recently deleted. For
497 # example, `alice@example.com?uid=123456789012345678901`. If the user is
498 # recovered, this value reverts to `user:{emailid}` and the recovered user
499 # retains the role in the binding.
500 #
501 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
502 # unique identifier) representing a service account that has been recently
503 # deleted. For example,
504 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
505 # If the service account is undeleted, this value reverts to
506 # `serviceAccount:{emailid}` and the undeleted service account retains the
507 # role in the binding.
508 #
509 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
510 # identifier) representing a Google group that has been recently
511 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
512 # the group is recovered, this value reverts to `group:{emailid}` and the
513 # recovered group retains the role in the binding.
514 #
515 #
516 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
517 # users of that domain. For example, `google.com` or `example.com`.
518 #
519 &quot;A String&quot;,
520 ],
521 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
522 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
523 },
524 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700525 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
526 # prevent simultaneous updates of a policy from overwriting each other.
527 # It is strongly suggested that systems make use of the `etag` in the
528 # read-modify-write cycle to perform policy updates in order to avoid race
529 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
530 # systems are expected to put that etag in the request to `setIamPolicy` to
531 # ensure that their change will be applied to the same version of the policy.
532 #
533 # **Important:** If you use IAM Conditions, you must include the `etag` field
534 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
535 # you to overwrite a version `3` policy with a version `1` policy, and all of
536 # the conditions in the version `3` policy are lost.
537 &quot;version&quot;: 42, # Specifies the format of the policy.
Dan O'Mearadd494642020-05-01 07:42:23 -0700538 #
539 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
540 # are rejected.
541 #
542 # Any operation that affects conditional role bindings must specify version
543 # `3`. This requirement applies to the following operations:
544 #
545 # * Getting a policy that includes a conditional role binding
546 # * Adding a conditional role binding to a policy
547 # * Changing a conditional role binding in a policy
548 # * Removing any role binding, with or without a condition, from a policy
549 # that includes conditions
550 #
551 # **Important:** If you use IAM Conditions, you must include the `etag` field
552 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
553 # you to overwrite a version `3` policy with a version `1` policy, and all of
554 # the conditions in the version `3` policy are lost.
555 #
556 # If a policy does not include any conditions, operations on that policy may
557 # specify any valid version or leave the field unset.
Bu Sun Kim65020912020-05-20 12:08:20 -0700558 #
559 # To learn which resources support conditions in their IAM policies, see the
560 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
561 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
562 { # Specifies the audit configuration for a service.
563 # The configuration determines which permission types are logged, and what
564 # identities, if any, are exempted from logging.
565 # An AuditConfig must have one or more AuditLogConfigs.
566 #
567 # If there are AuditConfigs for both `allServices` and a specific service,
568 # the union of the two AuditConfigs is used for that service: the log_types
569 # specified in each AuditConfig are enabled, and the exempted_members in each
570 # AuditLogConfig are exempted.
571 #
572 # Example Policy with multiple AuditConfigs:
573 #
574 # {
575 # &quot;audit_configs&quot;: [
576 # {
577 # &quot;service&quot;: &quot;allServices&quot;
578 # &quot;audit_log_configs&quot;: [
579 # {
580 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
581 # &quot;exempted_members&quot;: [
582 # &quot;user:jose@example.com&quot;
583 # ]
584 # },
585 # {
586 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
587 # },
588 # {
589 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
590 # }
591 # ]
592 # },
593 # {
594 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
595 # &quot;audit_log_configs&quot;: [
596 # {
597 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
598 # },
599 # {
600 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
601 # &quot;exempted_members&quot;: [
602 # &quot;user:aliya@example.com&quot;
603 # ]
604 # }
605 # ]
606 # }
607 # ]
608 # }
609 #
610 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
611 # logging. It also exempts jose@example.com from DATA_READ logging, and
612 # aliya@example.com from DATA_WRITE logging.
613 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
614 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
615 # `allServices` is a special value that covers all services.
616 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
617 { # Provides the configuration for logging a type of permissions.
618 # Example:
619 #
620 # {
621 # &quot;audit_log_configs&quot;: [
622 # {
623 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
624 # &quot;exempted_members&quot;: [
625 # &quot;user:jose@example.com&quot;
626 # ]
627 # },
628 # {
629 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
630 # }
631 # ]
632 # }
633 #
634 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
635 # jose@example.com from DATA_READ logging.
636 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
637 # permission.
638 # Follows the same format of Binding.members.
639 &quot;A String&quot;,
640 ],
641 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
642 },
643 ],
644 },
645 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700646 }</pre>
647</div>
648
649<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700650 <code class="details" id="list">list(pageToken=None, pageSize=None, parent=None, showDeleted=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 Kim65020912020-05-20 12:08:20 -0700660 pageToken: string, Optional. A pagination token returned from a previous call to `ListFolders`
661that indicates where this listing should continue from.
662 pageSize: integer, Optional. The maximum number of Folders to return in the response.
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`.
Dan O'Mearadd494642020-05-01 07:42:23 -0700668 showDeleted: boolean, Optional. Controls whether Folders in the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700669DELETE_REQUESTED
Dan O'Mearadd494642020-05-01 07:42:23 -0700670state should be returned. Defaults to false.
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 Kim65020912020-05-20 12:08:20 -0700680 &quot;folders&quot;: [ # A possibly paginated list of Folders that are direct descendants of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700681 # the specified parent resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700682 { # A Folder in an Organization&#x27;s resource hierarchy, used to
683 # organize that Organization&#x27;s resources.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700684 &quot;parent&quot;: &quot;A String&quot;, # Required. The Folder’s parent&#x27;s resource name.
685 # Updates to the folder&#x27;s parent must be performed via
686 # MoveFolder.
687 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the Folder was created. Assigned by the server.
Bu Sun Kim65020912020-05-20 12:08:20 -0700688 &quot;lifecycleState&quot;: &quot;A String&quot;, # Output only. The lifecycle state of the folder.
Dan O'Mearadd494642020-05-01 07:42:23 -0700689 # Updates to the lifecycle_state must be performed via
690 # DeleteFolder and
691 # UndeleteFolder.
Bu Sun Kim65020912020-05-20 12:08:20 -0700692 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Folder.
693 # Its format is `folders/{folder_id}`, for example: &quot;folders/1234&quot;.
694 &quot;displayName&quot;: &quot;A String&quot;, # The folder’s display name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700695 # A folder’s display name must be unique amongst its siblings, e.g.
696 # no two folders with the same parent can share the same display name.
697 # The display name must start and end with a letter or digit, may contain
698 # letters, digits, spaces, hyphens and underscores and can be no longer
699 # than 30 characters. This is captured by the regular expression:
700 # [\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700701 },
702 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700703 &quot;nextPageToken&quot;: &quot;A String&quot;, # A pagination token returned from a previous call to `ListFolders`
704 # that indicates from where listing should continue.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700705 }</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 Kim65020912020-05-20 12:08:20 -0700764 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
765 # If `true`, the operation is completed, and either `error` or `response` is
766 # available.
767 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700768 # method returns no data on success, such as `Delete`, the response is
769 # `google.protobuf.Empty`. If the original method is standard
770 # `Get`/`Create`/`Update`, the response should be the resource. For other
771 # methods, the response should have the type `XxxResponse`, where `Xxx`
772 # is the original method name. For example, if the original method name
773 # is `TakeSnapshot()`, the inferred response type is
774 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700775 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700776 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700777 &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 -0700778 # originally returns it. If you use the default HTTP mapping, the
779 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700780 &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 -0700781 # different programming environments, including REST APIs and RPC APIs. It is
782 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
783 # three pieces of data: error code, error message, and error details.
784 #
785 # You can find out more about this error model and how to work with it in the
786 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700787 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
788 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700789 # user-facing error message should be localized and sent in the
790 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -0700791 &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 -0700792 # message types for APIs to use.
793 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700794 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700795 },
796 ],
797 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700798 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
799 # contains progress information and common metadata such as create time.
800 # Some services might not provide such metadata. Any method that returns a
801 # long-running operation should document the metadata type, if any.
802 &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 Kim4ed7d3f2020-05-27 12:20:54 -0700833 &quot;parent&quot;: &quot;A String&quot;, # Required. The Folder’s parent&#x27;s resource name.
834 # Updates to the folder&#x27;s parent must be performed via
835 # MoveFolder.
836 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the Folder was created. Assigned by the server.
Bu Sun Kim65020912020-05-20 12:08:20 -0700837 &quot;lifecycleState&quot;: &quot;A String&quot;, # Output only. The lifecycle state of the folder.
Dan O'Mearadd494642020-05-01 07:42:23 -0700838 # Updates to the lifecycle_state must be performed via
839 # DeleteFolder and
840 # UndeleteFolder.
Bu Sun Kim65020912020-05-20 12:08:20 -0700841 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Folder.
842 # Its format is `folders/{folder_id}`, for example: &quot;folders/1234&quot;.
843 &quot;displayName&quot;: &quot;A String&quot;, # The folder’s display name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700844 # A folder’s display name must be unique amongst its siblings, e.g.
845 # no two folders with the same parent can share the same display name.
846 # The display name must start and end with a letter or digit, may contain
847 # letters, digits, spaces, hyphens and underscores and can be no longer
848 # than 30 characters. This is captured by the regular expression:
849 # [\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?.
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 Kim4ed7d3f2020-05-27 12:20:54 -0700864 &quot;parent&quot;: &quot;A String&quot;, # Required. The Folder’s parent&#x27;s resource name.
865 # Updates to the folder&#x27;s parent must be performed via
866 # MoveFolder.
867 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the Folder was created. Assigned by the server.
Bu Sun Kim65020912020-05-20 12:08:20 -0700868 &quot;lifecycleState&quot;: &quot;A String&quot;, # Output only. The lifecycle state of the folder.
Dan O'Mearadd494642020-05-01 07:42:23 -0700869 # Updates to the lifecycle_state must be performed via
870 # DeleteFolder and
871 # UndeleteFolder.
Bu Sun Kim65020912020-05-20 12:08:20 -0700872 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Folder.
873 # Its format is `folders/{folder_id}`, for example: &quot;folders/1234&quot;.
874 &quot;displayName&quot;: &quot;A String&quot;, # The folder’s display name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700875 # A folder’s display name must be unique amongst its siblings, e.g.
876 # no two folders with the same parent can share the same display name.
877 # The display name must start and end with a letter or digit, may contain
878 # letters, digits, spaces, hyphens and underscores and can be no longer
879 # than 30 characters. This is captured by the regular expression:
880 # [\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?.
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 Kim65020912020-05-20 12:08:20 -0700898 &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 -0700899 # that indicates from where search should continue.
Bu Sun Kim65020912020-05-20 12:08:20 -0700900 &quot;pageSize&quot;: 42, # Optional. The maximum number of folders to return in the response.
901 &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 Kim4ed7d3f2020-05-27 12:20:54 -0700939 &quot;parent&quot;: &quot;A String&quot;, # Required. The Folder’s parent&#x27;s resource name.
940 # Updates to the folder&#x27;s parent must be performed via
941 # MoveFolder.
942 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the Folder was created. Assigned by the server.
Bu Sun Kim65020912020-05-20 12:08:20 -0700943 &quot;lifecycleState&quot;: &quot;A String&quot;, # Output only. The lifecycle state of the folder.
Dan O'Mearadd494642020-05-01 07:42:23 -0700944 # Updates to the lifecycle_state must be performed via
945 # DeleteFolder and
946 # UndeleteFolder.
Bu Sun Kim65020912020-05-20 12:08:20 -0700947 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Folder.
948 # Its format is `folders/{folder_id}`, for example: &quot;folders/1234&quot;.
949 &quot;displayName&quot;: &quot;A String&quot;, # The folder’s display name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700950 # A folder’s display name must be unique amongst its siblings, e.g.
951 # no two folders with the same parent can share the same display name.
952 # The display name must start and end with a letter or digit, may contain
953 # letters, digits, spaces, hyphens and underscores and can be no longer
954 # than 30 characters. This is captured by the regular expression:
955 # [\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?.
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 Kim4ed7d3f2020-05-27 12:20:54 -07001062 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
1063 # `condition` that determines how and when the `bindings` are applied. Each
1064 # of the `bindings` must contain at least one member.
1065 { # Associates `members` with a `role`.
1066 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1067 #
1068 # If the condition evaluates to `true`, then this binding applies to the
1069 # current request.
1070 #
1071 # If the condition evaluates to `false`, then this binding does not apply to
1072 # the current request. However, a different role binding might grant the same
1073 # role to one or more of the members in this binding.
1074 #
1075 # To learn which resources support conditions in their IAM policies, see the
1076 # [IAM
1077 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1078 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1079 # are documented at https://github.com/google/cel-spec.
1080 #
1081 # Example (Comparison):
1082 #
1083 # title: &quot;Summary size limit&quot;
1084 # description: &quot;Determines if a summary is less than 100 chars&quot;
1085 # expression: &quot;document.summary.size() &lt; 100&quot;
1086 #
1087 # Example (Equality):
1088 #
1089 # title: &quot;Requestor is owner&quot;
1090 # description: &quot;Determines if requestor is the document owner&quot;
1091 # expression: &quot;document.owner == request.auth.claims.email&quot;
1092 #
1093 # Example (Logic):
1094 #
1095 # title: &quot;Public documents&quot;
1096 # description: &quot;Determine whether the document should be publicly visible&quot;
1097 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1098 #
1099 # Example (Data Manipulation):
1100 #
1101 # title: &quot;Notification string&quot;
1102 # description: &quot;Create a notification string with a timestamp.&quot;
1103 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1104 #
1105 # The exact variables and functions that may be referenced within an expression
1106 # are determined by the service that evaluates it. See the service
1107 # documentation for additional information.
1108 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1109 # its purpose. This can be used e.g. in UIs which allow to enter the
1110 # expression.
1111 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1112 # reporting, e.g. a file name and a position in the file.
1113 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1114 # describes the expression, e.g. when hovered over it in a UI.
1115 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1116 # syntax.
1117 },
1118 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
1119 # `members` can have the following values:
1120 #
1121 # * `allUsers`: A special identifier that represents anyone who is
1122 # on the internet; with or without a Google account.
1123 #
1124 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1125 # who is authenticated with a Google account or a service account.
1126 #
1127 # * `user:{emailid}`: An email address that represents a specific Google
1128 # account. For example, `alice@example.com` .
1129 #
1130 #
1131 # * `serviceAccount:{emailid}`: An email address that represents a service
1132 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1133 #
1134 # * `group:{emailid}`: An email address that represents a Google group.
1135 # For example, `admins@example.com`.
1136 #
1137 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1138 # identifier) representing a user that has been recently deleted. For
1139 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1140 # recovered, this value reverts to `user:{emailid}` and the recovered user
1141 # retains the role in the binding.
1142 #
1143 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1144 # unique identifier) representing a service account that has been recently
1145 # deleted. For example,
1146 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1147 # If the service account is undeleted, this value reverts to
1148 # `serviceAccount:{emailid}` and the undeleted service account retains the
1149 # role in the binding.
1150 #
1151 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1152 # identifier) representing a Google group that has been recently
1153 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1154 # the group is recovered, this value reverts to `group:{emailid}` and the
1155 # recovered group retains the role in the binding.
1156 #
1157 #
1158 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1159 # users of that domain. For example, `google.com` or `example.com`.
1160 #
1161 &quot;A String&quot;,
1162 ],
1163 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1164 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1165 },
1166 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001167 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1168 # prevent simultaneous updates of a policy from overwriting each other.
1169 # It is strongly suggested that systems make use of the `etag` in the
1170 # read-modify-write cycle to perform policy updates in order to avoid race
1171 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1172 # systems are expected to put that etag in the request to `setIamPolicy` to
1173 # ensure that their change will be applied to the same version of the policy.
1174 #
1175 # **Important:** If you use IAM Conditions, you must include the `etag` field
1176 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1177 # you to overwrite a version `3` policy with a version `1` policy, and all of
1178 # the conditions in the version `3` policy are lost.
1179 &quot;version&quot;: 42, # Specifies the format of the policy.
Dan O'Mearadd494642020-05-01 07:42:23 -07001180 #
1181 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1182 # are rejected.
1183 #
1184 # Any operation that affects conditional role bindings must specify version
1185 # `3`. This requirement applies to the following operations:
1186 #
1187 # * Getting a policy that includes a conditional role binding
1188 # * Adding a conditional role binding to a policy
1189 # * Changing a conditional role binding in a policy
1190 # * Removing any role binding, with or without a condition, from a policy
1191 # that includes conditions
1192 #
1193 # **Important:** If you use IAM Conditions, you must include the `etag` field
1194 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1195 # you to overwrite a version `3` policy with a version `1` policy, and all of
1196 # the conditions in the version `3` policy are lost.
1197 #
1198 # If a policy does not include any conditions, operations on that policy may
1199 # specify any valid version or leave the field unset.
Bu Sun Kim65020912020-05-20 12:08:20 -07001200 #
1201 # To learn which resources support conditions in their IAM policies, see the
1202 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1203 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1204 { # Specifies the audit configuration for a service.
1205 # The configuration determines which permission types are logged, and what
1206 # identities, if any, are exempted from logging.
1207 # An AuditConfig must have one or more AuditLogConfigs.
1208 #
1209 # If there are AuditConfigs for both `allServices` and a specific service,
1210 # the union of the two AuditConfigs is used for that service: the log_types
1211 # specified in each AuditConfig are enabled, and the exempted_members in each
1212 # AuditLogConfig are exempted.
1213 #
1214 # Example Policy with multiple AuditConfigs:
1215 #
1216 # {
1217 # &quot;audit_configs&quot;: [
1218 # {
1219 # &quot;service&quot;: &quot;allServices&quot;
1220 # &quot;audit_log_configs&quot;: [
1221 # {
1222 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1223 # &quot;exempted_members&quot;: [
1224 # &quot;user:jose@example.com&quot;
1225 # ]
1226 # },
1227 # {
1228 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1229 # },
1230 # {
1231 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
1232 # }
1233 # ]
1234 # },
1235 # {
1236 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
1237 # &quot;audit_log_configs&quot;: [
1238 # {
1239 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1240 # },
1241 # {
1242 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1243 # &quot;exempted_members&quot;: [
1244 # &quot;user:aliya@example.com&quot;
1245 # ]
1246 # }
1247 # ]
1248 # }
1249 # ]
1250 # }
1251 #
1252 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1253 # logging. It also exempts jose@example.com from DATA_READ logging, and
1254 # aliya@example.com from DATA_WRITE logging.
1255 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
1256 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1257 # `allServices` is a special value that covers all services.
1258 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1259 { # Provides the configuration for logging a type of permissions.
1260 # Example:
1261 #
1262 # {
1263 # &quot;audit_log_configs&quot;: [
1264 # {
1265 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1266 # &quot;exempted_members&quot;: [
1267 # &quot;user:jose@example.com&quot;
1268 # ]
1269 # },
1270 # {
1271 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1272 # }
1273 # ]
1274 # }
1275 #
1276 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
1277 # jose@example.com from DATA_READ logging.
1278 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1279 # permission.
1280 # Follows the same format of Binding.members.
1281 &quot;A String&quot;,
1282 ],
1283 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1284 },
1285 ],
1286 },
1287 ],
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 Kim4ed7d3f2020-05-27 12:20:54 -07001371 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
1372 # `condition` that determines how and when the `bindings` are applied. Each
1373 # of the `bindings` must contain at least one member.
1374 { # Associates `members` with a `role`.
1375 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1376 #
1377 # If the condition evaluates to `true`, then this binding applies to the
1378 # current request.
1379 #
1380 # If the condition evaluates to `false`, then this binding does not apply to
1381 # the current request. However, a different role binding might grant the same
1382 # role to one or more of the members in this binding.
1383 #
1384 # To learn which resources support conditions in their IAM policies, see the
1385 # [IAM
1386 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1387 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1388 # are documented at https://github.com/google/cel-spec.
1389 #
1390 # Example (Comparison):
1391 #
1392 # title: &quot;Summary size limit&quot;
1393 # description: &quot;Determines if a summary is less than 100 chars&quot;
1394 # expression: &quot;document.summary.size() &lt; 100&quot;
1395 #
1396 # Example (Equality):
1397 #
1398 # title: &quot;Requestor is owner&quot;
1399 # description: &quot;Determines if requestor is the document owner&quot;
1400 # expression: &quot;document.owner == request.auth.claims.email&quot;
1401 #
1402 # Example (Logic):
1403 #
1404 # title: &quot;Public documents&quot;
1405 # description: &quot;Determine whether the document should be publicly visible&quot;
1406 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1407 #
1408 # Example (Data Manipulation):
1409 #
1410 # title: &quot;Notification string&quot;
1411 # description: &quot;Create a notification string with a timestamp.&quot;
1412 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1413 #
1414 # The exact variables and functions that may be referenced within an expression
1415 # are determined by the service that evaluates it. See the service
1416 # documentation for additional information.
1417 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1418 # its purpose. This can be used e.g. in UIs which allow to enter the
1419 # expression.
1420 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1421 # reporting, e.g. a file name and a position in the file.
1422 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1423 # describes the expression, e.g. when hovered over it in a UI.
1424 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1425 # syntax.
1426 },
1427 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
1428 # `members` can have the following values:
1429 #
1430 # * `allUsers`: A special identifier that represents anyone who is
1431 # on the internet; with or without a Google account.
1432 #
1433 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1434 # who is authenticated with a Google account or a service account.
1435 #
1436 # * `user:{emailid}`: An email address that represents a specific Google
1437 # account. For example, `alice@example.com` .
1438 #
1439 #
1440 # * `serviceAccount:{emailid}`: An email address that represents a service
1441 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1442 #
1443 # * `group:{emailid}`: An email address that represents a Google group.
1444 # For example, `admins@example.com`.
1445 #
1446 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1447 # identifier) representing a user that has been recently deleted. For
1448 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1449 # recovered, this value reverts to `user:{emailid}` and the recovered user
1450 # retains the role in the binding.
1451 #
1452 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1453 # unique identifier) representing a service account that has been recently
1454 # deleted. For example,
1455 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1456 # If the service account is undeleted, this value reverts to
1457 # `serviceAccount:{emailid}` and the undeleted service account retains the
1458 # role in the binding.
1459 #
1460 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1461 # identifier) representing a Google group that has been recently
1462 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1463 # the group is recovered, this value reverts to `group:{emailid}` and the
1464 # recovered group retains the role in the binding.
1465 #
1466 #
1467 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1468 # users of that domain. For example, `google.com` or `example.com`.
1469 #
1470 &quot;A String&quot;,
1471 ],
1472 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1473 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1474 },
1475 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001476 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1477 # prevent simultaneous updates of a policy from overwriting each other.
1478 # It is strongly suggested that systems make use of the `etag` in the
1479 # read-modify-write cycle to perform policy updates in order to avoid race
1480 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1481 # systems are expected to put that etag in the request to `setIamPolicy` to
1482 # ensure that their change will be applied to the same version of the policy.
1483 #
1484 # **Important:** If you use IAM Conditions, you must include the `etag` field
1485 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1486 # you to overwrite a version `3` policy with a version `1` policy, and all of
1487 # the conditions in the version `3` policy are lost.
1488 &quot;version&quot;: 42, # Specifies the format of the policy.
Dan O'Mearadd494642020-05-01 07:42:23 -07001489 #
1490 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1491 # are rejected.
1492 #
1493 # Any operation that affects conditional role bindings must specify version
1494 # `3`. This requirement applies to the following operations:
1495 #
1496 # * Getting a policy that includes a conditional role binding
1497 # * Adding a conditional role binding to a policy
1498 # * Changing a conditional role binding in a policy
1499 # * Removing any role binding, with or without a condition, from a policy
1500 # that includes conditions
1501 #
1502 # **Important:** If you use IAM Conditions, you must include the `etag` field
1503 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1504 # you to overwrite a version `3` policy with a version `1` policy, and all of
1505 # the conditions in the version `3` policy are lost.
1506 #
1507 # If a policy does not include any conditions, operations on that policy may
1508 # specify any valid version or leave the field unset.
Bu Sun Kim65020912020-05-20 12:08:20 -07001509 #
1510 # To learn which resources support conditions in their IAM policies, see the
1511 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1512 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1513 { # Specifies the audit configuration for a service.
1514 # The configuration determines which permission types are logged, and what
1515 # identities, if any, are exempted from logging.
1516 # An AuditConfig must have one or more AuditLogConfigs.
1517 #
1518 # If there are AuditConfigs for both `allServices` and a specific service,
1519 # the union of the two AuditConfigs is used for that service: the log_types
1520 # specified in each AuditConfig are enabled, and the exempted_members in each
1521 # AuditLogConfig are exempted.
1522 #
1523 # Example Policy with multiple AuditConfigs:
1524 #
1525 # {
1526 # &quot;audit_configs&quot;: [
1527 # {
1528 # &quot;service&quot;: &quot;allServices&quot;
1529 # &quot;audit_log_configs&quot;: [
1530 # {
1531 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1532 # &quot;exempted_members&quot;: [
1533 # &quot;user:jose@example.com&quot;
1534 # ]
1535 # },
1536 # {
1537 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1538 # },
1539 # {
1540 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
1541 # }
1542 # ]
1543 # },
1544 # {
1545 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
1546 # &quot;audit_log_configs&quot;: [
1547 # {
1548 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1549 # },
1550 # {
1551 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1552 # &quot;exempted_members&quot;: [
1553 # &quot;user:aliya@example.com&quot;
1554 # ]
1555 # }
1556 # ]
1557 # }
1558 # ]
1559 # }
1560 #
1561 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1562 # logging. It also exempts jose@example.com from DATA_READ logging, and
1563 # aliya@example.com from DATA_WRITE logging.
1564 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
1565 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1566 # `allServices` is a special value that covers all services.
1567 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1568 { # Provides the configuration for logging a type of permissions.
1569 # Example:
1570 #
1571 # {
1572 # &quot;audit_log_configs&quot;: [
1573 # {
1574 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1575 # &quot;exempted_members&quot;: [
1576 # &quot;user:jose@example.com&quot;
1577 # ]
1578 # },
1579 # {
1580 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1581 # }
1582 # ]
1583 # }
1584 #
1585 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
1586 # jose@example.com from DATA_READ logging.
1587 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1588 # permission.
1589 # Follows the same format of Binding.members.
1590 &quot;A String&quot;,
1591 ],
1592 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1593 },
1594 ],
1595 },
1596 ],
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 Kim4ed7d3f2020-05-27 12:20:54 -07001671 &quot;parent&quot;: &quot;A String&quot;, # Required. The Folder’s parent&#x27;s resource name.
1672 # Updates to the folder&#x27;s parent must be performed via
1673 # MoveFolder.
1674 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the Folder was created. Assigned by the server.
Bu Sun Kim65020912020-05-20 12:08:20 -07001675 &quot;lifecycleState&quot;: &quot;A String&quot;, # Output only. The lifecycle state of the folder.
Dan O'Mearadd494642020-05-01 07:42:23 -07001676 # Updates to the lifecycle_state must be performed via
1677 # DeleteFolder and
1678 # UndeleteFolder.
Bu Sun Kim65020912020-05-20 12:08:20 -07001679 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Folder.
1680 # Its format is `folders/{folder_id}`, for example: &quot;folders/1234&quot;.
1681 &quot;displayName&quot;: &quot;A String&quot;, # The folder’s display name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001682 # A folder’s display name must be unique amongst its siblings, e.g.
1683 # no two folders with the same parent can share the same display name.
1684 # The display name must start and end with a letter or digit, may contain
1685 # letters, digits, spaces, hyphens and underscores and can be no longer
1686 # than 30 characters. This is captured by the regular expression:
1687 # [\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001688 }</pre>
1689</div>
1690
1691</body></html>