Debian Codegraph @

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