Debian Codegraph @

docs/dyn/compute_alpha.regionInstantSnapshotGroups.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="compute_alpha.html">Compute Engine API</a> . <a href="compute_alpha.regionInstantSnapshotGroups.html">regionInstantSnapshotGroups</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#delete">delete(project, region, instantSnapshotGroup, requestId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">deletes a Regional InstantSnapshotGroup resource</p>
83 <p class="toc_element">
84 <code><a href="#get">get(project, region, instantSnapshotGroup, x__xgafv=None)</a></code></p>
85 <p class="firstline">returns the specified InstantSnapshotGroup resource in the specified</p>
86 <p class="toc_element">
87 <code><a href="#getIamPolicy">getIamPolicy(project, region, resource, optionsRequestedPolicyVersion=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets the access control policy for a resource. May be empty if no such</p>
89 <p class="toc_element">
90 <code><a href="#insert">insert(project, region, body=None, requestId=None, sourceConsistencyGroup=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">creates a Regional InstantSnapshotGroup resource</p>
92 <p class="toc_element">
93 <code><a href="#list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">retrieves the list of InstantSnapshotGroup resources contained within</p>
95 <p class="toc_element">
96 <code><a href="#list_next">list_next()</a></code></p>
97 <p class="firstline">Retrieves the next page of results.</p>
98 <p class="toc_element">
99 <code><a href="#setIamPolicy">setIamPolicy(project, region, resource, body=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">Sets the access control policy on the specified resource.</p>
101 <p class="toc_element">
102 <code><a href="#testIamPermissions">testIamPermissions(project, region, resource, body=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Returns permissions that a caller has on the specified resource.</p>
104 <h3>Method Details</h3>
105 <div class="method">
106 <code class="details" id="close">close()</code>
107 <pre>Close httplib2 connections.</pre>
108 </div>
109
110 <div class="method">
111 <code class="details" id="delete">delete(project, region, instantSnapshotGroup, requestId=None, x__xgafv=None)</code>
112 <pre>deletes a Regional InstantSnapshotGroup resource
113
114 Args:
115 project: string, Project ID for this request. (required)
116 region: string, The name of the region for this request. (required)
117 instantSnapshotGroup: string, Name of the InstantSnapshotGroup resource to delete. (required)
118 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
119 that if you must retry your request, the server will know to ignore the
120 request if it has already been completed.
121
122 For example, consider a situation where you make an initial request and
123 the request times out. If you make the request again with the same
124 request ID, the server can check if original operation with the same
125 request ID was received, and if so, will ignore the second request. This
126 prevents clients from accidentally creating duplicate commitments.
127
128 The request ID must be
129 a valid UUID with the exception that zero UUID is not supported
130 (00000000-0000-0000-0000-000000000000).
131 x__xgafv: string, V1 error format.
132 Allowed values
133 1 - v1 error format
134 2 - v2 error format
135
136 Returns:
137 An object of the form:
138
139 { # Represents an Operation resource.
140 #
141 # Google Compute Engine has three Operation resources:
142 #
143 # * [Global](/compute/docs/reference/rest/alpha/globalOperations)
144 # * [Regional](/compute/docs/reference/rest/alpha/regionOperations)
145 # * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations)
146 #
147 # You can use an operation resource to manage asynchronous API requests.
148 # For more information, readHandling
149 # API responses.
150 #
151 # Operations can be global, regional or zonal.
152 #
153 # - For global operations, use the `globalOperations`
154 # resource.
155 # - For regional operations, use the
156 # `regionOperations` resource.
157 # - For zonal operations, use
158 # the `zoneOperations` resource.
159 #
160 #
161 #
162 # For more information, read
163 # Global, Regional, and Zonal Resources.
164 #
165 # Note that completed Operation resources have a limited
166 # retention period.
167 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
168 # Not present otherwise.
169 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
170 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
171 # set when the operation is created.
172 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
173 # text format.
174 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
175 # this field will be populated.
176 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
177 # operation.
178 {
179 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
180 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
181 # details. There is a set of defined message types to use for providing
182 # details.The syntax depends on the error code. For example,
183 # QuotaExceededInfo will have details when the error code is
184 # QUOTA_EXCEEDED.
185 {
186 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
187 #
188 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
189 # is not enabled:
190 #
191 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
192 # &quot;domain&quot;: &quot;googleapis.com&quot;
193 # &quot;metadata&quot;: {
194 # &quot;resource&quot;: &quot;projects/123&quot;,
195 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
196 # }
197 # }
198 #
199 # This response indicates that the pubsub.googleapis.com API is not enabled.
200 #
201 # Example of an error that is returned when attempting to create a Spanner
202 # instance in a region that is out of stock:
203 #
204 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
205 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
206 # &quot;metadata&quot;: {
207 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
208 # }
209 # }
210 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
211 # is typically the registered service name of the tool or product that
212 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
213 # generated by some common infrastructure, the error domain must be a
214 # globally unique value that identifies the infrastructure. For Google API
215 # infrastructure, the error domain is &quot;googleapis.com&quot;.
216 &quot;metadatas&quot;: { # Additional structured details about this error.
217 #
218 # Keys must match a regular expression of `a-z+` but should
219 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
220 # length. When identifying the current value of an exceeded limit, the units
221 # should be contained in the key, not the value. For example, rather than
222 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
223 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
224 # instances that can be created in a single (batch) request.
225 &quot;a_key&quot;: &quot;A String&quot;,
226 },
227 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
228 # proximate cause of the error. Error reasons are unique within a particular
229 # domain of errors. This should be at most 63 characters and match a
230 # regular expression of `A-Z+[A-Z0-9]`, which represents
231 # UPPER_SNAKE_CASE.
232 },
233 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
234 #
235 # For example, if a quota check failed with an error indicating the calling
236 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
237 # directly to the right place in the developer console to flip the bit.
238 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
239 { # Describes a URL link.
240 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
241 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
242 },
243 ],
244 },
245 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
246 # which can be attached to an RPC error.
247 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
248 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
249 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
250 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
251 },
252 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
253 &quot;dimensions&quot;: { # The map holding related quota dimensions.
254 &quot;a_key&quot;: &quot;A String&quot;,
255 },
256 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
257 # type or metric.
258 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
259 # or metric.
260 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
261 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
262 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
263 },
264 },
265 ],
266 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
267 # This property is optional.
268 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
269 },
270 ],
271 },
272 &quot;getVersionOperationMetadata&quot;: {
273 &quot;inlineSbomInfo&quot;: {
274 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
275 # appropriate identifiers.
276 &quot;a_key&quot;: &quot;A String&quot;,
277 },
278 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
279 # identifiers.
280 &quot;a_key&quot;: &quot;A String&quot;,
281 },
282 },
283 },
284 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
285 # message that was returned, such as `NOT FOUND`.
286 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
287 # status code that was returned. For example, a `404` means the
288 # resource was not found.
289 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
290 # defined by the server.
291 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
292 # This value is inRFC3339
293 # text format.
294 &quot;instancesBulkInsertOperationMetadata&quot;: {
295 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
296 # Example key: zones/us-central1-a
297 &quot;a_key&quot;: {
298 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
299 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
300 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
301 # error.
302 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
303 # if the flow is rolling forward or rolling back.
304 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
305 },
306 },
307 },
308 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
309 # Operation resources.
310 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
311 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
312 # group of operations results from a `bulkInsert` API request.
313 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
314 # `update`, or `delete`, and so on.
315 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
316 # There is no requirement that this be linear or support any granularity of
317 # operations. This should not be used to guess when the operation will be
318 # complete. This number should monotonically increase as the operation
319 # progresses.
320 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
321 # applicable when performing regional operations.
322 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
323 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
324 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
325 # this field will contain information on all underlying zonal actions and
326 # their state.
327 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
328 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
329 # Example key: zones/us-central1-a
330 &quot;a_key&quot;: {
331 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # [Output Only] If state is `ABANDONED` or `FAILED`, this field is
332 # populated.
333 # different programming environments, including REST APIs and RPC APIs. It is
334 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
335 # three pieces of data: error code, error message, and error details.
336 #
337 # You can find out more about this error model and how to work with it in the
338 # [API Design Guide](https://cloud.google.com/apis/design/errors).
339 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
340 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
341 # message types for APIs to use.
342 {
343 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
344 },
345 ],
346 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
347 # user-facing error message should be localized and sent in the
348 # google.rpc.Status.details field, or localized by the client.
349 },
350 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
351 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
352 },
353 },
354 },
355 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
356 # This value is inRFC3339
357 # text format.
358 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
359 # following:
360 # `PENDING`, `RUNNING`, or `DONE`.
361 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
362 # operation.
363 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
364 # of the target resource.
365 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
366 # operations related to creating a snapshot, this points to the disk
367 # that the snapshot was created from.
368 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
369 # `[email protected]` or
370 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
371 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
372 # operation, this field will be populated.
373 {
374 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
375 # Engine returns NO_RESULTS_ON_PAGE if there
376 # are no results in the response.
377 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
378 # value format. For example:
379 #
380 # &quot;data&quot;: [
381 # {
382 # &quot;key&quot;: &quot;scope&quot;,
383 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
384 # }
385 {
386 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
387 # returned. For example, for warnings where there are no results in a list
388 # request for a particular zone, this key might be scope and
389 # the key value might be the zone name. Other examples might be a key
390 # indicating a deprecated resource and a suggested replacement, or a
391 # warning about invalid network settings (for example, if an instance
392 # attempts to perform IP forwarding but is not enabled for IP forwarding).
393 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
394 },
395 ],
396 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
397 },
398 ],
399 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
400 # applicable when performing per-zone operations.
401 }</pre>
402 </div>
403
404 <div class="method">
405 <code class="details" id="get">get(project, region, instantSnapshotGroup, x__xgafv=None)</code>
406 <pre>returns the specified InstantSnapshotGroup resource in the specified
407 region.
408
409 Args:
410 project: string, Project ID for this request. (required)
411 region: string, The name of the region for this request. (required)
412 instantSnapshotGroup: string, Name of the InstantSnapshotGroup resource to return. (required)
413 x__xgafv: string, V1 error format.
414 Allowed values
415 1 - v1 error format
416 2 - v2 error format
417
418 Returns:
419 An object of the form:
420
421 { # Represents an InstantSnapshotGroup resource.
422 #
423 # An instant snapshot group is a set of instant snapshots that represents a
424 # point in time state of a consistency group.
425 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
426 # text format.
427 &quot;description&quot;: &quot;A String&quot;, # Optional. An optional description of this resource. Provide this property when you
428 # create the resource.
429 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the resource. This identifier is
430 # defined by the server.
431 &quot;kind&quot;: &quot;compute#instantSnapshotGroup&quot;, # Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup
432 # resources.
433 &quot;name&quot;: &quot;A String&quot;, # Identifier. Name of the resource; provided by the client when the resource is created.
434 # The name must be 1-63 characters long, and comply withRFC1035.
435 # Specifically, the name must be 1-63 characters long and match the regular
436 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
437 # character must be a lowercase letter, and all following characters must be
438 # a dash, lowercase letter, or digit, except the last character, which cannot
439 # be a dash.
440 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the instant snapshot group resides.
441 # You must specify this field as part of the HTTP request URL. It is
442 # not settable as a field in the request body.
443 &quot;resourceStatus&quot;: {
444 &quot;consistencyMembershipResolutionTime&quot;: &quot;A String&quot;, # Output only. [Output Only]
445 &quot;sourceInfo&quot;: { # Output only. [Output Only]
446 &quot;consistencyGroup&quot;: &quot;A String&quot;,
447 &quot;consistencyGroupId&quot;: &quot;A String&quot;,
448 },
449 },
450 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for the resource.
451 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource&#x27;s resource id.
452 &quot;sourceConsistencyGroup&quot;: &quot;A String&quot;,
453 &quot;status&quot;: &quot;A String&quot;, # Output only. [Output Only]
454 &quot;zone&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the zone where the instant snapshot group resides.
455 # You must specify this field as part of the HTTP request URL. It is
456 # not settable as a field in the request body.
457 }</pre>
458 </div>
459
460 <div class="method">
461 <code class="details" id="getIamPolicy">getIamPolicy(project, region, resource, optionsRequestedPolicyVersion=None, x__xgafv=None)</code>
462 <pre>Gets the access control policy for a resource. May be empty if no such
463 policy or resource exists.
464
465 Args:
466 project: string, Project ID for this request. (required)
467 region: string, The name of the region for this request. (required)
468 resource: string, Name or id of the resource for this request. (required)
469 optionsRequestedPolicyVersion: integer, Requested IAM Policy version.
470 x__xgafv: string, V1 error format.
471 Allowed values
472 1 - v1 error format
473 2 - v2 error format
474
475 Returns:
476 An object of the form:
477
478 { # An Identity and Access Management (IAM) policy, which specifies access
479 # controls for Google Cloud resources.
480 #
481 #
482 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
483 # `members`, or principals, to a single `role`. Principals can be user
484 # accounts, service accounts, Google groups, and domains (such as G Suite). A
485 # `role` is a named list of permissions; each `role` can be an IAM predefined
486 # role or a user-created custom role.
487 #
488 # For some types of Google Cloud resources, a `binding` can also specify a
489 # `condition`, which is a logical expression that allows access to a resource
490 # only if the expression evaluates to `true`. A condition can add constraints
491 # based on attributes of the request, the resource, or both. To learn which
492 # resources support conditions in their IAM policies, see the
493 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
494 #
495 # **JSON example:**
496 #
497 # ```
498 # {
499 # &quot;bindings&quot;: [
500 # {
501 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
502 # &quot;members&quot;: [
503 # &quot;user:[email protected]&quot;,
504 # &quot;group:[email protected]&quot;,
505 # &quot;domain:google.com&quot;,
506 # &quot;serviceAccount:[email protected]&quot;
507 # ]
508 # },
509 # {
510 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
511 # &quot;members&quot;: [
512 # &quot;user:[email protected]&quot;
513 # ],
514 # &quot;condition&quot;: {
515 # &quot;title&quot;: &quot;expirable access&quot;,
516 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
517 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
518 # }
519 # }
520 # ],
521 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
522 # &quot;version&quot;: 3
523 # }
524 # ```
525 #
526 # **YAML example:**
527 #
528 # ```
529 # bindings:
530 # - members:
531 # - user:[email protected]
532 # - group:[email protected]
533 # - domain:google.com
534 # - serviceAccount:[email protected]
535 # role: roles/resourcemanager.organizationAdmin
536 # - members:
537 # - user:[email protected]
538 # role: roles/resourcemanager.organizationViewer
539 # condition:
540 # title: expirable access
541 # description: Does not grant access after Sep 2020
542 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
543 # etag: BwWWja0YfJA=
544 # version: 3
545 # ```
546 #
547 # For a description of IAM and its features, see the
548 # [IAM documentation](https://cloud.google.com/iam/docs/).
549 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
550 { # Specifies the audit configuration for a service.
551 # The configuration determines which permission types are logged, and what
552 # identities, if any, are exempted from logging.
553 # An AuditConfig must have one or more AuditLogConfigs.
554 #
555 # If there are AuditConfigs for both `allServices` and a specific service,
556 # the union of the two AuditConfigs is used for that service: the log_types
557 # specified in each AuditConfig are enabled, and the exempted_members in each
558 # AuditLogConfig are exempted.
559 #
560 # Example Policy with multiple AuditConfigs:
561 #
562 # {
563 # &quot;audit_configs&quot;: [
564 # {
565 # &quot;service&quot;: &quot;allServices&quot;,
566 # &quot;audit_log_configs&quot;: [
567 # {
568 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
569 # &quot;exempted_members&quot;: [
570 # &quot;user:[email protected]&quot;
571 # ]
572 # },
573 # {
574 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
575 # },
576 # {
577 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
578 # }
579 # ]
580 # },
581 # {
582 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
583 # &quot;audit_log_configs&quot;: [
584 # {
585 # &quot;log_type&quot;: &quot;DATA_READ&quot;
586 # },
587 # {
588 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
589 # &quot;exempted_members&quot;: [
590 # &quot;user:[email protected]&quot;
591 # ]
592 # }
593 # ]
594 # }
595 # ]
596 # }
597 #
598 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
599 # logging. It also exempts `[email protected]` from DATA_READ logging, and
600 # `[email protected]` from DATA_WRITE logging.
601 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
602 { # Provides the configuration for logging a type of permissions.
603 # Example:
604 #
605 # {
606 # &quot;audit_log_configs&quot;: [
607 # {
608 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
609 # &quot;exempted_members&quot;: [
610 # &quot;user:[email protected]&quot;
611 # ]
612 # },
613 # {
614 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
615 # }
616 # ]
617 # }
618 #
619 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
620 # [email protected] from DATA_READ logging.
621 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
622 # permission.
623 # Follows the same format of Binding.members.
624 &quot;A String&quot;,
625 ],
626 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
627 },
628 ],
629 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
630 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
631 # `allServices` is a special value that covers all services.
632 },
633 ],
634 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally,
635 # may specify a `condition` that determines how and when the `bindings` are
636 # applied. Each of the `bindings` must contain at least one principal.
637 #
638 # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
639 # of these principals can be Google groups. Each occurrence of a principal
640 # counts towards these limits. For example, if the `bindings` grant 50
641 # different roles to `user:[email protected]`, and not to any other
642 # principal, then you can add another 1,450 principals to the `bindings` in
643 # the `Policy`.
644 { # Associates `members`, or principals, with a `role`.
645 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
646 #
647 # If the condition evaluates to `true`, then this binding applies to the
648 # current request.
649 #
650 # If the condition evaluates to `false`, then this binding does not apply to
651 # the current request. However, a different role binding might grant the same
652 # role to one or more of the principals in this binding.
653 #
654 # To learn which resources support conditions in their IAM policies, see the
655 # [IAM
656 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
657 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
658 # are documented at https://github.com/google/cel-spec.
659 #
660 # Example (Comparison):
661 #
662 # title: &quot;Summary size limit&quot;
663 # description: &quot;Determines if a summary is less than 100 chars&quot;
664 # expression: &quot;document.summary.size() &lt; 100&quot;
665 #
666 # Example (Equality):
667 #
668 # title: &quot;Requestor is owner&quot;
669 # description: &quot;Determines if requestor is the document owner&quot;
670 # expression: &quot;document.owner == request.auth.claims.email&quot;
671 #
672 # Example (Logic):
673 #
674 # title: &quot;Public documents&quot;
675 # description: &quot;Determine whether the document should be publicly visible&quot;
676 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
677 #
678 # Example (Data Manipulation):
679 #
680 # title: &quot;Notification string&quot;
681 # description: &quot;Create a notification string with a timestamp.&quot;
682 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
683 #
684 # The exact variables and functions that may be referenced within an expression
685 # are determined by the service that evaluates it. See the service
686 # documentation for additional information.
687 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
688 # describes the expression, e.g. when hovered over it in a UI.
689 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
690 # syntax.
691 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
692 # reporting, e.g. a file name and a position in the file.
693 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
694 # its purpose. This can be used e.g. in UIs which allow to enter the
695 # expression.
696 },
697 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
698 # `members` can have the following values:
699 #
700 # * `allUsers`: A special identifier that represents anyone who is
701 # on the internet; with or without a Google account.
702 #
703 # * `allAuthenticatedUsers`: A special identifier that represents anyone
704 # who is authenticated with a Google account or a service account.
705 # Does not include identities that come from external identity providers
706 # (IdPs) through identity federation.
707 #
708 # * `user:{emailid}`: An email address that represents a specific Google
709 # account. For example, `[email protected]` .
710 #
711 #
712 # * `serviceAccount:{emailid}`: An email address that represents a Google
713 # service account. For example,
714 # `[email protected]`.
715 #
716 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
717 # identifier for a
718 # [Kubernetes service
719 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
720 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
721 #
722 # * `group:{emailid}`: An email address that represents a Google group.
723 # For example, `[email protected]`.
724 #
725 #
726 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
727 # users of that domain. For example, `google.com` or `example.com`.
728 #
729 #
730 #
731 #
732 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
733 # A single identity in a workforce identity pool.
734 #
735 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
736 # All workforce identities in a group.
737 #
738 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
739 # All workforce identities with a specific attribute value.
740 #
741 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
742 # All identities in a workforce identity pool.
743 #
744 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
745 # A single identity in a workload identity pool.
746 #
747 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
748 # A workload identity pool group.
749 #
750 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
751 # All identities in a workload identity pool with a certain attribute.
752 #
753 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
754 # All identities in a workload identity pool.
755 #
756 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
757 # identifier) representing a user that has been recently deleted. For
758 # example, `[email protected]?uid=123456789012345678901`. If the user is
759 # recovered, this value reverts to `user:{emailid}` and the recovered user
760 # retains the role in the binding.
761 #
762 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
763 # unique identifier) representing a service account that has been recently
764 # deleted. For example,
765 # `[email protected]?uid=123456789012345678901`.
766 # If the service account is undeleted, this value reverts to
767 # `serviceAccount:{emailid}` and the undeleted service account retains the
768 # role in the binding.
769 #
770 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
771 # identifier) representing a Google group that has been recently
772 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
773 # the group is recovered, this value reverts to `group:{emailid}` and the
774 # recovered group retains the role in the binding.
775 #
776 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
777 # Deleted single identity in a workforce identity pool. For example,
778 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
779 &quot;A String&quot;,
780 ],
781 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
782 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
783 #
784 # For an overview of the IAM roles and permissions, see the
785 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
786 # a list of the available pre-defined roles, see
787 # [here](https://cloud.google.com/iam/docs/understanding-roles).
788 },
789 ],
790 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
791 # prevent simultaneous updates of a policy from overwriting each other.
792 # It is strongly suggested that systems make use of the `etag` in the
793 # read-modify-write cycle to perform policy updates in order to avoid race
794 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
795 # systems are expected to put that etag in the request to `setIamPolicy` to
796 # ensure that their change will be applied to the same version of the policy.
797 #
798 # **Important:** If you use IAM Conditions, you must include the `etag` field
799 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
800 # you to overwrite a version `3` policy with a version `1` policy, and all of
801 # the conditions in the version `3` policy are lost.
802 &quot;version&quot;: 42, # Specifies the format of the policy.
803 #
804 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
805 # are rejected.
806 #
807 # Any operation that affects conditional role bindings must specify version
808 # `3`. This requirement applies to the following operations:
809 #
810 # * Getting a policy that includes a conditional role binding
811 # * Adding a conditional role binding to a policy
812 # * Changing a conditional role binding in a policy
813 # * Removing any role binding, with or without a condition, from a policy
814 # that includes conditions
815 #
816 # **Important:** If you use IAM Conditions, you must include the `etag` field
817 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
818 # you to overwrite a version `3` policy with a version `1` policy, and all of
819 # the conditions in the version `3` policy are lost.
820 #
821 # If a policy does not include any conditions, operations on that policy may
822 # specify any valid version or leave the field unset.
823 #
824 # To learn which resources support conditions in their IAM policies, see the
825 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
826 }</pre>
827 </div>
828
829 <div class="method">
830 <code class="details" id="insert">insert(project, region, body=None, requestId=None, sourceConsistencyGroup=None, x__xgafv=None)</code>
831 <pre>creates a Regional InstantSnapshotGroup resource
832
833 Args:
834 project: string, Project ID for this request. (required)
835 region: string, Name of the region for this request. (required)
836 body: object, The request body.
837 The object takes the form of:
838
839 { # Represents an InstantSnapshotGroup resource.
840 #
841 # An instant snapshot group is a set of instant snapshots that represents a
842 # point in time state of a consistency group.
843 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
844 # text format.
845 &quot;description&quot;: &quot;A String&quot;, # Optional. An optional description of this resource. Provide this property when you
846 # create the resource.
847 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the resource. This identifier is
848 # defined by the server.
849 &quot;kind&quot;: &quot;compute#instantSnapshotGroup&quot;, # Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup
850 # resources.
851 &quot;name&quot;: &quot;A String&quot;, # Identifier. Name of the resource; provided by the client when the resource is created.
852 # The name must be 1-63 characters long, and comply withRFC1035.
853 # Specifically, the name must be 1-63 characters long and match the regular
854 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
855 # character must be a lowercase letter, and all following characters must be
856 # a dash, lowercase letter, or digit, except the last character, which cannot
857 # be a dash.
858 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the instant snapshot group resides.
859 # You must specify this field as part of the HTTP request URL. It is
860 # not settable as a field in the request body.
861 &quot;resourceStatus&quot;: {
862 &quot;consistencyMembershipResolutionTime&quot;: &quot;A String&quot;, # Output only. [Output Only]
863 &quot;sourceInfo&quot;: { # Output only. [Output Only]
864 &quot;consistencyGroup&quot;: &quot;A String&quot;,
865 &quot;consistencyGroupId&quot;: &quot;A String&quot;,
866 },
867 },
868 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for the resource.
869 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource&#x27;s resource id.
870 &quot;sourceConsistencyGroup&quot;: &quot;A String&quot;,
871 &quot;status&quot;: &quot;A String&quot;, # Output only. [Output Only]
872 &quot;zone&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the zone where the instant snapshot group resides.
873 # You must specify this field as part of the HTTP request URL. It is
874 # not settable as a field in the request body.
875 }
876
877 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
878 that if you must retry your request, the server will know to ignore the
879 request if it has already been completed.
880
881 For example, consider a situation where you make an initial request and
882 the request times out. If you make the request again with the same
883 request ID, the server can check if original operation with the same
884 request ID was received, and if so, will ignore the second request. This
885 prevents clients from accidentally creating duplicate commitments.
886
887 The request ID must be
888 a valid UUID with the exception that zero UUID is not supported
889 (00000000-0000-0000-0000-000000000000).
890 sourceConsistencyGroup: string, begin_interface: MixerMutationRequestBuilder
891 x__xgafv: string, V1 error format.
892 Allowed values
893 1 - v1 error format
894 2 - v2 error format
895
896 Returns:
897 An object of the form:
898
899 { # Represents an Operation resource.
900 #
901 # Google Compute Engine has three Operation resources:
902 #
903 # * [Global](/compute/docs/reference/rest/alpha/globalOperations)
904 # * [Regional](/compute/docs/reference/rest/alpha/regionOperations)
905 # * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations)
906 #
907 # You can use an operation resource to manage asynchronous API requests.
908 # For more information, readHandling
909 # API responses.
910 #
911 # Operations can be global, regional or zonal.
912 #
913 # - For global operations, use the `globalOperations`
914 # resource.
915 # - For regional operations, use the
916 # `regionOperations` resource.
917 # - For zonal operations, use
918 # the `zoneOperations` resource.
919 #
920 #
921 #
922 # For more information, read
923 # Global, Regional, and Zonal Resources.
924 #
925 # Note that completed Operation resources have a limited
926 # retention period.
927 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
928 # Not present otherwise.
929 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
930 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
931 # set when the operation is created.
932 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
933 # text format.
934 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
935 # this field will be populated.
936 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
937 # operation.
938 {
939 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
940 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
941 # details. There is a set of defined message types to use for providing
942 # details.The syntax depends on the error code. For example,
943 # QuotaExceededInfo will have details when the error code is
944 # QUOTA_EXCEEDED.
945 {
946 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
947 #
948 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
949 # is not enabled:
950 #
951 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
952 # &quot;domain&quot;: &quot;googleapis.com&quot;
953 # &quot;metadata&quot;: {
954 # &quot;resource&quot;: &quot;projects/123&quot;,
955 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
956 # }
957 # }
958 #
959 # This response indicates that the pubsub.googleapis.com API is not enabled.
960 #
961 # Example of an error that is returned when attempting to create a Spanner
962 # instance in a region that is out of stock:
963 #
964 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
965 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
966 # &quot;metadata&quot;: {
967 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
968 # }
969 # }
970 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
971 # is typically the registered service name of the tool or product that
972 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
973 # generated by some common infrastructure, the error domain must be a
974 # globally unique value that identifies the infrastructure. For Google API
975 # infrastructure, the error domain is &quot;googleapis.com&quot;.
976 &quot;metadatas&quot;: { # Additional structured details about this error.
977 #
978 # Keys must match a regular expression of `a-z+` but should
979 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
980 # length. When identifying the current value of an exceeded limit, the units
981 # should be contained in the key, not the value. For example, rather than
982 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
983 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
984 # instances that can be created in a single (batch) request.
985 &quot;a_key&quot;: &quot;A String&quot;,
986 },
987 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
988 # proximate cause of the error. Error reasons are unique within a particular
989 # domain of errors. This should be at most 63 characters and match a
990 # regular expression of `A-Z+[A-Z0-9]`, which represents
991 # UPPER_SNAKE_CASE.
992 },
993 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
994 #
995 # For example, if a quota check failed with an error indicating the calling
996 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
997 # directly to the right place in the developer console to flip the bit.
998 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
999 { # Describes a URL link.
1000 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
1001 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
1002 },
1003 ],
1004 },
1005 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
1006 # which can be attached to an RPC error.
1007 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
1008 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
1009 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
1010 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
1011 },
1012 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
1013 &quot;dimensions&quot;: { # The map holding related quota dimensions.
1014 &quot;a_key&quot;: &quot;A String&quot;,
1015 },
1016 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
1017 # type or metric.
1018 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
1019 # or metric.
1020 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
1021 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
1022 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
1023 },
1024 },
1025 ],
1026 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
1027 # This property is optional.
1028 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
1029 },
1030 ],
1031 },
1032 &quot;getVersionOperationMetadata&quot;: {
1033 &quot;inlineSbomInfo&quot;: {
1034 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
1035 # appropriate identifiers.
1036 &quot;a_key&quot;: &quot;A String&quot;,
1037 },
1038 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
1039 # identifiers.
1040 &quot;a_key&quot;: &quot;A String&quot;,
1041 },
1042 },
1043 },
1044 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
1045 # message that was returned, such as `NOT FOUND`.
1046 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
1047 # status code that was returned. For example, a `404` means the
1048 # resource was not found.
1049 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
1050 # defined by the server.
1051 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
1052 # This value is inRFC3339
1053 # text format.
1054 &quot;instancesBulkInsertOperationMetadata&quot;: {
1055 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
1056 # Example key: zones/us-central1-a
1057 &quot;a_key&quot;: {
1058 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
1059 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
1060 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
1061 # error.
1062 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
1063 # if the flow is rolling forward or rolling back.
1064 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
1065 },
1066 },
1067 },
1068 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
1069 # Operation resources.
1070 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
1071 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
1072 # group of operations results from a `bulkInsert` API request.
1073 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
1074 # `update`, or `delete`, and so on.
1075 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
1076 # There is no requirement that this be linear or support any granularity of
1077 # operations. This should not be used to guess when the operation will be
1078 # complete. This number should monotonically increase as the operation
1079 # progresses.
1080 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
1081 # applicable when performing regional operations.
1082 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1083 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
1084 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
1085 # this field will contain information on all underlying zonal actions and
1086 # their state.
1087 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
1088 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
1089 # Example key: zones/us-central1-a
1090 &quot;a_key&quot;: {
1091 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # [Output Only] If state is `ABANDONED` or `FAILED`, this field is
1092 # populated.
1093 # different programming environments, including REST APIs and RPC APIs. It is
1094 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1095 # three pieces of data: error code, error message, and error details.
1096 #
1097 # You can find out more about this error model and how to work with it in the
1098 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1099 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1100 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1101 # message types for APIs to use.
1102 {
1103 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1104 },
1105 ],
1106 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1107 # user-facing error message should be localized and sent in the
1108 # google.rpc.Status.details field, or localized by the client.
1109 },
1110 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
1111 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
1112 },
1113 },
1114 },
1115 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
1116 # This value is inRFC3339
1117 # text format.
1118 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
1119 # following:
1120 # `PENDING`, `RUNNING`, or `DONE`.
1121 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
1122 # operation.
1123 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
1124 # of the target resource.
1125 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
1126 # operations related to creating a snapshot, this points to the disk
1127 # that the snapshot was created from.
1128 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
1129 # `[email protected]` or
1130 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
1131 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
1132 # operation, this field will be populated.
1133 {
1134 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1135 # Engine returns NO_RESULTS_ON_PAGE if there
1136 # are no results in the response.
1137 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1138 # value format. For example:
1139 #
1140 # &quot;data&quot;: [
1141 # {
1142 # &quot;key&quot;: &quot;scope&quot;,
1143 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1144 # }
1145 {
1146 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1147 # returned. For example, for warnings where there are no results in a list
1148 # request for a particular zone, this key might be scope and
1149 # the key value might be the zone name. Other examples might be a key
1150 # indicating a deprecated resource and a suggested replacement, or a
1151 # warning about invalid network settings (for example, if an instance
1152 # attempts to perform IP forwarding but is not enabled for IP forwarding).
1153 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1154 },
1155 ],
1156 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1157 },
1158 ],
1159 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
1160 # applicable when performing per-zone operations.
1161 }</pre>
1162 </div>
1163
1164 <div class="method">
1165 <code class="details" id="list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code>
1166 <pre>retrieves the list of InstantSnapshotGroup resources contained within
1167 the specified region.
1168
1169 Args:
1170 project: string, Project ID for this request. (required)
1171 region: string, The name of the region for this request. (required)
1172 filter: string, A filter expression that filters resources listed in the response. Most
1173 Compute resources support two types of filter expressions:
1174 expressions that support regular expressions and expressions that follow
1175 API improvement proposal AIP-160.
1176 These two types of filter expressions cannot be mixed in one request.
1177
1178 If you want to use AIP-160, your expression must specify the field name, an
1179 operator, and the value that you want to use for filtering. The value
1180 must be a string, a number, or a boolean. The operator
1181 must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`.
1182
1183 For example, if you are filtering Compute Engine instances, you can
1184 exclude instances named `example-instance` by specifying
1185 `name != example-instance`.
1186
1187 The `:*` comparison can be used to test whether a key has been defined.
1188 For example, to find all objects with `owner` label use:
1189 ```
1190 labels.owner:*
1191 ```
1192
1193 You can also filter nested fields. For example, you could specify
1194 `scheduling.automaticRestart = false` to include instances only
1195 if they are not scheduled for automatic restarts. You can use filtering
1196 on nested fields to filter based onresource labels.
1197
1198 To filter on multiple expressions, provide each separate expression within
1199 parentheses. For example:
1200 ```
1201 (scheduling.automaticRestart = true)
1202 (cpuPlatform = &quot;Intel Skylake&quot;)
1203 ```
1204 By default, each expression is an `AND` expression. However, you
1205 can include `AND` and `OR` expressions explicitly.
1206 For example:
1207 ```
1208 (cpuPlatform = &quot;Intel Skylake&quot;) OR
1209 (cpuPlatform = &quot;Intel Broadwell&quot;) AND
1210 (scheduling.automaticRestart = true)
1211 ```
1212
1213 If you want to use a regular expression, use the `eq` (equal) or `ne`
1214 (not equal) operator against a single un-parenthesized expression with or
1215 without quotes or against multiple parenthesized expressions. Examples:
1216
1217 `fieldname eq unquoted literal`
1218 `fieldname eq &#x27;single quoted literal&#x27;`
1219 `fieldname eq &quot;double quoted literal&quot;`
1220 `(fieldname1 eq literal) (fieldname2 ne &quot;literal&quot;)`
1221
1222 The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
1223 The literal value must match the entire field.
1224
1225 For example, to filter for instances that do not end with name &quot;instance&quot;,
1226 you would use `name ne .*instance`.
1227
1228 You cannot combine constraints on multiple fields using regular
1229 expressions.
1230 maxResults: integer, The maximum number of results per page that should be returned.
1231 If the number of available results is larger than `maxResults`,
1232 Compute Engine returns a `nextPageToken` that can be used to get
1233 the next page of results in subsequent list requests. Acceptable values are
1234 `0` to `500`, inclusive. (Default: `500`)
1235 orderBy: string, Sorts list results by a certain order. By default, results
1236 are returned in alphanumerical order based on the resource name.
1237
1238 You can also sort results in descending order based on the creation
1239 timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. This sorts
1240 results based on the `creationTimestamp` field in
1241 reverse chronological order (newest result first). Use this to sort
1242 resources like operations so that the newest operation is returned first.
1243
1244 Currently, only sorting by `name` or
1245 `creationTimestamp desc` is supported.
1246 pageToken: string, Specifies a page token to use. Set `pageToken` to the
1247 `nextPageToken` returned by a previous list request to get
1248 the next page of results.
1249 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case
1250 of failure. The default value is false.
1251
1252 For example, when partial success behavior is enabled, aggregatedList for a
1253 single zone scope either returns all resources in the zone or no resources,
1254 with an error code.
1255 x__xgafv: string, V1 error format.
1256 Allowed values
1257 1 - v1 error format
1258 2 - v2 error format
1259
1260 Returns:
1261 An object of the form:
1262
1263 { # Contains a list of InstantSnapshotGroup resources.
1264 &quot;etag&quot;: &quot;A String&quot;,
1265 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
1266 &quot;items&quot;: [ # A list of InstantSnapshotGroup resources.
1267 { # Represents an InstantSnapshotGroup resource.
1268 #
1269 # An instant snapshot group is a set of instant snapshots that represents a
1270 # point in time state of a consistency group.
1271 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
1272 # text format.
1273 &quot;description&quot;: &quot;A String&quot;, # Optional. An optional description of this resource. Provide this property when you
1274 # create the resource.
1275 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the resource. This identifier is
1276 # defined by the server.
1277 &quot;kind&quot;: &quot;compute#instantSnapshotGroup&quot;, # Output only. [Output Only] Type of the resource. Alwayscompute#instantSnapshotGroup for InstantSnapshotGroup
1278 # resources.
1279 &quot;name&quot;: &quot;A String&quot;, # Identifier. Name of the resource; provided by the client when the resource is created.
1280 # The name must be 1-63 characters long, and comply withRFC1035.
1281 # Specifically, the name must be 1-63 characters long and match the regular
1282 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
1283 # character must be a lowercase letter, and all following characters must be
1284 # a dash, lowercase letter, or digit, except the last character, which cannot
1285 # be a dash.
1286 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the instant snapshot group resides.
1287 # You must specify this field as part of the HTTP request URL. It is
1288 # not settable as a field in the request body.
1289 &quot;resourceStatus&quot;: {
1290 &quot;consistencyMembershipResolutionTime&quot;: &quot;A String&quot;, # Output only. [Output Only]
1291 &quot;sourceInfo&quot;: { # Output only. [Output Only]
1292 &quot;consistencyGroup&quot;: &quot;A String&quot;,
1293 &quot;consistencyGroupId&quot;: &quot;A String&quot;,
1294 },
1295 },
1296 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for the resource.
1297 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource&#x27;s resource id.
1298 &quot;sourceConsistencyGroup&quot;: &quot;A String&quot;,
1299 &quot;status&quot;: &quot;A String&quot;, # Output only. [Output Only]
1300 &quot;zone&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the zone where the instant snapshot group resides.
1301 # You must specify this field as part of the HTTP request URL. It is
1302 # not settable as a field in the request body.
1303 },
1304 ],
1305 &quot;kind&quot;: &quot;compute#instantSnapshotGroupsList&quot;, # Output only. Type of resource.
1306 &quot;nextPageToken&quot;: &quot;A String&quot;, # [Output Only] This token allows you to get the next page of results for
1307 # list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
1308 # the query parameter pageToken in the next list request.
1309 # Subsequent list requests will have their own nextPageToken to
1310 # continue paging through the results.
1311 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource.
1312 &quot;unreachables&quot;: [ # Output only. [Output Only] Unreachable resources.
1313 # end_interface: MixerListResponseWithEtagBuilder
1314 &quot;A String&quot;,
1315 ],
1316 &quot;warning&quot;: { # [Output Only] Informational warning message.
1317 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1318 # Engine returns NO_RESULTS_ON_PAGE if there
1319 # are no results in the response.
1320 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1321 # value format. For example:
1322 #
1323 # &quot;data&quot;: [
1324 # {
1325 # &quot;key&quot;: &quot;scope&quot;,
1326 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1327 # }
1328 {
1329 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1330 # returned. For example, for warnings where there are no results in a list
1331 # request for a particular zone, this key might be scope and
1332 # the key value might be the zone name. Other examples might be a key
1333 # indicating a deprecated resource and a suggested replacement, or a
1334 # warning about invalid network settings (for example, if an instance
1335 # attempts to perform IP forwarding but is not enabled for IP forwarding).
1336 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1337 },
1338 ],
1339 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1340 },
1341 }</pre>
1342 </div>
1343
1344 <div class="method">
1345 <code class="details" id="list_next">list_next()</code>
1346 <pre>Retrieves the next page of results.
1347
1348 Args:
1349 previous_request: The request for the previous page. (required)
1350 previous_response: The response from the request for the previous page. (required)
1351
1352 Returns:
1353 A request object that you can call &#x27;execute()&#x27; on to request the next
1354 page. Returns None if there are no more items in the collection.
1355 </pre>
1356 </div>
1357
1358 <div class="method">
1359 <code class="details" id="setIamPolicy">setIamPolicy(project, region, resource, body=None, x__xgafv=None)</code>
1360 <pre>Sets the access control policy on the specified resource.
1361 Replaces any existing policy.
1362
1363 Args:
1364 project: string, Project ID for this request. (required)
1365 region: string, The name of the region for this request. (required)
1366 resource: string, Name or id of the resource for this request. (required)
1367 body: object, The request body.
1368 The object takes the form of:
1369
1370 {
1371 &quot;bindings&quot;: [ # Flatten Policy to create a backwacd compatible wire-format.
1372 # Deprecated. Use &#x27;policy&#x27; to specify bindings.
1373 { # Associates `members`, or principals, with a `role`.
1374 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1375 #
1376 # If the condition evaluates to `true`, then this binding applies to the
1377 # current request.
1378 #
1379 # If the condition evaluates to `false`, then this binding does not apply to
1380 # the current request. However, a different role binding might grant the same
1381 # role to one or more of the principals in this binding.
1382 #
1383 # To learn which resources support conditions in their IAM policies, see the
1384 # [IAM
1385 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1386 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1387 # are documented at https://github.com/google/cel-spec.
1388 #
1389 # Example (Comparison):
1390 #
1391 # title: &quot;Summary size limit&quot;
1392 # description: &quot;Determines if a summary is less than 100 chars&quot;
1393 # expression: &quot;document.summary.size() &lt; 100&quot;
1394 #
1395 # Example (Equality):
1396 #
1397 # title: &quot;Requestor is owner&quot;
1398 # description: &quot;Determines if requestor is the document owner&quot;
1399 # expression: &quot;document.owner == request.auth.claims.email&quot;
1400 #
1401 # Example (Logic):
1402 #
1403 # title: &quot;Public documents&quot;
1404 # description: &quot;Determine whether the document should be publicly visible&quot;
1405 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1406 #
1407 # Example (Data Manipulation):
1408 #
1409 # title: &quot;Notification string&quot;
1410 # description: &quot;Create a notification string with a timestamp.&quot;
1411 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1412 #
1413 # The exact variables and functions that may be referenced within an expression
1414 # are determined by the service that evaluates it. See the service
1415 # documentation for additional information.
1416 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1417 # describes the expression, e.g. when hovered over it in a UI.
1418 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1419 # syntax.
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;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1423 # its purpose. This can be used e.g. in UIs which allow to enter the
1424 # expression.
1425 },
1426 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
1427 # `members` can have the following values:
1428 #
1429 # * `allUsers`: A special identifier that represents anyone who is
1430 # on the internet; with or without a Google account.
1431 #
1432 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1433 # who is authenticated with a Google account or a service account.
1434 # Does not include identities that come from external identity providers
1435 # (IdPs) through identity federation.
1436 #
1437 # * `user:{emailid}`: An email address that represents a specific Google
1438 # account. For example, `[email protected]` .
1439 #
1440 #
1441 # * `serviceAccount:{emailid}`: An email address that represents a Google
1442 # service account. For example,
1443 # `[email protected]`.
1444 #
1445 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
1446 # identifier for a
1447 # [Kubernetes service
1448 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
1449 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
1450 #
1451 # * `group:{emailid}`: An email address that represents a Google group.
1452 # For example, `[email protected]`.
1453 #
1454 #
1455 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1456 # users of that domain. For example, `google.com` or `example.com`.
1457 #
1458 #
1459 #
1460 #
1461 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
1462 # A single identity in a workforce identity pool.
1463 #
1464 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
1465 # All workforce identities in a group.
1466 #
1467 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
1468 # All workforce identities with a specific attribute value.
1469 #
1470 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
1471 # All identities in a workforce identity pool.
1472 #
1473 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
1474 # A single identity in a workload identity pool.
1475 #
1476 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
1477 # A workload identity pool group.
1478 #
1479 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
1480 # All identities in a workload identity pool with a certain attribute.
1481 #
1482 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
1483 # All identities in a workload identity pool.
1484 #
1485 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1486 # identifier) representing a user that has been recently deleted. For
1487 # example, `[email protected]?uid=123456789012345678901`. If the user is
1488 # recovered, this value reverts to `user:{emailid}` and the recovered user
1489 # retains the role in the binding.
1490 #
1491 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1492 # unique identifier) representing a service account that has been recently
1493 # deleted. For example,
1494 # `[email protected]?uid=123456789012345678901`.
1495 # If the service account is undeleted, this value reverts to
1496 # `serviceAccount:{emailid}` and the undeleted service account retains the
1497 # role in the binding.
1498 #
1499 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1500 # identifier) representing a Google group that has been recently
1501 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
1502 # the group is recovered, this value reverts to `group:{emailid}` and the
1503 # recovered group retains the role in the binding.
1504 #
1505 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
1506 # Deleted single identity in a workforce identity pool. For example,
1507 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
1508 &quot;A String&quot;,
1509 ],
1510 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
1511 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1512 #
1513 # For an overview of the IAM roles and permissions, see the
1514 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
1515 # a list of the available pre-defined roles, see
1516 # [here](https://cloud.google.com/iam/docs/understanding-roles).
1517 },
1518 ],
1519 &quot;etag&quot;: &quot;A String&quot;, # Flatten Policy to create a backward compatible wire-format.
1520 # Deprecated. Use &#x27;policy&#x27; to specify the etag.
1521 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access # REQUIRED: The complete policy to be applied to the &#x27;resource&#x27;. The size of
1522 # the policy is limited to a few 10s of KB. An empty policy is in general a
1523 # valid policy but certain services (like Projects) might reject them.
1524 # controls for Google Cloud resources.
1525 #
1526 #
1527 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
1528 # `members`, or principals, to a single `role`. Principals can be user
1529 # accounts, service accounts, Google groups, and domains (such as G Suite). A
1530 # `role` is a named list of permissions; each `role` can be an IAM predefined
1531 # role or a user-created custom role.
1532 #
1533 # For some types of Google Cloud resources, a `binding` can also specify a
1534 # `condition`, which is a logical expression that allows access to a resource
1535 # only if the expression evaluates to `true`. A condition can add constraints
1536 # based on attributes of the request, the resource, or both. To learn which
1537 # resources support conditions in their IAM policies, see the
1538 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1539 #
1540 # **JSON example:**
1541 #
1542 # ```
1543 # {
1544 # &quot;bindings&quot;: [
1545 # {
1546 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1547 # &quot;members&quot;: [
1548 # &quot;user:[email protected]&quot;,
1549 # &quot;group:[email protected]&quot;,
1550 # &quot;domain:google.com&quot;,
1551 # &quot;serviceAccount:[email protected]&quot;
1552 # ]
1553 # },
1554 # {
1555 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
1556 # &quot;members&quot;: [
1557 # &quot;user:[email protected]&quot;
1558 # ],
1559 # &quot;condition&quot;: {
1560 # &quot;title&quot;: &quot;expirable access&quot;,
1561 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1562 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
1563 # }
1564 # }
1565 # ],
1566 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1567 # &quot;version&quot;: 3
1568 # }
1569 # ```
1570 #
1571 # **YAML example:**
1572 #
1573 # ```
1574 # bindings:
1575 # - members:
1576 # - user:[email protected]
1577 # - group:[email protected]
1578 # - domain:google.com
1579 # - serviceAccount:[email protected]
1580 # role: roles/resourcemanager.organizationAdmin
1581 # - members:
1582 # - user:[email protected]
1583 # role: roles/resourcemanager.organizationViewer
1584 # condition:
1585 # title: expirable access
1586 # description: Does not grant access after Sep 2020
1587 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
1588 # etag: BwWWja0YfJA=
1589 # version: 3
1590 # ```
1591 #
1592 # For a description of IAM and its features, see the
1593 # [IAM documentation](https://cloud.google.com/iam/docs/).
1594 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1595 { # Specifies the audit configuration for a service.
1596 # The configuration determines which permission types are logged, and what
1597 # identities, if any, are exempted from logging.
1598 # An AuditConfig must have one or more AuditLogConfigs.
1599 #
1600 # If there are AuditConfigs for both `allServices` and a specific service,
1601 # the union of the two AuditConfigs is used for that service: the log_types
1602 # specified in each AuditConfig are enabled, and the exempted_members in each
1603 # AuditLogConfig are exempted.
1604 #
1605 # Example Policy with multiple AuditConfigs:
1606 #
1607 # {
1608 # &quot;audit_configs&quot;: [
1609 # {
1610 # &quot;service&quot;: &quot;allServices&quot;,
1611 # &quot;audit_log_configs&quot;: [
1612 # {
1613 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1614 # &quot;exempted_members&quot;: [
1615 # &quot;user:[email protected]&quot;
1616 # ]
1617 # },
1618 # {
1619 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
1620 # },
1621 # {
1622 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
1623 # }
1624 # ]
1625 # },
1626 # {
1627 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
1628 # &quot;audit_log_configs&quot;: [
1629 # {
1630 # &quot;log_type&quot;: &quot;DATA_READ&quot;
1631 # },
1632 # {
1633 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1634 # &quot;exempted_members&quot;: [
1635 # &quot;user:[email protected]&quot;
1636 # ]
1637 # }
1638 # ]
1639 # }
1640 # ]
1641 # }
1642 #
1643 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1644 # logging. It also exempts `[email protected]` from DATA_READ logging, and
1645 # `[email protected]` from DATA_WRITE logging.
1646 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1647 { # Provides the configuration for logging a type of permissions.
1648 # Example:
1649 #
1650 # {
1651 # &quot;audit_log_configs&quot;: [
1652 # {
1653 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1654 # &quot;exempted_members&quot;: [
1655 # &quot;user:[email protected]&quot;
1656 # ]
1657 # },
1658 # {
1659 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
1660 # }
1661 # ]
1662 # }
1663 #
1664 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
1665 # [email protected] from DATA_READ logging.
1666 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1667 # permission.
1668 # Follows the same format of Binding.members.
1669 &quot;A String&quot;,
1670 ],
1671 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1672 },
1673 ],
1674 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
1675 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1676 # `allServices` is a special value that covers all services.
1677 },
1678 ],
1679 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally,
1680 # may specify a `condition` that determines how and when the `bindings` are
1681 # applied. Each of the `bindings` must contain at least one principal.
1682 #
1683 # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
1684 # of these principals can be Google groups. Each occurrence of a principal
1685 # counts towards these limits. For example, if the `bindings` grant 50
1686 # different roles to `user:[email protected]`, and not to any other
1687 # principal, then you can add another 1,450 principals to the `bindings` in
1688 # the `Policy`.
1689 { # Associates `members`, or principals, with a `role`.
1690 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1691 #
1692 # If the condition evaluates to `true`, then this binding applies to the
1693 # current request.
1694 #
1695 # If the condition evaluates to `false`, then this binding does not apply to
1696 # the current request. However, a different role binding might grant the same
1697 # role to one or more of the principals in this binding.
1698 #
1699 # To learn which resources support conditions in their IAM policies, see the
1700 # [IAM
1701 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1702 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1703 # are documented at https://github.com/google/cel-spec.
1704 #
1705 # Example (Comparison):
1706 #
1707 # title: &quot;Summary size limit&quot;
1708 # description: &quot;Determines if a summary is less than 100 chars&quot;
1709 # expression: &quot;document.summary.size() &lt; 100&quot;
1710 #
1711 # Example (Equality):
1712 #
1713 # title: &quot;Requestor is owner&quot;
1714 # description: &quot;Determines if requestor is the document owner&quot;
1715 # expression: &quot;document.owner == request.auth.claims.email&quot;
1716 #
1717 # Example (Logic):
1718 #
1719 # title: &quot;Public documents&quot;
1720 # description: &quot;Determine whether the document should be publicly visible&quot;
1721 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1722 #
1723 # Example (Data Manipulation):
1724 #
1725 # title: &quot;Notification string&quot;
1726 # description: &quot;Create a notification string with a timestamp.&quot;
1727 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1728 #
1729 # The exact variables and functions that may be referenced within an expression
1730 # are determined by the service that evaluates it. See the service
1731 # documentation for additional information.
1732 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1733 # describes the expression, e.g. when hovered over it in a UI.
1734 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1735 # syntax.
1736 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1737 # reporting, e.g. a file name and a position in the file.
1738 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1739 # its purpose. This can be used e.g. in UIs which allow to enter the
1740 # expression.
1741 },
1742 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
1743 # `members` can have the following values:
1744 #
1745 # * `allUsers`: A special identifier that represents anyone who is
1746 # on the internet; with or without a Google account.
1747 #
1748 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1749 # who is authenticated with a Google account or a service account.
1750 # Does not include identities that come from external identity providers
1751 # (IdPs) through identity federation.
1752 #
1753 # * `user:{emailid}`: An email address that represents a specific Google
1754 # account. For example, `[email protected]` .
1755 #
1756 #
1757 # * `serviceAccount:{emailid}`: An email address that represents a Google
1758 # service account. For example,
1759 # `[email protected]`.
1760 #
1761 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
1762 # identifier for a
1763 # [Kubernetes service
1764 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
1765 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
1766 #
1767 # * `group:{emailid}`: An email address that represents a Google group.
1768 # For example, `[email protected]`.
1769 #
1770 #
1771 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1772 # users of that domain. For example, `google.com` or `example.com`.
1773 #
1774 #
1775 #
1776 #
1777 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
1778 # A single identity in a workforce identity pool.
1779 #
1780 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
1781 # All workforce identities in a group.
1782 #
1783 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
1784 # All workforce identities with a specific attribute value.
1785 #
1786 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
1787 # All identities in a workforce identity pool.
1788 #
1789 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
1790 # A single identity in a workload identity pool.
1791 #
1792 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
1793 # A workload identity pool group.
1794 #
1795 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
1796 # All identities in a workload identity pool with a certain attribute.
1797 #
1798 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
1799 # All identities in a workload identity pool.
1800 #
1801 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1802 # identifier) representing a user that has been recently deleted. For
1803 # example, `[email protected]?uid=123456789012345678901`. If the user is
1804 # recovered, this value reverts to `user:{emailid}` and the recovered user
1805 # retains the role in the binding.
1806 #
1807 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1808 # unique identifier) representing a service account that has been recently
1809 # deleted. For example,
1810 # `[email protected]?uid=123456789012345678901`.
1811 # If the service account is undeleted, this value reverts to
1812 # `serviceAccount:{emailid}` and the undeleted service account retains the
1813 # role in the binding.
1814 #
1815 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1816 # identifier) representing a Google group that has been recently
1817 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
1818 # the group is recovered, this value reverts to `group:{emailid}` and the
1819 # recovered group retains the role in the binding.
1820 #
1821 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
1822 # Deleted single identity in a workforce identity pool. For example,
1823 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
1824 &quot;A String&quot;,
1825 ],
1826 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
1827 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1828 #
1829 # For an overview of the IAM roles and permissions, see the
1830 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
1831 # a list of the available pre-defined roles, see
1832 # [here](https://cloud.google.com/iam/docs/understanding-roles).
1833 },
1834 ],
1835 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1836 # prevent simultaneous updates of a policy from overwriting each other.
1837 # It is strongly suggested that systems make use of the `etag` in the
1838 # read-modify-write cycle to perform policy updates in order to avoid race
1839 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1840 # systems are expected to put that etag in the request to `setIamPolicy` to
1841 # ensure that their change will be applied to the same version of the policy.
1842 #
1843 # **Important:** If you use IAM Conditions, you must include the `etag` field
1844 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1845 # you to overwrite a version `3` policy with a version `1` policy, and all of
1846 # the conditions in the version `3` policy are lost.
1847 &quot;version&quot;: 42, # Specifies the format of the policy.
1848 #
1849 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1850 # are rejected.
1851 #
1852 # Any operation that affects conditional role bindings must specify version
1853 # `3`. This requirement applies to the following operations:
1854 #
1855 # * Getting a policy that includes a conditional role binding
1856 # * Adding a conditional role binding to a policy
1857 # * Changing a conditional role binding in a policy
1858 # * Removing any role binding, with or without a condition, from a policy
1859 # that includes conditions
1860 #
1861 # **Important:** If you use IAM Conditions, you must include the `etag` field
1862 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1863 # you to overwrite a version `3` policy with a version `1` policy, and all of
1864 # the conditions in the version `3` policy are lost.
1865 #
1866 # If a policy does not include any conditions, operations on that policy may
1867 # specify any valid version or leave the field unset.
1868 #
1869 # To learn which resources support conditions in their IAM policies, see the
1870 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1871 },
1872 }
1873
1874 x__xgafv: string, V1 error format.
1875 Allowed values
1876 1 - v1 error format
1877 2 - v2 error format
1878
1879 Returns:
1880 An object of the form:
1881
1882 { # An Identity and Access Management (IAM) policy, which specifies access
1883 # controls for Google Cloud resources.
1884 #
1885 #
1886 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
1887 # `members`, or principals, to a single `role`. Principals can be user
1888 # accounts, service accounts, Google groups, and domains (such as G Suite). A
1889 # `role` is a named list of permissions; each `role` can be an IAM predefined
1890 # role or a user-created custom role.
1891 #
1892 # For some types of Google Cloud resources, a `binding` can also specify a
1893 # `condition`, which is a logical expression that allows access to a resource
1894 # only if the expression evaluates to `true`. A condition can add constraints
1895 # based on attributes of the request, the resource, or both. To learn which
1896 # resources support conditions in their IAM policies, see the
1897 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1898 #
1899 # **JSON example:**
1900 #
1901 # ```
1902 # {
1903 # &quot;bindings&quot;: [
1904 # {
1905 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1906 # &quot;members&quot;: [
1907 # &quot;user:[email protected]&quot;,
1908 # &quot;group:[email protected]&quot;,
1909 # &quot;domain:google.com&quot;,
1910 # &quot;serviceAccount:[email protected]&quot;
1911 # ]
1912 # },
1913 # {
1914 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
1915 # &quot;members&quot;: [
1916 # &quot;user:[email protected]&quot;
1917 # ],
1918 # &quot;condition&quot;: {
1919 # &quot;title&quot;: &quot;expirable access&quot;,
1920 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1921 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
1922 # }
1923 # }
1924 # ],
1925 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1926 # &quot;version&quot;: 3
1927 # }
1928 # ```
1929 #
1930 # **YAML example:**
1931 #
1932 # ```
1933 # bindings:
1934 # - members:
1935 # - user:[email protected]
1936 # - group:[email protected]
1937 # - domain:google.com
1938 # - serviceAccount:[email protected]
1939 # role: roles/resourcemanager.organizationAdmin
1940 # - members:
1941 # - user:[email protected]
1942 # role: roles/resourcemanager.organizationViewer
1943 # condition:
1944 # title: expirable access
1945 # description: Does not grant access after Sep 2020
1946 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
1947 # etag: BwWWja0YfJA=
1948 # version: 3
1949 # ```
1950 #
1951 # For a description of IAM and its features, see the
1952 # [IAM documentation](https://cloud.google.com/iam/docs/).
1953 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1954 { # Specifies the audit configuration for a service.
1955 # The configuration determines which permission types are logged, and what
1956 # identities, if any, are exempted from logging.
1957 # An AuditConfig must have one or more AuditLogConfigs.
1958 #
1959 # If there are AuditConfigs for both `allServices` and a specific service,
1960 # the union of the two AuditConfigs is used for that service: the log_types
1961 # specified in each AuditConfig are enabled, and the exempted_members in each
1962 # AuditLogConfig are exempted.
1963 #
1964 # Example Policy with multiple AuditConfigs:
1965 #
1966 # {
1967 # &quot;audit_configs&quot;: [
1968 # {
1969 # &quot;service&quot;: &quot;allServices&quot;,
1970 # &quot;audit_log_configs&quot;: [
1971 # {
1972 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1973 # &quot;exempted_members&quot;: [
1974 # &quot;user:[email protected]&quot;
1975 # ]
1976 # },
1977 # {
1978 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
1979 # },
1980 # {
1981 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
1982 # }
1983 # ]
1984 # },
1985 # {
1986 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
1987 # &quot;audit_log_configs&quot;: [
1988 # {
1989 # &quot;log_type&quot;: &quot;DATA_READ&quot;
1990 # },
1991 # {
1992 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1993 # &quot;exempted_members&quot;: [
1994 # &quot;user:[email protected]&quot;
1995 # ]
1996 # }
1997 # ]
1998 # }
1999 # ]
2000 # }
2001 #
2002 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
2003 # logging. It also exempts `[email protected]` from DATA_READ logging, and
2004 # `[email protected]` from DATA_WRITE logging.
2005 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
2006 { # Provides the configuration for logging a type of permissions.
2007 # Example:
2008 #
2009 # {
2010 # &quot;audit_log_configs&quot;: [
2011 # {
2012 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
2013 # &quot;exempted_members&quot;: [
2014 # &quot;user:[email protected]&quot;
2015 # ]
2016 # },
2017 # {
2018 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
2019 # }
2020 # ]
2021 # }
2022 #
2023 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
2024 # [email protected] from DATA_READ logging.
2025 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
2026 # permission.
2027 # Follows the same format of Binding.members.
2028 &quot;A String&quot;,
2029 ],
2030 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
2031 },
2032 ],
2033 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
2034 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
2035 # `allServices` is a special value that covers all services.
2036 },
2037 ],
2038 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally,
2039 # may specify a `condition` that determines how and when the `bindings` are
2040 # applied. Each of the `bindings` must contain at least one principal.
2041 #
2042 # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
2043 # of these principals can be Google groups. Each occurrence of a principal
2044 # counts towards these limits. For example, if the `bindings` grant 50
2045 # different roles to `user:[email protected]`, and not to any other
2046 # principal, then you can add another 1,450 principals to the `bindings` in
2047 # the `Policy`.
2048 { # Associates `members`, or principals, with a `role`.
2049 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
2050 #
2051 # If the condition evaluates to `true`, then this binding applies to the
2052 # current request.
2053 #
2054 # If the condition evaluates to `false`, then this binding does not apply to
2055 # the current request. However, a different role binding might grant the same
2056 # role to one or more of the principals in this binding.
2057 #
2058 # To learn which resources support conditions in their IAM policies, see the
2059 # [IAM
2060 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2061 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
2062 # are documented at https://github.com/google/cel-spec.
2063 #
2064 # Example (Comparison):
2065 #
2066 # title: &quot;Summary size limit&quot;
2067 # description: &quot;Determines if a summary is less than 100 chars&quot;
2068 # expression: &quot;document.summary.size() &lt; 100&quot;
2069 #
2070 # Example (Equality):
2071 #
2072 # title: &quot;Requestor is owner&quot;
2073 # description: &quot;Determines if requestor is the document owner&quot;
2074 # expression: &quot;document.owner == request.auth.claims.email&quot;
2075 #
2076 # Example (Logic):
2077 #
2078 # title: &quot;Public documents&quot;
2079 # description: &quot;Determine whether the document should be publicly visible&quot;
2080 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
2081 #
2082 # Example (Data Manipulation):
2083 #
2084 # title: &quot;Notification string&quot;
2085 # description: &quot;Create a notification string with a timestamp.&quot;
2086 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
2087 #
2088 # The exact variables and functions that may be referenced within an expression
2089 # are determined by the service that evaluates it. See the service
2090 # documentation for additional information.
2091 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
2092 # describes the expression, e.g. when hovered over it in a UI.
2093 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
2094 # syntax.
2095 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
2096 # reporting, e.g. a file name and a position in the file.
2097 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
2098 # its purpose. This can be used e.g. in UIs which allow to enter the
2099 # expression.
2100 },
2101 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
2102 # `members` can have the following values:
2103 #
2104 # * `allUsers`: A special identifier that represents anyone who is
2105 # on the internet; with or without a Google account.
2106 #
2107 # * `allAuthenticatedUsers`: A special identifier that represents anyone
2108 # who is authenticated with a Google account or a service account.
2109 # Does not include identities that come from external identity providers
2110 # (IdPs) through identity federation.
2111 #
2112 # * `user:{emailid}`: An email address that represents a specific Google
2113 # account. For example, `[email protected]` .
2114 #
2115 #
2116 # * `serviceAccount:{emailid}`: An email address that represents a Google
2117 # service account. For example,
2118 # `[email protected]`.
2119 #
2120 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
2121 # identifier for a
2122 # [Kubernetes service
2123 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
2124 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
2125 #
2126 # * `group:{emailid}`: An email address that represents a Google group.
2127 # For example, `[email protected]`.
2128 #
2129 #
2130 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
2131 # users of that domain. For example, `google.com` or `example.com`.
2132 #
2133 #
2134 #
2135 #
2136 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
2137 # A single identity in a workforce identity pool.
2138 #
2139 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
2140 # All workforce identities in a group.
2141 #
2142 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
2143 # All workforce identities with a specific attribute value.
2144 #
2145 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
2146 # All identities in a workforce identity pool.
2147 #
2148 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
2149 # A single identity in a workload identity pool.
2150 #
2151 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
2152 # A workload identity pool group.
2153 #
2154 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
2155 # All identities in a workload identity pool with a certain attribute.
2156 #
2157 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
2158 # All identities in a workload identity pool.
2159 #
2160 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
2161 # identifier) representing a user that has been recently deleted. For
2162 # example, `[email protected]?uid=123456789012345678901`. If the user is
2163 # recovered, this value reverts to `user:{emailid}` and the recovered user
2164 # retains the role in the binding.
2165 #
2166 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
2167 # unique identifier) representing a service account that has been recently
2168 # deleted. For example,
2169 # `[email protected]?uid=123456789012345678901`.
2170 # If the service account is undeleted, this value reverts to
2171 # `serviceAccount:{emailid}` and the undeleted service account retains the
2172 # role in the binding.
2173 #
2174 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
2175 # identifier) representing a Google group that has been recently
2176 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
2177 # the group is recovered, this value reverts to `group:{emailid}` and the
2178 # recovered group retains the role in the binding.
2179 #
2180 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
2181 # Deleted single identity in a workforce identity pool. For example,
2182 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
2183 &quot;A String&quot;,
2184 ],
2185 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
2186 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
2187 #
2188 # For an overview of the IAM roles and permissions, see the
2189 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
2190 # a list of the available pre-defined roles, see
2191 # [here](https://cloud.google.com/iam/docs/understanding-roles).
2192 },
2193 ],
2194 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
2195 # prevent simultaneous updates of a policy from overwriting each other.
2196 # It is strongly suggested that systems make use of the `etag` in the
2197 # read-modify-write cycle to perform policy updates in order to avoid race
2198 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
2199 # systems are expected to put that etag in the request to `setIamPolicy` to
2200 # ensure that their change will be applied to the same version of the policy.
2201 #
2202 # **Important:** If you use IAM Conditions, you must include the `etag` field
2203 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
2204 # you to overwrite a version `3` policy with a version `1` policy, and all of
2205 # the conditions in the version `3` policy are lost.
2206 &quot;version&quot;: 42, # Specifies the format of the policy.
2207 #
2208 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
2209 # are rejected.
2210 #
2211 # Any operation that affects conditional role bindings must specify version
2212 # `3`. This requirement applies to the following operations:
2213 #
2214 # * Getting a policy that includes a conditional role binding
2215 # * Adding a conditional role binding to a policy
2216 # * Changing a conditional role binding in a policy
2217 # * Removing any role binding, with or without a condition, from a policy
2218 # that includes conditions
2219 #
2220 # **Important:** If you use IAM Conditions, you must include the `etag` field
2221 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
2222 # you to overwrite a version `3` policy with a version `1` policy, and all of
2223 # the conditions in the version `3` policy are lost.
2224 #
2225 # If a policy does not include any conditions, operations on that policy may
2226 # specify any valid version or leave the field unset.
2227 #
2228 # To learn which resources support conditions in their IAM policies, see the
2229 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2230 }</pre>
2231 </div>
2232
2233 <div class="method">
2234 <code class="details" id="testIamPermissions">testIamPermissions(project, region, resource, body=None, x__xgafv=None)</code>
2235 <pre>Returns permissions that a caller has on the specified resource.
2236
2237 Args:
2238 project: string, Project ID for this request. (required)
2239 region: string, The name of the region for this request. (required)
2240 resource: string, Name or id of the resource for this request. (required)
2241 body: object, The request body.
2242 The object takes the form of:
2243
2244 {
2245 &quot;permissions&quot;: [ # The set of permissions to check for the &#x27;resource&#x27;. Permissions with
2246 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed.
2247 &quot;A String&quot;,
2248 ],
2249 }
2250
2251 x__xgafv: string, V1 error format.
2252 Allowed values
2253 1 - v1 error format
2254 2 - v2 error format
2255
2256 Returns:
2257 An object of the form:
2258
2259 {
2260 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
2261 # allowed.
2262 &quot;A String&quot;,
2263 ],
2264 }</pre>
2265 </div>
2266
2267 </body></html>