Debian Codegraph @

docs/dyn/compute_alpha.recoverableSnapshots.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="compute_alpha.html">Compute Engine API</a> . <a href="compute_alpha.recoverableSnapshots.html">recoverableSnapshots</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, serviceProjectNumber=None, x__xgafv=None)</a></code></p>
79 <p class="firstline">Retrieves an aggregated list of all of the RecoverableSnapshots in your</p>
80 <p class="toc_element">
81 <code><a href="#aggregatedList_next">aggregatedList_next()</a></code></p>
82 <p class="firstline">Retrieves the next page of results.</p>
83 <p class="toc_element">
84 <code><a href="#close">close()</a></code></p>
85 <p class="firstline">Close httplib2 connections.</p>
86 <p class="toc_element">
87 <code><a href="#delete">delete(project, recoverableSnapshot, requestId=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Deletes the specified RecoverableSnapshot. Deleting a recoverable snapshot</p>
89 <p class="toc_element">
90 <code><a href="#get">get(project, recoverableSnapshot, x__xgafv=None)</a></code></p>
91 <p class="firstline">Returns the specified RecoverableSnapshot resource.</p>
92 <p class="toc_element">
93 <code><a href="#getIamPolicy">getIamPolicy(project, resource, optionsRequestedPolicyVersion=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Gets the access control policy for a resource. May be empty if no such</p>
95 <p class="toc_element">
96 <code><a href="#list">list(project, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Retrieves a list of all of the RecoverableSnapshots in your project.</p>
98 <p class="toc_element">
99 <code><a href="#list_next">list_next()</a></code></p>
100 <p class="firstline">Retrieves the next page of results.</p>
101 <p class="toc_element">
102 <code><a href="#recover">recover(project, recoverableSnapshot, requestId=None, snapshotName=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Recovers the specified RecoverableSnapshot.</p>
104 <p class="toc_element">
105 <code><a href="#setIamPolicy">setIamPolicy(project, resource, body=None, x__xgafv=None)</a></code></p>
106 <p class="firstline">Sets the access control policy on the specified resource.</p>
107 <p class="toc_element">
108 <code><a href="#testIamPermissions">testIamPermissions(project, resource, body=None, x__xgafv=None)</a></code></p>
109 <p class="firstline">Returns permissions that a caller has on the specified resource.</p>
110 <h3>Method Details</h3>
111 <div class="method">
112 <code class="details" id="aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, serviceProjectNumber=None, x__xgafv=None)</code>
113 <pre>Retrieves an aggregated list of all of the RecoverableSnapshots in your
114 project across all regions and global scope.
115
116 Args:
117 project: string, Project ID for this request. (required)
118 filter: string, A filter expression that filters resources listed in the response. Most
119 Compute resources support two types of filter expressions:
120 expressions that support regular expressions and expressions that follow
121 API improvement proposal AIP-160.
122 These two types of filter expressions cannot be mixed in one request.
123
124 If you want to use AIP-160, your expression must specify the field name, an
125 operator, and the value that you want to use for filtering. The value
126 must be a string, a number, or a boolean. The operator
127 must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`.
128
129 For example, if you are filtering Compute Engine instances, you can
130 exclude instances named `example-instance` by specifying
131 `name != example-instance`.
132
133 The `:*` comparison can be used to test whether a key has been defined.
134 For example, to find all objects with `owner` label use:
135 ```
136 labels.owner:*
137 ```
138
139 You can also filter nested fields. For example, you could specify
140 `scheduling.automaticRestart = false` to include instances only
141 if they are not scheduled for automatic restarts. You can use filtering
142 on nested fields to filter based onresource labels.
143
144 To filter on multiple expressions, provide each separate expression within
145 parentheses. For example:
146 ```
147 (scheduling.automaticRestart = true)
148 (cpuPlatform = &quot;Intel Skylake&quot;)
149 ```
150 By default, each expression is an `AND` expression. However, you
151 can include `AND` and `OR` expressions explicitly.
152 For example:
153 ```
154 (cpuPlatform = &quot;Intel Skylake&quot;) OR
155 (cpuPlatform = &quot;Intel Broadwell&quot;) AND
156 (scheduling.automaticRestart = true)
157 ```
158
159 If you want to use a regular expression, use the `eq` (equal) or `ne`
160 (not equal) operator against a single un-parenthesized expression with or
161 without quotes or against multiple parenthesized expressions. Examples:
162
163 `fieldname eq unquoted literal`
164 `fieldname eq &#x27;single quoted literal&#x27;`
165 `fieldname eq &quot;double quoted literal&quot;`
166 `(fieldname1 eq literal) (fieldname2 ne &quot;literal&quot;)`
167
168 The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
169 The literal value must match the entire field.
170
171 For example, to filter for instances that do not end with name &quot;instance&quot;,
172 you would use `name ne .*instance`.
173
174 You cannot combine constraints on multiple fields using regular
175 expressions.
176 includeAllScopes: boolean, Indicates whether every visible scope for each scope type (zone, region,
177 global) should be included in the response. For new resource types added
178 after this field, the flag has no effect as new resource types will always
179 include every visible scope for each scope type in response. For resource
180 types which predate this field, if this flag is omitted or false, only
181 scopes of the scope types where the resource type is expected to be found
182 will be included.
183 maxResults: integer, The maximum number of results per page that should be returned.
184 If the number of available results is larger than `maxResults`,
185 Compute Engine returns a `nextPageToken` that can be used to get
186 the next page of results in subsequent list requests. Acceptable values are
187 `0` to `500`, inclusive. (Default: `500`)
188 orderBy: string, Sorts list results by a certain order. By default, results
189 are returned in alphanumerical order based on the resource name.
190
191 You can also sort results in descending order based on the creation
192 timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. This sorts
193 results based on the `creationTimestamp` field in
194 reverse chronological order (newest result first). Use this to sort
195 resources like operations so that the newest operation is returned first.
196
197 Currently, only sorting by `name` or
198 `creationTimestamp desc` is supported.
199 pageToken: string, Specifies a page token to use. Set `pageToken` to the
200 `nextPageToken` returned by a previous list request to get
201 the next page of results.
202 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case
203 of failure. The default value is false.
204
205 For example, when partial success behavior is enabled, aggregatedList for a
206 single zone scope either returns all resources in the zone or no resources,
207 with an error code.
208 serviceProjectNumber: string, The Shared VPC service project id or service project number for which
209 aggregated list request is invoked for subnetworks list-usable api.
210 x__xgafv: string, V1 error format.
211 Allowed values
212 1 - v1 error format
213 2 - v2 error format
214
215 Returns:
216 An object of the form:
217
218 {
219 &quot;etag&quot;: &quot;A String&quot;,
220 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
221 &quot;items&quot;: { # A list of RecoverableSnapshotsScopedList resources.
222 &quot;a_key&quot;: { # [Output Only] Name of the scope containing this set of
223 # recoverablesnapshots.
224 &quot;recoverablesnapshots&quot;: [ # [Output Only] A list of recoverablesnapshots contained in this scope.
225 { # Represents a RecoverableSnapshot resource.
226 #
227 # A RecoverableSnapshot represents a snapshot in recycle bin.
228 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
229 # text format.
230 &quot;description&quot;: &quot;A String&quot;, # Optional. An optional description of this resource.
231 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the resource. This identifier is
232 # defined by the server.
233 &quot;kind&quot;: &quot;compute#recoverableSnapshot&quot;, # Output only. [Output Only] Type of the resource. Alwayscompute#recoverableSnapshot for RecoverableSnapshot
234 # resources.
235 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. Name of the recoverable snapshot generated on the deletion of the snapshot.
236 # The name will be 1-63 characters long, and comply withRFC1035.
237 # Specifically, the name will be 1-63 characters long and match the regular
238 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
239 # character will be a lowercase letter, and all following characters can be
240 # a dash, lowercase letter, or digit, except the last character, which cannot
241 # be a dash.
242 &quot;originalResource&quot;: { # Output only. Output Only] The original snapshot resource.
243 &quot;architecture&quot;: &quot;A String&quot;, # Output only. [Output Only] The architecture of the snapshot. Valid values are
244 # ARM64 or X86_64.
245 &quot;autoCreated&quot;: True or False, # Output only. [Output Only] Set to true if snapshots are automatically created by
246 # applying resource policy on the target disk.
247 &quot;chainName&quot;: &quot;A String&quot;, # Creates the new snapshot in the snapshot chain labeled with the
248 # specified name. The chain name must be 1-63 characters long and comply
249 # with RFC1035. This is an uncommon option only for advanced service
250 # owners who needs to create separate snapshot chains, for example,
251 # for chargeback tracking. When you describe your snapshot resource, this
252 # field is visible only if it has a non-empty value.
253 &quot;creationSizeBytes&quot;: &quot;A String&quot;, # Output only. [Output Only] Size in bytes of the snapshot at creation time.
254 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339 text format.
255 &quot;deletionTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Purge timestamp of recoverable snapshot inRFC3339 text format.
256 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource.
257 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Output only. [Output Only] Size of the source disk, specified in GB.
258 &quot;downloadBytes&quot;: &quot;A String&quot;, # Output only. [Output Only] Number of bytes downloaded to restore a snapshot to a disk.
259 &quot;enableConfidentialCompute&quot;: True or False, # Output only. Whether this snapshot is created from a confidential compute mode disk.
260 # [Output Only]: This field is not set by user, but from source disk.
261 &quot;guestOsFeatures&quot;: [ # Output only. [Output Only] A list of features to enable on the guest operating system.
262 # Applicable only for bootable images. Read
263 # Enabling guest operating system features to see a list of available
264 # options.
265 { # Guest OS features.
266 &quot;type&quot;: &quot;A String&quot;, # The ID of a supported feature. To add multiple values, use commas to
267 # separate values. Set to one or more of the following values:
268 #
269 # - VIRTIO_SCSI_MULTIQUEUE
270 # - WINDOWS
271 # - MULTI_IP_SUBNET
272 # - UEFI_COMPATIBLE
273 # - GVNIC
274 # - SEV_CAPABLE
275 # - SUSPEND_RESUME_COMPATIBLE
276 # - SEV_LIVE_MIGRATABLE_V2
277 # - SEV_SNP_CAPABLE
278 # - TDX_CAPABLE
279 # - IDPF
280 # - SNP_SVSM_CAPABLE
281 # - CCA_CAPABLE
282 #
283 #
284 # For more information, see
285 # Enabling guest operating system features.
286 },
287 ],
288 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the original snapshot. This
289 # identifier is defined by the server.
290 &quot;labelFingerprint&quot;: &quot;A String&quot;, # A fingerprint for the labels being applied to this snapshot, which is
291 # essentially a hash of the labels set used for optimistic locking. The
292 # fingerprint is initially generated by Compute Engine and changes after
293 # every request to modify or update labels. You must always provide an
294 # up-to-date fingerprint hash in order to update or change labels,
295 # otherwise the request will fail with error412 conditionNotMet.
296 #
297 # To see the latest fingerprint, make a get() request to
298 # retrieve a snapshot.
299 &quot;labels&quot;: { # Labels to apply to this snapshot. These can be later modified by
300 # the setLabels method.
301 # Label values may be empty.
302 &quot;a_key&quot;: &quot;A String&quot;,
303 },
304 &quot;licenseCodes&quot;: [ # Output only. [Output Only] Integer license codes indicating which licenses are
305 # attached to this snapshot.
306 &quot;A String&quot;,
307 ],
308 &quot;licenses&quot;: [ # Output only. [Output Only] A list of public visible licenses that apply to this
309 # snapshot.
310 &quot;A String&quot;,
311 ],
312 &quot;maxRetentionDays&quot;: 42, # Number of days the snapshot should be retained before being deleted
313 # automatically.
314 &quot;name&quot;: &quot;A String&quot;, # Name of the original snapshot provided by the client. The name must be
315 # 1-63 characters long, and comply with RFC1035.
316 # Specifically, the name must be 1-63 characters long and match the regular
317 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
318 # character must be a lowercase letter, and all following characters must
319 # be a dash, lowercase letter, or digit, except the last character, which
320 # cannot be a dash.
321 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the snapshot resides. Only
322 # applicable for regional snapshots.
323 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
324 &quot;satisfiesPzs&quot;: True or False, # Output only. [Output Only] Reserved for future use.
325 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for the resource.
326 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource&#x27;s resource id.
327 &quot;snapshotEncryptionKey&quot;: { # Encrypts the snapshot using acustomer-supplied
328 # encryption key.
329 #
330 # After you encrypt a snapshot using a customer-supplied key, you must
331 # provide the same key if you use the snapshot later. For example, you must
332 # provide the encryption key when you create a disk from the encrypted
333 # snapshot in a future request.
334 #
335 # Customer-supplied encryption keys do not protect access to metadata
336 # of the snapshot.
337 #
338 # If you do not provide an encryption key when creating the snapshot, then
339 # the snapshot will be encrypted using an automatically generated key and
340 # you do not need to provide a key to use the snapshot later.
341 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS.
342 # For example:
343 #
344 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
345 # key_region/cryptoKeys/key
346 #
347 # The fully-qualifed key name may be returned for resource GET requests. For
348 # example:
349 #
350 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
351 # key_region/cryptoKeys/key
352 # /cryptoKeyVersions/1
353 &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # The service account being used for the encryption request for the given KMS
354 # key. If absent, the Compute Engine default service account is used.
355 # For example:
356 #
357 # &quot;kmsKeyServiceAccount&quot;: &quot;name@project_id.iam.gserviceaccount.com/
358 &quot;rawKey&quot;: &quot;A String&quot;, # Specifies a 256-bit customer-supplied
359 # encryption key, encoded in RFC
360 # 4648 base64 to either encrypt or decrypt this resource. You can
361 # provide either the rawKey or thersaEncryptedKey.
362 # For example:
363 #
364 # &quot;rawKey&quot;:
365 # &quot;SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=&quot;
366 &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
367 # customer-supplied encryption key to either encrypt or decrypt this
368 # resource. You can provide either the rawKey or thersaEncryptedKey.
369 # For example:
370 #
371 # &quot;rsaEncryptedKey&quot;:
372 # &quot;ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
373 # z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
374 # D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==&quot;
375 #
376 # The key must meet the following requirements before you can provide it to
377 # Compute Engine:
378 #
379 # 1. The key is wrapped using a RSA public key certificate provided by
380 # Google.
381 # 2. After being wrapped, the key must be encoded in RFC 4648 base64
382 # encoding.
383 #
384 # Gets the RSA public key certificate provided by Google at:
385 #
386 #
387 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
388 &quot;sha256&quot;: &quot;A String&quot;, # [Output only] TheRFC
389 # 4648 base64 encoded SHA-256 hash of the customer-supplied
390 # encryption key that protects this resource.
391 },
392 &quot;snapshotGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique ID of the snapshot group that this snapshot
393 # belongs to. The usage of snapshot group feature is restricted.
394 &quot;snapshotGroupName&quot;: &quot;A String&quot;, # Output only. [Output only] The snapshot group that this snapshot belongs to. The usage
395 # of snapshot group feature is restricted.
396 &quot;snapshotType&quot;: &quot;A String&quot;, # Indicates the type of the snapshot.
397 &quot;sourceDisk&quot;: &quot;A String&quot;, # The source disk used to create this snapshot.
398 &quot;sourceDiskEncryptionKey&quot;: { # The customer-supplied
399 # encryption key of the source disk. Required if the source disk is
400 # protected by a customer-supplied encryption key.
401 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS.
402 # For example:
403 #
404 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
405 # key_region/cryptoKeys/key
406 #
407 # The fully-qualifed key name may be returned for resource GET requests. For
408 # example:
409 #
410 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
411 # key_region/cryptoKeys/key
412 # /cryptoKeyVersions/1
413 &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # The service account being used for the encryption request for the given KMS
414 # key. If absent, the Compute Engine default service account is used.
415 # For example:
416 #
417 # &quot;kmsKeyServiceAccount&quot;: &quot;name@project_id.iam.gserviceaccount.com/
418 &quot;rawKey&quot;: &quot;A String&quot;, # Specifies a 256-bit customer-supplied
419 # encryption key, encoded in RFC
420 # 4648 base64 to either encrypt or decrypt this resource. You can
421 # provide either the rawKey or thersaEncryptedKey.
422 # For example:
423 #
424 # &quot;rawKey&quot;:
425 # &quot;SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=&quot;
426 &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
427 # customer-supplied encryption key to either encrypt or decrypt this
428 # resource. You can provide either the rawKey or thersaEncryptedKey.
429 # For example:
430 #
431 # &quot;rsaEncryptedKey&quot;:
432 # &quot;ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
433 # z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
434 # D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==&quot;
435 #
436 # The key must meet the following requirements before you can provide it to
437 # Compute Engine:
438 #
439 # 1. The key is wrapped using a RSA public key certificate provided by
440 # Google.
441 # 2. After being wrapped, the key must be encoded in RFC 4648 base64
442 # encoding.
443 #
444 # Gets the RSA public key certificate provided by Google at:
445 #
446 #
447 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
448 &quot;sha256&quot;: &quot;A String&quot;, # [Output only] TheRFC
449 # 4648 base64 encoded SHA-256 hash of the customer-supplied
450 # encryption key that protects this resource.
451 },
452 &quot;sourceDiskForRecoveryCheckpoint&quot;: &quot;A String&quot;, # The source disk whose recovery checkpoint will be used to create this
453 # snapshot.
454 &quot;sourceDiskId&quot;: &quot;A String&quot;, # Output only. [Output Only] The ID value of the disk used to create this snapshot
455 &quot;sourceInstantSnapshot&quot;: &quot;A String&quot;, # The source instant snapshot used to create this snapshot.
456 &quot;sourceInstantSnapshotEncryptionKey&quot;: { # Customer provided encryption key when creating Snapshot from Instant
457 # Snapshot.
458 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS.
459 # For example:
460 #
461 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
462 # key_region/cryptoKeys/key
463 #
464 # The fully-qualifed key name may be returned for resource GET requests. For
465 # example:
466 #
467 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
468 # key_region/cryptoKeys/key
469 # /cryptoKeyVersions/1
470 &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # The service account being used for the encryption request for the given KMS
471 # key. If absent, the Compute Engine default service account is used.
472 # For example:
473 #
474 # &quot;kmsKeyServiceAccount&quot;: &quot;name@project_id.iam.gserviceaccount.com/
475 &quot;rawKey&quot;: &quot;A String&quot;, # Specifies a 256-bit customer-supplied
476 # encryption key, encoded in RFC
477 # 4648 base64 to either encrypt or decrypt this resource. You can
478 # provide either the rawKey or thersaEncryptedKey.
479 # For example:
480 #
481 # &quot;rawKey&quot;:
482 # &quot;SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=&quot;
483 &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
484 # customer-supplied encryption key to either encrypt or decrypt this
485 # resource. You can provide either the rawKey or thersaEncryptedKey.
486 # For example:
487 #
488 # &quot;rsaEncryptedKey&quot;:
489 # &quot;ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
490 # z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
491 # D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==&quot;
492 #
493 # The key must meet the following requirements before you can provide it to
494 # Compute Engine:
495 #
496 # 1. The key is wrapped using a RSA public key certificate provided by
497 # Google.
498 # 2. After being wrapped, the key must be encoded in RFC 4648 base64
499 # encoding.
500 #
501 # Gets the RSA public key certificate provided by Google at:
502 #
503 #
504 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
505 &quot;sha256&quot;: &quot;A String&quot;, # [Output only] TheRFC
506 # 4648 base64 encoded SHA-256 hash of the customer-supplied
507 # encryption key that protects this resource.
508 },
509 &quot;sourceInstantSnapshotId&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique ID of the instant snapshot used to create this
510 # snapshot. This value identifies the exact instant snapshot that was used
511 # to create this persistent disk. For example, if you created the
512 # persistent disk from an instant snapshot that was later deleted and
513 # recreated under the same name, the source instant snapshot ID would
514 # identify the exact instant snapshot that was used.
515 &quot;sourceSnapshotSchedulePolicy&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the resource policy which created this
516 # scheduled snapshot.
517 &quot;sourceSnapshotSchedulePolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] ID of the resource policy which created this
518 # scheduled snapshot.
519 &quot;storageBytes&quot;: &quot;A String&quot;, # Output only. [Output Only] A size of the storage used by the snapshot.
520 &quot;storageBytesStatus&quot;: &quot;A String&quot;, # Output only. [Deprecated] Instead, check the storageBytes field. After
521 # snapshot creation, the storageBytesStatus field is alwaysUP_TO_DATE.
522 # [Output Only] An indicator whether storageBytes is in a
523 # stable state or it is being adjusted as a result of shared storage
524 # reallocation. This status can either be unset, meaning the snapshot is
525 # being created, or UP_TO_DATE, meaning the size of the
526 # snapshot is up-to-date.
527 &quot;storageLocations&quot;: [ # Cloud Storage bucket storage location of the snapshot (regional or
528 # multi-regional).
529 &quot;A String&quot;,
530 ],
531 },
532 &quot;purgeTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Purge timestamp of recoverable snapshot inRFC3339
533 # text format.
534 &quot;satisfiesPzi&quot;: True or False, # Output only. [Output Only] Reserved for future use.
535 &quot;satisfiesPzs&quot;: True or False, # Output only. [Output Only] Reserved for future use.
536 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for the resource.
537 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource&#x27;s resource id.
538 &quot;status&quot;: &quot;A String&quot;, # Output only. [Output Only] Status of the recoverable snapshot.
539 },
540 ],
541 &quot;warning&quot;: { # [Output Only] Informational warning which replaces the list of
542 # recoverablesnapshots when the list is empty.
543 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
544 # Engine returns NO_RESULTS_ON_PAGE if there
545 # are no results in the response.
546 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
547 # value format. For example:
548 #
549 # &quot;data&quot;: [
550 # {
551 # &quot;key&quot;: &quot;scope&quot;,
552 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
553 # }
554 {
555 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
556 # returned. For example, for warnings where there are no results in a list
557 # request for a particular zone, this key might be scope and
558 # the key value might be the zone name. Other examples might be a key
559 # indicating a deprecated resource and a suggested replacement, or a
560 # warning about invalid network settings (for example, if an instance
561 # attempts to perform IP forwarding but is not enabled for IP forwarding).
562 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
563 },
564 ],
565 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
566 },
567 },
568 },
569 &quot;kind&quot;: &quot;compute#recoverableSnapshotAggregatedList&quot;, # Output only. [Output Only] Type of resource. Alwayscompute#recoverableSnapshotAggregatedList for aggregated lists
570 # of recoverablesnapshots.
571 &quot;nextPageToken&quot;: &quot;A String&quot;, # [Output Only] This token allows you to get the next page of results for
572 # list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
573 # the query parameter pageToken in the next list request.
574 # Subsequent list requests will have their own nextPageToken to
575 # continue paging through the results.
576 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource.
577 &quot;unreachables&quot;: [ # Output only. [Output Only] Unreachable resources.
578 # end_interface:
579 # MixerListResponseWithEtagBuilder
580 &quot;A String&quot;,
581 ],
582 &quot;warning&quot;: { # [Output Only] Informational warning message.
583 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
584 # Engine returns NO_RESULTS_ON_PAGE if there
585 # are no results in the response.
586 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
587 # value format. For example:
588 #
589 # &quot;data&quot;: [
590 # {
591 # &quot;key&quot;: &quot;scope&quot;,
592 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
593 # }
594 {
595 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
596 # returned. For example, for warnings where there are no results in a list
597 # request for a particular zone, this key might be scope and
598 # the key value might be the zone name. Other examples might be a key
599 # indicating a deprecated resource and a suggested replacement, or a
600 # warning about invalid network settings (for example, if an instance
601 # attempts to perform IP forwarding but is not enabled for IP forwarding).
602 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
603 },
604 ],
605 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
606 },
607 }</pre>
608 </div>
609
610 <div class="method">
611 <code class="details" id="aggregatedList_next">aggregatedList_next()</code>
612 <pre>Retrieves the next page of results.
613
614 Args:
615 previous_request: The request for the previous page. (required)
616 previous_response: The response from the request for the previous page. (required)
617
618 Returns:
619 A request object that you can call &#x27;execute()&#x27; on to request the next
620 page. Returns None if there are no more items in the collection.
621 </pre>
622 </div>
623
624 <div class="method">
625 <code class="details" id="close">close()</code>
626 <pre>Close httplib2 connections.</pre>
627 </div>
628
629 <div class="method">
630 <code class="details" id="delete">delete(project, recoverableSnapshot, requestId=None, x__xgafv=None)</code>
631 <pre>Deletes the specified RecoverableSnapshot. Deleting a recoverable snapshot
632 will delete the underlying PD snapshot and is irreversible.
633
634 Args:
635 project: string, Project ID for this request. (required)
636 recoverableSnapshot: string, Name of the recoverable Snapshot resource to delete. (required)
637 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
638 that if you must retry your request, the server will know to ignore the
639 request if it has already been completed.
640
641 For example, consider a situation where you make an initial request and
642 the request times out. If you make the request again with the same
643 request ID, the server can check if original operation with the same
644 request ID was received, and if so, will ignore the second request. This
645 prevents clients from accidentally creating duplicate commitments.
646
647 The request ID must be
648 a valid UUID with the exception that zero UUID is not supported
649 (00000000-0000-0000-0000-000000000000).
650 x__xgafv: string, V1 error format.
651 Allowed values
652 1 - v1 error format
653 2 - v2 error format
654
655 Returns:
656 An object of the form:
657
658 { # Represents an Operation resource.
659 #
660 # Google Compute Engine has three Operation resources:
661 #
662 # * [Global](/compute/docs/reference/rest/alpha/globalOperations)
663 # * [Regional](/compute/docs/reference/rest/alpha/regionOperations)
664 # * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations)
665 #
666 # You can use an operation resource to manage asynchronous API requests.
667 # For more information, readHandling
668 # API responses.
669 #
670 # Operations can be global, regional or zonal.
671 #
672 # - For global operations, use the `globalOperations`
673 # resource.
674 # - For regional operations, use the
675 # `regionOperations` resource.
676 # - For zonal operations, use
677 # the `zoneOperations` resource.
678 #
679 #
680 #
681 # For more information, read
682 # Global, Regional, and Zonal Resources.
683 #
684 # Note that completed Operation resources have a limited
685 # retention period.
686 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
687 # Not present otherwise.
688 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
689 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
690 # set when the operation is created.
691 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
692 # text format.
693 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
694 # this field will be populated.
695 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
696 # operation.
697 {
698 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
699 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
700 # details. There is a set of defined message types to use for providing
701 # details.The syntax depends on the error code. For example,
702 # QuotaExceededInfo will have details when the error code is
703 # QUOTA_EXCEEDED.
704 {
705 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
706 #
707 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
708 # is not enabled:
709 #
710 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
711 # &quot;domain&quot;: &quot;googleapis.com&quot;
712 # &quot;metadata&quot;: {
713 # &quot;resource&quot;: &quot;projects/123&quot;,
714 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
715 # }
716 # }
717 #
718 # This response indicates that the pubsub.googleapis.com API is not enabled.
719 #
720 # Example of an error that is returned when attempting to create a Spanner
721 # instance in a region that is out of stock:
722 #
723 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
724 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
725 # &quot;metadata&quot;: {
726 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
727 # }
728 # }
729 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
730 # is typically the registered service name of the tool or product that
731 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
732 # generated by some common infrastructure, the error domain must be a
733 # globally unique value that identifies the infrastructure. For Google API
734 # infrastructure, the error domain is &quot;googleapis.com&quot;.
735 &quot;metadatas&quot;: { # Additional structured details about this error.
736 #
737 # Keys must match a regular expression of `a-z+` but should
738 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
739 # length. When identifying the current value of an exceeded limit, the units
740 # should be contained in the key, not the value. For example, rather than
741 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
742 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
743 # instances that can be created in a single (batch) request.
744 &quot;a_key&quot;: &quot;A String&quot;,
745 },
746 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
747 # proximate cause of the error. Error reasons are unique within a particular
748 # domain of errors. This should be at most 63 characters and match a
749 # regular expression of `A-Z+[A-Z0-9]`, which represents
750 # UPPER_SNAKE_CASE.
751 },
752 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
753 #
754 # For example, if a quota check failed with an error indicating the calling
755 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
756 # directly to the right place in the developer console to flip the bit.
757 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
758 { # Describes a URL link.
759 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
760 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
761 },
762 ],
763 },
764 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
765 # which can be attached to an RPC error.
766 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
767 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
768 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
769 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
770 },
771 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
772 &quot;dimensions&quot;: { # The map holding related quota dimensions.
773 &quot;a_key&quot;: &quot;A String&quot;,
774 },
775 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
776 # type or metric.
777 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
778 # or metric.
779 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
780 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
781 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
782 },
783 },
784 ],
785 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
786 # This property is optional.
787 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
788 },
789 ],
790 },
791 &quot;getVersionOperationMetadata&quot;: {
792 &quot;inlineSbomInfo&quot;: {
793 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
794 # appropriate identifiers.
795 &quot;a_key&quot;: &quot;A String&quot;,
796 },
797 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
798 # identifiers.
799 &quot;a_key&quot;: &quot;A String&quot;,
800 },
801 },
802 },
803 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
804 # message that was returned, such as `NOT FOUND`.
805 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
806 # status code that was returned. For example, a `404` means the
807 # resource was not found.
808 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
809 # defined by the server.
810 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
811 # This value is inRFC3339
812 # text format.
813 &quot;instancesBulkInsertOperationMetadata&quot;: {
814 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
815 # Example key: zones/us-central1-a
816 &quot;a_key&quot;: {
817 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
818 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
819 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
820 # error.
821 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
822 # if the flow is rolling forward or rolling back.
823 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
824 },
825 },
826 },
827 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
828 # Operation resources.
829 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
830 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
831 # group of operations results from a `bulkInsert` API request.
832 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
833 # `update`, or `delete`, and so on.
834 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
835 # There is no requirement that this be linear or support any granularity of
836 # operations. This should not be used to guess when the operation will be
837 # complete. This number should monotonically increase as the operation
838 # progresses.
839 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
840 # applicable when performing regional operations.
841 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
842 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
843 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
844 # this field will contain information on all underlying zonal actions and
845 # their state.
846 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
847 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
848 # Example key: zones/us-central1-a
849 &quot;a_key&quot;: {
850 &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
851 # populated.
852 # different programming environments, including REST APIs and RPC APIs. It is
853 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
854 # three pieces of data: error code, error message, and error details.
855 #
856 # You can find out more about this error model and how to work with it in the
857 # [API Design Guide](https://cloud.google.com/apis/design/errors).
858 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
859 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
860 # message types for APIs to use.
861 {
862 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
863 },
864 ],
865 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
866 # user-facing error message should be localized and sent in the
867 # google.rpc.Status.details field, or localized by the client.
868 },
869 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
870 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
871 },
872 },
873 },
874 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
875 # This value is inRFC3339
876 # text format.
877 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
878 # following:
879 # `PENDING`, `RUNNING`, or `DONE`.
880 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
881 # operation.
882 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
883 # of the target resource.
884 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
885 # operations related to creating a snapshot, this points to the disk
886 # that the snapshot was created from.
887 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
888 # `[email protected]` or
889 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
890 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
891 # operation, this field will be populated.
892 {
893 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
894 # Engine returns NO_RESULTS_ON_PAGE if there
895 # are no results in the response.
896 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
897 # value format. For example:
898 #
899 # &quot;data&quot;: [
900 # {
901 # &quot;key&quot;: &quot;scope&quot;,
902 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
903 # }
904 {
905 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
906 # returned. For example, for warnings where there are no results in a list
907 # request for a particular zone, this key might be scope and
908 # the key value might be the zone name. Other examples might be a key
909 # indicating a deprecated resource and a suggested replacement, or a
910 # warning about invalid network settings (for example, if an instance
911 # attempts to perform IP forwarding but is not enabled for IP forwarding).
912 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
913 },
914 ],
915 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
916 },
917 ],
918 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
919 # applicable when performing per-zone operations.
920 }</pre>
921 </div>
922
923 <div class="method">
924 <code class="details" id="get">get(project, recoverableSnapshot, x__xgafv=None)</code>
925 <pre>Returns the specified RecoverableSnapshot resource.
926
927 Args:
928 project: string, Project ID for this request. (required)
929 recoverableSnapshot: string, Name of the Snapshot resource to return. (required)
930 x__xgafv: string, V1 error format.
931 Allowed values
932 1 - v1 error format
933 2 - v2 error format
934
935 Returns:
936 An object of the form:
937
938 { # Represents a RecoverableSnapshot resource.
939 #
940 # A RecoverableSnapshot represents a snapshot in recycle bin.
941 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
942 # text format.
943 &quot;description&quot;: &quot;A String&quot;, # Optional. An optional description of this resource.
944 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the resource. This identifier is
945 # defined by the server.
946 &quot;kind&quot;: &quot;compute#recoverableSnapshot&quot;, # Output only. [Output Only] Type of the resource. Alwayscompute#recoverableSnapshot for RecoverableSnapshot
947 # resources.
948 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. Name of the recoverable snapshot generated on the deletion of the snapshot.
949 # The name will be 1-63 characters long, and comply withRFC1035.
950 # Specifically, the name will be 1-63 characters long and match the regular
951 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
952 # character will be a lowercase letter, and all following characters can be
953 # a dash, lowercase letter, or digit, except the last character, which cannot
954 # be a dash.
955 &quot;originalResource&quot;: { # Output only. Output Only] The original snapshot resource.
956 &quot;architecture&quot;: &quot;A String&quot;, # Output only. [Output Only] The architecture of the snapshot. Valid values are
957 # ARM64 or X86_64.
958 &quot;autoCreated&quot;: True or False, # Output only. [Output Only] Set to true if snapshots are automatically created by
959 # applying resource policy on the target disk.
960 &quot;chainName&quot;: &quot;A String&quot;, # Creates the new snapshot in the snapshot chain labeled with the
961 # specified name. The chain name must be 1-63 characters long and comply
962 # with RFC1035. This is an uncommon option only for advanced service
963 # owners who needs to create separate snapshot chains, for example,
964 # for chargeback tracking. When you describe your snapshot resource, this
965 # field is visible only if it has a non-empty value.
966 &quot;creationSizeBytes&quot;: &quot;A String&quot;, # Output only. [Output Only] Size in bytes of the snapshot at creation time.
967 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339 text format.
968 &quot;deletionTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Purge timestamp of recoverable snapshot inRFC3339 text format.
969 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource.
970 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Output only. [Output Only] Size of the source disk, specified in GB.
971 &quot;downloadBytes&quot;: &quot;A String&quot;, # Output only. [Output Only] Number of bytes downloaded to restore a snapshot to a disk.
972 &quot;enableConfidentialCompute&quot;: True or False, # Output only. Whether this snapshot is created from a confidential compute mode disk.
973 # [Output Only]: This field is not set by user, but from source disk.
974 &quot;guestOsFeatures&quot;: [ # Output only. [Output Only] A list of features to enable on the guest operating system.
975 # Applicable only for bootable images. Read
976 # Enabling guest operating system features to see a list of available
977 # options.
978 { # Guest OS features.
979 &quot;type&quot;: &quot;A String&quot;, # The ID of a supported feature. To add multiple values, use commas to
980 # separate values. Set to one or more of the following values:
981 #
982 # - VIRTIO_SCSI_MULTIQUEUE
983 # - WINDOWS
984 # - MULTI_IP_SUBNET
985 # - UEFI_COMPATIBLE
986 # - GVNIC
987 # - SEV_CAPABLE
988 # - SUSPEND_RESUME_COMPATIBLE
989 # - SEV_LIVE_MIGRATABLE_V2
990 # - SEV_SNP_CAPABLE
991 # - TDX_CAPABLE
992 # - IDPF
993 # - SNP_SVSM_CAPABLE
994 # - CCA_CAPABLE
995 #
996 #
997 # For more information, see
998 # Enabling guest operating system features.
999 },
1000 ],
1001 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the original snapshot. This
1002 # identifier is defined by the server.
1003 &quot;labelFingerprint&quot;: &quot;A String&quot;, # A fingerprint for the labels being applied to this snapshot, which is
1004 # essentially a hash of the labels set used for optimistic locking. The
1005 # fingerprint is initially generated by Compute Engine and changes after
1006 # every request to modify or update labels. You must always provide an
1007 # up-to-date fingerprint hash in order to update or change labels,
1008 # otherwise the request will fail with error412 conditionNotMet.
1009 #
1010 # To see the latest fingerprint, make a get() request to
1011 # retrieve a snapshot.
1012 &quot;labels&quot;: { # Labels to apply to this snapshot. These can be later modified by
1013 # the setLabels method.
1014 # Label values may be empty.
1015 &quot;a_key&quot;: &quot;A String&quot;,
1016 },
1017 &quot;licenseCodes&quot;: [ # Output only. [Output Only] Integer license codes indicating which licenses are
1018 # attached to this snapshot.
1019 &quot;A String&quot;,
1020 ],
1021 &quot;licenses&quot;: [ # Output only. [Output Only] A list of public visible licenses that apply to this
1022 # snapshot.
1023 &quot;A String&quot;,
1024 ],
1025 &quot;maxRetentionDays&quot;: 42, # Number of days the snapshot should be retained before being deleted
1026 # automatically.
1027 &quot;name&quot;: &quot;A String&quot;, # Name of the original snapshot provided by the client. The name must be
1028 # 1-63 characters long, and comply with RFC1035.
1029 # Specifically, the name must be 1-63 characters long and match the regular
1030 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
1031 # character must be a lowercase letter, and all following characters must
1032 # be a dash, lowercase letter, or digit, except the last character, which
1033 # cannot be a dash.
1034 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the snapshot resides. Only
1035 # applicable for regional snapshots.
1036 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
1037 &quot;satisfiesPzs&quot;: True or False, # Output only. [Output Only] Reserved for future use.
1038 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for the resource.
1039 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource&#x27;s resource id.
1040 &quot;snapshotEncryptionKey&quot;: { # Encrypts the snapshot using acustomer-supplied
1041 # encryption key.
1042 #
1043 # After you encrypt a snapshot using a customer-supplied key, you must
1044 # provide the same key if you use the snapshot later. For example, you must
1045 # provide the encryption key when you create a disk from the encrypted
1046 # snapshot in a future request.
1047 #
1048 # Customer-supplied encryption keys do not protect access to metadata
1049 # of the snapshot.
1050 #
1051 # If you do not provide an encryption key when creating the snapshot, then
1052 # the snapshot will be encrypted using an automatically generated key and
1053 # you do not need to provide a key to use the snapshot later.
1054 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS.
1055 # For example:
1056 #
1057 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
1058 # key_region/cryptoKeys/key
1059 #
1060 # The fully-qualifed key name may be returned for resource GET requests. For
1061 # example:
1062 #
1063 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
1064 # key_region/cryptoKeys/key
1065 # /cryptoKeyVersions/1
1066 &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # The service account being used for the encryption request for the given KMS
1067 # key. If absent, the Compute Engine default service account is used.
1068 # For example:
1069 #
1070 # &quot;kmsKeyServiceAccount&quot;: &quot;name@project_id.iam.gserviceaccount.com/
1071 &quot;rawKey&quot;: &quot;A String&quot;, # Specifies a 256-bit customer-supplied
1072 # encryption key, encoded in RFC
1073 # 4648 base64 to either encrypt or decrypt this resource. You can
1074 # provide either the rawKey or thersaEncryptedKey.
1075 # For example:
1076 #
1077 # &quot;rawKey&quot;:
1078 # &quot;SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=&quot;
1079 &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
1080 # customer-supplied encryption key to either encrypt or decrypt this
1081 # resource. You can provide either the rawKey or thersaEncryptedKey.
1082 # For example:
1083 #
1084 # &quot;rsaEncryptedKey&quot;:
1085 # &quot;ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
1086 # z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
1087 # D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==&quot;
1088 #
1089 # The key must meet the following requirements before you can provide it to
1090 # Compute Engine:
1091 #
1092 # 1. The key is wrapped using a RSA public key certificate provided by
1093 # Google.
1094 # 2. After being wrapped, the key must be encoded in RFC 4648 base64
1095 # encoding.
1096 #
1097 # Gets the RSA public key certificate provided by Google at:
1098 #
1099 #
1100 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
1101 &quot;sha256&quot;: &quot;A String&quot;, # [Output only] TheRFC
1102 # 4648 base64 encoded SHA-256 hash of the customer-supplied
1103 # encryption key that protects this resource.
1104 },
1105 &quot;snapshotGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique ID of the snapshot group that this snapshot
1106 # belongs to. The usage of snapshot group feature is restricted.
1107 &quot;snapshotGroupName&quot;: &quot;A String&quot;, # Output only. [Output only] The snapshot group that this snapshot belongs to. The usage
1108 # of snapshot group feature is restricted.
1109 &quot;snapshotType&quot;: &quot;A String&quot;, # Indicates the type of the snapshot.
1110 &quot;sourceDisk&quot;: &quot;A String&quot;, # The source disk used to create this snapshot.
1111 &quot;sourceDiskEncryptionKey&quot;: { # The customer-supplied
1112 # encryption key of the source disk. Required if the source disk is
1113 # protected by a customer-supplied encryption key.
1114 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS.
1115 # For example:
1116 #
1117 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
1118 # key_region/cryptoKeys/key
1119 #
1120 # The fully-qualifed key name may be returned for resource GET requests. For
1121 # example:
1122 #
1123 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
1124 # key_region/cryptoKeys/key
1125 # /cryptoKeyVersions/1
1126 &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # The service account being used for the encryption request for the given KMS
1127 # key. If absent, the Compute Engine default service account is used.
1128 # For example:
1129 #
1130 # &quot;kmsKeyServiceAccount&quot;: &quot;name@project_id.iam.gserviceaccount.com/
1131 &quot;rawKey&quot;: &quot;A String&quot;, # Specifies a 256-bit customer-supplied
1132 # encryption key, encoded in RFC
1133 # 4648 base64 to either encrypt or decrypt this resource. You can
1134 # provide either the rawKey or thersaEncryptedKey.
1135 # For example:
1136 #
1137 # &quot;rawKey&quot;:
1138 # &quot;SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=&quot;
1139 &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
1140 # customer-supplied encryption key to either encrypt or decrypt this
1141 # resource. You can provide either the rawKey or thersaEncryptedKey.
1142 # For example:
1143 #
1144 # &quot;rsaEncryptedKey&quot;:
1145 # &quot;ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
1146 # z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
1147 # D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==&quot;
1148 #
1149 # The key must meet the following requirements before you can provide it to
1150 # Compute Engine:
1151 #
1152 # 1. The key is wrapped using a RSA public key certificate provided by
1153 # Google.
1154 # 2. After being wrapped, the key must be encoded in RFC 4648 base64
1155 # encoding.
1156 #
1157 # Gets the RSA public key certificate provided by Google at:
1158 #
1159 #
1160 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
1161 &quot;sha256&quot;: &quot;A String&quot;, # [Output only] TheRFC
1162 # 4648 base64 encoded SHA-256 hash of the customer-supplied
1163 # encryption key that protects this resource.
1164 },
1165 &quot;sourceDiskForRecoveryCheckpoint&quot;: &quot;A String&quot;, # The source disk whose recovery checkpoint will be used to create this
1166 # snapshot.
1167 &quot;sourceDiskId&quot;: &quot;A String&quot;, # Output only. [Output Only] The ID value of the disk used to create this snapshot
1168 &quot;sourceInstantSnapshot&quot;: &quot;A String&quot;, # The source instant snapshot used to create this snapshot.
1169 &quot;sourceInstantSnapshotEncryptionKey&quot;: { # Customer provided encryption key when creating Snapshot from Instant
1170 # Snapshot.
1171 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS.
1172 # For example:
1173 #
1174 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
1175 # key_region/cryptoKeys/key
1176 #
1177 # The fully-qualifed key name may be returned for resource GET requests. For
1178 # example:
1179 #
1180 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
1181 # key_region/cryptoKeys/key
1182 # /cryptoKeyVersions/1
1183 &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # The service account being used for the encryption request for the given KMS
1184 # key. If absent, the Compute Engine default service account is used.
1185 # For example:
1186 #
1187 # &quot;kmsKeyServiceAccount&quot;: &quot;name@project_id.iam.gserviceaccount.com/
1188 &quot;rawKey&quot;: &quot;A String&quot;, # Specifies a 256-bit customer-supplied
1189 # encryption key, encoded in RFC
1190 # 4648 base64 to either encrypt or decrypt this resource. You can
1191 # provide either the rawKey or thersaEncryptedKey.
1192 # For example:
1193 #
1194 # &quot;rawKey&quot;:
1195 # &quot;SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=&quot;
1196 &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
1197 # customer-supplied encryption key to either encrypt or decrypt this
1198 # resource. You can provide either the rawKey or thersaEncryptedKey.
1199 # For example:
1200 #
1201 # &quot;rsaEncryptedKey&quot;:
1202 # &quot;ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
1203 # z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
1204 # D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==&quot;
1205 #
1206 # The key must meet the following requirements before you can provide it to
1207 # Compute Engine:
1208 #
1209 # 1. The key is wrapped using a RSA public key certificate provided by
1210 # Google.
1211 # 2. After being wrapped, the key must be encoded in RFC 4648 base64
1212 # encoding.
1213 #
1214 # Gets the RSA public key certificate provided by Google at:
1215 #
1216 #
1217 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
1218 &quot;sha256&quot;: &quot;A String&quot;, # [Output only] TheRFC
1219 # 4648 base64 encoded SHA-256 hash of the customer-supplied
1220 # encryption key that protects this resource.
1221 },
1222 &quot;sourceInstantSnapshotId&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique ID of the instant snapshot used to create this
1223 # snapshot. This value identifies the exact instant snapshot that was used
1224 # to create this persistent disk. For example, if you created the
1225 # persistent disk from an instant snapshot that was later deleted and
1226 # recreated under the same name, the source instant snapshot ID would
1227 # identify the exact instant snapshot that was used.
1228 &quot;sourceSnapshotSchedulePolicy&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the resource policy which created this
1229 # scheduled snapshot.
1230 &quot;sourceSnapshotSchedulePolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] ID of the resource policy which created this
1231 # scheduled snapshot.
1232 &quot;storageBytes&quot;: &quot;A String&quot;, # Output only. [Output Only] A size of the storage used by the snapshot.
1233 &quot;storageBytesStatus&quot;: &quot;A String&quot;, # Output only. [Deprecated] Instead, check the storageBytes field. After
1234 # snapshot creation, the storageBytesStatus field is alwaysUP_TO_DATE.
1235 # [Output Only] An indicator whether storageBytes is in a
1236 # stable state or it is being adjusted as a result of shared storage
1237 # reallocation. This status can either be unset, meaning the snapshot is
1238 # being created, or UP_TO_DATE, meaning the size of the
1239 # snapshot is up-to-date.
1240 &quot;storageLocations&quot;: [ # Cloud Storage bucket storage location of the snapshot (regional or
1241 # multi-regional).
1242 &quot;A String&quot;,
1243 ],
1244 },
1245 &quot;purgeTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Purge timestamp of recoverable snapshot inRFC3339
1246 # text format.
1247 &quot;satisfiesPzi&quot;: True or False, # Output only. [Output Only] Reserved for future use.
1248 &quot;satisfiesPzs&quot;: True or False, # Output only. [Output Only] Reserved for future use.
1249 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for the resource.
1250 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource&#x27;s resource id.
1251 &quot;status&quot;: &quot;A String&quot;, # Output only. [Output Only] Status of the recoverable snapshot.
1252 }</pre>
1253 </div>
1254
1255 <div class="method">
1256 <code class="details" id="getIamPolicy">getIamPolicy(project, resource, optionsRequestedPolicyVersion=None, x__xgafv=None)</code>
1257 <pre>Gets the access control policy for a resource. May be empty if no such
1258 policy or resource exists.
1259
1260 Args:
1261 project: string, Project ID for this request. (required)
1262 resource: string, Name or id of the resource for this request. (required)
1263 optionsRequestedPolicyVersion: integer, Requested IAM Policy version.
1264 x__xgafv: string, V1 error format.
1265 Allowed values
1266 1 - v1 error format
1267 2 - v2 error format
1268
1269 Returns:
1270 An object of the form:
1271
1272 { # An Identity and Access Management (IAM) policy, which specifies access
1273 # controls for Google Cloud resources.
1274 #
1275 #
1276 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
1277 # `members`, or principals, to a single `role`. Principals can be user
1278 # accounts, service accounts, Google groups, and domains (such as G Suite). A
1279 # `role` is a named list of permissions; each `role` can be an IAM predefined
1280 # role or a user-created custom role.
1281 #
1282 # For some types of Google Cloud resources, a `binding` can also specify a
1283 # `condition`, which is a logical expression that allows access to a resource
1284 # only if the expression evaluates to `true`. A condition can add constraints
1285 # based on attributes of the request, the resource, or both. To learn which
1286 # resources support conditions in their IAM policies, see the
1287 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1288 #
1289 # **JSON example:**
1290 #
1291 # ```
1292 # {
1293 # &quot;bindings&quot;: [
1294 # {
1295 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1296 # &quot;members&quot;: [
1297 # &quot;user:[email protected]&quot;,
1298 # &quot;group:[email protected]&quot;,
1299 # &quot;domain:google.com&quot;,
1300 # &quot;serviceAccount:[email protected]&quot;
1301 # ]
1302 # },
1303 # {
1304 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
1305 # &quot;members&quot;: [
1306 # &quot;user:[email protected]&quot;
1307 # ],
1308 # &quot;condition&quot;: {
1309 # &quot;title&quot;: &quot;expirable access&quot;,
1310 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1311 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
1312 # }
1313 # }
1314 # ],
1315 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1316 # &quot;version&quot;: 3
1317 # }
1318 # ```
1319 #
1320 # **YAML example:**
1321 #
1322 # ```
1323 # bindings:
1324 # - members:
1325 # - user:[email protected]
1326 # - group:[email protected]
1327 # - domain:google.com
1328 # - serviceAccount:[email protected]
1329 # role: roles/resourcemanager.organizationAdmin
1330 # - members:
1331 # - user:[email protected]
1332 # role: roles/resourcemanager.organizationViewer
1333 # condition:
1334 # title: expirable access
1335 # description: Does not grant access after Sep 2020
1336 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
1337 # etag: BwWWja0YfJA=
1338 # version: 3
1339 # ```
1340 #
1341 # For a description of IAM and its features, see the
1342 # [IAM documentation](https://cloud.google.com/iam/docs/).
1343 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1344 { # Specifies the audit configuration for a service.
1345 # The configuration determines which permission types are logged, and what
1346 # identities, if any, are exempted from logging.
1347 # An AuditConfig must have one or more AuditLogConfigs.
1348 #
1349 # If there are AuditConfigs for both `allServices` and a specific service,
1350 # the union of the two AuditConfigs is used for that service: the log_types
1351 # specified in each AuditConfig are enabled, and the exempted_members in each
1352 # AuditLogConfig are exempted.
1353 #
1354 # Example Policy with multiple AuditConfigs:
1355 #
1356 # {
1357 # &quot;audit_configs&quot;: [
1358 # {
1359 # &quot;service&quot;: &quot;allServices&quot;,
1360 # &quot;audit_log_configs&quot;: [
1361 # {
1362 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1363 # &quot;exempted_members&quot;: [
1364 # &quot;user:[email protected]&quot;
1365 # ]
1366 # },
1367 # {
1368 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
1369 # },
1370 # {
1371 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
1372 # }
1373 # ]
1374 # },
1375 # {
1376 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
1377 # &quot;audit_log_configs&quot;: [
1378 # {
1379 # &quot;log_type&quot;: &quot;DATA_READ&quot;
1380 # },
1381 # {
1382 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1383 # &quot;exempted_members&quot;: [
1384 # &quot;user:[email protected]&quot;
1385 # ]
1386 # }
1387 # ]
1388 # }
1389 # ]
1390 # }
1391 #
1392 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1393 # logging. It also exempts `[email protected]` from DATA_READ logging, and
1394 # `[email protected]` from DATA_WRITE logging.
1395 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1396 { # Provides the configuration for logging a type of permissions.
1397 # Example:
1398 #
1399 # {
1400 # &quot;audit_log_configs&quot;: [
1401 # {
1402 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1403 # &quot;exempted_members&quot;: [
1404 # &quot;user:[email protected]&quot;
1405 # ]
1406 # },
1407 # {
1408 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
1409 # }
1410 # ]
1411 # }
1412 #
1413 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
1414 # [email protected] from DATA_READ logging.
1415 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1416 # permission.
1417 # Follows the same format of Binding.members.
1418 &quot;A String&quot;,
1419 ],
1420 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1421 },
1422 ],
1423 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
1424 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1425 # `allServices` is a special value that covers all services.
1426 },
1427 ],
1428 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally,
1429 # may specify a `condition` that determines how and when the `bindings` are
1430 # applied. Each of the `bindings` must contain at least one principal.
1431 #
1432 # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
1433 # of these principals can be Google groups. Each occurrence of a principal
1434 # counts towards these limits. For example, if the `bindings` grant 50
1435 # different roles to `user:[email protected]`, and not to any other
1436 # principal, then you can add another 1,450 principals to the `bindings` in
1437 # the `Policy`.
1438 { # Associates `members`, or principals, with a `role`.
1439 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1440 #
1441 # If the condition evaluates to `true`, then this binding applies to the
1442 # current request.
1443 #
1444 # If the condition evaluates to `false`, then this binding does not apply to
1445 # the current request. However, a different role binding might grant the same
1446 # role to one or more of the principals in this binding.
1447 #
1448 # To learn which resources support conditions in their IAM policies, see the
1449 # [IAM
1450 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1451 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1452 # are documented at https://github.com/google/cel-spec.
1453 #
1454 # Example (Comparison):
1455 #
1456 # title: &quot;Summary size limit&quot;
1457 # description: &quot;Determines if a summary is less than 100 chars&quot;
1458 # expression: &quot;document.summary.size() &lt; 100&quot;
1459 #
1460 # Example (Equality):
1461 #
1462 # title: &quot;Requestor is owner&quot;
1463 # description: &quot;Determines if requestor is the document owner&quot;
1464 # expression: &quot;document.owner == request.auth.claims.email&quot;
1465 #
1466 # Example (Logic):
1467 #
1468 # title: &quot;Public documents&quot;
1469 # description: &quot;Determine whether the document should be publicly visible&quot;
1470 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1471 #
1472 # Example (Data Manipulation):
1473 #
1474 # title: &quot;Notification string&quot;
1475 # description: &quot;Create a notification string with a timestamp.&quot;
1476 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1477 #
1478 # The exact variables and functions that may be referenced within an expression
1479 # are determined by the service that evaluates it. See the service
1480 # documentation for additional information.
1481 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1482 # describes the expression, e.g. when hovered over it in a UI.
1483 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1484 # syntax.
1485 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1486 # reporting, e.g. a file name and a position in the file.
1487 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1488 # its purpose. This can be used e.g. in UIs which allow to enter the
1489 # expression.
1490 },
1491 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
1492 # `members` can have the following values:
1493 #
1494 # * `allUsers`: A special identifier that represents anyone who is
1495 # on the internet; with or without a Google account.
1496 #
1497 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1498 # who is authenticated with a Google account or a service account.
1499 # Does not include identities that come from external identity providers
1500 # (IdPs) through identity federation.
1501 #
1502 # * `user:{emailid}`: An email address that represents a specific Google
1503 # account. For example, `[email protected]` .
1504 #
1505 #
1506 # * `serviceAccount:{emailid}`: An email address that represents a Google
1507 # service account. For example,
1508 # `[email protected]`.
1509 #
1510 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
1511 # identifier for a
1512 # [Kubernetes service
1513 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
1514 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
1515 #
1516 # * `group:{emailid}`: An email address that represents a Google group.
1517 # For example, `[email protected]`.
1518 #
1519 #
1520 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1521 # users of that domain. For example, `google.com` or `example.com`.
1522 #
1523 #
1524 #
1525 #
1526 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
1527 # A single identity in a workforce identity pool.
1528 #
1529 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
1530 # All workforce identities in a group.
1531 #
1532 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
1533 # All workforce identities with a specific attribute value.
1534 #
1535 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
1536 # All identities in a workforce identity pool.
1537 #
1538 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
1539 # A single identity in a workload identity pool.
1540 #
1541 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
1542 # A workload identity pool group.
1543 #
1544 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
1545 # All identities in a workload identity pool with a certain attribute.
1546 #
1547 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
1548 # All identities in a workload identity pool.
1549 #
1550 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1551 # identifier) representing a user that has been recently deleted. For
1552 # example, `[email protected]?uid=123456789012345678901`. If the user is
1553 # recovered, this value reverts to `user:{emailid}` and the recovered user
1554 # retains the role in the binding.
1555 #
1556 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1557 # unique identifier) representing a service account that has been recently
1558 # deleted. For example,
1559 # `[email protected]?uid=123456789012345678901`.
1560 # If the service account is undeleted, this value reverts to
1561 # `serviceAccount:{emailid}` and the undeleted service account retains the
1562 # role in the binding.
1563 #
1564 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1565 # identifier) representing a Google group that has been recently
1566 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
1567 # the group is recovered, this value reverts to `group:{emailid}` and the
1568 # recovered group retains the role in the binding.
1569 #
1570 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
1571 # Deleted single identity in a workforce identity pool. For example,
1572 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
1573 &quot;A String&quot;,
1574 ],
1575 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
1576 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1577 #
1578 # For an overview of the IAM roles and permissions, see the
1579 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
1580 # a list of the available pre-defined roles, see
1581 # [here](https://cloud.google.com/iam/docs/understanding-roles).
1582 },
1583 ],
1584 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1585 # prevent simultaneous updates of a policy from overwriting each other.
1586 # It is strongly suggested that systems make use of the `etag` in the
1587 # read-modify-write cycle to perform policy updates in order to avoid race
1588 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1589 # systems are expected to put that etag in the request to `setIamPolicy` to
1590 # ensure that their change will be applied to the same version of the policy.
1591 #
1592 # **Important:** If you use IAM Conditions, you must include the `etag` field
1593 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1594 # you to overwrite a version `3` policy with a version `1` policy, and all of
1595 # the conditions in the version `3` policy are lost.
1596 &quot;version&quot;: 42, # Specifies the format of the policy.
1597 #
1598 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1599 # are rejected.
1600 #
1601 # Any operation that affects conditional role bindings must specify version
1602 # `3`. This requirement applies to the following operations:
1603 #
1604 # * Getting a policy that includes a conditional role binding
1605 # * Adding a conditional role binding to a policy
1606 # * Changing a conditional role binding in a policy
1607 # * Removing any role binding, with or without a condition, from a policy
1608 # that includes conditions
1609 #
1610 # **Important:** If you use IAM Conditions, you must include the `etag` field
1611 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1612 # you to overwrite a version `3` policy with a version `1` policy, and all of
1613 # the conditions in the version `3` policy are lost.
1614 #
1615 # If a policy does not include any conditions, operations on that policy may
1616 # specify any valid version or leave the field unset.
1617 #
1618 # To learn which resources support conditions in their IAM policies, see the
1619 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1620 }</pre>
1621 </div>
1622
1623 <div class="method">
1624 <code class="details" id="list">list(project, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code>
1625 <pre>Retrieves a list of all of the RecoverableSnapshots in your project.
1626
1627 Args:
1628 project: string, Project ID for this request. (required)
1629 filter: string, A filter expression that filters resources listed in the response. Most
1630 Compute resources support two types of filter expressions:
1631 expressions that support regular expressions and expressions that follow
1632 API improvement proposal AIP-160.
1633 These two types of filter expressions cannot be mixed in one request.
1634
1635 If you want to use AIP-160, your expression must specify the field name, an
1636 operator, and the value that you want to use for filtering. The value
1637 must be a string, a number, or a boolean. The operator
1638 must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`.
1639
1640 For example, if you are filtering Compute Engine instances, you can
1641 exclude instances named `example-instance` by specifying
1642 `name != example-instance`.
1643
1644 The `:*` comparison can be used to test whether a key has been defined.
1645 For example, to find all objects with `owner` label use:
1646 ```
1647 labels.owner:*
1648 ```
1649
1650 You can also filter nested fields. For example, you could specify
1651 `scheduling.automaticRestart = false` to include instances only
1652 if they are not scheduled for automatic restarts. You can use filtering
1653 on nested fields to filter based onresource labels.
1654
1655 To filter on multiple expressions, provide each separate expression within
1656 parentheses. For example:
1657 ```
1658 (scheduling.automaticRestart = true)
1659 (cpuPlatform = &quot;Intel Skylake&quot;)
1660 ```
1661 By default, each expression is an `AND` expression. However, you
1662 can include `AND` and `OR` expressions explicitly.
1663 For example:
1664 ```
1665 (cpuPlatform = &quot;Intel Skylake&quot;) OR
1666 (cpuPlatform = &quot;Intel Broadwell&quot;) AND
1667 (scheduling.automaticRestart = true)
1668 ```
1669
1670 If you want to use a regular expression, use the `eq` (equal) or `ne`
1671 (not equal) operator against a single un-parenthesized expression with or
1672 without quotes or against multiple parenthesized expressions. Examples:
1673
1674 `fieldname eq unquoted literal`
1675 `fieldname eq &#x27;single quoted literal&#x27;`
1676 `fieldname eq &quot;double quoted literal&quot;`
1677 `(fieldname1 eq literal) (fieldname2 ne &quot;literal&quot;)`
1678
1679 The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
1680 The literal value must match the entire field.
1681
1682 For example, to filter for instances that do not end with name &quot;instance&quot;,
1683 you would use `name ne .*instance`.
1684
1685 You cannot combine constraints on multiple fields using regular
1686 expressions.
1687 maxResults: integer, The maximum number of results per page that should be returned.
1688 If the number of available results is larger than `maxResults`,
1689 Compute Engine returns a `nextPageToken` that can be used to get
1690 the next page of results in subsequent list requests. Acceptable values are
1691 `0` to `500`, inclusive. (Default: `500`)
1692 orderBy: string, Sorts list results by a certain order. By default, results
1693 are returned in alphanumerical order based on the resource name.
1694
1695 You can also sort results in descending order based on the creation
1696 timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. This sorts
1697 results based on the `creationTimestamp` field in
1698 reverse chronological order (newest result first). Use this to sort
1699 resources like operations so that the newest operation is returned first.
1700
1701 Currently, only sorting by `name` or
1702 `creationTimestamp desc` is supported.
1703 pageToken: string, Specifies a page token to use. Set `pageToken` to the
1704 `nextPageToken` returned by a previous list request to get
1705 the next page of results.
1706 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case
1707 of failure. The default value is false.
1708
1709 For example, when partial success behavior is enabled, aggregatedList for a
1710 single zone scope either returns all resources in the zone or no resources,
1711 with an error code.
1712 x__xgafv: string, V1 error format.
1713 Allowed values
1714 1 - v1 error format
1715 2 - v2 error format
1716
1717 Returns:
1718 An object of the form:
1719
1720 {
1721 &quot;etag&quot;: &quot;A String&quot;,
1722 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
1723 &quot;items&quot;: [ # A list of RecoverableSnapshots resources.
1724 { # Represents a RecoverableSnapshot resource.
1725 #
1726 # A RecoverableSnapshot represents a snapshot in recycle bin.
1727 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
1728 # text format.
1729 &quot;description&quot;: &quot;A String&quot;, # Optional. An optional description of this resource.
1730 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the resource. This identifier is
1731 # defined by the server.
1732 &quot;kind&quot;: &quot;compute#recoverableSnapshot&quot;, # Output only. [Output Only] Type of the resource. Alwayscompute#recoverableSnapshot for RecoverableSnapshot
1733 # resources.
1734 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. Name of the recoverable snapshot generated on the deletion of the snapshot.
1735 # The name will be 1-63 characters long, and comply withRFC1035.
1736 # Specifically, the name will be 1-63 characters long and match the regular
1737 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
1738 # character will be a lowercase letter, and all following characters can be
1739 # a dash, lowercase letter, or digit, except the last character, which cannot
1740 # be a dash.
1741 &quot;originalResource&quot;: { # Output only. Output Only] The original snapshot resource.
1742 &quot;architecture&quot;: &quot;A String&quot;, # Output only. [Output Only] The architecture of the snapshot. Valid values are
1743 # ARM64 or X86_64.
1744 &quot;autoCreated&quot;: True or False, # Output only. [Output Only] Set to true if snapshots are automatically created by
1745 # applying resource policy on the target disk.
1746 &quot;chainName&quot;: &quot;A String&quot;, # Creates the new snapshot in the snapshot chain labeled with the
1747 # specified name. The chain name must be 1-63 characters long and comply
1748 # with RFC1035. This is an uncommon option only for advanced service
1749 # owners who needs to create separate snapshot chains, for example,
1750 # for chargeback tracking. When you describe your snapshot resource, this
1751 # field is visible only if it has a non-empty value.
1752 &quot;creationSizeBytes&quot;: &quot;A String&quot;, # Output only. [Output Only] Size in bytes of the snapshot at creation time.
1753 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339 text format.
1754 &quot;deletionTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Purge timestamp of recoverable snapshot inRFC3339 text format.
1755 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource.
1756 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Output only. [Output Only] Size of the source disk, specified in GB.
1757 &quot;downloadBytes&quot;: &quot;A String&quot;, # Output only. [Output Only] Number of bytes downloaded to restore a snapshot to a disk.
1758 &quot;enableConfidentialCompute&quot;: True or False, # Output only. Whether this snapshot is created from a confidential compute mode disk.
1759 # [Output Only]: This field is not set by user, but from source disk.
1760 &quot;guestOsFeatures&quot;: [ # Output only. [Output Only] A list of features to enable on the guest operating system.
1761 # Applicable only for bootable images. Read
1762 # Enabling guest operating system features to see a list of available
1763 # options.
1764 { # Guest OS features.
1765 &quot;type&quot;: &quot;A String&quot;, # The ID of a supported feature. To add multiple values, use commas to
1766 # separate values. Set to one or more of the following values:
1767 #
1768 # - VIRTIO_SCSI_MULTIQUEUE
1769 # - WINDOWS
1770 # - MULTI_IP_SUBNET
1771 # - UEFI_COMPATIBLE
1772 # - GVNIC
1773 # - SEV_CAPABLE
1774 # - SUSPEND_RESUME_COMPATIBLE
1775 # - SEV_LIVE_MIGRATABLE_V2
1776 # - SEV_SNP_CAPABLE
1777 # - TDX_CAPABLE
1778 # - IDPF
1779 # - SNP_SVSM_CAPABLE
1780 # - CCA_CAPABLE
1781 #
1782 #
1783 # For more information, see
1784 # Enabling guest operating system features.
1785 },
1786 ],
1787 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the original snapshot. This
1788 # identifier is defined by the server.
1789 &quot;labelFingerprint&quot;: &quot;A String&quot;, # A fingerprint for the labels being applied to this snapshot, which is
1790 # essentially a hash of the labels set used for optimistic locking. The
1791 # fingerprint is initially generated by Compute Engine and changes after
1792 # every request to modify or update labels. You must always provide an
1793 # up-to-date fingerprint hash in order to update or change labels,
1794 # otherwise the request will fail with error412 conditionNotMet.
1795 #
1796 # To see the latest fingerprint, make a get() request to
1797 # retrieve a snapshot.
1798 &quot;labels&quot;: { # Labels to apply to this snapshot. These can be later modified by
1799 # the setLabels method.
1800 # Label values may be empty.
1801 &quot;a_key&quot;: &quot;A String&quot;,
1802 },
1803 &quot;licenseCodes&quot;: [ # Output only. [Output Only] Integer license codes indicating which licenses are
1804 # attached to this snapshot.
1805 &quot;A String&quot;,
1806 ],
1807 &quot;licenses&quot;: [ # Output only. [Output Only] A list of public visible licenses that apply to this
1808 # snapshot.
1809 &quot;A String&quot;,
1810 ],
1811 &quot;maxRetentionDays&quot;: 42, # Number of days the snapshot should be retained before being deleted
1812 # automatically.
1813 &quot;name&quot;: &quot;A String&quot;, # Name of the original snapshot provided by the client. The name must be
1814 # 1-63 characters long, and comply with RFC1035.
1815 # Specifically, the name must be 1-63 characters long and match the regular
1816 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
1817 # character must be a lowercase letter, and all following characters must
1818 # be a dash, lowercase letter, or digit, except the last character, which
1819 # cannot be a dash.
1820 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the snapshot resides. Only
1821 # applicable for regional snapshots.
1822 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
1823 &quot;satisfiesPzs&quot;: True or False, # Output only. [Output Only] Reserved for future use.
1824 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for the resource.
1825 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource&#x27;s resource id.
1826 &quot;snapshotEncryptionKey&quot;: { # Encrypts the snapshot using acustomer-supplied
1827 # encryption key.
1828 #
1829 # After you encrypt a snapshot using a customer-supplied key, you must
1830 # provide the same key if you use the snapshot later. For example, you must
1831 # provide the encryption key when you create a disk from the encrypted
1832 # snapshot in a future request.
1833 #
1834 # Customer-supplied encryption keys do not protect access to metadata
1835 # of the snapshot.
1836 #
1837 # If you do not provide an encryption key when creating the snapshot, then
1838 # the snapshot will be encrypted using an automatically generated key and
1839 # you do not need to provide a key to use the snapshot later.
1840 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS.
1841 # For example:
1842 #
1843 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
1844 # key_region/cryptoKeys/key
1845 #
1846 # The fully-qualifed key name may be returned for resource GET requests. For
1847 # example:
1848 #
1849 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
1850 # key_region/cryptoKeys/key
1851 # /cryptoKeyVersions/1
1852 &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # The service account being used for the encryption request for the given KMS
1853 # key. If absent, the Compute Engine default service account is used.
1854 # For example:
1855 #
1856 # &quot;kmsKeyServiceAccount&quot;: &quot;name@project_id.iam.gserviceaccount.com/
1857 &quot;rawKey&quot;: &quot;A String&quot;, # Specifies a 256-bit customer-supplied
1858 # encryption key, encoded in RFC
1859 # 4648 base64 to either encrypt or decrypt this resource. You can
1860 # provide either the rawKey or thersaEncryptedKey.
1861 # For example:
1862 #
1863 # &quot;rawKey&quot;:
1864 # &quot;SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=&quot;
1865 &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
1866 # customer-supplied encryption key to either encrypt or decrypt this
1867 # resource. You can provide either the rawKey or thersaEncryptedKey.
1868 # For example:
1869 #
1870 # &quot;rsaEncryptedKey&quot;:
1871 # &quot;ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
1872 # z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
1873 # D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==&quot;
1874 #
1875 # The key must meet the following requirements before you can provide it to
1876 # Compute Engine:
1877 #
1878 # 1. The key is wrapped using a RSA public key certificate provided by
1879 # Google.
1880 # 2. After being wrapped, the key must be encoded in RFC 4648 base64
1881 # encoding.
1882 #
1883 # Gets the RSA public key certificate provided by Google at:
1884 #
1885 #
1886 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
1887 &quot;sha256&quot;: &quot;A String&quot;, # [Output only] TheRFC
1888 # 4648 base64 encoded SHA-256 hash of the customer-supplied
1889 # encryption key that protects this resource.
1890 },
1891 &quot;snapshotGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique ID of the snapshot group that this snapshot
1892 # belongs to. The usage of snapshot group feature is restricted.
1893 &quot;snapshotGroupName&quot;: &quot;A String&quot;, # Output only. [Output only] The snapshot group that this snapshot belongs to. The usage
1894 # of snapshot group feature is restricted.
1895 &quot;snapshotType&quot;: &quot;A String&quot;, # Indicates the type of the snapshot.
1896 &quot;sourceDisk&quot;: &quot;A String&quot;, # The source disk used to create this snapshot.
1897 &quot;sourceDiskEncryptionKey&quot;: { # The customer-supplied
1898 # encryption key of the source disk. Required if the source disk is
1899 # protected by a customer-supplied encryption key.
1900 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS.
1901 # For example:
1902 #
1903 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
1904 # key_region/cryptoKeys/key
1905 #
1906 # The fully-qualifed key name may be returned for resource GET requests. For
1907 # example:
1908 #
1909 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
1910 # key_region/cryptoKeys/key
1911 # /cryptoKeyVersions/1
1912 &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # The service account being used for the encryption request for the given KMS
1913 # key. If absent, the Compute Engine default service account is used.
1914 # For example:
1915 #
1916 # &quot;kmsKeyServiceAccount&quot;: &quot;name@project_id.iam.gserviceaccount.com/
1917 &quot;rawKey&quot;: &quot;A String&quot;, # Specifies a 256-bit customer-supplied
1918 # encryption key, encoded in RFC
1919 # 4648 base64 to either encrypt or decrypt this resource. You can
1920 # provide either the rawKey or thersaEncryptedKey.
1921 # For example:
1922 #
1923 # &quot;rawKey&quot;:
1924 # &quot;SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=&quot;
1925 &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
1926 # customer-supplied encryption key to either encrypt or decrypt this
1927 # resource. You can provide either the rawKey or thersaEncryptedKey.
1928 # For example:
1929 #
1930 # &quot;rsaEncryptedKey&quot;:
1931 # &quot;ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
1932 # z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
1933 # D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==&quot;
1934 #
1935 # The key must meet the following requirements before you can provide it to
1936 # Compute Engine:
1937 #
1938 # 1. The key is wrapped using a RSA public key certificate provided by
1939 # Google.
1940 # 2. After being wrapped, the key must be encoded in RFC 4648 base64
1941 # encoding.
1942 #
1943 # Gets the RSA public key certificate provided by Google at:
1944 #
1945 #
1946 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
1947 &quot;sha256&quot;: &quot;A String&quot;, # [Output only] TheRFC
1948 # 4648 base64 encoded SHA-256 hash of the customer-supplied
1949 # encryption key that protects this resource.
1950 },
1951 &quot;sourceDiskForRecoveryCheckpoint&quot;: &quot;A String&quot;, # The source disk whose recovery checkpoint will be used to create this
1952 # snapshot.
1953 &quot;sourceDiskId&quot;: &quot;A String&quot;, # Output only. [Output Only] The ID value of the disk used to create this snapshot
1954 &quot;sourceInstantSnapshot&quot;: &quot;A String&quot;, # The source instant snapshot used to create this snapshot.
1955 &quot;sourceInstantSnapshotEncryptionKey&quot;: { # Customer provided encryption key when creating Snapshot from Instant
1956 # Snapshot.
1957 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS.
1958 # For example:
1959 #
1960 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
1961 # key_region/cryptoKeys/key
1962 #
1963 # The fully-qualifed key name may be returned for resource GET requests. For
1964 # example:
1965 #
1966 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
1967 # key_region/cryptoKeys/key
1968 # /cryptoKeyVersions/1
1969 &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # The service account being used for the encryption request for the given KMS
1970 # key. If absent, the Compute Engine default service account is used.
1971 # For example:
1972 #
1973 # &quot;kmsKeyServiceAccount&quot;: &quot;name@project_id.iam.gserviceaccount.com/
1974 &quot;rawKey&quot;: &quot;A String&quot;, # Specifies a 256-bit customer-supplied
1975 # encryption key, encoded in RFC
1976 # 4648 base64 to either encrypt or decrypt this resource. You can
1977 # provide either the rawKey or thersaEncryptedKey.
1978 # For example:
1979 #
1980 # &quot;rawKey&quot;:
1981 # &quot;SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=&quot;
1982 &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
1983 # customer-supplied encryption key to either encrypt or decrypt this
1984 # resource. You can provide either the rawKey or thersaEncryptedKey.
1985 # For example:
1986 #
1987 # &quot;rsaEncryptedKey&quot;:
1988 # &quot;ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
1989 # z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
1990 # D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==&quot;
1991 #
1992 # The key must meet the following requirements before you can provide it to
1993 # Compute Engine:
1994 #
1995 # 1. The key is wrapped using a RSA public key certificate provided by
1996 # Google.
1997 # 2. After being wrapped, the key must be encoded in RFC 4648 base64
1998 # encoding.
1999 #
2000 # Gets the RSA public key certificate provided by Google at:
2001 #
2002 #
2003 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
2004 &quot;sha256&quot;: &quot;A String&quot;, # [Output only] TheRFC
2005 # 4648 base64 encoded SHA-256 hash of the customer-supplied
2006 # encryption key that protects this resource.
2007 },
2008 &quot;sourceInstantSnapshotId&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique ID of the instant snapshot used to create this
2009 # snapshot. This value identifies the exact instant snapshot that was used
2010 # to create this persistent disk. For example, if you created the
2011 # persistent disk from an instant snapshot that was later deleted and
2012 # recreated under the same name, the source instant snapshot ID would
2013 # identify the exact instant snapshot that was used.
2014 &quot;sourceSnapshotSchedulePolicy&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the resource policy which created this
2015 # scheduled snapshot.
2016 &quot;sourceSnapshotSchedulePolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] ID of the resource policy which created this
2017 # scheduled snapshot.
2018 &quot;storageBytes&quot;: &quot;A String&quot;, # Output only. [Output Only] A size of the storage used by the snapshot.
2019 &quot;storageBytesStatus&quot;: &quot;A String&quot;, # Output only. [Deprecated] Instead, check the storageBytes field. After
2020 # snapshot creation, the storageBytesStatus field is alwaysUP_TO_DATE.
2021 # [Output Only] An indicator whether storageBytes is in a
2022 # stable state or it is being adjusted as a result of shared storage
2023 # reallocation. This status can either be unset, meaning the snapshot is
2024 # being created, or UP_TO_DATE, meaning the size of the
2025 # snapshot is up-to-date.
2026 &quot;storageLocations&quot;: [ # Cloud Storage bucket storage location of the snapshot (regional or
2027 # multi-regional).
2028 &quot;A String&quot;,
2029 ],
2030 },
2031 &quot;purgeTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Purge timestamp of recoverable snapshot inRFC3339
2032 # text format.
2033 &quot;satisfiesPzi&quot;: True or False, # Output only. [Output Only] Reserved for future use.
2034 &quot;satisfiesPzs&quot;: True or False, # Output only. [Output Only] Reserved for future use.
2035 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for the resource.
2036 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource&#x27;s resource id.
2037 &quot;status&quot;: &quot;A String&quot;, # Output only. [Output Only] Status of the recoverable snapshot.
2038 },
2039 ],
2040 &quot;kind&quot;: &quot;compute#recoverableSnapshotList&quot;, # Output only. [Output Only] Type of resource. Alwayscompute#recoverableSnapshotList for lists of
2041 # recoverablesnapshots.
2042 &quot;nextPageToken&quot;: &quot;A String&quot;, # [Output Only] This token allows you to get the next page of results for
2043 # list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
2044 # the query parameter pageToken in the next list request.
2045 # Subsequent list requests will have their own nextPageToken to
2046 # continue paging through the results.
2047 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource.
2048 &quot;unreachables&quot;: [ # Output only. [Output Only] Unreachable resources.
2049 # end_interface: MixerListResponseWithEtagBuilder
2050 &quot;A String&quot;,
2051 ],
2052 &quot;warning&quot;: { # [Output Only] Informational warning message.
2053 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
2054 # Engine returns NO_RESULTS_ON_PAGE if there
2055 # are no results in the response.
2056 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
2057 # value format. For example:
2058 #
2059 # &quot;data&quot;: [
2060 # {
2061 # &quot;key&quot;: &quot;scope&quot;,
2062 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
2063 # }
2064 {
2065 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
2066 # returned. For example, for warnings where there are no results in a list
2067 # request for a particular zone, this key might be scope and
2068 # the key value might be the zone name. Other examples might be a key
2069 # indicating a deprecated resource and a suggested replacement, or a
2070 # warning about invalid network settings (for example, if an instance
2071 # attempts to perform IP forwarding but is not enabled for IP forwarding).
2072 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
2073 },
2074 ],
2075 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
2076 },
2077 }</pre>
2078 </div>
2079
2080 <div class="method">
2081 <code class="details" id="list_next">list_next()</code>
2082 <pre>Retrieves the next page of results.
2083
2084 Args:
2085 previous_request: The request for the previous page. (required)
2086 previous_response: The response from the request for the previous page. (required)
2087
2088 Returns:
2089 A request object that you can call &#x27;execute()&#x27; on to request the next
2090 page. Returns None if there are no more items in the collection.
2091 </pre>
2092 </div>
2093
2094 <div class="method">
2095 <code class="details" id="recover">recover(project, recoverableSnapshot, requestId=None, snapshotName=None, x__xgafv=None)</code>
2096 <pre>Recovers the specified RecoverableSnapshot.
2097
2098 Args:
2099 project: string, Project Id of the request (required)
2100 recoverableSnapshot: string, Name of the recoverable resource to recover (required)
2101 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
2102 that if you must retry your request, the server will know to ignore the
2103 request if it has already been completed.
2104
2105 For example, consider a situation where you make an initial request and
2106 the request times out. If you make the request again with the same
2107 request ID, the server can check if original operation with the same
2108 request ID was received, and if so, will ignore the second request. This
2109 prevents clients from accidentally creating duplicate commitments.
2110
2111 The request ID must be
2112 a valid UUID with the exception that zero UUID is not supported
2113 (00000000-0000-0000-0000-000000000000).
2114 snapshotName: string, Optional. Name of the snapshot after the recovery
2115 The name will be 1-63 characters long, and comply withRFC1035.
2116 Specifically, the name will be 1-63 characters long and match the regular
2117 expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
2118 character will be a lowercase letter, and all following characters can be
2119 a dash, lowercase letter, or digit, except the last character, which cannot
2120 be a dash.
2121 x__xgafv: string, V1 error format.
2122 Allowed values
2123 1 - v1 error format
2124 2 - v2 error format
2125
2126 Returns:
2127 An object of the form:
2128
2129 { # Represents an Operation resource.
2130 #
2131 # Google Compute Engine has three Operation resources:
2132 #
2133 # * [Global](/compute/docs/reference/rest/alpha/globalOperations)
2134 # * [Regional](/compute/docs/reference/rest/alpha/regionOperations)
2135 # * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations)
2136 #
2137 # You can use an operation resource to manage asynchronous API requests.
2138 # For more information, readHandling
2139 # API responses.
2140 #
2141 # Operations can be global, regional or zonal.
2142 #
2143 # - For global operations, use the `globalOperations`
2144 # resource.
2145 # - For regional operations, use the
2146 # `regionOperations` resource.
2147 # - For zonal operations, use
2148 # the `zoneOperations` resource.
2149 #
2150 #
2151 #
2152 # For more information, read
2153 # Global, Regional, and Zonal Resources.
2154 #
2155 # Note that completed Operation resources have a limited
2156 # retention period.
2157 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
2158 # Not present otherwise.
2159 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
2160 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
2161 # set when the operation is created.
2162 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
2163 # text format.
2164 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
2165 # this field will be populated.
2166 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
2167 # operation.
2168 {
2169 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
2170 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
2171 # details. There is a set of defined message types to use for providing
2172 # details.The syntax depends on the error code. For example,
2173 # QuotaExceededInfo will have details when the error code is
2174 # QUOTA_EXCEEDED.
2175 {
2176 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
2177 #
2178 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
2179 # is not enabled:
2180 #
2181 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
2182 # &quot;domain&quot;: &quot;googleapis.com&quot;
2183 # &quot;metadata&quot;: {
2184 # &quot;resource&quot;: &quot;projects/123&quot;,
2185 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
2186 # }
2187 # }
2188 #
2189 # This response indicates that the pubsub.googleapis.com API is not enabled.
2190 #
2191 # Example of an error that is returned when attempting to create a Spanner
2192 # instance in a region that is out of stock:
2193 #
2194 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
2195 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
2196 # &quot;metadata&quot;: {
2197 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
2198 # }
2199 # }
2200 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
2201 # is typically the registered service name of the tool or product that
2202 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
2203 # generated by some common infrastructure, the error domain must be a
2204 # globally unique value that identifies the infrastructure. For Google API
2205 # infrastructure, the error domain is &quot;googleapis.com&quot;.
2206 &quot;metadatas&quot;: { # Additional structured details about this error.
2207 #
2208 # Keys must match a regular expression of `a-z+` but should
2209 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
2210 # length. When identifying the current value of an exceeded limit, the units
2211 # should be contained in the key, not the value. For example, rather than
2212 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
2213 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
2214 # instances that can be created in a single (batch) request.
2215 &quot;a_key&quot;: &quot;A String&quot;,
2216 },
2217 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
2218 # proximate cause of the error. Error reasons are unique within a particular
2219 # domain of errors. This should be at most 63 characters and match a
2220 # regular expression of `A-Z+[A-Z0-9]`, which represents
2221 # UPPER_SNAKE_CASE.
2222 },
2223 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
2224 #
2225 # For example, if a quota check failed with an error indicating the calling
2226 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
2227 # directly to the right place in the developer console to flip the bit.
2228 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
2229 { # Describes a URL link.
2230 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
2231 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
2232 },
2233 ],
2234 },
2235 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
2236 # which can be attached to an RPC error.
2237 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
2238 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
2239 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
2240 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
2241 },
2242 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
2243 &quot;dimensions&quot;: { # The map holding related quota dimensions.
2244 &quot;a_key&quot;: &quot;A String&quot;,
2245 },
2246 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
2247 # type or metric.
2248 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
2249 # or metric.
2250 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
2251 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
2252 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
2253 },
2254 },
2255 ],
2256 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
2257 # This property is optional.
2258 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
2259 },
2260 ],
2261 },
2262 &quot;getVersionOperationMetadata&quot;: {
2263 &quot;inlineSbomInfo&quot;: {
2264 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
2265 # appropriate identifiers.
2266 &quot;a_key&quot;: &quot;A String&quot;,
2267 },
2268 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
2269 # identifiers.
2270 &quot;a_key&quot;: &quot;A String&quot;,
2271 },
2272 },
2273 },
2274 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
2275 # message that was returned, such as `NOT FOUND`.
2276 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
2277 # status code that was returned. For example, a `404` means the
2278 # resource was not found.
2279 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
2280 # defined by the server.
2281 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
2282 # This value is inRFC3339
2283 # text format.
2284 &quot;instancesBulkInsertOperationMetadata&quot;: {
2285 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
2286 # Example key: zones/us-central1-a
2287 &quot;a_key&quot;: {
2288 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
2289 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
2290 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
2291 # error.
2292 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
2293 # if the flow is rolling forward or rolling back.
2294 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
2295 },
2296 },
2297 },
2298 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
2299 # Operation resources.
2300 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
2301 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
2302 # group of operations results from a `bulkInsert` API request.
2303 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
2304 # `update`, or `delete`, and so on.
2305 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
2306 # There is no requirement that this be linear or support any granularity of
2307 # operations. This should not be used to guess when the operation will be
2308 # complete. This number should monotonically increase as the operation
2309 # progresses.
2310 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
2311 # applicable when performing regional operations.
2312 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
2313 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
2314 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
2315 # this field will contain information on all underlying zonal actions and
2316 # their state.
2317 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
2318 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
2319 # Example key: zones/us-central1-a
2320 &quot;a_key&quot;: {
2321 &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
2322 # populated.
2323 # different programming environments, including REST APIs and RPC APIs. It is
2324 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
2325 # three pieces of data: error code, error message, and error details.
2326 #
2327 # You can find out more about this error model and how to work with it in the
2328 # [API Design Guide](https://cloud.google.com/apis/design/errors).
2329 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2330 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
2331 # message types for APIs to use.
2332 {
2333 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2334 },
2335 ],
2336 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
2337 # user-facing error message should be localized and sent in the
2338 # google.rpc.Status.details field, or localized by the client.
2339 },
2340 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
2341 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
2342 },
2343 },
2344 },
2345 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
2346 # This value is inRFC3339
2347 # text format.
2348 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
2349 # following:
2350 # `PENDING`, `RUNNING`, or `DONE`.
2351 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
2352 # operation.
2353 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
2354 # of the target resource.
2355 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
2356 # operations related to creating a snapshot, this points to the disk
2357 # that the snapshot was created from.
2358 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
2359 # `[email protected]` or
2360 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
2361 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
2362 # operation, this field will be populated.
2363 {
2364 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
2365 # Engine returns NO_RESULTS_ON_PAGE if there
2366 # are no results in the response.
2367 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
2368 # value format. For example:
2369 #
2370 # &quot;data&quot;: [
2371 # {
2372 # &quot;key&quot;: &quot;scope&quot;,
2373 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
2374 # }
2375 {
2376 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
2377 # returned. For example, for warnings where there are no results in a list
2378 # request for a particular zone, this key might be scope and
2379 # the key value might be the zone name. Other examples might be a key
2380 # indicating a deprecated resource and a suggested replacement, or a
2381 # warning about invalid network settings (for example, if an instance
2382 # attempts to perform IP forwarding but is not enabled for IP forwarding).
2383 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
2384 },
2385 ],
2386 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
2387 },
2388 ],
2389 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
2390 # applicable when performing per-zone operations.
2391 }</pre>
2392 </div>
2393
2394 <div class="method">
2395 <code class="details" id="setIamPolicy">setIamPolicy(project, resource, body=None, x__xgafv=None)</code>
2396 <pre>Sets the access control policy on the specified resource.
2397 Replaces any existing policy.
2398
2399 Args:
2400 project: string, Project ID for this request. (required)
2401 resource: string, Name or id of the resource for this request. (required)
2402 body: object, The request body.
2403 The object takes the form of:
2404
2405 {
2406 &quot;bindings&quot;: [ # Flatten Policy to create a backward compatible wire-format.
2407 # Deprecated. Use &#x27;policy&#x27; to specify bindings.
2408 { # Associates `members`, or principals, with a `role`.
2409 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
2410 #
2411 # If the condition evaluates to `true`, then this binding applies to the
2412 # current request.
2413 #
2414 # If the condition evaluates to `false`, then this binding does not apply to
2415 # the current request. However, a different role binding might grant the same
2416 # role to one or more of the principals in this binding.
2417 #
2418 # To learn which resources support conditions in their IAM policies, see the
2419 # [IAM
2420 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2421 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
2422 # are documented at https://github.com/google/cel-spec.
2423 #
2424 # Example (Comparison):
2425 #
2426 # title: &quot;Summary size limit&quot;
2427 # description: &quot;Determines if a summary is less than 100 chars&quot;
2428 # expression: &quot;document.summary.size() &lt; 100&quot;
2429 #
2430 # Example (Equality):
2431 #
2432 # title: &quot;Requestor is owner&quot;
2433 # description: &quot;Determines if requestor is the document owner&quot;
2434 # expression: &quot;document.owner == request.auth.claims.email&quot;
2435 #
2436 # Example (Logic):
2437 #
2438 # title: &quot;Public documents&quot;
2439 # description: &quot;Determine whether the document should be publicly visible&quot;
2440 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
2441 #
2442 # Example (Data Manipulation):
2443 #
2444 # title: &quot;Notification string&quot;
2445 # description: &quot;Create a notification string with a timestamp.&quot;
2446 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
2447 #
2448 # The exact variables and functions that may be referenced within an expression
2449 # are determined by the service that evaluates it. See the service
2450 # documentation for additional information.
2451 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
2452 # describes the expression, e.g. when hovered over it in a UI.
2453 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
2454 # syntax.
2455 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
2456 # reporting, e.g. a file name and a position in the file.
2457 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
2458 # its purpose. This can be used e.g. in UIs which allow to enter the
2459 # expression.
2460 },
2461 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
2462 # `members` can have the following values:
2463 #
2464 # * `allUsers`: A special identifier that represents anyone who is
2465 # on the internet; with or without a Google account.
2466 #
2467 # * `allAuthenticatedUsers`: A special identifier that represents anyone
2468 # who is authenticated with a Google account or a service account.
2469 # Does not include identities that come from external identity providers
2470 # (IdPs) through identity federation.
2471 #
2472 # * `user:{emailid}`: An email address that represents a specific Google
2473 # account. For example, `[email protected]` .
2474 #
2475 #
2476 # * `serviceAccount:{emailid}`: An email address that represents a Google
2477 # service account. For example,
2478 # `[email protected]`.
2479 #
2480 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
2481 # identifier for a
2482 # [Kubernetes service
2483 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
2484 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
2485 #
2486 # * `group:{emailid}`: An email address that represents a Google group.
2487 # For example, `[email protected]`.
2488 #
2489 #
2490 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
2491 # users of that domain. For example, `google.com` or `example.com`.
2492 #
2493 #
2494 #
2495 #
2496 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
2497 # A single identity in a workforce identity pool.
2498 #
2499 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
2500 # All workforce identities in a group.
2501 #
2502 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
2503 # All workforce identities with a specific attribute value.
2504 #
2505 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
2506 # All identities in a workforce identity pool.
2507 #
2508 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
2509 # A single identity in a workload identity pool.
2510 #
2511 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
2512 # A workload identity pool group.
2513 #
2514 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
2515 # All identities in a workload identity pool with a certain attribute.
2516 #
2517 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
2518 # All identities in a workload identity pool.
2519 #
2520 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
2521 # identifier) representing a user that has been recently deleted. For
2522 # example, `[email protected]?uid=123456789012345678901`. If the user is
2523 # recovered, this value reverts to `user:{emailid}` and the recovered user
2524 # retains the role in the binding.
2525 #
2526 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
2527 # unique identifier) representing a service account that has been recently
2528 # deleted. For example,
2529 # `[email protected]?uid=123456789012345678901`.
2530 # If the service account is undeleted, this value reverts to
2531 # `serviceAccount:{emailid}` and the undeleted service account retains the
2532 # role in the binding.
2533 #
2534 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
2535 # identifier) representing a Google group that has been recently
2536 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
2537 # the group is recovered, this value reverts to `group:{emailid}` and the
2538 # recovered group retains the role in the binding.
2539 #
2540 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
2541 # Deleted single identity in a workforce identity pool. For example,
2542 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
2543 &quot;A String&quot;,
2544 ],
2545 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
2546 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
2547 #
2548 # For an overview of the IAM roles and permissions, see the
2549 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
2550 # a list of the available pre-defined roles, see
2551 # [here](https://cloud.google.com/iam/docs/understanding-roles).
2552 },
2553 ],
2554 &quot;etag&quot;: &quot;A String&quot;, # Flatten Policy to create a backward compatible wire-format.
2555 # Deprecated. Use &#x27;policy&#x27; to specify the etag.
2556 &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
2557 # the policy is limited to a few 10s of KB. An empty policy is in general a
2558 # valid policy but certain services (like Projects) might reject them.
2559 # controls for Google Cloud resources.
2560 #
2561 #
2562 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
2563 # `members`, or principals, to a single `role`. Principals can be user
2564 # accounts, service accounts, Google groups, and domains (such as G Suite). A
2565 # `role` is a named list of permissions; each `role` can be an IAM predefined
2566 # role or a user-created custom role.
2567 #
2568 # For some types of Google Cloud resources, a `binding` can also specify a
2569 # `condition`, which is a logical expression that allows access to a resource
2570 # only if the expression evaluates to `true`. A condition can add constraints
2571 # based on attributes of the request, the resource, or both. To learn which
2572 # resources support conditions in their IAM policies, see the
2573 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2574 #
2575 # **JSON example:**
2576 #
2577 # ```
2578 # {
2579 # &quot;bindings&quot;: [
2580 # {
2581 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
2582 # &quot;members&quot;: [
2583 # &quot;user:[email protected]&quot;,
2584 # &quot;group:[email protected]&quot;,
2585 # &quot;domain:google.com&quot;,
2586 # &quot;serviceAccount:[email protected]&quot;
2587 # ]
2588 # },
2589 # {
2590 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
2591 # &quot;members&quot;: [
2592 # &quot;user:[email protected]&quot;
2593 # ],
2594 # &quot;condition&quot;: {
2595 # &quot;title&quot;: &quot;expirable access&quot;,
2596 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
2597 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
2598 # }
2599 # }
2600 # ],
2601 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
2602 # &quot;version&quot;: 3
2603 # }
2604 # ```
2605 #
2606 # **YAML example:**
2607 #
2608 # ```
2609 # bindings:
2610 # - members:
2611 # - user:[email protected]
2612 # - group:[email protected]
2613 # - domain:google.com
2614 # - serviceAccount:[email protected]
2615 # role: roles/resourcemanager.organizationAdmin
2616 # - members:
2617 # - user:[email protected]
2618 # role: roles/resourcemanager.organizationViewer
2619 # condition:
2620 # title: expirable access
2621 # description: Does not grant access after Sep 2020
2622 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
2623 # etag: BwWWja0YfJA=
2624 # version: 3
2625 # ```
2626 #
2627 # For a description of IAM and its features, see the
2628 # [IAM documentation](https://cloud.google.com/iam/docs/).
2629 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
2630 { # Specifies the audit configuration for a service.
2631 # The configuration determines which permission types are logged, and what
2632 # identities, if any, are exempted from logging.
2633 # An AuditConfig must have one or more AuditLogConfigs.
2634 #
2635 # If there are AuditConfigs for both `allServices` and a specific service,
2636 # the union of the two AuditConfigs is used for that service: the log_types
2637 # specified in each AuditConfig are enabled, and the exempted_members in each
2638 # AuditLogConfig are exempted.
2639 #
2640 # Example Policy with multiple AuditConfigs:
2641 #
2642 # {
2643 # &quot;audit_configs&quot;: [
2644 # {
2645 # &quot;service&quot;: &quot;allServices&quot;,
2646 # &quot;audit_log_configs&quot;: [
2647 # {
2648 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
2649 # &quot;exempted_members&quot;: [
2650 # &quot;user:[email protected]&quot;
2651 # ]
2652 # },
2653 # {
2654 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
2655 # },
2656 # {
2657 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
2658 # }
2659 # ]
2660 # },
2661 # {
2662 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
2663 # &quot;audit_log_configs&quot;: [
2664 # {
2665 # &quot;log_type&quot;: &quot;DATA_READ&quot;
2666 # },
2667 # {
2668 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
2669 # &quot;exempted_members&quot;: [
2670 # &quot;user:[email protected]&quot;
2671 # ]
2672 # }
2673 # ]
2674 # }
2675 # ]
2676 # }
2677 #
2678 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
2679 # logging. It also exempts `[email protected]` from DATA_READ logging, and
2680 # `[email protected]` from DATA_WRITE logging.
2681 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
2682 { # Provides the configuration for logging a type of permissions.
2683 # Example:
2684 #
2685 # {
2686 # &quot;audit_log_configs&quot;: [
2687 # {
2688 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
2689 # &quot;exempted_members&quot;: [
2690 # &quot;user:[email protected]&quot;
2691 # ]
2692 # },
2693 # {
2694 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
2695 # }
2696 # ]
2697 # }
2698 #
2699 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
2700 # [email protected] from DATA_READ logging.
2701 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
2702 # permission.
2703 # Follows the same format of Binding.members.
2704 &quot;A String&quot;,
2705 ],
2706 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
2707 },
2708 ],
2709 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
2710 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
2711 # `allServices` is a special value that covers all services.
2712 },
2713 ],
2714 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally,
2715 # may specify a `condition` that determines how and when the `bindings` are
2716 # applied. Each of the `bindings` must contain at least one principal.
2717 #
2718 # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
2719 # of these principals can be Google groups. Each occurrence of a principal
2720 # counts towards these limits. For example, if the `bindings` grant 50
2721 # different roles to `user:[email protected]`, and not to any other
2722 # principal, then you can add another 1,450 principals to the `bindings` in
2723 # the `Policy`.
2724 { # Associates `members`, or principals, with a `role`.
2725 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
2726 #
2727 # If the condition evaluates to `true`, then this binding applies to the
2728 # current request.
2729 #
2730 # If the condition evaluates to `false`, then this binding does not apply to
2731 # the current request. However, a different role binding might grant the same
2732 # role to one or more of the principals in this binding.
2733 #
2734 # To learn which resources support conditions in their IAM policies, see the
2735 # [IAM
2736 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2737 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
2738 # are documented at https://github.com/google/cel-spec.
2739 #
2740 # Example (Comparison):
2741 #
2742 # title: &quot;Summary size limit&quot;
2743 # description: &quot;Determines if a summary is less than 100 chars&quot;
2744 # expression: &quot;document.summary.size() &lt; 100&quot;
2745 #
2746 # Example (Equality):
2747 #
2748 # title: &quot;Requestor is owner&quot;
2749 # description: &quot;Determines if requestor is the document owner&quot;
2750 # expression: &quot;document.owner == request.auth.claims.email&quot;
2751 #
2752 # Example (Logic):
2753 #
2754 # title: &quot;Public documents&quot;
2755 # description: &quot;Determine whether the document should be publicly visible&quot;
2756 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
2757 #
2758 # Example (Data Manipulation):
2759 #
2760 # title: &quot;Notification string&quot;
2761 # description: &quot;Create a notification string with a timestamp.&quot;
2762 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
2763 #
2764 # The exact variables and functions that may be referenced within an expression
2765 # are determined by the service that evaluates it. See the service
2766 # documentation for additional information.
2767 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
2768 # describes the expression, e.g. when hovered over it in a UI.
2769 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
2770 # syntax.
2771 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
2772 # reporting, e.g. a file name and a position in the file.
2773 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
2774 # its purpose. This can be used e.g. in UIs which allow to enter the
2775 # expression.
2776 },
2777 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
2778 # `members` can have the following values:
2779 #
2780 # * `allUsers`: A special identifier that represents anyone who is
2781 # on the internet; with or without a Google account.
2782 #
2783 # * `allAuthenticatedUsers`: A special identifier that represents anyone
2784 # who is authenticated with a Google account or a service account.
2785 # Does not include identities that come from external identity providers
2786 # (IdPs) through identity federation.
2787 #
2788 # * `user:{emailid}`: An email address that represents a specific Google
2789 # account. For example, `[email protected]` .
2790 #
2791 #
2792 # * `serviceAccount:{emailid}`: An email address that represents a Google
2793 # service account. For example,
2794 # `[email protected]`.
2795 #
2796 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
2797 # identifier for a
2798 # [Kubernetes service
2799 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
2800 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
2801 #
2802 # * `group:{emailid}`: An email address that represents a Google group.
2803 # For example, `[email protected]`.
2804 #
2805 #
2806 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
2807 # users of that domain. For example, `google.com` or `example.com`.
2808 #
2809 #
2810 #
2811 #
2812 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
2813 # A single identity in a workforce identity pool.
2814 #
2815 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
2816 # All workforce identities in a group.
2817 #
2818 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
2819 # All workforce identities with a specific attribute value.
2820 #
2821 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
2822 # All identities in a workforce identity pool.
2823 #
2824 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
2825 # A single identity in a workload identity pool.
2826 #
2827 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
2828 # A workload identity pool group.
2829 #
2830 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
2831 # All identities in a workload identity pool with a certain attribute.
2832 #
2833 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
2834 # All identities in a workload identity pool.
2835 #
2836 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
2837 # identifier) representing a user that has been recently deleted. For
2838 # example, `[email protected]?uid=123456789012345678901`. If the user is
2839 # recovered, this value reverts to `user:{emailid}` and the recovered user
2840 # retains the role in the binding.
2841 #
2842 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
2843 # unique identifier) representing a service account that has been recently
2844 # deleted. For example,
2845 # `[email protected]?uid=123456789012345678901`.
2846 # If the service account is undeleted, this value reverts to
2847 # `serviceAccount:{emailid}` and the undeleted service account retains the
2848 # role in the binding.
2849 #
2850 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
2851 # identifier) representing a Google group that has been recently
2852 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
2853 # the group is recovered, this value reverts to `group:{emailid}` and the
2854 # recovered group retains the role in the binding.
2855 #
2856 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
2857 # Deleted single identity in a workforce identity pool. For example,
2858 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
2859 &quot;A String&quot;,
2860 ],
2861 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
2862 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
2863 #
2864 # For an overview of the IAM roles and permissions, see the
2865 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
2866 # a list of the available pre-defined roles, see
2867 # [here](https://cloud.google.com/iam/docs/understanding-roles).
2868 },
2869 ],
2870 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
2871 # prevent simultaneous updates of a policy from overwriting each other.
2872 # It is strongly suggested that systems make use of the `etag` in the
2873 # read-modify-write cycle to perform policy updates in order to avoid race
2874 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
2875 # systems are expected to put that etag in the request to `setIamPolicy` to
2876 # ensure that their change will be applied to the same version of the policy.
2877 #
2878 # **Important:** If you use IAM Conditions, you must include the `etag` field
2879 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
2880 # you to overwrite a version `3` policy with a version `1` policy, and all of
2881 # the conditions in the version `3` policy are lost.
2882 &quot;version&quot;: 42, # Specifies the format of the policy.
2883 #
2884 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
2885 # are rejected.
2886 #
2887 # Any operation that affects conditional role bindings must specify version
2888 # `3`. This requirement applies to the following operations:
2889 #
2890 # * Getting a policy that includes a conditional role binding
2891 # * Adding a conditional role binding to a policy
2892 # * Changing a conditional role binding in a policy
2893 # * Removing any role binding, with or without a condition, from a policy
2894 # that includes conditions
2895 #
2896 # **Important:** If you use IAM Conditions, you must include the `etag` field
2897 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
2898 # you to overwrite a version `3` policy with a version `1` policy, and all of
2899 # the conditions in the version `3` policy are lost.
2900 #
2901 # If a policy does not include any conditions, operations on that policy may
2902 # specify any valid version or leave the field unset.
2903 #
2904 # To learn which resources support conditions in their IAM policies, see the
2905 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2906 },
2907 }
2908
2909 x__xgafv: string, V1 error format.
2910 Allowed values
2911 1 - v1 error format
2912 2 - v2 error format
2913
2914 Returns:
2915 An object of the form:
2916
2917 { # An Identity and Access Management (IAM) policy, which specifies access
2918 # controls for Google Cloud resources.
2919 #
2920 #
2921 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
2922 # `members`, or principals, to a single `role`. Principals can be user
2923 # accounts, service accounts, Google groups, and domains (such as G Suite). A
2924 # `role` is a named list of permissions; each `role` can be an IAM predefined
2925 # role or a user-created custom role.
2926 #
2927 # For some types of Google Cloud resources, a `binding` can also specify a
2928 # `condition`, which is a logical expression that allows access to a resource
2929 # only if the expression evaluates to `true`. A condition can add constraints
2930 # based on attributes of the request, the resource, or both. To learn which
2931 # resources support conditions in their IAM policies, see the
2932 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2933 #
2934 # **JSON example:**
2935 #
2936 # ```
2937 # {
2938 # &quot;bindings&quot;: [
2939 # {
2940 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
2941 # &quot;members&quot;: [
2942 # &quot;user:[email protected]&quot;,
2943 # &quot;group:[email protected]&quot;,
2944 # &quot;domain:google.com&quot;,
2945 # &quot;serviceAccount:[email protected]&quot;
2946 # ]
2947 # },
2948 # {
2949 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
2950 # &quot;members&quot;: [
2951 # &quot;user:[email protected]&quot;
2952 # ],
2953 # &quot;condition&quot;: {
2954 # &quot;title&quot;: &quot;expirable access&quot;,
2955 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
2956 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
2957 # }
2958 # }
2959 # ],
2960 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
2961 # &quot;version&quot;: 3
2962 # }
2963 # ```
2964 #
2965 # **YAML example:**
2966 #
2967 # ```
2968 # bindings:
2969 # - members:
2970 # - user:[email protected]
2971 # - group:[email protected]
2972 # - domain:google.com
2973 # - serviceAccount:[email protected]
2974 # role: roles/resourcemanager.organizationAdmin
2975 # - members:
2976 # - user:[email protected]
2977 # role: roles/resourcemanager.organizationViewer
2978 # condition:
2979 # title: expirable access
2980 # description: Does not grant access after Sep 2020
2981 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
2982 # etag: BwWWja0YfJA=
2983 # version: 3
2984 # ```
2985 #
2986 # For a description of IAM and its features, see the
2987 # [IAM documentation](https://cloud.google.com/iam/docs/).
2988 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
2989 { # Specifies the audit configuration for a service.
2990 # The configuration determines which permission types are logged, and what
2991 # identities, if any, are exempted from logging.
2992 # An AuditConfig must have one or more AuditLogConfigs.
2993 #
2994 # If there are AuditConfigs for both `allServices` and a specific service,
2995 # the union of the two AuditConfigs is used for that service: the log_types
2996 # specified in each AuditConfig are enabled, and the exempted_members in each
2997 # AuditLogConfig are exempted.
2998 #
2999 # Example Policy with multiple AuditConfigs:
3000 #
3001 # {
3002 # &quot;audit_configs&quot;: [
3003 # {
3004 # &quot;service&quot;: &quot;allServices&quot;,
3005 # &quot;audit_log_configs&quot;: [
3006 # {
3007 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
3008 # &quot;exempted_members&quot;: [
3009 # &quot;user:[email protected]&quot;
3010 # ]
3011 # },
3012 # {
3013 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
3014 # },
3015 # {
3016 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
3017 # }
3018 # ]
3019 # },
3020 # {
3021 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
3022 # &quot;audit_log_configs&quot;: [
3023 # {
3024 # &quot;log_type&quot;: &quot;DATA_READ&quot;
3025 # },
3026 # {
3027 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
3028 # &quot;exempted_members&quot;: [
3029 # &quot;user:[email protected]&quot;
3030 # ]
3031 # }
3032 # ]
3033 # }
3034 # ]
3035 # }
3036 #
3037 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
3038 # logging. It also exempts `[email protected]` from DATA_READ logging, and
3039 # `[email protected]` from DATA_WRITE logging.
3040 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
3041 { # Provides the configuration for logging a type of permissions.
3042 # Example:
3043 #
3044 # {
3045 # &quot;audit_log_configs&quot;: [
3046 # {
3047 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
3048 # &quot;exempted_members&quot;: [
3049 # &quot;user:[email protected]&quot;
3050 # ]
3051 # },
3052 # {
3053 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
3054 # }
3055 # ]
3056 # }
3057 #
3058 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
3059 # [email protected] from DATA_READ logging.
3060 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
3061 # permission.
3062 # Follows the same format of Binding.members.
3063 &quot;A String&quot;,
3064 ],
3065 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
3066 },
3067 ],
3068 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
3069 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
3070 # `allServices` is a special value that covers all services.
3071 },
3072 ],
3073 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally,
3074 # may specify a `condition` that determines how and when the `bindings` are
3075 # applied. Each of the `bindings` must contain at least one principal.
3076 #
3077 # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
3078 # of these principals can be Google groups. Each occurrence of a principal
3079 # counts towards these limits. For example, if the `bindings` grant 50
3080 # different roles to `user:[email protected]`, and not to any other
3081 # principal, then you can add another 1,450 principals to the `bindings` in
3082 # the `Policy`.
3083 { # Associates `members`, or principals, with a `role`.
3084 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
3085 #
3086 # If the condition evaluates to `true`, then this binding applies to the
3087 # current request.
3088 #
3089 # If the condition evaluates to `false`, then this binding does not apply to
3090 # the current request. However, a different role binding might grant the same
3091 # role to one or more of the principals in this binding.
3092 #
3093 # To learn which resources support conditions in their IAM policies, see the
3094 # [IAM
3095 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
3096 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
3097 # are documented at https://github.com/google/cel-spec.
3098 #
3099 # Example (Comparison):
3100 #
3101 # title: &quot;Summary size limit&quot;
3102 # description: &quot;Determines if a summary is less than 100 chars&quot;
3103 # expression: &quot;document.summary.size() &lt; 100&quot;
3104 #
3105 # Example (Equality):
3106 #
3107 # title: &quot;Requestor is owner&quot;
3108 # description: &quot;Determines if requestor is the document owner&quot;
3109 # expression: &quot;document.owner == request.auth.claims.email&quot;
3110 #
3111 # Example (Logic):
3112 #
3113 # title: &quot;Public documents&quot;
3114 # description: &quot;Determine whether the document should be publicly visible&quot;
3115 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
3116 #
3117 # Example (Data Manipulation):
3118 #
3119 # title: &quot;Notification string&quot;
3120 # description: &quot;Create a notification string with a timestamp.&quot;
3121 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
3122 #
3123 # The exact variables and functions that may be referenced within an expression
3124 # are determined by the service that evaluates it. See the service
3125 # documentation for additional information.
3126 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
3127 # describes the expression, e.g. when hovered over it in a UI.
3128 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
3129 # syntax.
3130 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
3131 # reporting, e.g. a file name and a position in the file.
3132 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
3133 # its purpose. This can be used e.g. in UIs which allow to enter the
3134 # expression.
3135 },
3136 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
3137 # `members` can have the following values:
3138 #
3139 # * `allUsers`: A special identifier that represents anyone who is
3140 # on the internet; with or without a Google account.
3141 #
3142 # * `allAuthenticatedUsers`: A special identifier that represents anyone
3143 # who is authenticated with a Google account or a service account.
3144 # Does not include identities that come from external identity providers
3145 # (IdPs) through identity federation.
3146 #
3147 # * `user:{emailid}`: An email address that represents a specific Google
3148 # account. For example, `[email protected]` .
3149 #
3150 #
3151 # * `serviceAccount:{emailid}`: An email address that represents a Google
3152 # service account. For example,
3153 # `[email protected]`.
3154 #
3155 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
3156 # identifier for a
3157 # [Kubernetes service
3158 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
3159 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
3160 #
3161 # * `group:{emailid}`: An email address that represents a Google group.
3162 # For example, `[email protected]`.
3163 #
3164 #
3165 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
3166 # users of that domain. For example, `google.com` or `example.com`.
3167 #
3168 #
3169 #
3170 #
3171 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
3172 # A single identity in a workforce identity pool.
3173 #
3174 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
3175 # All workforce identities in a group.
3176 #
3177 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
3178 # All workforce identities with a specific attribute value.
3179 #
3180 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
3181 # All identities in a workforce identity pool.
3182 #
3183 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
3184 # A single identity in a workload identity pool.
3185 #
3186 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
3187 # A workload identity pool group.
3188 #
3189 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
3190 # All identities in a workload identity pool with a certain attribute.
3191 #
3192 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
3193 # All identities in a workload identity pool.
3194 #
3195 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
3196 # identifier) representing a user that has been recently deleted. For
3197 # example, `[email protected]?uid=123456789012345678901`. If the user is
3198 # recovered, this value reverts to `user:{emailid}` and the recovered user
3199 # retains the role in the binding.
3200 #
3201 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
3202 # unique identifier) representing a service account that has been recently
3203 # deleted. For example,
3204 # `[email protected]?uid=123456789012345678901`.
3205 # If the service account is undeleted, this value reverts to
3206 # `serviceAccount:{emailid}` and the undeleted service account retains the
3207 # role in the binding.
3208 #
3209 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
3210 # identifier) representing a Google group that has been recently
3211 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
3212 # the group is recovered, this value reverts to `group:{emailid}` and the
3213 # recovered group retains the role in the binding.
3214 #
3215 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
3216 # Deleted single identity in a workforce identity pool. For example,
3217 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
3218 &quot;A String&quot;,
3219 ],
3220 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
3221 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
3222 #
3223 # For an overview of the IAM roles and permissions, see the
3224 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
3225 # a list of the available pre-defined roles, see
3226 # [here](https://cloud.google.com/iam/docs/understanding-roles).
3227 },
3228 ],
3229 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
3230 # prevent simultaneous updates of a policy from overwriting each other.
3231 # It is strongly suggested that systems make use of the `etag` in the
3232 # read-modify-write cycle to perform policy updates in order to avoid race
3233 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
3234 # systems are expected to put that etag in the request to `setIamPolicy` to
3235 # ensure that their change will be applied to the same version of the policy.
3236 #
3237 # **Important:** If you use IAM Conditions, you must include the `etag` field
3238 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
3239 # you to overwrite a version `3` policy with a version `1` policy, and all of
3240 # the conditions in the version `3` policy are lost.
3241 &quot;version&quot;: 42, # Specifies the format of the policy.
3242 #
3243 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
3244 # are rejected.
3245 #
3246 # Any operation that affects conditional role bindings must specify version
3247 # `3`. This requirement applies to the following operations:
3248 #
3249 # * Getting a policy that includes a conditional role binding
3250 # * Adding a conditional role binding to a policy
3251 # * Changing a conditional role binding in a policy
3252 # * Removing any role binding, with or without a condition, from a policy
3253 # that includes conditions
3254 #
3255 # **Important:** If you use IAM Conditions, you must include the `etag` field
3256 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
3257 # you to overwrite a version `3` policy with a version `1` policy, and all of
3258 # the conditions in the version `3` policy are lost.
3259 #
3260 # If a policy does not include any conditions, operations on that policy may
3261 # specify any valid version or leave the field unset.
3262 #
3263 # To learn which resources support conditions in their IAM policies, see the
3264 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
3265 }</pre>
3266 </div>
3267
3268 <div class="method">
3269 <code class="details" id="testIamPermissions">testIamPermissions(project, resource, body=None, x__xgafv=None)</code>
3270 <pre>Returns permissions that a caller has on the specified resource.
3271
3272 Args:
3273 project: string, Project ID for this request. (required)
3274 resource: string, Name or id of the resource for this request. (required)
3275 body: object, The request body.
3276 The object takes the form of:
3277
3278 {
3279 &quot;permissions&quot;: [ # The set of permissions to check for the &#x27;resource&#x27;. Permissions with
3280 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed.
3281 &quot;A String&quot;,
3282 ],
3283 }
3284
3285 x__xgafv: string, V1 error format.
3286 Allowed values
3287 1 - v1 error format
3288 2 - v2 error format
3289
3290 Returns:
3291 An object of the form:
3292
3293 {
3294 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
3295 # allowed.
3296 &quot;A String&quot;,
3297 ],
3298 }</pre>
3299 </div>
3300
3301 </body></html>