Debian Codegraph @

docs/dyn/compute_v1.regionDisks.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_v1.html">Compute Engine API</a> . <a href="compute_v1.regionDisks.html">regionDisks</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#addResourcePolicies">addResourcePolicies(project, region, disk, body=None, requestId=None, x__xgafv=None)</a></code></p>
79 <p class="firstline">Adds existing resource policies to a regional disk. You can only add one</p>
80 <p class="toc_element">
81 <code><a href="#bulkInsert">bulkInsert(project, region, body=None, requestId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Bulk create a set of disks.</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="#createSnapshot">createSnapshot(project, region, disk, body=None, requestId=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Creates a snapshot of a specified persistent disk. For regular snapshot</p>
89 <p class="toc_element">
90 <code><a href="#delete">delete(project, region, disk, requestId=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Deletes the specified regional persistent disk. Deleting a regional disk</p>
92 <p class="toc_element">
93 <code><a href="#get">get(project, region, disk, x__xgafv=None)</a></code></p>
94 <p class="firstline">Returns a specified regional persistent disk.</p>
95 <p class="toc_element">
96 <code><a href="#getIamPolicy">getIamPolicy(project, region, resource, optionsRequestedPolicyVersion=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Gets the access control policy for a resource. May be empty if no such</p>
98 <p class="toc_element">
99 <code><a href="#insert">insert(project, region, body=None, requestId=None, sourceImage=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">Creates a persistent regional disk in the specified project using the data</p>
101 <p class="toc_element">
102 <code><a href="#list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Retrieves the list of persistent disks contained within</p>
104 <p class="toc_element">
105 <code><a href="#list_next">list_next()</a></code></p>
106 <p class="firstline">Retrieves the next page of results.</p>
107 <p class="toc_element">
108 <code><a href="#removeResourcePolicies">removeResourcePolicies(project, region, disk, body=None, requestId=None, x__xgafv=None)</a></code></p>
109 <p class="firstline">Removes resource policies from a regional disk.</p>
110 <p class="toc_element">
111 <code><a href="#resize">resize(project, region, disk, body=None, requestId=None, x__xgafv=None)</a></code></p>
112 <p class="firstline">Resizes the specified regional persistent disk.</p>
113 <p class="toc_element">
114 <code><a href="#setIamPolicy">setIamPolicy(project, region, resource, body=None, x__xgafv=None)</a></code></p>
115 <p class="firstline">Sets the access control policy on the specified resource.</p>
116 <p class="toc_element">
117 <code><a href="#setLabels">setLabels(project, region, resource, body=None, requestId=None, x__xgafv=None)</a></code></p>
118 <p class="firstline">Sets the labels on the target regional disk.</p>
119 <p class="toc_element">
120 <code><a href="#startAsyncReplication">startAsyncReplication(project, region, disk, body=None, requestId=None, x__xgafv=None)</a></code></p>
121 <p class="firstline">Starts asynchronous replication.</p>
122 <p class="toc_element">
123 <code><a href="#stopAsyncReplication">stopAsyncReplication(project, region, disk, requestId=None, x__xgafv=None)</a></code></p>
124 <p class="firstline">Stops asynchronous replication.</p>
125 <p class="toc_element">
126 <code><a href="#stopGroupAsyncReplication">stopGroupAsyncReplication(project, region, body=None, requestId=None, x__xgafv=None)</a></code></p>
127 <p class="firstline">Stops asynchronous replication for a consistency group of disks.</p>
128 <p class="toc_element">
129 <code><a href="#testIamPermissions">testIamPermissions(project, region, resource, body=None, x__xgafv=None)</a></code></p>
130 <p class="firstline">Returns permissions that a caller has on the specified resource.</p>
131 <p class="toc_element">
132 <code><a href="#update">update(project, region, disk, body=None, paths=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p>
133 <p class="firstline">Update the specified disk with the data included in the request. Update is</p>
134 <p class="toc_element">
135 <code><a href="#updateKmsKey">updateKmsKey(project, region, disk, body=None, requestId=None, x__xgafv=None)</a></code></p>
136 <p class="firstline">Rotates the customer-managed</p>
137 <h3>Method Details</h3>
138 <div class="method">
139 <code class="details" id="addResourcePolicies">addResourcePolicies(project, region, disk, body=None, requestId=None, x__xgafv=None)</code>
140 <pre>Adds existing resource policies to a regional disk. You can only add one
141 policy which will be applied to this disk for scheduling snapshot
142 creation.
143
144 Args:
145 project: string, Project ID for this request. (required)
146 region: string, The name of the region for this request. (required)
147 disk: string, The disk name for this request. (required)
148 body: object, The request body.
149 The object takes the form of:
150
151 {
152 &quot;resourcePolicies&quot;: [ # Resource policies to be added to this disk.
153 &quot;A String&quot;,
154 ],
155 }
156
157 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
158 that if you must retry your request, the server will know to ignore the
159 request if it has already been completed.
160
161 For example, consider a situation where you make an initial request and
162 the request times out. If you make the request again with the same
163 request ID, the server can check if original operation with the same
164 request ID was received, and if so, will ignore the second request. This
165 prevents clients from accidentally creating duplicate commitments.
166
167 The request ID must be
168 a valid UUID with the exception that zero UUID is not supported
169 (00000000-0000-0000-0000-000000000000).
170 x__xgafv: string, V1 error format.
171 Allowed values
172 1 - v1 error format
173 2 - v2 error format
174
175 Returns:
176 An object of the form:
177
178 { # Represents an Operation resource.
179 #
180 # Google Compute Engine has three Operation resources:
181 #
182 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
183 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
184 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
185 #
186 # You can use an operation resource to manage asynchronous API requests.
187 # For more information, readHandling
188 # API responses.
189 #
190 # Operations can be global, regional or zonal.
191 #
192 # - For global operations, use the `globalOperations`
193 # resource.
194 # - For regional operations, use the
195 # `regionOperations` resource.
196 # - For zonal operations, use
197 # the `zoneOperations` resource.
198 #
199 #
200 #
201 # For more information, read
202 # Global, Regional, and Zonal Resources.
203 #
204 # Note that completed Operation resources have a limited
205 # retention period.
206 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
207 # Not present otherwise.
208 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
209 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
210 # set when the operation is created.
211 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
212 # text format.
213 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
214 # this field will be populated.
215 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
216 # operation.
217 {
218 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
219 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
220 # details. There is a set of defined message types to use for providing
221 # details.The syntax depends on the error code. For example,
222 # QuotaExceededInfo will have details when the error code is
223 # QUOTA_EXCEEDED.
224 {
225 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
226 #
227 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
228 # is not enabled:
229 #
230 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
231 # &quot;domain&quot;: &quot;googleapis.com&quot;
232 # &quot;metadata&quot;: {
233 # &quot;resource&quot;: &quot;projects/123&quot;,
234 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
235 # }
236 # }
237 #
238 # This response indicates that the pubsub.googleapis.com API is not enabled.
239 #
240 # Example of an error that is returned when attempting to create a Spanner
241 # instance in a region that is out of stock:
242 #
243 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
244 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
245 # &quot;metadata&quot;: {
246 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
247 # }
248 # }
249 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
250 # is typically the registered service name of the tool or product that
251 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
252 # generated by some common infrastructure, the error domain must be a
253 # globally unique value that identifies the infrastructure. For Google API
254 # infrastructure, the error domain is &quot;googleapis.com&quot;.
255 &quot;metadatas&quot;: { # Additional structured details about this error.
256 #
257 # Keys must match a regular expression of `a-z+` but should
258 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
259 # length. When identifying the current value of an exceeded limit, the units
260 # should be contained in the key, not the value. For example, rather than
261 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
262 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
263 # instances that can be created in a single (batch) request.
264 &quot;a_key&quot;: &quot;A String&quot;,
265 },
266 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
267 # proximate cause of the error. Error reasons are unique within a particular
268 # domain of errors. This should be at most 63 characters and match a
269 # regular expression of `A-Z+[A-Z0-9]`, which represents
270 # UPPER_SNAKE_CASE.
271 },
272 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
273 #
274 # For example, if a quota check failed with an error indicating the calling
275 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
276 # directly to the right place in the developer console to flip the bit.
277 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
278 { # Describes a URL link.
279 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
280 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
281 },
282 ],
283 },
284 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
285 # which can be attached to an RPC error.
286 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
287 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
288 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
289 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
290 },
291 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
292 &quot;dimensions&quot;: { # The map holding related quota dimensions.
293 &quot;a_key&quot;: &quot;A String&quot;,
294 },
295 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
296 # type or metric.
297 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
298 # or metric.
299 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
300 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
301 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
302 },
303 },
304 ],
305 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
306 # This property is optional.
307 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
308 },
309 ],
310 },
311 &quot;getVersionOperationMetadata&quot;: {
312 &quot;inlineSbomInfo&quot;: {
313 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
314 # appropriate identifiers.
315 &quot;a_key&quot;: &quot;A String&quot;,
316 },
317 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
318 # identifiers.
319 &quot;a_key&quot;: &quot;A String&quot;,
320 },
321 },
322 },
323 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
324 # message that was returned, such as `NOT FOUND`.
325 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
326 # status code that was returned. For example, a `404` means the
327 # resource was not found.
328 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
329 # defined by the server.
330 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
331 # This value is inRFC3339
332 # text format.
333 &quot;instancesBulkInsertOperationMetadata&quot;: {
334 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
335 # Example key: zones/us-central1-a
336 &quot;a_key&quot;: {
337 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
338 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
339 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
340 # error.
341 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
342 # if the flow is rolling forward or rolling back.
343 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
344 },
345 },
346 },
347 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
348 # Operation resources.
349 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
350 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
351 # group of operations results from a `bulkInsert` API request.
352 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
353 # `update`, or `delete`, and so on.
354 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
355 # There is no requirement that this be linear or support any granularity of
356 # operations. This should not be used to guess when the operation will be
357 # complete. This number should monotonically increase as the operation
358 # progresses.
359 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
360 # applicable when performing regional operations.
361 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
362 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
363 # this field will contain information on all underlying zonal actions and
364 # their state.
365 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
366 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
367 # Example key: zones/us-central1-a
368 &quot;a_key&quot;: {
369 &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
370 # populated.
371 # different programming environments, including REST APIs and RPC APIs. It is
372 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
373 # three pieces of data: error code, error message, and error details.
374 #
375 # You can find out more about this error model and how to work with it in the
376 # [API Design Guide](https://cloud.google.com/apis/design/errors).
377 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
378 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
379 # message types for APIs to use.
380 {
381 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
382 },
383 ],
384 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
385 # user-facing error message should be localized and sent in the
386 # google.rpc.Status.details field, or localized by the client.
387 },
388 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
389 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
390 },
391 },
392 },
393 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
394 # This value is inRFC3339
395 # text format.
396 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
397 # following:
398 # `PENDING`, `RUNNING`, or `DONE`.
399 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
400 # operation.
401 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
402 # of the target resource.
403 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
404 # operations related to creating a snapshot, this points to the disk
405 # that the snapshot was created from.
406 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
407 # `[email protected]` or
408 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
409 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
410 # operation, this field will be populated.
411 {
412 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
413 # Engine returns NO_RESULTS_ON_PAGE if there
414 # are no results in the response.
415 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
416 # value format. For example:
417 #
418 # &quot;data&quot;: [
419 # {
420 # &quot;key&quot;: &quot;scope&quot;,
421 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
422 # }
423 {
424 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
425 # returned. For example, for warnings where there are no results in a list
426 # request for a particular zone, this key might be scope and
427 # the key value might be the zone name. Other examples might be a key
428 # indicating a deprecated resource and a suggested replacement, or a
429 # warning about invalid network settings (for example, if an instance
430 # attempts to perform IP forwarding but is not enabled for IP forwarding).
431 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
432 },
433 ],
434 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
435 },
436 ],
437 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
438 # applicable when performing per-zone operations.
439 }</pre>
440 </div>
441
442 <div class="method">
443 <code class="details" id="bulkInsert">bulkInsert(project, region, body=None, requestId=None, x__xgafv=None)</code>
444 <pre>Bulk create a set of disks.
445
446 Args:
447 project: string, Project ID for this request. (required)
448 region: string, The name of the region for this request. (required)
449 body: object, The request body.
450 The object takes the form of:
451
452 { # A transient resource used in compute.disks.bulkInsert and
453 # compute.regionDisks.bulkInsert. It is only used to process
454 # requests and is not persisted.
455 &quot;instantSnapshotGroupParameters&quot;: { # The parameters for the instant snapshot group.
456 &quot;sourceInstantSnapshotGroup&quot;: &quot;A String&quot;, # The source instant snapshot group used to create disks. You can provide
457 # this as a partial or full URL to the resource. For example, the following
458 # are valid values:
459 #
460 #
461 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup
462 # - projects/project/zones/zone/instantSnapshotGroups/instantSnapshotGroup
463 # - zones/zone/instantSnapshotGroups/instantSnapshotGroup
464 },
465 &quot;snapshotGroupParameters&quot;: { # The parameters for the snapshot group. The usage of snapshot group feature
466 # is restricted.
467 &quot;replicaZones&quot;: [ # URLs of the zones where disks should be replicated to. Only applicable
468 # for regional resources.
469 &quot;A String&quot;,
470 ],
471 &quot;sourceSnapshotGroup&quot;: &quot;A String&quot;, # The source snapshot group used to create disks. You can provide this as a
472 # partial or full URL to the resource. For example, the following are valid
473 # values:
474 #
475 #
476 # - https://www.googleapis.com/compute/v1/projects/project/global/snapshotGroups/snapshotGroup
477 # - projects/project/global/snapshotGroups/snapshotGroup
478 # - global/snapshotGroups/snapshotGroup
479 &quot;type&quot;: &quot;A String&quot;, # URL of the disk type resource describing which disk type to use to create
480 # disks. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk
481 # types.
482 },
483 &quot;sourceConsistencyGroupPolicy&quot;: &quot;A String&quot;, # The URL of the DiskConsistencyGroupPolicy for the group of disks to clone.
484 # This may be a full or partial URL, such as:
485 #
486 #
487 # -
488 # https://www.googleapis.com/compute/v1/projects/project/regions/region/resourcePolicies/resourcePolicy
489 #
490 # -
491 # projects/project/regions/region/resourcePolicies/resourcePolicy
492 #
493 # -
494 # regions/region/resourcePolicies/resourcePolicy
495 }
496
497 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
498 that if you must retry your request, the server will know to ignore the
499 request if it has already been completed.
500
501 For example, consider a situation where you make an initial request and
502 the request times out. If you make the request again with the same
503 request ID, the server can check if original operation with the same
504 request ID was received, and if so, will ignore the second request. This
505 prevents clients from accidentally creating duplicate commitments.
506
507 The request ID must be
508 a valid UUID with the exception that zero UUID is not supported
509 (00000000-0000-0000-0000-000000000000).
510 x__xgafv: string, V1 error format.
511 Allowed values
512 1 - v1 error format
513 2 - v2 error format
514
515 Returns:
516 An object of the form:
517
518 { # Represents an Operation resource.
519 #
520 # Google Compute Engine has three Operation resources:
521 #
522 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
523 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
524 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
525 #
526 # You can use an operation resource to manage asynchronous API requests.
527 # For more information, readHandling
528 # API responses.
529 #
530 # Operations can be global, regional or zonal.
531 #
532 # - For global operations, use the `globalOperations`
533 # resource.
534 # - For regional operations, use the
535 # `regionOperations` resource.
536 # - For zonal operations, use
537 # the `zoneOperations` resource.
538 #
539 #
540 #
541 # For more information, read
542 # Global, Regional, and Zonal Resources.
543 #
544 # Note that completed Operation resources have a limited
545 # retention period.
546 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
547 # Not present otherwise.
548 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
549 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
550 # set when the operation is created.
551 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
552 # text format.
553 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
554 # this field will be populated.
555 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
556 # operation.
557 {
558 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
559 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
560 # details. There is a set of defined message types to use for providing
561 # details.The syntax depends on the error code. For example,
562 # QuotaExceededInfo will have details when the error code is
563 # QUOTA_EXCEEDED.
564 {
565 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
566 #
567 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
568 # is not enabled:
569 #
570 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
571 # &quot;domain&quot;: &quot;googleapis.com&quot;
572 # &quot;metadata&quot;: {
573 # &quot;resource&quot;: &quot;projects/123&quot;,
574 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
575 # }
576 # }
577 #
578 # This response indicates that the pubsub.googleapis.com API is not enabled.
579 #
580 # Example of an error that is returned when attempting to create a Spanner
581 # instance in a region that is out of stock:
582 #
583 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
584 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
585 # &quot;metadata&quot;: {
586 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
587 # }
588 # }
589 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
590 # is typically the registered service name of the tool or product that
591 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
592 # generated by some common infrastructure, the error domain must be a
593 # globally unique value that identifies the infrastructure. For Google API
594 # infrastructure, the error domain is &quot;googleapis.com&quot;.
595 &quot;metadatas&quot;: { # Additional structured details about this error.
596 #
597 # Keys must match a regular expression of `a-z+` but should
598 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
599 # length. When identifying the current value of an exceeded limit, the units
600 # should be contained in the key, not the value. For example, rather than
601 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
602 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
603 # instances that can be created in a single (batch) request.
604 &quot;a_key&quot;: &quot;A String&quot;,
605 },
606 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
607 # proximate cause of the error. Error reasons are unique within a particular
608 # domain of errors. This should be at most 63 characters and match a
609 # regular expression of `A-Z+[A-Z0-9]`, which represents
610 # UPPER_SNAKE_CASE.
611 },
612 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
613 #
614 # For example, if a quota check failed with an error indicating the calling
615 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
616 # directly to the right place in the developer console to flip the bit.
617 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
618 { # Describes a URL link.
619 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
620 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
621 },
622 ],
623 },
624 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
625 # which can be attached to an RPC error.
626 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
627 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
628 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
629 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
630 },
631 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
632 &quot;dimensions&quot;: { # The map holding related quota dimensions.
633 &quot;a_key&quot;: &quot;A String&quot;,
634 },
635 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
636 # type or metric.
637 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
638 # or metric.
639 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
640 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
641 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
642 },
643 },
644 ],
645 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
646 # This property is optional.
647 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
648 },
649 ],
650 },
651 &quot;getVersionOperationMetadata&quot;: {
652 &quot;inlineSbomInfo&quot;: {
653 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
654 # appropriate identifiers.
655 &quot;a_key&quot;: &quot;A String&quot;,
656 },
657 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
658 # identifiers.
659 &quot;a_key&quot;: &quot;A String&quot;,
660 },
661 },
662 },
663 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
664 # message that was returned, such as `NOT FOUND`.
665 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
666 # status code that was returned. For example, a `404` means the
667 # resource was not found.
668 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
669 # defined by the server.
670 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
671 # This value is inRFC3339
672 # text format.
673 &quot;instancesBulkInsertOperationMetadata&quot;: {
674 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
675 # Example key: zones/us-central1-a
676 &quot;a_key&quot;: {
677 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
678 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
679 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
680 # error.
681 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
682 # if the flow is rolling forward or rolling back.
683 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
684 },
685 },
686 },
687 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
688 # Operation resources.
689 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
690 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
691 # group of operations results from a `bulkInsert` API request.
692 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
693 # `update`, or `delete`, and so on.
694 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
695 # There is no requirement that this be linear or support any granularity of
696 # operations. This should not be used to guess when the operation will be
697 # complete. This number should monotonically increase as the operation
698 # progresses.
699 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
700 # applicable when performing regional operations.
701 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
702 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
703 # this field will contain information on all underlying zonal actions and
704 # their state.
705 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
706 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
707 # Example key: zones/us-central1-a
708 &quot;a_key&quot;: {
709 &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
710 # populated.
711 # different programming environments, including REST APIs and RPC APIs. It is
712 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
713 # three pieces of data: error code, error message, and error details.
714 #
715 # You can find out more about this error model and how to work with it in the
716 # [API Design Guide](https://cloud.google.com/apis/design/errors).
717 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
718 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
719 # message types for APIs to use.
720 {
721 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
722 },
723 ],
724 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
725 # user-facing error message should be localized and sent in the
726 # google.rpc.Status.details field, or localized by the client.
727 },
728 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
729 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
730 },
731 },
732 },
733 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
734 # This value is inRFC3339
735 # text format.
736 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
737 # following:
738 # `PENDING`, `RUNNING`, or `DONE`.
739 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
740 # operation.
741 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
742 # of the target resource.
743 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
744 # operations related to creating a snapshot, this points to the disk
745 # that the snapshot was created from.
746 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
747 # `[email protected]` or
748 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
749 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
750 # operation, this field will be populated.
751 {
752 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
753 # Engine returns NO_RESULTS_ON_PAGE if there
754 # are no results in the response.
755 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
756 # value format. For example:
757 #
758 # &quot;data&quot;: [
759 # {
760 # &quot;key&quot;: &quot;scope&quot;,
761 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
762 # }
763 {
764 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
765 # returned. For example, for warnings where there are no results in a list
766 # request for a particular zone, this key might be scope and
767 # the key value might be the zone name. Other examples might be a key
768 # indicating a deprecated resource and a suggested replacement, or a
769 # warning about invalid network settings (for example, if an instance
770 # attempts to perform IP forwarding but is not enabled for IP forwarding).
771 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
772 },
773 ],
774 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
775 },
776 ],
777 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
778 # applicable when performing per-zone operations.
779 }</pre>
780 </div>
781
782 <div class="method">
783 <code class="details" id="close">close()</code>
784 <pre>Close httplib2 connections.</pre>
785 </div>
786
787 <div class="method">
788 <code class="details" id="createSnapshot">createSnapshot(project, region, disk, body=None, requestId=None, x__xgafv=None)</code>
789 <pre>Creates a snapshot of a specified persistent disk. For regular snapshot
790 creation, consider using snapshots.insert
791 instead, as that method supports more features, such as creating snapshots
792 in a project different from the source disk project.
793
794 Args:
795 project: string, Project ID for this request. (required)
796 region: string, Name of the region for this request. (required)
797 disk: string, Name of the regional persistent disk to snapshot. (required)
798 body: object, The request body.
799 The object takes the form of:
800
801 { # Represents a Persistent Disk Snapshot resource.
802 #
803 # You can use snapshots to back up data on a regular interval. For more
804 # information, read Creating
805 # persistent disk snapshots.
806 &quot;architecture&quot;: &quot;A String&quot;, # Output only. [Output Only] The architecture of the snapshot. Valid values are
807 # ARM64 or X86_64.
808 &quot;autoCreated&quot;: True or False, # Output only. [Output Only] Set to true if snapshots are automatically created by
809 # applying resource policy on the target disk.
810 &quot;chainName&quot;: &quot;A String&quot;, # Creates the new snapshot in the snapshot chain labeled with the
811 # specified name. The chain name must be 1-63 characters long and comply
812 # with RFC1035. This is an uncommon option only for advanced service
813 # owners who needs to create separate snapshot chains, for example,
814 # for chargeback tracking. When you describe your snapshot resource, this
815 # field is visible only if it has a non-empty value.
816 &quot;creationSizeBytes&quot;: &quot;A String&quot;, # Output only. [Output Only] Size in bytes of the snapshot at creation time.
817 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
818 # text format.
819 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
820 # create the resource.
821 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Output only. [Output Only] Size of the source disk, specified in GB.
822 &quot;downloadBytes&quot;: &quot;A String&quot;, # Output only. [Output Only] Number of bytes downloaded to restore a snapshot to a disk.
823 &quot;enableConfidentialCompute&quot;: True or False, # Output only. Whether this snapshot is created from a confidential compute mode disk.
824 # [Output Only]: This field is not set by user, but from source disk.
825 &quot;guestFlush&quot;: True or False, # [Input Only] Whether to attempt an application consistent snapshot by
826 # informing the OS to prepare for the snapshot process.
827 &quot;guestOsFeatures&quot;: [ # Output only. [Output Only] A list of features to enable on the guest operating system.
828 # Applicable only for bootable images. Read
829 # Enabling guest operating system features to see a list of available
830 # options.
831 { # Guest OS features.
832 &quot;type&quot;: &quot;A String&quot;, # The ID of a supported feature. To add multiple values, use commas to
833 # separate values. Set to one or more of the following values:
834 #
835 # - VIRTIO_SCSI_MULTIQUEUE
836 # - WINDOWS
837 # - MULTI_IP_SUBNET
838 # - UEFI_COMPATIBLE
839 # - GVNIC
840 # - SEV_CAPABLE
841 # - SUSPEND_RESUME_COMPATIBLE
842 # - SEV_LIVE_MIGRATABLE_V2
843 # - SEV_SNP_CAPABLE
844 # - TDX_CAPABLE
845 # - IDPF
846 # - SNP_SVSM_CAPABLE
847 # - CCA_CAPABLE
848 #
849 #
850 # For more information, see
851 # Enabling guest operating system features.
852 },
853 ],
854 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the resource. This identifier is
855 # defined by the server.
856 &quot;kind&quot;: &quot;compute#snapshot&quot;, # Output only. [Output Only] Type of the resource. Always compute#snapshot
857 # for Snapshot resources.
858 &quot;labelFingerprint&quot;: &quot;A String&quot;, # A fingerprint for the labels being applied to this snapshot, which is
859 # essentially a hash of the labels set used for optimistic locking. The
860 # fingerprint is initially generated by Compute Engine and changes after
861 # every request to modify or update labels. You must always provide an
862 # up-to-date fingerprint hash in order to update or change labels,
863 # otherwise the request will fail with error412 conditionNotMet.
864 #
865 # To see the latest fingerprint, make a get() request to
866 # retrieve a snapshot.
867 &quot;labels&quot;: { # Labels to apply to this snapshot. These can be later modified by
868 # the setLabels method.
869 # Label values may be empty.
870 &quot;a_key&quot;: &quot;A String&quot;,
871 },
872 &quot;licenseCodes&quot;: [ # Output only. [Output Only] Integer license codes indicating which licenses are attached
873 # to this snapshot.
874 &quot;A String&quot;,
875 ],
876 &quot;licenses&quot;: [ # Output only. [Output Only] A list of public visible licenses that apply to this
877 # snapshot. This can be because the original image had licenses attached
878 # (such as a Windows image).
879 &quot;A String&quot;,
880 ],
881 &quot;locationHint&quot;: &quot;A String&quot;, # An opaque location hint used to place the snapshot close to other
882 # resources.
883 # This field is for use by internal tools that use the public API.
884 &quot;name&quot;: &quot;A String&quot;, # Name of the resource; provided by the client when the resource is created.
885 # The name must be 1-63 characters long, and comply withRFC1035.
886 # Specifically, the name must be 1-63 characters long and match the regular
887 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
888 # character must be a lowercase letter, and all following characters must be
889 # a dash, lowercase letter, or digit, except the last character, which cannot
890 # be a dash.
891 &quot;params&quot;: { # Additional snapshot params. # Input only. [Input Only] Additional params passed with the request, but not persisted
892 # as part of resource payload.
893 &quot;resourceManagerTags&quot;: { # Input only. Resource manager tags to be bound to the snapshot. Tag keys and values have
894 # the same definition as resource
895 # manager tags. Keys and values can be either in numeric format,
896 # such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
897 # namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
898 # `{tag_value_short_name}`. The field is ignored (both PUT &amp;
899 # PATCH) when empty.
900 &quot;a_key&quot;: &quot;A String&quot;,
901 },
902 },
903 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the snapshot resides. Only applicable
904 # for regional snapshots.
905 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
906 &quot;satisfiesPzs&quot;: True or False, # Output only. [Output Only] Reserved for future use.
907 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for the resource.
908 &quot;snapshotEncryptionKey&quot;: { # Encrypts the snapshot using acustomer-supplied
909 # encryption key.
910 #
911 # After you encrypt a snapshot using a customer-supplied key, you must
912 # provide the same key if you use the snapshot later. For example, you must
913 # provide the encryption key when you create a disk from the encrypted
914 # snapshot in a future request.
915 #
916 # Customer-supplied encryption keys do not protect access to metadata
917 # of the snapshot.
918 #
919 # If you do not provide an encryption key when creating the snapshot, then
920 # the snapshot will be encrypted using an automatically generated key and you
921 # do not need to provide a key to use the snapshot later.
922 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS.
923 # For example:
924 #
925 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
926 # key_region/cryptoKeys/key
927 #
928 # The fully-qualifed key name may be returned for resource GET requests. For
929 # example:
930 #
931 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
932 # key_region/cryptoKeys/key
933 # /cryptoKeyVersions/1
934 &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # The service account being used for the encryption request for the given KMS
935 # key. If absent, the Compute Engine default service account is used.
936 # For example:
937 #
938 # &quot;kmsKeyServiceAccount&quot;: &quot;name@project_id.iam.gserviceaccount.com/
939 &quot;rawKey&quot;: &quot;A String&quot;, # Specifies a 256-bit customer-supplied
940 # encryption key, encoded in RFC
941 # 4648 base64 to either encrypt or decrypt this resource. You can
942 # provide either the rawKey or thersaEncryptedKey.
943 # For example:
944 #
945 # &quot;rawKey&quot;:
946 # &quot;SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=&quot;
947 &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
948 # customer-supplied encryption key to either encrypt or decrypt this
949 # resource. You can provide either the rawKey or thersaEncryptedKey.
950 # For example:
951 #
952 # &quot;rsaEncryptedKey&quot;:
953 # &quot;ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
954 # z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
955 # D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==&quot;
956 #
957 # The key must meet the following requirements before you can provide it to
958 # Compute Engine:
959 #
960 # 1. The key is wrapped using a RSA public key certificate provided by
961 # Google.
962 # 2. After being wrapped, the key must be encoded in RFC 4648 base64
963 # encoding.
964 #
965 # Gets the RSA public key certificate provided by Google at:
966 #
967 #
968 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
969 &quot;sha256&quot;: &quot;A String&quot;, # [Output only] TheRFC
970 # 4648 base64 encoded SHA-256 hash of the customer-supplied
971 # encryption key that protects this resource.
972 },
973 &quot;snapshotGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique ID of the snapshot group that this snapshot
974 # belongs to. The usage of snapshot group feature is restricted.
975 &quot;snapshotGroupName&quot;: &quot;A String&quot;, # Output only. [Output only] The snapshot group that this snapshot belongs to. The usage
976 # of snapshot group feature is restricted.
977 &quot;snapshotType&quot;: &quot;A String&quot;, # Indicates the type of the snapshot.
978 &quot;sourceDisk&quot;: &quot;A String&quot;, # The source disk used to create this snapshot.
979 &quot;sourceDiskEncryptionKey&quot;: { # The customer-supplied
980 # encryption key of the source disk. Required if the source disk is
981 # protected by a customer-supplied encryption key.
982 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS.
983 # For example:
984 #
985 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
986 # key_region/cryptoKeys/key
987 #
988 # The fully-qualifed key name may be returned for resource GET requests. For
989 # example:
990 #
991 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
992 # key_region/cryptoKeys/key
993 # /cryptoKeyVersions/1
994 &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # The service account being used for the encryption request for the given KMS
995 # key. If absent, the Compute Engine default service account is used.
996 # For example:
997 #
998 # &quot;kmsKeyServiceAccount&quot;: &quot;name@project_id.iam.gserviceaccount.com/
999 &quot;rawKey&quot;: &quot;A String&quot;, # Specifies a 256-bit customer-supplied
1000 # encryption key, encoded in RFC
1001 # 4648 base64 to either encrypt or decrypt this resource. You can
1002 # provide either the rawKey or thersaEncryptedKey.
1003 # For example:
1004 #
1005 # &quot;rawKey&quot;:
1006 # &quot;SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=&quot;
1007 &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
1008 # customer-supplied encryption key to either encrypt or decrypt this
1009 # resource. You can provide either the rawKey or thersaEncryptedKey.
1010 # For example:
1011 #
1012 # &quot;rsaEncryptedKey&quot;:
1013 # &quot;ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
1014 # z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
1015 # D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==&quot;
1016 #
1017 # The key must meet the following requirements before you can provide it to
1018 # Compute Engine:
1019 #
1020 # 1. The key is wrapped using a RSA public key certificate provided by
1021 # Google.
1022 # 2. After being wrapped, the key must be encoded in RFC 4648 base64
1023 # encoding.
1024 #
1025 # Gets the RSA public key certificate provided by Google at:
1026 #
1027 #
1028 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
1029 &quot;sha256&quot;: &quot;A String&quot;, # [Output only] TheRFC
1030 # 4648 base64 encoded SHA-256 hash of the customer-supplied
1031 # encryption key that protects this resource.
1032 },
1033 &quot;sourceDiskForRecoveryCheckpoint&quot;: &quot;A String&quot;, # The source disk whose recovery checkpoint will be used to create this
1034 # snapshot.
1035 &quot;sourceDiskId&quot;: &quot;A String&quot;, # Output only. [Output Only] The ID value of the disk used to create this snapshot. This
1036 # value may be used to determine whether the snapshot was taken from the
1037 # current or a previous instance of a given disk name.
1038 &quot;sourceInstantSnapshot&quot;: &quot;A String&quot;, # The source instant snapshot used to create this snapshot. You can provide
1039 # this as a partial or full URL to the resource. For example, the following
1040 # are valid values:
1041 #
1042 #
1043 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshots/instantSnapshot
1044 # - projects/project/zones/zone/instantSnapshots/instantSnapshot
1045 # - zones/zone/instantSnapshots/instantSnapshot
1046 &quot;sourceInstantSnapshotEncryptionKey&quot;: { # Customer provided encryption key when creating Snapshot from Instant
1047 # Snapshot.
1048 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS.
1049 # For example:
1050 #
1051 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
1052 # key_region/cryptoKeys/key
1053 #
1054 # The fully-qualifed key name may be returned for resource GET requests. For
1055 # example:
1056 #
1057 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
1058 # key_region/cryptoKeys/key
1059 # /cryptoKeyVersions/1
1060 &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # The service account being used for the encryption request for the given KMS
1061 # key. If absent, the Compute Engine default service account is used.
1062 # For example:
1063 #
1064 # &quot;kmsKeyServiceAccount&quot;: &quot;name@project_id.iam.gserviceaccount.com/
1065 &quot;rawKey&quot;: &quot;A String&quot;, # Specifies a 256-bit customer-supplied
1066 # encryption key, encoded in RFC
1067 # 4648 base64 to either encrypt or decrypt this resource. You can
1068 # provide either the rawKey or thersaEncryptedKey.
1069 # For example:
1070 #
1071 # &quot;rawKey&quot;:
1072 # &quot;SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=&quot;
1073 &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
1074 # customer-supplied encryption key to either encrypt or decrypt this
1075 # resource. You can provide either the rawKey or thersaEncryptedKey.
1076 # For example:
1077 #
1078 # &quot;rsaEncryptedKey&quot;:
1079 # &quot;ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
1080 # z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
1081 # D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==&quot;
1082 #
1083 # The key must meet the following requirements before you can provide it to
1084 # Compute Engine:
1085 #
1086 # 1. The key is wrapped using a RSA public key certificate provided by
1087 # Google.
1088 # 2. After being wrapped, the key must be encoded in RFC 4648 base64
1089 # encoding.
1090 #
1091 # Gets the RSA public key certificate provided by Google at:
1092 #
1093 #
1094 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
1095 &quot;sha256&quot;: &quot;A String&quot;, # [Output only] TheRFC
1096 # 4648 base64 encoded SHA-256 hash of the customer-supplied
1097 # encryption key that protects this resource.
1098 },
1099 &quot;sourceInstantSnapshotId&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique ID of the instant snapshot used to create this
1100 # snapshot. This value identifies the exact instant snapshot that was used to
1101 # create this snapshot. For example, if you created the snapshot from an
1102 # instant snapshot that was later deleted and recreated under the same name,
1103 # the source instant snapshot ID would identify the exact instant snapshot
1104 # that was used.
1105 &quot;sourceSnapshotSchedulePolicy&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the resource policy which created this
1106 # scheduled snapshot.
1107 &quot;sourceSnapshotSchedulePolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] ID of the resource policy which created this
1108 # scheduled snapshot.
1109 &quot;status&quot;: &quot;A String&quot;, # Output only. [Output Only] The status of the snapshot. This can beCREATING, DELETING, FAILED,READY, or UPLOADING.
1110 &quot;storageBytes&quot;: &quot;A String&quot;, # Output only. [Output Only] A size of the storage used by the snapshot. As snapshots
1111 # share storage, this number is expected to change with snapshot
1112 # creation/deletion.
1113 &quot;storageBytesStatus&quot;: &quot;A String&quot;, # Output only. [Deprecated] Instead, check the storageBytes field. After
1114 # snapshot creation, the storageBytesStatus field is alwaysUP_TO_DATE.
1115 # [Output Only] An indicator whether storageBytes is in a
1116 # stable state or it is being adjusted as a result of shared storage
1117 # reallocation. This status can either be unset, meaning the snapshot is
1118 # being created, or UP_TO_DATE, meaning the size of the snapshot
1119 # is up-to-date.
1120 &quot;storageLocations&quot;: [ # Cloud Storage bucket storage location of the snapshot (regional or
1121 # multi-regional).
1122 &quot;A String&quot;,
1123 ],
1124 }
1125
1126 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
1127 that if you must retry your request, the server will know to ignore the
1128 request if it has already been completed.
1129
1130 For example, consider a situation where you make an initial request and
1131 the request times out. If you make the request again with the same
1132 request ID, the server can check if original operation with the same
1133 request ID was received, and if so, will ignore the second request. This
1134 prevents clients from accidentally creating duplicate commitments.
1135
1136 The request ID must be
1137 a valid UUID with the exception that zero UUID is not supported
1138 (00000000-0000-0000-0000-000000000000).
1139 x__xgafv: string, V1 error format.
1140 Allowed values
1141 1 - v1 error format
1142 2 - v2 error format
1143
1144 Returns:
1145 An object of the form:
1146
1147 { # Represents an Operation resource.
1148 #
1149 # Google Compute Engine has three Operation resources:
1150 #
1151 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
1152 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
1153 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
1154 #
1155 # You can use an operation resource to manage asynchronous API requests.
1156 # For more information, readHandling
1157 # API responses.
1158 #
1159 # Operations can be global, regional or zonal.
1160 #
1161 # - For global operations, use the `globalOperations`
1162 # resource.
1163 # - For regional operations, use the
1164 # `regionOperations` resource.
1165 # - For zonal operations, use
1166 # the `zoneOperations` resource.
1167 #
1168 #
1169 #
1170 # For more information, read
1171 # Global, Regional, and Zonal Resources.
1172 #
1173 # Note that completed Operation resources have a limited
1174 # retention period.
1175 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
1176 # Not present otherwise.
1177 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1178 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
1179 # set when the operation is created.
1180 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
1181 # text format.
1182 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
1183 # this field will be populated.
1184 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
1185 # operation.
1186 {
1187 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
1188 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
1189 # details. There is a set of defined message types to use for providing
1190 # details.The syntax depends on the error code. For example,
1191 # QuotaExceededInfo will have details when the error code is
1192 # QUOTA_EXCEEDED.
1193 {
1194 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
1195 #
1196 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
1197 # is not enabled:
1198 #
1199 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
1200 # &quot;domain&quot;: &quot;googleapis.com&quot;
1201 # &quot;metadata&quot;: {
1202 # &quot;resource&quot;: &quot;projects/123&quot;,
1203 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
1204 # }
1205 # }
1206 #
1207 # This response indicates that the pubsub.googleapis.com API is not enabled.
1208 #
1209 # Example of an error that is returned when attempting to create a Spanner
1210 # instance in a region that is out of stock:
1211 #
1212 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
1213 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
1214 # &quot;metadata&quot;: {
1215 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
1216 # }
1217 # }
1218 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
1219 # is typically the registered service name of the tool or product that
1220 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
1221 # generated by some common infrastructure, the error domain must be a
1222 # globally unique value that identifies the infrastructure. For Google API
1223 # infrastructure, the error domain is &quot;googleapis.com&quot;.
1224 &quot;metadatas&quot;: { # Additional structured details about this error.
1225 #
1226 # Keys must match a regular expression of `a-z+` but should
1227 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
1228 # length. When identifying the current value of an exceeded limit, the units
1229 # should be contained in the key, not the value. For example, rather than
1230 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
1231 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
1232 # instances that can be created in a single (batch) request.
1233 &quot;a_key&quot;: &quot;A String&quot;,
1234 },
1235 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
1236 # proximate cause of the error. Error reasons are unique within a particular
1237 # domain of errors. This should be at most 63 characters and match a
1238 # regular expression of `A-Z+[A-Z0-9]`, which represents
1239 # UPPER_SNAKE_CASE.
1240 },
1241 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
1242 #
1243 # For example, if a quota check failed with an error indicating the calling
1244 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
1245 # directly to the right place in the developer console to flip the bit.
1246 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
1247 { # Describes a URL link.
1248 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
1249 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
1250 },
1251 ],
1252 },
1253 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
1254 # which can be attached to an RPC error.
1255 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
1256 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
1257 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
1258 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
1259 },
1260 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
1261 &quot;dimensions&quot;: { # The map holding related quota dimensions.
1262 &quot;a_key&quot;: &quot;A String&quot;,
1263 },
1264 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
1265 # type or metric.
1266 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
1267 # or metric.
1268 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
1269 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
1270 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
1271 },
1272 },
1273 ],
1274 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
1275 # This property is optional.
1276 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
1277 },
1278 ],
1279 },
1280 &quot;getVersionOperationMetadata&quot;: {
1281 &quot;inlineSbomInfo&quot;: {
1282 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
1283 # appropriate identifiers.
1284 &quot;a_key&quot;: &quot;A String&quot;,
1285 },
1286 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
1287 # identifiers.
1288 &quot;a_key&quot;: &quot;A String&quot;,
1289 },
1290 },
1291 },
1292 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
1293 # message that was returned, such as `NOT FOUND`.
1294 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
1295 # status code that was returned. For example, a `404` means the
1296 # resource was not found.
1297 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
1298 # defined by the server.
1299 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
1300 # This value is inRFC3339
1301 # text format.
1302 &quot;instancesBulkInsertOperationMetadata&quot;: {
1303 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
1304 # Example key: zones/us-central1-a
1305 &quot;a_key&quot;: {
1306 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
1307 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
1308 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
1309 # error.
1310 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
1311 # if the flow is rolling forward or rolling back.
1312 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
1313 },
1314 },
1315 },
1316 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
1317 # Operation resources.
1318 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
1319 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
1320 # group of operations results from a `bulkInsert` API request.
1321 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
1322 # `update`, or `delete`, and so on.
1323 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
1324 # There is no requirement that this be linear or support any granularity of
1325 # operations. This should not be used to guess when the operation will be
1326 # complete. This number should monotonically increase as the operation
1327 # progresses.
1328 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
1329 # applicable when performing regional operations.
1330 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1331 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
1332 # this field will contain information on all underlying zonal actions and
1333 # their state.
1334 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
1335 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
1336 # Example key: zones/us-central1-a
1337 &quot;a_key&quot;: {
1338 &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
1339 # populated.
1340 # different programming environments, including REST APIs and RPC APIs. It is
1341 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1342 # three pieces of data: error code, error message, and error details.
1343 #
1344 # You can find out more about this error model and how to work with it in the
1345 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1346 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1347 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1348 # message types for APIs to use.
1349 {
1350 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1351 },
1352 ],
1353 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1354 # user-facing error message should be localized and sent in the
1355 # google.rpc.Status.details field, or localized by the client.
1356 },
1357 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
1358 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
1359 },
1360 },
1361 },
1362 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
1363 # This value is inRFC3339
1364 # text format.
1365 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
1366 # following:
1367 # `PENDING`, `RUNNING`, or `DONE`.
1368 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
1369 # operation.
1370 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
1371 # of the target resource.
1372 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
1373 # operations related to creating a snapshot, this points to the disk
1374 # that the snapshot was created from.
1375 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
1376 # `[email protected]` or
1377 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
1378 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
1379 # operation, this field will be populated.
1380 {
1381 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1382 # Engine returns NO_RESULTS_ON_PAGE if there
1383 # are no results in the response.
1384 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1385 # value format. For example:
1386 #
1387 # &quot;data&quot;: [
1388 # {
1389 # &quot;key&quot;: &quot;scope&quot;,
1390 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1391 # }
1392 {
1393 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1394 # returned. For example, for warnings where there are no results in a list
1395 # request for a particular zone, this key might be scope and
1396 # the key value might be the zone name. Other examples might be a key
1397 # indicating a deprecated resource and a suggested replacement, or a
1398 # warning about invalid network settings (for example, if an instance
1399 # attempts to perform IP forwarding but is not enabled for IP forwarding).
1400 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1401 },
1402 ],
1403 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1404 },
1405 ],
1406 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
1407 # applicable when performing per-zone operations.
1408 }</pre>
1409 </div>
1410
1411 <div class="method">
1412 <code class="details" id="delete">delete(project, region, disk, requestId=None, x__xgafv=None)</code>
1413 <pre>Deletes the specified regional persistent disk. Deleting a regional disk
1414 removes all the replicas of its data permanently and is irreversible.
1415 However, deleting a disk does not delete anysnapshots
1416 previously made from the disk. You must separatelydelete
1417 snapshots.
1418
1419 Args:
1420 project: string, Project ID for this request. (required)
1421 region: string, Name of the region for this request. (required)
1422 disk: string, Name of the regional persistent disk to delete. (required)
1423 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
1424 that if you must retry your request, the server will know to ignore the
1425 request if it has already been completed.
1426
1427 For example, consider a situation where you make an initial request and
1428 the request times out. If you make the request again with the same
1429 request ID, the server can check if original operation with the same
1430 request ID was received, and if so, will ignore the second request. This
1431 prevents clients from accidentally creating duplicate commitments.
1432
1433 The request ID must be
1434 a valid UUID with the exception that zero UUID is not supported
1435 (00000000-0000-0000-0000-000000000000).
1436 x__xgafv: string, V1 error format.
1437 Allowed values
1438 1 - v1 error format
1439 2 - v2 error format
1440
1441 Returns:
1442 An object of the form:
1443
1444 { # Represents an Operation resource.
1445 #
1446 # Google Compute Engine has three Operation resources:
1447 #
1448 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
1449 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
1450 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
1451 #
1452 # You can use an operation resource to manage asynchronous API requests.
1453 # For more information, readHandling
1454 # API responses.
1455 #
1456 # Operations can be global, regional or zonal.
1457 #
1458 # - For global operations, use the `globalOperations`
1459 # resource.
1460 # - For regional operations, use the
1461 # `regionOperations` resource.
1462 # - For zonal operations, use
1463 # the `zoneOperations` resource.
1464 #
1465 #
1466 #
1467 # For more information, read
1468 # Global, Regional, and Zonal Resources.
1469 #
1470 # Note that completed Operation resources have a limited
1471 # retention period.
1472 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
1473 # Not present otherwise.
1474 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1475 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
1476 # set when the operation is created.
1477 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
1478 # text format.
1479 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
1480 # this field will be populated.
1481 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
1482 # operation.
1483 {
1484 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
1485 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
1486 # details. There is a set of defined message types to use for providing
1487 # details.The syntax depends on the error code. For example,
1488 # QuotaExceededInfo will have details when the error code is
1489 # QUOTA_EXCEEDED.
1490 {
1491 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
1492 #
1493 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
1494 # is not enabled:
1495 #
1496 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
1497 # &quot;domain&quot;: &quot;googleapis.com&quot;
1498 # &quot;metadata&quot;: {
1499 # &quot;resource&quot;: &quot;projects/123&quot;,
1500 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
1501 # }
1502 # }
1503 #
1504 # This response indicates that the pubsub.googleapis.com API is not enabled.
1505 #
1506 # Example of an error that is returned when attempting to create a Spanner
1507 # instance in a region that is out of stock:
1508 #
1509 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
1510 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
1511 # &quot;metadata&quot;: {
1512 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
1513 # }
1514 # }
1515 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
1516 # is typically the registered service name of the tool or product that
1517 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
1518 # generated by some common infrastructure, the error domain must be a
1519 # globally unique value that identifies the infrastructure. For Google API
1520 # infrastructure, the error domain is &quot;googleapis.com&quot;.
1521 &quot;metadatas&quot;: { # Additional structured details about this error.
1522 #
1523 # Keys must match a regular expression of `a-z+` but should
1524 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
1525 # length. When identifying the current value of an exceeded limit, the units
1526 # should be contained in the key, not the value. For example, rather than
1527 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
1528 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
1529 # instances that can be created in a single (batch) request.
1530 &quot;a_key&quot;: &quot;A String&quot;,
1531 },
1532 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
1533 # proximate cause of the error. Error reasons are unique within a particular
1534 # domain of errors. This should be at most 63 characters and match a
1535 # regular expression of `A-Z+[A-Z0-9]`, which represents
1536 # UPPER_SNAKE_CASE.
1537 },
1538 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
1539 #
1540 # For example, if a quota check failed with an error indicating the calling
1541 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
1542 # directly to the right place in the developer console to flip the bit.
1543 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
1544 { # Describes a URL link.
1545 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
1546 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
1547 },
1548 ],
1549 },
1550 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
1551 # which can be attached to an RPC error.
1552 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
1553 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
1554 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
1555 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
1556 },
1557 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
1558 &quot;dimensions&quot;: { # The map holding related quota dimensions.
1559 &quot;a_key&quot;: &quot;A String&quot;,
1560 },
1561 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
1562 # type or metric.
1563 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
1564 # or metric.
1565 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
1566 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
1567 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
1568 },
1569 },
1570 ],
1571 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
1572 # This property is optional.
1573 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
1574 },
1575 ],
1576 },
1577 &quot;getVersionOperationMetadata&quot;: {
1578 &quot;inlineSbomInfo&quot;: {
1579 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
1580 # appropriate identifiers.
1581 &quot;a_key&quot;: &quot;A String&quot;,
1582 },
1583 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
1584 # identifiers.
1585 &quot;a_key&quot;: &quot;A String&quot;,
1586 },
1587 },
1588 },
1589 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
1590 # message that was returned, such as `NOT FOUND`.
1591 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
1592 # status code that was returned. For example, a `404` means the
1593 # resource was not found.
1594 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
1595 # defined by the server.
1596 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
1597 # This value is inRFC3339
1598 # text format.
1599 &quot;instancesBulkInsertOperationMetadata&quot;: {
1600 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
1601 # Example key: zones/us-central1-a
1602 &quot;a_key&quot;: {
1603 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
1604 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
1605 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
1606 # error.
1607 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
1608 # if the flow is rolling forward or rolling back.
1609 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
1610 },
1611 },
1612 },
1613 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
1614 # Operation resources.
1615 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
1616 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
1617 # group of operations results from a `bulkInsert` API request.
1618 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
1619 # `update`, or `delete`, and so on.
1620 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
1621 # There is no requirement that this be linear or support any granularity of
1622 # operations. This should not be used to guess when the operation will be
1623 # complete. This number should monotonically increase as the operation
1624 # progresses.
1625 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
1626 # applicable when performing regional operations.
1627 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1628 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
1629 # this field will contain information on all underlying zonal actions and
1630 # their state.
1631 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
1632 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
1633 # Example key: zones/us-central1-a
1634 &quot;a_key&quot;: {
1635 &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
1636 # populated.
1637 # different programming environments, including REST APIs and RPC APIs. It is
1638 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1639 # three pieces of data: error code, error message, and error details.
1640 #
1641 # You can find out more about this error model and how to work with it in the
1642 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1643 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1644 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1645 # message types for APIs to use.
1646 {
1647 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1648 },
1649 ],
1650 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1651 # user-facing error message should be localized and sent in the
1652 # google.rpc.Status.details field, or localized by the client.
1653 },
1654 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
1655 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
1656 },
1657 },
1658 },
1659 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
1660 # This value is inRFC3339
1661 # text format.
1662 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
1663 # following:
1664 # `PENDING`, `RUNNING`, or `DONE`.
1665 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
1666 # operation.
1667 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
1668 # of the target resource.
1669 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
1670 # operations related to creating a snapshot, this points to the disk
1671 # that the snapshot was created from.
1672 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
1673 # `[email protected]` or
1674 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
1675 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
1676 # operation, this field will be populated.
1677 {
1678 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1679 # Engine returns NO_RESULTS_ON_PAGE if there
1680 # are no results in the response.
1681 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1682 # value format. For example:
1683 #
1684 # &quot;data&quot;: [
1685 # {
1686 # &quot;key&quot;: &quot;scope&quot;,
1687 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1688 # }
1689 {
1690 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1691 # returned. For example, for warnings where there are no results in a list
1692 # request for a particular zone, this key might be scope and
1693 # the key value might be the zone name. Other examples might be a key
1694 # indicating a deprecated resource and a suggested replacement, or a
1695 # warning about invalid network settings (for example, if an instance
1696 # attempts to perform IP forwarding but is not enabled for IP forwarding).
1697 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1698 },
1699 ],
1700 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1701 },
1702 ],
1703 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
1704 # applicable when performing per-zone operations.
1705 }</pre>
1706 </div>
1707
1708 <div class="method">
1709 <code class="details" id="get">get(project, region, disk, x__xgafv=None)</code>
1710 <pre>Returns a specified regional persistent disk.
1711
1712 Args:
1713 project: string, Project ID for this request. (required)
1714 region: string, Name of the region for this request. (required)
1715 disk: string, Name of the regional persistent disk to return. (required)
1716 x__xgafv: string, V1 error format.
1717 Allowed values
1718 1 - v1 error format
1719 2 - v2 error format
1720
1721 Returns:
1722 An object of the form:
1723
1724 { # Represents a Persistent Disk resource.
1725 #
1726 # Google Compute Engine has two Disk resources:
1727 #
1728 # * [Zonal](/compute/docs/reference/rest/v1/disks)
1729 # * [Regional](/compute/docs/reference/rest/v1/regionDisks)
1730 #
1731 # Persistent disks are required for running your VM instances.
1732 # Create both boot and non-boot (data) persistent disks. For more information,
1733 # read Persistent Disks. For more
1734 # storage options, read Storage options.
1735 #
1736 # The disks resource represents a zonal persistent disk.
1737 # For more information, readZonal persistent disks.
1738 #
1739 # The regionDisks resource represents a
1740 # regional persistent disk. For more information, read
1741 # Regional resources.
1742 &quot;accessMode&quot;: &quot;A String&quot;, # The access mode of the disk.
1743 #
1744 #
1745 # - READ_WRITE_SINGLE: The default AccessMode, means the
1746 # disk can be attached to single instance in RW mode.
1747 # - READ_WRITE_MANY: The AccessMode means the disk can be
1748 # attached to multiple instances in RW mode.
1749 # - READ_ONLY_MANY: The AccessMode means the disk can be
1750 # attached to multiple instances in RO mode.
1751 #
1752 #
1753 # The AccessMode is only valid for Hyperdisk disk types.
1754 &quot;architecture&quot;: &quot;A String&quot;, # The architecture of the disk. Valid values are
1755 # ARM64 or X86_64.
1756 &quot;asyncPrimaryDisk&quot;: { # Disk asynchronously replicated into this disk.
1757 &quot;consistencyGroupPolicy&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the DiskConsistencyGroupPolicy if replication was
1758 # started on the disk as a member of a group.
1759 &quot;consistencyGroupPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] ID of the DiskConsistencyGroupPolicy if replication was
1760 # started on the disk as a member of a group.
1761 &quot;disk&quot;: &quot;A String&quot;, # The other disk asynchronously replicated to or from the current disk.
1762 # You can provide this as a partial or full URL to the resource.
1763 # For example, the following are valid values:
1764 #
1765 #
1766 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
1767 # - projects/project/zones/zone/disks/disk
1768 # - zones/zone/disks/disk
1769 &quot;diskId&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique ID of the other disk asynchronously replicated
1770 # to or from the current disk. This value identifies the exact disk that
1771 # was used to create this replication. For example, if you started
1772 # replicating the persistent disk from a disk that was later deleted and
1773 # recreated under the same name, the disk ID would identify the exact
1774 # version of the disk that was used.
1775 },
1776 &quot;asyncSecondaryDisks&quot;: { # Output only. [Output Only] A list of disks this disk is asynchronously replicated to.
1777 &quot;a_key&quot;: {
1778 &quot;asyncReplicationDisk&quot;: {
1779 &quot;consistencyGroupPolicy&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the DiskConsistencyGroupPolicy if replication was
1780 # started on the disk as a member of a group.
1781 &quot;consistencyGroupPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] ID of the DiskConsistencyGroupPolicy if replication was
1782 # started on the disk as a member of a group.
1783 &quot;disk&quot;: &quot;A String&quot;, # The other disk asynchronously replicated to or from the current disk.
1784 # You can provide this as a partial or full URL to the resource.
1785 # For example, the following are valid values:
1786 #
1787 #
1788 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
1789 # - projects/project/zones/zone/disks/disk
1790 # - zones/zone/disks/disk
1791 &quot;diskId&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique ID of the other disk asynchronously replicated
1792 # to or from the current disk. This value identifies the exact disk that
1793 # was used to create this replication. For example, if you started
1794 # replicating the persistent disk from a disk that was later deleted and
1795 # recreated under the same name, the disk ID would identify the exact
1796 # version of the disk that was used.
1797 },
1798 },
1799 },
1800 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
1801 # text format.
1802 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
1803 # create the resource.
1804 &quot;diskEncryptionKey&quot;: { # Encrypts the disk using a
1805 # customer-supplied encryption key or a
1806 # customer-managed encryption key.
1807 #
1808 # Encryption keys do not protect access to metadata of the disk.
1809 #
1810 # After you encrypt a disk with a customer-supplied key, you must provide the
1811 # same key if you use the disk later. For example, to create a disk snapshot,
1812 # to create a disk image, to create a machine image, or to attach the disk to
1813 # a virtual machine.
1814 #
1815 # After you encrypt a disk with a customer-managed key, thediskEncryptionKey.kmsKeyName is set to a key *version*
1816 # name once the disk is created. The disk is encrypted with this version of
1817 # the key. In the response, diskEncryptionKey.kmsKeyName appears
1818 # in the following format:
1819 #
1820 # &quot;diskEncryptionKey.kmsKeyName&quot;:
1821 # &quot;projects/kms_project_id/locations/region/keyRings/
1822 # key_region/cryptoKeys/key
1823 # /cryptoKeysVersions/version
1824 #
1825 # If you do not provide an encryption key when creating the disk, then the
1826 # disk is encrypted using an automatically generated key and you don&#x27;t need
1827 # to provide a key to use the disk later.
1828 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS.
1829 # For example:
1830 #
1831 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
1832 # key_region/cryptoKeys/key
1833 #
1834 # The fully-qualifed key name may be returned for resource GET requests. For
1835 # example:
1836 #
1837 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
1838 # key_region/cryptoKeys/key
1839 # /cryptoKeyVersions/1
1840 &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # The service account being used for the encryption request for the given KMS
1841 # key. If absent, the Compute Engine default service account is used.
1842 # For example:
1843 #
1844 # &quot;kmsKeyServiceAccount&quot;: &quot;name@project_id.iam.gserviceaccount.com/
1845 &quot;rawKey&quot;: &quot;A String&quot;, # Specifies a 256-bit customer-supplied
1846 # encryption key, encoded in RFC
1847 # 4648 base64 to either encrypt or decrypt this resource. You can
1848 # provide either the rawKey or thersaEncryptedKey.
1849 # For example:
1850 #
1851 # &quot;rawKey&quot;:
1852 # &quot;SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=&quot;
1853 &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
1854 # customer-supplied encryption key to either encrypt or decrypt this
1855 # resource. You can provide either the rawKey or thersaEncryptedKey.
1856 # For example:
1857 #
1858 # &quot;rsaEncryptedKey&quot;:
1859 # &quot;ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
1860 # z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
1861 # D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==&quot;
1862 #
1863 # The key must meet the following requirements before you can provide it to
1864 # Compute Engine:
1865 #
1866 # 1. The key is wrapped using a RSA public key certificate provided by
1867 # Google.
1868 # 2. After being wrapped, the key must be encoded in RFC 4648 base64
1869 # encoding.
1870 #
1871 # Gets the RSA public key certificate provided by Google at:
1872 #
1873 #
1874 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
1875 &quot;sha256&quot;: &quot;A String&quot;, # [Output only] TheRFC
1876 # 4648 base64 encoded SHA-256 hash of the customer-supplied
1877 # encryption key that protects this resource.
1878 },
1879 &quot;enableConfidentialCompute&quot;: True or False, # Whether this disk is using confidential compute mode.
1880 &quot;guestOsFeatures&quot;: [ # A list of features to enable on the guest operating system. Applicable
1881 # only for bootable images. Read
1882 # Enabling guest operating system features to see a list of available
1883 # options.
1884 { # Guest OS features.
1885 &quot;type&quot;: &quot;A String&quot;, # The ID of a supported feature. To add multiple values, use commas to
1886 # separate values. Set to one or more of the following values:
1887 #
1888 # - VIRTIO_SCSI_MULTIQUEUE
1889 # - WINDOWS
1890 # - MULTI_IP_SUBNET
1891 # - UEFI_COMPATIBLE
1892 # - GVNIC
1893 # - SEV_CAPABLE
1894 # - SUSPEND_RESUME_COMPATIBLE
1895 # - SEV_LIVE_MIGRATABLE_V2
1896 # - SEV_SNP_CAPABLE
1897 # - TDX_CAPABLE
1898 # - IDPF
1899 # - SNP_SVSM_CAPABLE
1900 # - CCA_CAPABLE
1901 #
1902 #
1903 # For more information, see
1904 # Enabling guest operating system features.
1905 },
1906 ],
1907 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the resource. This identifier is
1908 # defined by the server.
1909 &quot;kind&quot;: &quot;compute#disk&quot;, # Output only. [Output Only] Type of the resource. Always compute#disk for
1910 # disks.
1911 &quot;labelFingerprint&quot;: &quot;A String&quot;, # A fingerprint for the labels being applied to this disk, which is
1912 # essentially a hash of the labels set used for optimistic locking. The
1913 # fingerprint is initially generated by Compute Engine and changes after
1914 # every request to modify or update labels. You must always provide an
1915 # up-to-date fingerprint hash in order to update or change labels,
1916 # otherwise the request will fail with error412 conditionNotMet.
1917 #
1918 # To see the latest fingerprint, make a get() request to
1919 # retrieve a disk.
1920 &quot;labels&quot;: { # Labels to apply to this disk. These can be later modified by
1921 # the setLabels method.
1922 &quot;a_key&quot;: &quot;A String&quot;,
1923 },
1924 &quot;lastAttachTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Last attach timestamp inRFC3339
1925 # text format.
1926 &quot;lastDetachTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Last detach timestamp inRFC3339
1927 # text format.
1928 &quot;licenseCodes&quot;: [ # Integer license codes indicating which licenses are attached to this disk.
1929 &quot;A String&quot;,
1930 ],
1931 &quot;licenses&quot;: [ # A list of publicly visible licenses. Reserved for Google&#x27;s use.
1932 &quot;A String&quot;,
1933 ],
1934 &quot;locationHint&quot;: &quot;A String&quot;, # An opaque location hint used to place the disk close to other resources.
1935 # This field is for use by internal tools that use the public API.
1936 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
1937 # The name must be 1-63 characters long, and comply withRFC1035.
1938 # Specifically, the name must be 1-63 characters long and match the regular
1939 # expression `[a-z]([-a-z0-9]*[a-z0-9])?`
1940 # which means the first character must be a lowercase letter, and all
1941 # following characters must be a dash, lowercase letter, or digit, except
1942 # the last character, which cannot be a dash.
1943 &quot;options&quot;: &quot;A String&quot;, # Internal use only.
1944 &quot;params&quot;: { # Additional disk params. # Input only. [Input Only] Additional params passed with the request, but not persisted
1945 # as part of resource payload.
1946 &quot;resourceManagerTags&quot;: { # Input only. Resource manager tags to be bound to the disk. Tag keys and values
1947 # have the same definition as resource
1948 # manager tags. Keys and values can be either in numeric format,
1949 # such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
1950 # namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
1951 # `{tag_value_short_name}`. The field is ignored (both PUT &amp;
1952 # PATCH) when empty.
1953 &quot;a_key&quot;: &quot;A String&quot;,
1954 },
1955 },
1956 &quot;physicalBlockSizeBytes&quot;: &quot;A String&quot;, # Physical block size of the persistent disk, in bytes.
1957 # If not present in a request, a default value is used.
1958 # The currently supported size is 4096, other sizes may be added in
1959 # the future.
1960 # If an unsupported value is requested, the error message will list
1961 # the supported values for the caller&#x27;s project.
1962 &quot;provisionedIops&quot;: &quot;A String&quot;, # Indicates how many IOPS to provision for the disk. This sets the number
1963 # of I/O operations per second that the disk can handle. Values must be
1964 # between 10,000 and 120,000. For more details, see theExtreme persistent
1965 # disk documentation.
1966 &quot;provisionedThroughput&quot;: &quot;A String&quot;, # Indicates how much throughput to provision for the disk. This sets the
1967 # number of throughput mb per second that the disk can handle. Values must be
1968 # greater than or equal to 1.
1969 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the disk resides. Only applicable for
1970 # regional resources.
1971 # You must specify this field as part of the HTTP request URL. It is
1972 # not settable as a field in the request body.
1973 &quot;replicaZones&quot;: [ # URLs of the zones where the disk should be replicated to. Only applicable
1974 # for regional resources.
1975 &quot;A String&quot;,
1976 ],
1977 &quot;resourcePolicies&quot;: [ # Resource policies applied to this disk for automatic snapshot creations.
1978 &quot;A String&quot;,
1979 ],
1980 &quot;resourceStatus&quot;: { # Output only. [Output Only] Status information for the disk resource.
1981 &quot;asyncPrimaryDisk&quot;: {
1982 &quot;state&quot;: &quot;A String&quot;,
1983 },
1984 &quot;asyncSecondaryDisks&quot;: { # Key: disk, value: AsyncReplicationStatus message
1985 &quot;a_key&quot;: {
1986 &quot;state&quot;: &quot;A String&quot;,
1987 },
1988 },
1989 },
1990 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
1991 &quot;satisfiesPzs&quot;: True or False, # Output only. [Output Only] Reserved for future use.
1992 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined fully-qualified URL for this resource.
1993 &quot;sizeGb&quot;: &quot;A String&quot;, # Size, in GB, of the persistent disk. You can specify
1994 # this field when creating a persistent disk using thesourceImage, sourceSnapshot, orsourceDisk parameter, or specify it alone to create an empty
1995 # persistent disk.
1996 #
1997 # If you specify this field along with a source, the value ofsizeGb must not be less than the size of the
1998 # source.
1999 # Acceptable values are greater than 0.
2000 &quot;sourceConsistencyGroupPolicy&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk
2001 # that was created using a consistency group.
2002 &quot;sourceConsistencyGroupPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] ID of the DiskConsistencyGroupPolicy for a secondary disk
2003 # that was created using a consistency group.
2004 &quot;sourceDisk&quot;: &quot;A String&quot;, # The source disk used to create this disk. You can provide this as a
2005 # partial or full URL to the resource. For example, the following are valid
2006 # values:
2007 #
2008 #
2009 # -
2010 # https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
2011 #
2012 # -
2013 # https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk
2014 #
2015 # -
2016 # projects/project/zones/zone/disks/disk
2017 #
2018 # -
2019 # projects/project/regions/region/disks/disk
2020 #
2021 # -
2022 # zones/zone/disks/disk
2023 #
2024 # -
2025 # regions/region/disks/disk
2026 &quot;sourceDiskId&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique ID of the disk used to create this disk. This
2027 # value identifies the exact disk that was used to create this persistent
2028 # disk. For example, if you created the persistent disk from a disk that
2029 # was later deleted and recreated under the same name, the source disk ID
2030 # would identify the exact version of the disk that was used.
2031 &quot;sourceImage&quot;: &quot;A String&quot;, # The source image used to create this disk. If the source image is
2032 # deleted, this field will not be set.
2033 #
2034 # To create a disk with one of the public operating system images, specify
2035 # the image by its family name. For example, specifyfamily/debian-9 to use the latest Debian 9 image:
2036 #
2037 # projects/debian-cloud/global/images/family/debian-9
2038 #
2039 #
2040 # Alternatively, use a specific version of a public operating system image:
2041 #
2042 # projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD
2043 #
2044 #
2045 # To create a disk with a custom image that you created, specify the
2046 # image name in the following format:
2047 #
2048 # global/images/my-custom-image
2049 #
2050 #
2051 # You can also specify a custom image by its image family, which returns
2052 # the latest version of the image in that family. Replace the image name
2053 # with family/family-name:
2054 #
2055 # global/images/family/my-image-family
2056 &quot;sourceImageEncryptionKey&quot;: { # Thecustomer-supplied
2057 # encryption key of the source image. Required if the source image is
2058 # protected by a customer-supplied encryption key.
2059 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS.
2060 # For example:
2061 #
2062 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
2063 # key_region/cryptoKeys/key
2064 #
2065 # The fully-qualifed key name may be returned for resource GET requests. For
2066 # example:
2067 #
2068 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
2069 # key_region/cryptoKeys/key
2070 # /cryptoKeyVersions/1
2071 &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # The service account being used for the encryption request for the given KMS
2072 # key. If absent, the Compute Engine default service account is used.
2073 # For example:
2074 #
2075 # &quot;kmsKeyServiceAccount&quot;: &quot;name@project_id.iam.gserviceaccount.com/
2076 &quot;rawKey&quot;: &quot;A String&quot;, # Specifies a 256-bit customer-supplied
2077 # encryption key, encoded in RFC
2078 # 4648 base64 to either encrypt or decrypt this resource. You can
2079 # provide either the rawKey or thersaEncryptedKey.
2080 # For example:
2081 #
2082 # &quot;rawKey&quot;:
2083 # &quot;SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=&quot;
2084 &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
2085 # customer-supplied encryption key to either encrypt or decrypt this
2086 # resource. You can provide either the rawKey or thersaEncryptedKey.
2087 # For example:
2088 #
2089 # &quot;rsaEncryptedKey&quot;:
2090 # &quot;ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
2091 # z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
2092 # D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==&quot;
2093 #
2094 # The key must meet the following requirements before you can provide it to
2095 # Compute Engine:
2096 #
2097 # 1. The key is wrapped using a RSA public key certificate provided by
2098 # Google.
2099 # 2. After being wrapped, the key must be encoded in RFC 4648 base64
2100 # encoding.
2101 #
2102 # Gets the RSA public key certificate provided by Google at:
2103 #
2104 #
2105 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
2106 &quot;sha256&quot;: &quot;A String&quot;, # [Output only] TheRFC
2107 # 4648 base64 encoded SHA-256 hash of the customer-supplied
2108 # encryption key that protects this resource.
2109 },
2110 &quot;sourceImageId&quot;: &quot;A String&quot;, # Output only. [Output Only] The ID value of the image used to create this disk. This
2111 # value identifies the exact image that was used to create this persistent
2112 # disk. For example, if you created the persistent disk from an image that
2113 # was later deleted and recreated under the same name, the source image ID
2114 # would identify the exact version of the image that was used.
2115 &quot;sourceInstantSnapshot&quot;: &quot;A String&quot;, # The source instant snapshot used to create this disk. You can provide
2116 # this as a partial or full URL to the resource. For example, the following
2117 # are valid values:
2118 #
2119 #
2120 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshots/instantSnapshot
2121 # - projects/project/zones/zone/instantSnapshots/instantSnapshot
2122 # - zones/zone/instantSnapshots/instantSnapshot
2123 &quot;sourceInstantSnapshotId&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique ID of the instant snapshot used to create this
2124 # disk. This value identifies the exact instant snapshot that was used to
2125 # create this persistent disk. For example, if you created the persistent
2126 # disk from an instant snapshot that was later deleted and recreated under
2127 # the same name, the source instant snapshot ID would identify the exact
2128 # version of the instant snapshot that was used.
2129 &quot;sourceSnapshot&quot;: &quot;A String&quot;, # The source snapshot used to create this disk. You can provide this as a
2130 # partial or full URL to the resource. For example, the following are valid
2131 # values:
2132 #
2133 #
2134 # - https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot
2135 # - projects/project/global/snapshots/snapshot
2136 # - global/snapshots/snapshot
2137 &quot;sourceSnapshotEncryptionKey&quot;: { # Thecustomer-supplied
2138 # encryption key of the source snapshot. Required if the source snapshot
2139 # is protected by a customer-supplied encryption key.
2140 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS.
2141 # For example:
2142 #
2143 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
2144 # key_region/cryptoKeys/key
2145 #
2146 # The fully-qualifed key name may be returned for resource GET requests. For
2147 # example:
2148 #
2149 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
2150 # key_region/cryptoKeys/key
2151 # /cryptoKeyVersions/1
2152 &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # The service account being used for the encryption request for the given KMS
2153 # key. If absent, the Compute Engine default service account is used.
2154 # For example:
2155 #
2156 # &quot;kmsKeyServiceAccount&quot;: &quot;name@project_id.iam.gserviceaccount.com/
2157 &quot;rawKey&quot;: &quot;A String&quot;, # Specifies a 256-bit customer-supplied
2158 # encryption key, encoded in RFC
2159 # 4648 base64 to either encrypt or decrypt this resource. You can
2160 # provide either the rawKey or thersaEncryptedKey.
2161 # For example:
2162 #
2163 # &quot;rawKey&quot;:
2164 # &quot;SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=&quot;
2165 &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
2166 # customer-supplied encryption key to either encrypt or decrypt this
2167 # resource. You can provide either the rawKey or thersaEncryptedKey.
2168 # For example:
2169 #
2170 # &quot;rsaEncryptedKey&quot;:
2171 # &quot;ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
2172 # z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
2173 # D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==&quot;
2174 #
2175 # The key must meet the following requirements before you can provide it to
2176 # Compute Engine:
2177 #
2178 # 1. The key is wrapped using a RSA public key certificate provided by
2179 # Google.
2180 # 2. After being wrapped, the key must be encoded in RFC 4648 base64
2181 # encoding.
2182 #
2183 # Gets the RSA public key certificate provided by Google at:
2184 #
2185 #
2186 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
2187 &quot;sha256&quot;: &quot;A String&quot;, # [Output only] TheRFC
2188 # 4648 base64 encoded SHA-256 hash of the customer-supplied
2189 # encryption key that protects this resource.
2190 },
2191 &quot;sourceSnapshotId&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique ID of the snapshot used to create this disk. This
2192 # value identifies the exact snapshot that was used to create this persistent
2193 # disk. For example, if you created the persistent disk from a snapshot that
2194 # was later deleted and recreated under the same name, the source snapshot ID
2195 # would identify the exact version of the snapshot that was used.
2196 &quot;sourceStorageObject&quot;: &quot;A String&quot;, # The full Google Cloud Storage URI where the disk image is stored. This file
2197 # must be a gzip-compressed tarball whose name ends in .tar.gz or virtual
2198 # machine disk whose name ends in vmdk. Valid URIs may start with gs:// or
2199 # https://storage.googleapis.com/. This flag is not optimized for creating
2200 # multiple disks from a source storage object. To create many disks from a
2201 # source storage object, use gcloud compute images
2202 # import instead.
2203 &quot;status&quot;: &quot;A String&quot;, # Output only. [Output Only] The status of disk creation.
2204 #
2205 #
2206 # - CREATING: Disk is provisioning.
2207 # - RESTORING: Source data is being copied into the
2208 # disk.
2209 # - FAILED: Disk creation failed.
2210 # - READY: Disk is ready for use.
2211 # - DELETING: Disk is deleting.
2212 &quot;storagePool&quot;: &quot;A String&quot;, # The storage pool in which the new disk is created. You can provide
2213 # this as a partial or full URL to the resource. For example, the following
2214 # are valid values:
2215 #
2216 #
2217 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/storagePools/storagePool
2218 # - projects/project/zones/zone/storagePools/storagePool
2219 # - zones/zone/storagePools/storagePool
2220 &quot;type&quot;: &quot;A String&quot;, # URL of the disk type resource describing which disk type to use to create
2221 # the disk. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk
2222 # types.
2223 &quot;users&quot;: [ # Output only. [Output Only] Links to the users of the disk (attached instances)
2224 # in form:projects/project/zones/zone/instances/instance
2225 &quot;A String&quot;,
2226 ],
2227 &quot;zone&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the zone where the disk resides.
2228 # You must specify this field as part of the HTTP request URL. It is
2229 # not settable as a field in the request body.
2230 }</pre>
2231 </div>
2232
2233 <div class="method">
2234 <code class="details" id="getIamPolicy">getIamPolicy(project, region, resource, optionsRequestedPolicyVersion=None, x__xgafv=None)</code>
2235 <pre>Gets the access control policy for a resource. May be empty if no such
2236 policy or resource exists.
2237
2238 Args:
2239 project: string, Project ID for this request. (required)
2240 region: string, The name of the region for this request. (required)
2241 resource: string, Name or id of the resource for this request. (required)
2242 optionsRequestedPolicyVersion: integer, Requested IAM Policy version.
2243 x__xgafv: string, V1 error format.
2244 Allowed values
2245 1 - v1 error format
2246 2 - v2 error format
2247
2248 Returns:
2249 An object of the form:
2250
2251 { # An Identity and Access Management (IAM) policy, which specifies access
2252 # controls for Google Cloud resources.
2253 #
2254 #
2255 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
2256 # `members`, or principals, to a single `role`. Principals can be user
2257 # accounts, service accounts, Google groups, and domains (such as G Suite). A
2258 # `role` is a named list of permissions; each `role` can be an IAM predefined
2259 # role or a user-created custom role.
2260 #
2261 # For some types of Google Cloud resources, a `binding` can also specify a
2262 # `condition`, which is a logical expression that allows access to a resource
2263 # only if the expression evaluates to `true`. A condition can add constraints
2264 # based on attributes of the request, the resource, or both. To learn which
2265 # resources support conditions in their IAM policies, see the
2266 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2267 #
2268 # **JSON example:**
2269 #
2270 # ```
2271 # {
2272 # &quot;bindings&quot;: [
2273 # {
2274 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
2275 # &quot;members&quot;: [
2276 # &quot;user:[email protected]&quot;,
2277 # &quot;group:[email protected]&quot;,
2278 # &quot;domain:google.com&quot;,
2279 # &quot;serviceAccount:[email protected]&quot;
2280 # ]
2281 # },
2282 # {
2283 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
2284 # &quot;members&quot;: [
2285 # &quot;user:[email protected]&quot;
2286 # ],
2287 # &quot;condition&quot;: {
2288 # &quot;title&quot;: &quot;expirable access&quot;,
2289 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
2290 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
2291 # }
2292 # }
2293 # ],
2294 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
2295 # &quot;version&quot;: 3
2296 # }
2297 # ```
2298 #
2299 # **YAML example:**
2300 #
2301 # ```
2302 # bindings:
2303 # - members:
2304 # - user:[email protected]
2305 # - group:[email protected]
2306 # - domain:google.com
2307 # - serviceAccount:[email protected]
2308 # role: roles/resourcemanager.organizationAdmin
2309 # - members:
2310 # - user:[email protected]
2311 # role: roles/resourcemanager.organizationViewer
2312 # condition:
2313 # title: expirable access
2314 # description: Does not grant access after Sep 2020
2315 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
2316 # etag: BwWWja0YfJA=
2317 # version: 3
2318 # ```
2319 #
2320 # For a description of IAM and its features, see the
2321 # [IAM documentation](https://cloud.google.com/iam/docs/).
2322 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
2323 { # Specifies the audit configuration for a service.
2324 # The configuration determines which permission types are logged, and what
2325 # identities, if any, are exempted from logging.
2326 # An AuditConfig must have one or more AuditLogConfigs.
2327 #
2328 # If there are AuditConfigs for both `allServices` and a specific service,
2329 # the union of the two AuditConfigs is used for that service: the log_types
2330 # specified in each AuditConfig are enabled, and the exempted_members in each
2331 # AuditLogConfig are exempted.
2332 #
2333 # Example Policy with multiple AuditConfigs:
2334 #
2335 # {
2336 # &quot;audit_configs&quot;: [
2337 # {
2338 # &quot;service&quot;: &quot;allServices&quot;,
2339 # &quot;audit_log_configs&quot;: [
2340 # {
2341 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
2342 # &quot;exempted_members&quot;: [
2343 # &quot;user:[email protected]&quot;
2344 # ]
2345 # },
2346 # {
2347 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
2348 # },
2349 # {
2350 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
2351 # }
2352 # ]
2353 # },
2354 # {
2355 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
2356 # &quot;audit_log_configs&quot;: [
2357 # {
2358 # &quot;log_type&quot;: &quot;DATA_READ&quot;
2359 # },
2360 # {
2361 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
2362 # &quot;exempted_members&quot;: [
2363 # &quot;user:[email protected]&quot;
2364 # ]
2365 # }
2366 # ]
2367 # }
2368 # ]
2369 # }
2370 #
2371 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
2372 # logging. It also exempts `[email protected]` from DATA_READ logging, and
2373 # `[email protected]` from DATA_WRITE logging.
2374 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
2375 { # Provides the configuration for logging a type of permissions.
2376 # Example:
2377 #
2378 # {
2379 # &quot;audit_log_configs&quot;: [
2380 # {
2381 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
2382 # &quot;exempted_members&quot;: [
2383 # &quot;user:[email protected]&quot;
2384 # ]
2385 # },
2386 # {
2387 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
2388 # }
2389 # ]
2390 # }
2391 #
2392 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
2393 # [email protected] from DATA_READ logging.
2394 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
2395 # permission.
2396 # Follows the same format of Binding.members.
2397 &quot;A String&quot;,
2398 ],
2399 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
2400 },
2401 ],
2402 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
2403 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
2404 # `allServices` is a special value that covers all services.
2405 },
2406 ],
2407 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally,
2408 # may specify a `condition` that determines how and when the `bindings` are
2409 # applied. Each of the `bindings` must contain at least one principal.
2410 #
2411 # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
2412 # of these principals can be Google groups. Each occurrence of a principal
2413 # counts towards these limits. For example, if the `bindings` grant 50
2414 # different roles to `user:[email protected]`, and not to any other
2415 # principal, then you can add another 1,450 principals to the `bindings` in
2416 # the `Policy`.
2417 { # Associates `members`, or principals, with a `role`.
2418 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
2419 #
2420 # If the condition evaluates to `true`, then this binding applies to the
2421 # current request.
2422 #
2423 # If the condition evaluates to `false`, then this binding does not apply to
2424 # the current request. However, a different role binding might grant the same
2425 # role to one or more of the principals in this binding.
2426 #
2427 # To learn which resources support conditions in their IAM policies, see the
2428 # [IAM
2429 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2430 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
2431 # are documented at https://github.com/google/cel-spec.
2432 #
2433 # Example (Comparison):
2434 #
2435 # title: &quot;Summary size limit&quot;
2436 # description: &quot;Determines if a summary is less than 100 chars&quot;
2437 # expression: &quot;document.summary.size() &lt; 100&quot;
2438 #
2439 # Example (Equality):
2440 #
2441 # title: &quot;Requestor is owner&quot;
2442 # description: &quot;Determines if requestor is the document owner&quot;
2443 # expression: &quot;document.owner == request.auth.claims.email&quot;
2444 #
2445 # Example (Logic):
2446 #
2447 # title: &quot;Public documents&quot;
2448 # description: &quot;Determine whether the document should be publicly visible&quot;
2449 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
2450 #
2451 # Example (Data Manipulation):
2452 #
2453 # title: &quot;Notification string&quot;
2454 # description: &quot;Create a notification string with a timestamp.&quot;
2455 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
2456 #
2457 # The exact variables and functions that may be referenced within an expression
2458 # are determined by the service that evaluates it. See the service
2459 # documentation for additional information.
2460 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
2461 # describes the expression, e.g. when hovered over it in a UI.
2462 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
2463 # syntax.
2464 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
2465 # reporting, e.g. a file name and a position in the file.
2466 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
2467 # its purpose. This can be used e.g. in UIs which allow to enter the
2468 # expression.
2469 },
2470 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
2471 # `members` can have the following values:
2472 #
2473 # * `allUsers`: A special identifier that represents anyone who is
2474 # on the internet; with or without a Google account.
2475 #
2476 # * `allAuthenticatedUsers`: A special identifier that represents anyone
2477 # who is authenticated with a Google account or a service account.
2478 # Does not include identities that come from external identity providers
2479 # (IdPs) through identity federation.
2480 #
2481 # * `user:{emailid}`: An email address that represents a specific Google
2482 # account. For example, `[email protected]` .
2483 #
2484 #
2485 # * `serviceAccount:{emailid}`: An email address that represents a Google
2486 # service account. For example,
2487 # `[email protected]`.
2488 #
2489 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
2490 # identifier for a
2491 # [Kubernetes service
2492 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
2493 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
2494 #
2495 # * `group:{emailid}`: An email address that represents a Google group.
2496 # For example, `[email protected]`.
2497 #
2498 #
2499 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
2500 # users of that domain. For example, `google.com` or `example.com`.
2501 #
2502 #
2503 #
2504 #
2505 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
2506 # A single identity in a workforce identity pool.
2507 #
2508 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
2509 # All workforce identities in a group.
2510 #
2511 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
2512 # All workforce identities with a specific attribute value.
2513 #
2514 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
2515 # All identities in a workforce identity pool.
2516 #
2517 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
2518 # A single identity in a workload identity pool.
2519 #
2520 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
2521 # A workload identity pool group.
2522 #
2523 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
2524 # All identities in a workload identity pool with a certain attribute.
2525 #
2526 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
2527 # All identities in a workload identity pool.
2528 #
2529 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
2530 # identifier) representing a user that has been recently deleted. For
2531 # example, `[email protected]?uid=123456789012345678901`. If the user is
2532 # recovered, this value reverts to `user:{emailid}` and the recovered user
2533 # retains the role in the binding.
2534 #
2535 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
2536 # unique identifier) representing a service account that has been recently
2537 # deleted. For example,
2538 # `[email protected]?uid=123456789012345678901`.
2539 # If the service account is undeleted, this value reverts to
2540 # `serviceAccount:{emailid}` and the undeleted service account retains the
2541 # role in the binding.
2542 #
2543 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
2544 # identifier) representing a Google group that has been recently
2545 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
2546 # the group is recovered, this value reverts to `group:{emailid}` and the
2547 # recovered group retains the role in the binding.
2548 #
2549 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
2550 # Deleted single identity in a workforce identity pool. For example,
2551 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
2552 &quot;A String&quot;,
2553 ],
2554 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
2555 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
2556 #
2557 # For an overview of the IAM roles and permissions, see the
2558 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
2559 # a list of the available pre-defined roles, see
2560 # [here](https://cloud.google.com/iam/docs/understanding-roles).
2561 },
2562 ],
2563 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
2564 # prevent simultaneous updates of a policy from overwriting each other.
2565 # It is strongly suggested that systems make use of the `etag` in the
2566 # read-modify-write cycle to perform policy updates in order to avoid race
2567 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
2568 # systems are expected to put that etag in the request to `setIamPolicy` to
2569 # ensure that their change will be applied to the same version of the policy.
2570 #
2571 # **Important:** If you use IAM Conditions, you must include the `etag` field
2572 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
2573 # you to overwrite a version `3` policy with a version `1` policy, and all of
2574 # the conditions in the version `3` policy are lost.
2575 &quot;version&quot;: 42, # Specifies the format of the policy.
2576 #
2577 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
2578 # are rejected.
2579 #
2580 # Any operation that affects conditional role bindings must specify version
2581 # `3`. This requirement applies to the following operations:
2582 #
2583 # * Getting a policy that includes a conditional role binding
2584 # * Adding a conditional role binding to a policy
2585 # * Changing a conditional role binding in a policy
2586 # * Removing any role binding, with or without a condition, from a policy
2587 # that includes conditions
2588 #
2589 # **Important:** If you use IAM Conditions, you must include the `etag` field
2590 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
2591 # you to overwrite a version `3` policy with a version `1` policy, and all of
2592 # the conditions in the version `3` policy are lost.
2593 #
2594 # If a policy does not include any conditions, operations on that policy may
2595 # specify any valid version or leave the field unset.
2596 #
2597 # To learn which resources support conditions in their IAM policies, see the
2598 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2599 }</pre>
2600 </div>
2601
2602 <div class="method">
2603 <code class="details" id="insert">insert(project, region, body=None, requestId=None, sourceImage=None, x__xgafv=None)</code>
2604 <pre>Creates a persistent regional disk in the specified project using the data
2605 included in the request.
2606
2607 Args:
2608 project: string, Project ID for this request. (required)
2609 region: string, Name of the region for this request. (required)
2610 body: object, The request body.
2611 The object takes the form of:
2612
2613 { # Represents a Persistent Disk resource.
2614 #
2615 # Google Compute Engine has two Disk resources:
2616 #
2617 # * [Zonal](/compute/docs/reference/rest/v1/disks)
2618 # * [Regional](/compute/docs/reference/rest/v1/regionDisks)
2619 #
2620 # Persistent disks are required for running your VM instances.
2621 # Create both boot and non-boot (data) persistent disks. For more information,
2622 # read Persistent Disks. For more
2623 # storage options, read Storage options.
2624 #
2625 # The disks resource represents a zonal persistent disk.
2626 # For more information, readZonal persistent disks.
2627 #
2628 # The regionDisks resource represents a
2629 # regional persistent disk. For more information, read
2630 # Regional resources.
2631 &quot;accessMode&quot;: &quot;A String&quot;, # The access mode of the disk.
2632 #
2633 #
2634 # - READ_WRITE_SINGLE: The default AccessMode, means the
2635 # disk can be attached to single instance in RW mode.
2636 # - READ_WRITE_MANY: The AccessMode means the disk can be
2637 # attached to multiple instances in RW mode.
2638 # - READ_ONLY_MANY: The AccessMode means the disk can be
2639 # attached to multiple instances in RO mode.
2640 #
2641 #
2642 # The AccessMode is only valid for Hyperdisk disk types.
2643 &quot;architecture&quot;: &quot;A String&quot;, # The architecture of the disk. Valid values are
2644 # ARM64 or X86_64.
2645 &quot;asyncPrimaryDisk&quot;: { # Disk asynchronously replicated into this disk.
2646 &quot;consistencyGroupPolicy&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the DiskConsistencyGroupPolicy if replication was
2647 # started on the disk as a member of a group.
2648 &quot;consistencyGroupPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] ID of the DiskConsistencyGroupPolicy if replication was
2649 # started on the disk as a member of a group.
2650 &quot;disk&quot;: &quot;A String&quot;, # The other disk asynchronously replicated to or from the current disk.
2651 # You can provide this as a partial or full URL to the resource.
2652 # For example, the following are valid values:
2653 #
2654 #
2655 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
2656 # - projects/project/zones/zone/disks/disk
2657 # - zones/zone/disks/disk
2658 &quot;diskId&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique ID of the other disk asynchronously replicated
2659 # to or from the current disk. This value identifies the exact disk that
2660 # was used to create this replication. For example, if you started
2661 # replicating the persistent disk from a disk that was later deleted and
2662 # recreated under the same name, the disk ID would identify the exact
2663 # version of the disk that was used.
2664 },
2665 &quot;asyncSecondaryDisks&quot;: { # Output only. [Output Only] A list of disks this disk is asynchronously replicated to.
2666 &quot;a_key&quot;: {
2667 &quot;asyncReplicationDisk&quot;: {
2668 &quot;consistencyGroupPolicy&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the DiskConsistencyGroupPolicy if replication was
2669 # started on the disk as a member of a group.
2670 &quot;consistencyGroupPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] ID of the DiskConsistencyGroupPolicy if replication was
2671 # started on the disk as a member of a group.
2672 &quot;disk&quot;: &quot;A String&quot;, # The other disk asynchronously replicated to or from the current disk.
2673 # You can provide this as a partial or full URL to the resource.
2674 # For example, the following are valid values:
2675 #
2676 #
2677 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
2678 # - projects/project/zones/zone/disks/disk
2679 # - zones/zone/disks/disk
2680 &quot;diskId&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique ID of the other disk asynchronously replicated
2681 # to or from the current disk. This value identifies the exact disk that
2682 # was used to create this replication. For example, if you started
2683 # replicating the persistent disk from a disk that was later deleted and
2684 # recreated under the same name, the disk ID would identify the exact
2685 # version of the disk that was used.
2686 },
2687 },
2688 },
2689 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
2690 # text format.
2691 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
2692 # create the resource.
2693 &quot;diskEncryptionKey&quot;: { # Encrypts the disk using a
2694 # customer-supplied encryption key or a
2695 # customer-managed encryption key.
2696 #
2697 # Encryption keys do not protect access to metadata of the disk.
2698 #
2699 # After you encrypt a disk with a customer-supplied key, you must provide the
2700 # same key if you use the disk later. For example, to create a disk snapshot,
2701 # to create a disk image, to create a machine image, or to attach the disk to
2702 # a virtual machine.
2703 #
2704 # After you encrypt a disk with a customer-managed key, thediskEncryptionKey.kmsKeyName is set to a key *version*
2705 # name once the disk is created. The disk is encrypted with this version of
2706 # the key. In the response, diskEncryptionKey.kmsKeyName appears
2707 # in the following format:
2708 #
2709 # &quot;diskEncryptionKey.kmsKeyName&quot;:
2710 # &quot;projects/kms_project_id/locations/region/keyRings/
2711 # key_region/cryptoKeys/key
2712 # /cryptoKeysVersions/version
2713 #
2714 # If you do not provide an encryption key when creating the disk, then the
2715 # disk is encrypted using an automatically generated key and you don&#x27;t need
2716 # to provide a key to use the disk later.
2717 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS.
2718 # For example:
2719 #
2720 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
2721 # key_region/cryptoKeys/key
2722 #
2723 # The fully-qualifed key name may be returned for resource GET requests. For
2724 # example:
2725 #
2726 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
2727 # key_region/cryptoKeys/key
2728 # /cryptoKeyVersions/1
2729 &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # The service account being used for the encryption request for the given KMS
2730 # key. If absent, the Compute Engine default service account is used.
2731 # For example:
2732 #
2733 # &quot;kmsKeyServiceAccount&quot;: &quot;name@project_id.iam.gserviceaccount.com/
2734 &quot;rawKey&quot;: &quot;A String&quot;, # Specifies a 256-bit customer-supplied
2735 # encryption key, encoded in RFC
2736 # 4648 base64 to either encrypt or decrypt this resource. You can
2737 # provide either the rawKey or thersaEncryptedKey.
2738 # For example:
2739 #
2740 # &quot;rawKey&quot;:
2741 # &quot;SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=&quot;
2742 &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
2743 # customer-supplied encryption key to either encrypt or decrypt this
2744 # resource. You can provide either the rawKey or thersaEncryptedKey.
2745 # For example:
2746 #
2747 # &quot;rsaEncryptedKey&quot;:
2748 # &quot;ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
2749 # z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
2750 # D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==&quot;
2751 #
2752 # The key must meet the following requirements before you can provide it to
2753 # Compute Engine:
2754 #
2755 # 1. The key is wrapped using a RSA public key certificate provided by
2756 # Google.
2757 # 2. After being wrapped, the key must be encoded in RFC 4648 base64
2758 # encoding.
2759 #
2760 # Gets the RSA public key certificate provided by Google at:
2761 #
2762 #
2763 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
2764 &quot;sha256&quot;: &quot;A String&quot;, # [Output only] TheRFC
2765 # 4648 base64 encoded SHA-256 hash of the customer-supplied
2766 # encryption key that protects this resource.
2767 },
2768 &quot;enableConfidentialCompute&quot;: True or False, # Whether this disk is using confidential compute mode.
2769 &quot;guestOsFeatures&quot;: [ # A list of features to enable on the guest operating system. Applicable
2770 # only for bootable images. Read
2771 # Enabling guest operating system features to see a list of available
2772 # options.
2773 { # Guest OS features.
2774 &quot;type&quot;: &quot;A String&quot;, # The ID of a supported feature. To add multiple values, use commas to
2775 # separate values. Set to one or more of the following values:
2776 #
2777 # - VIRTIO_SCSI_MULTIQUEUE
2778 # - WINDOWS
2779 # - MULTI_IP_SUBNET
2780 # - UEFI_COMPATIBLE
2781 # - GVNIC
2782 # - SEV_CAPABLE
2783 # - SUSPEND_RESUME_COMPATIBLE
2784 # - SEV_LIVE_MIGRATABLE_V2
2785 # - SEV_SNP_CAPABLE
2786 # - TDX_CAPABLE
2787 # - IDPF
2788 # - SNP_SVSM_CAPABLE
2789 # - CCA_CAPABLE
2790 #
2791 #
2792 # For more information, see
2793 # Enabling guest operating system features.
2794 },
2795 ],
2796 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the resource. This identifier is
2797 # defined by the server.
2798 &quot;kind&quot;: &quot;compute#disk&quot;, # Output only. [Output Only] Type of the resource. Always compute#disk for
2799 # disks.
2800 &quot;labelFingerprint&quot;: &quot;A String&quot;, # A fingerprint for the labels being applied to this disk, which is
2801 # essentially a hash of the labels set used for optimistic locking. The
2802 # fingerprint is initially generated by Compute Engine and changes after
2803 # every request to modify or update labels. You must always provide an
2804 # up-to-date fingerprint hash in order to update or change labels,
2805 # otherwise the request will fail with error412 conditionNotMet.
2806 #
2807 # To see the latest fingerprint, make a get() request to
2808 # retrieve a disk.
2809 &quot;labels&quot;: { # Labels to apply to this disk. These can be later modified by
2810 # the setLabels method.
2811 &quot;a_key&quot;: &quot;A String&quot;,
2812 },
2813 &quot;lastAttachTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Last attach timestamp inRFC3339
2814 # text format.
2815 &quot;lastDetachTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Last detach timestamp inRFC3339
2816 # text format.
2817 &quot;licenseCodes&quot;: [ # Integer license codes indicating which licenses are attached to this disk.
2818 &quot;A String&quot;,
2819 ],
2820 &quot;licenses&quot;: [ # A list of publicly visible licenses. Reserved for Google&#x27;s use.
2821 &quot;A String&quot;,
2822 ],
2823 &quot;locationHint&quot;: &quot;A String&quot;, # An opaque location hint used to place the disk close to other resources.
2824 # This field is for use by internal tools that use the public API.
2825 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
2826 # The name must be 1-63 characters long, and comply withRFC1035.
2827 # Specifically, the name must be 1-63 characters long and match the regular
2828 # expression `[a-z]([-a-z0-9]*[a-z0-9])?`
2829 # which means the first character must be a lowercase letter, and all
2830 # following characters must be a dash, lowercase letter, or digit, except
2831 # the last character, which cannot be a dash.
2832 &quot;options&quot;: &quot;A String&quot;, # Internal use only.
2833 &quot;params&quot;: { # Additional disk params. # Input only. [Input Only] Additional params passed with the request, but not persisted
2834 # as part of resource payload.
2835 &quot;resourceManagerTags&quot;: { # Input only. Resource manager tags to be bound to the disk. Tag keys and values
2836 # have the same definition as resource
2837 # manager tags. Keys and values can be either in numeric format,
2838 # such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
2839 # namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
2840 # `{tag_value_short_name}`. The field is ignored (both PUT &amp;
2841 # PATCH) when empty.
2842 &quot;a_key&quot;: &quot;A String&quot;,
2843 },
2844 },
2845 &quot;physicalBlockSizeBytes&quot;: &quot;A String&quot;, # Physical block size of the persistent disk, in bytes.
2846 # If not present in a request, a default value is used.
2847 # The currently supported size is 4096, other sizes may be added in
2848 # the future.
2849 # If an unsupported value is requested, the error message will list
2850 # the supported values for the caller&#x27;s project.
2851 &quot;provisionedIops&quot;: &quot;A String&quot;, # Indicates how many IOPS to provision for the disk. This sets the number
2852 # of I/O operations per second that the disk can handle. Values must be
2853 # between 10,000 and 120,000. For more details, see theExtreme persistent
2854 # disk documentation.
2855 &quot;provisionedThroughput&quot;: &quot;A String&quot;, # Indicates how much throughput to provision for the disk. This sets the
2856 # number of throughput mb per second that the disk can handle. Values must be
2857 # greater than or equal to 1.
2858 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the disk resides. Only applicable for
2859 # regional resources.
2860 # You must specify this field as part of the HTTP request URL. It is
2861 # not settable as a field in the request body.
2862 &quot;replicaZones&quot;: [ # URLs of the zones where the disk should be replicated to. Only applicable
2863 # for regional resources.
2864 &quot;A String&quot;,
2865 ],
2866 &quot;resourcePolicies&quot;: [ # Resource policies applied to this disk for automatic snapshot creations.
2867 &quot;A String&quot;,
2868 ],
2869 &quot;resourceStatus&quot;: { # Output only. [Output Only] Status information for the disk resource.
2870 &quot;asyncPrimaryDisk&quot;: {
2871 &quot;state&quot;: &quot;A String&quot;,
2872 },
2873 &quot;asyncSecondaryDisks&quot;: { # Key: disk, value: AsyncReplicationStatus message
2874 &quot;a_key&quot;: {
2875 &quot;state&quot;: &quot;A String&quot;,
2876 },
2877 },
2878 },
2879 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
2880 &quot;satisfiesPzs&quot;: True or False, # Output only. [Output Only] Reserved for future use.
2881 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined fully-qualified URL for this resource.
2882 &quot;sizeGb&quot;: &quot;A String&quot;, # Size, in GB, of the persistent disk. You can specify
2883 # this field when creating a persistent disk using thesourceImage, sourceSnapshot, orsourceDisk parameter, or specify it alone to create an empty
2884 # persistent disk.
2885 #
2886 # If you specify this field along with a source, the value ofsizeGb must not be less than the size of the
2887 # source.
2888 # Acceptable values are greater than 0.
2889 &quot;sourceConsistencyGroupPolicy&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk
2890 # that was created using a consistency group.
2891 &quot;sourceConsistencyGroupPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] ID of the DiskConsistencyGroupPolicy for a secondary disk
2892 # that was created using a consistency group.
2893 &quot;sourceDisk&quot;: &quot;A String&quot;, # The source disk used to create this disk. You can provide this as a
2894 # partial or full URL to the resource. For example, the following are valid
2895 # values:
2896 #
2897 #
2898 # -
2899 # https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
2900 #
2901 # -
2902 # https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk
2903 #
2904 # -
2905 # projects/project/zones/zone/disks/disk
2906 #
2907 # -
2908 # projects/project/regions/region/disks/disk
2909 #
2910 # -
2911 # zones/zone/disks/disk
2912 #
2913 # -
2914 # regions/region/disks/disk
2915 &quot;sourceDiskId&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique ID of the disk used to create this disk. This
2916 # value identifies the exact disk that was used to create this persistent
2917 # disk. For example, if you created the persistent disk from a disk that
2918 # was later deleted and recreated under the same name, the source disk ID
2919 # would identify the exact version of the disk that was used.
2920 &quot;sourceImage&quot;: &quot;A String&quot;, # The source image used to create this disk. If the source image is
2921 # deleted, this field will not be set.
2922 #
2923 # To create a disk with one of the public operating system images, specify
2924 # the image by its family name. For example, specifyfamily/debian-9 to use the latest Debian 9 image:
2925 #
2926 # projects/debian-cloud/global/images/family/debian-9
2927 #
2928 #
2929 # Alternatively, use a specific version of a public operating system image:
2930 #
2931 # projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD
2932 #
2933 #
2934 # To create a disk with a custom image that you created, specify the
2935 # image name in the following format:
2936 #
2937 # global/images/my-custom-image
2938 #
2939 #
2940 # You can also specify a custom image by its image family, which returns
2941 # the latest version of the image in that family. Replace the image name
2942 # with family/family-name:
2943 #
2944 # global/images/family/my-image-family
2945 &quot;sourceImageEncryptionKey&quot;: { # Thecustomer-supplied
2946 # encryption key of the source image. Required if the source image is
2947 # protected by a customer-supplied encryption key.
2948 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS.
2949 # For example:
2950 #
2951 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
2952 # key_region/cryptoKeys/key
2953 #
2954 # The fully-qualifed key name may be returned for resource GET requests. For
2955 # example:
2956 #
2957 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
2958 # key_region/cryptoKeys/key
2959 # /cryptoKeyVersions/1
2960 &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # The service account being used for the encryption request for the given KMS
2961 # key. If absent, the Compute Engine default service account is used.
2962 # For example:
2963 #
2964 # &quot;kmsKeyServiceAccount&quot;: &quot;name@project_id.iam.gserviceaccount.com/
2965 &quot;rawKey&quot;: &quot;A String&quot;, # Specifies a 256-bit customer-supplied
2966 # encryption key, encoded in RFC
2967 # 4648 base64 to either encrypt or decrypt this resource. You can
2968 # provide either the rawKey or thersaEncryptedKey.
2969 # For example:
2970 #
2971 # &quot;rawKey&quot;:
2972 # &quot;SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=&quot;
2973 &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
2974 # customer-supplied encryption key to either encrypt or decrypt this
2975 # resource. You can provide either the rawKey or thersaEncryptedKey.
2976 # For example:
2977 #
2978 # &quot;rsaEncryptedKey&quot;:
2979 # &quot;ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
2980 # z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
2981 # D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==&quot;
2982 #
2983 # The key must meet the following requirements before you can provide it to
2984 # Compute Engine:
2985 #
2986 # 1. The key is wrapped using a RSA public key certificate provided by
2987 # Google.
2988 # 2. After being wrapped, the key must be encoded in RFC 4648 base64
2989 # encoding.
2990 #
2991 # Gets the RSA public key certificate provided by Google at:
2992 #
2993 #
2994 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
2995 &quot;sha256&quot;: &quot;A String&quot;, # [Output only] TheRFC
2996 # 4648 base64 encoded SHA-256 hash of the customer-supplied
2997 # encryption key that protects this resource.
2998 },
2999 &quot;sourceImageId&quot;: &quot;A String&quot;, # Output only. [Output Only] The ID value of the image used to create this disk. This
3000 # value identifies the exact image that was used to create this persistent
3001 # disk. For example, if you created the persistent disk from an image that
3002 # was later deleted and recreated under the same name, the source image ID
3003 # would identify the exact version of the image that was used.
3004 &quot;sourceInstantSnapshot&quot;: &quot;A String&quot;, # The source instant snapshot used to create this disk. You can provide
3005 # this as a partial or full URL to the resource. For example, the following
3006 # are valid values:
3007 #
3008 #
3009 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshots/instantSnapshot
3010 # - projects/project/zones/zone/instantSnapshots/instantSnapshot
3011 # - zones/zone/instantSnapshots/instantSnapshot
3012 &quot;sourceInstantSnapshotId&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique ID of the instant snapshot used to create this
3013 # disk. This value identifies the exact instant snapshot that was used to
3014 # create this persistent disk. For example, if you created the persistent
3015 # disk from an instant snapshot that was later deleted and recreated under
3016 # the same name, the source instant snapshot ID would identify the exact
3017 # version of the instant snapshot that was used.
3018 &quot;sourceSnapshot&quot;: &quot;A String&quot;, # The source snapshot used to create this disk. You can provide this as a
3019 # partial or full URL to the resource. For example, the following are valid
3020 # values:
3021 #
3022 #
3023 # - https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot
3024 # - projects/project/global/snapshots/snapshot
3025 # - global/snapshots/snapshot
3026 &quot;sourceSnapshotEncryptionKey&quot;: { # Thecustomer-supplied
3027 # encryption key of the source snapshot. Required if the source snapshot
3028 # is protected by a customer-supplied encryption key.
3029 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS.
3030 # For example:
3031 #
3032 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
3033 # key_region/cryptoKeys/key
3034 #
3035 # The fully-qualifed key name may be returned for resource GET requests. For
3036 # example:
3037 #
3038 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
3039 # key_region/cryptoKeys/key
3040 # /cryptoKeyVersions/1
3041 &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # The service account being used for the encryption request for the given KMS
3042 # key. If absent, the Compute Engine default service account is used.
3043 # For example:
3044 #
3045 # &quot;kmsKeyServiceAccount&quot;: &quot;name@project_id.iam.gserviceaccount.com/
3046 &quot;rawKey&quot;: &quot;A String&quot;, # Specifies a 256-bit customer-supplied
3047 # encryption key, encoded in RFC
3048 # 4648 base64 to either encrypt or decrypt this resource. You can
3049 # provide either the rawKey or thersaEncryptedKey.
3050 # For example:
3051 #
3052 # &quot;rawKey&quot;:
3053 # &quot;SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=&quot;
3054 &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
3055 # customer-supplied encryption key to either encrypt or decrypt this
3056 # resource. You can provide either the rawKey or thersaEncryptedKey.
3057 # For example:
3058 #
3059 # &quot;rsaEncryptedKey&quot;:
3060 # &quot;ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
3061 # z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
3062 # D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==&quot;
3063 #
3064 # The key must meet the following requirements before you can provide it to
3065 # Compute Engine:
3066 #
3067 # 1. The key is wrapped using a RSA public key certificate provided by
3068 # Google.
3069 # 2. After being wrapped, the key must be encoded in RFC 4648 base64
3070 # encoding.
3071 #
3072 # Gets the RSA public key certificate provided by Google at:
3073 #
3074 #
3075 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
3076 &quot;sha256&quot;: &quot;A String&quot;, # [Output only] TheRFC
3077 # 4648 base64 encoded SHA-256 hash of the customer-supplied
3078 # encryption key that protects this resource.
3079 },
3080 &quot;sourceSnapshotId&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique ID of the snapshot used to create this disk. This
3081 # value identifies the exact snapshot that was used to create this persistent
3082 # disk. For example, if you created the persistent disk from a snapshot that
3083 # was later deleted and recreated under the same name, the source snapshot ID
3084 # would identify the exact version of the snapshot that was used.
3085 &quot;sourceStorageObject&quot;: &quot;A String&quot;, # The full Google Cloud Storage URI where the disk image is stored. This file
3086 # must be a gzip-compressed tarball whose name ends in .tar.gz or virtual
3087 # machine disk whose name ends in vmdk. Valid URIs may start with gs:// or
3088 # https://storage.googleapis.com/. This flag is not optimized for creating
3089 # multiple disks from a source storage object. To create many disks from a
3090 # source storage object, use gcloud compute images
3091 # import instead.
3092 &quot;status&quot;: &quot;A String&quot;, # Output only. [Output Only] The status of disk creation.
3093 #
3094 #
3095 # - CREATING: Disk is provisioning.
3096 # - RESTORING: Source data is being copied into the
3097 # disk.
3098 # - FAILED: Disk creation failed.
3099 # - READY: Disk is ready for use.
3100 # - DELETING: Disk is deleting.
3101 &quot;storagePool&quot;: &quot;A String&quot;, # The storage pool in which the new disk is created. You can provide
3102 # this as a partial or full URL to the resource. For example, the following
3103 # are valid values:
3104 #
3105 #
3106 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/storagePools/storagePool
3107 # - projects/project/zones/zone/storagePools/storagePool
3108 # - zones/zone/storagePools/storagePool
3109 &quot;type&quot;: &quot;A String&quot;, # URL of the disk type resource describing which disk type to use to create
3110 # the disk. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk
3111 # types.
3112 &quot;users&quot;: [ # Output only. [Output Only] Links to the users of the disk (attached instances)
3113 # in form:projects/project/zones/zone/instances/instance
3114 &quot;A String&quot;,
3115 ],
3116 &quot;zone&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the zone where the disk resides.
3117 # You must specify this field as part of the HTTP request URL. It is
3118 # not settable as a field in the request body.
3119 }
3120
3121 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
3122 that if you must retry your request, the server will know to ignore the
3123 request if it has already been completed.
3124
3125 For example, consider a situation where you make an initial request and
3126 the request times out. If you make the request again with the same
3127 request ID, the server can check if original operation with the same
3128 request ID was received, and if so, will ignore the second request. This
3129 prevents clients from accidentally creating duplicate commitments.
3130
3131 The request ID must be
3132 a valid UUID with the exception that zero UUID is not supported
3133 (00000000-0000-0000-0000-000000000000).
3134 sourceImage: string, Source image to restore onto a disk. This field is optional.
3135 x__xgafv: string, V1 error format.
3136 Allowed values
3137 1 - v1 error format
3138 2 - v2 error format
3139
3140 Returns:
3141 An object of the form:
3142
3143 { # Represents an Operation resource.
3144 #
3145 # Google Compute Engine has three Operation resources:
3146 #
3147 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
3148 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
3149 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
3150 #
3151 # You can use an operation resource to manage asynchronous API requests.
3152 # For more information, readHandling
3153 # API responses.
3154 #
3155 # Operations can be global, regional or zonal.
3156 #
3157 # - For global operations, use the `globalOperations`
3158 # resource.
3159 # - For regional operations, use the
3160 # `regionOperations` resource.
3161 # - For zonal operations, use
3162 # the `zoneOperations` resource.
3163 #
3164 #
3165 #
3166 # For more information, read
3167 # Global, Regional, and Zonal Resources.
3168 #
3169 # Note that completed Operation resources have a limited
3170 # retention period.
3171 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
3172 # Not present otherwise.
3173 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
3174 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
3175 # set when the operation is created.
3176 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
3177 # text format.
3178 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
3179 # this field will be populated.
3180 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
3181 # operation.
3182 {
3183 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
3184 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
3185 # details. There is a set of defined message types to use for providing
3186 # details.The syntax depends on the error code. For example,
3187 # QuotaExceededInfo will have details when the error code is
3188 # QUOTA_EXCEEDED.
3189 {
3190 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
3191 #
3192 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
3193 # is not enabled:
3194 #
3195 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
3196 # &quot;domain&quot;: &quot;googleapis.com&quot;
3197 # &quot;metadata&quot;: {
3198 # &quot;resource&quot;: &quot;projects/123&quot;,
3199 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
3200 # }
3201 # }
3202 #
3203 # This response indicates that the pubsub.googleapis.com API is not enabled.
3204 #
3205 # Example of an error that is returned when attempting to create a Spanner
3206 # instance in a region that is out of stock:
3207 #
3208 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
3209 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
3210 # &quot;metadata&quot;: {
3211 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
3212 # }
3213 # }
3214 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
3215 # is typically the registered service name of the tool or product that
3216 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
3217 # generated by some common infrastructure, the error domain must be a
3218 # globally unique value that identifies the infrastructure. For Google API
3219 # infrastructure, the error domain is &quot;googleapis.com&quot;.
3220 &quot;metadatas&quot;: { # Additional structured details about this error.
3221 #
3222 # Keys must match a regular expression of `a-z+` but should
3223 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
3224 # length. When identifying the current value of an exceeded limit, the units
3225 # should be contained in the key, not the value. For example, rather than
3226 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
3227 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
3228 # instances that can be created in a single (batch) request.
3229 &quot;a_key&quot;: &quot;A String&quot;,
3230 },
3231 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
3232 # proximate cause of the error. Error reasons are unique within a particular
3233 # domain of errors. This should be at most 63 characters and match a
3234 # regular expression of `A-Z+[A-Z0-9]`, which represents
3235 # UPPER_SNAKE_CASE.
3236 },
3237 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
3238 #
3239 # For example, if a quota check failed with an error indicating the calling
3240 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
3241 # directly to the right place in the developer console to flip the bit.
3242 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
3243 { # Describes a URL link.
3244 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
3245 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
3246 },
3247 ],
3248 },
3249 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
3250 # which can be attached to an RPC error.
3251 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
3252 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
3253 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
3254 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
3255 },
3256 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
3257 &quot;dimensions&quot;: { # The map holding related quota dimensions.
3258 &quot;a_key&quot;: &quot;A String&quot;,
3259 },
3260 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
3261 # type or metric.
3262 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
3263 # or metric.
3264 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
3265 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
3266 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
3267 },
3268 },
3269 ],
3270 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
3271 # This property is optional.
3272 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
3273 },
3274 ],
3275 },
3276 &quot;getVersionOperationMetadata&quot;: {
3277 &quot;inlineSbomInfo&quot;: {
3278 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
3279 # appropriate identifiers.
3280 &quot;a_key&quot;: &quot;A String&quot;,
3281 },
3282 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
3283 # identifiers.
3284 &quot;a_key&quot;: &quot;A String&quot;,
3285 },
3286 },
3287 },
3288 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
3289 # message that was returned, such as `NOT FOUND`.
3290 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
3291 # status code that was returned. For example, a `404` means the
3292 # resource was not found.
3293 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
3294 # defined by the server.
3295 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
3296 # This value is inRFC3339
3297 # text format.
3298 &quot;instancesBulkInsertOperationMetadata&quot;: {
3299 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
3300 # Example key: zones/us-central1-a
3301 &quot;a_key&quot;: {
3302 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
3303 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
3304 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
3305 # error.
3306 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
3307 # if the flow is rolling forward or rolling back.
3308 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
3309 },
3310 },
3311 },
3312 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
3313 # Operation resources.
3314 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
3315 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
3316 # group of operations results from a `bulkInsert` API request.
3317 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
3318 # `update`, or `delete`, and so on.
3319 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
3320 # There is no requirement that this be linear or support any granularity of
3321 # operations. This should not be used to guess when the operation will be
3322 # complete. This number should monotonically increase as the operation
3323 # progresses.
3324 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
3325 # applicable when performing regional operations.
3326 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
3327 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
3328 # this field will contain information on all underlying zonal actions and
3329 # their state.
3330 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
3331 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
3332 # Example key: zones/us-central1-a
3333 &quot;a_key&quot;: {
3334 &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
3335 # populated.
3336 # different programming environments, including REST APIs and RPC APIs. It is
3337 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
3338 # three pieces of data: error code, error message, and error details.
3339 #
3340 # You can find out more about this error model and how to work with it in the
3341 # [API Design Guide](https://cloud.google.com/apis/design/errors).
3342 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3343 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
3344 # message types for APIs to use.
3345 {
3346 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3347 },
3348 ],
3349 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
3350 # user-facing error message should be localized and sent in the
3351 # google.rpc.Status.details field, or localized by the client.
3352 },
3353 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
3354 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
3355 },
3356 },
3357 },
3358 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
3359 # This value is inRFC3339
3360 # text format.
3361 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
3362 # following:
3363 # `PENDING`, `RUNNING`, or `DONE`.
3364 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
3365 # operation.
3366 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
3367 # of the target resource.
3368 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
3369 # operations related to creating a snapshot, this points to the disk
3370 # that the snapshot was created from.
3371 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
3372 # `[email protected]` or
3373 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
3374 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
3375 # operation, this field will be populated.
3376 {
3377 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
3378 # Engine returns NO_RESULTS_ON_PAGE if there
3379 # are no results in the response.
3380 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
3381 # value format. For example:
3382 #
3383 # &quot;data&quot;: [
3384 # {
3385 # &quot;key&quot;: &quot;scope&quot;,
3386 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
3387 # }
3388 {
3389 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
3390 # returned. For example, for warnings where there are no results in a list
3391 # request for a particular zone, this key might be scope and
3392 # the key value might be the zone name. Other examples might be a key
3393 # indicating a deprecated resource and a suggested replacement, or a
3394 # warning about invalid network settings (for example, if an instance
3395 # attempts to perform IP forwarding but is not enabled for IP forwarding).
3396 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
3397 },
3398 ],
3399 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
3400 },
3401 ],
3402 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
3403 # applicable when performing per-zone operations.
3404 }</pre>
3405 </div>
3406
3407 <div class="method">
3408 <code class="details" id="list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code>
3409 <pre>Retrieves the list of persistent disks contained within
3410 the specified region.
3411
3412 Args:
3413 project: string, Project ID for this request. (required)
3414 region: string, Name of the region for this request. (required)
3415 filter: string, A filter expression that filters resources listed in the response. Most
3416 Compute resources support two types of filter expressions:
3417 expressions that support regular expressions and expressions that follow
3418 API improvement proposal AIP-160.
3419 These two types of filter expressions cannot be mixed in one request.
3420
3421 If you want to use AIP-160, your expression must specify the field name, an
3422 operator, and the value that you want to use for filtering. The value
3423 must be a string, a number, or a boolean. The operator
3424 must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`.
3425
3426 For example, if you are filtering Compute Engine instances, you can
3427 exclude instances named `example-instance` by specifying
3428 `name != example-instance`.
3429
3430 The `:*` comparison can be used to test whether a key has been defined.
3431 For example, to find all objects with `owner` label use:
3432 ```
3433 labels.owner:*
3434 ```
3435
3436 You can also filter nested fields. For example, you could specify
3437 `scheduling.automaticRestart = false` to include instances only
3438 if they are not scheduled for automatic restarts. You can use filtering
3439 on nested fields to filter based onresource labels.
3440
3441 To filter on multiple expressions, provide each separate expression within
3442 parentheses. For example:
3443 ```
3444 (scheduling.automaticRestart = true)
3445 (cpuPlatform = &quot;Intel Skylake&quot;)
3446 ```
3447 By default, each expression is an `AND` expression. However, you
3448 can include `AND` and `OR` expressions explicitly.
3449 For example:
3450 ```
3451 (cpuPlatform = &quot;Intel Skylake&quot;) OR
3452 (cpuPlatform = &quot;Intel Broadwell&quot;) AND
3453 (scheduling.automaticRestart = true)
3454 ```
3455
3456 If you want to use a regular expression, use the `eq` (equal) or `ne`
3457 (not equal) operator against a single un-parenthesized expression with or
3458 without quotes or against multiple parenthesized expressions. Examples:
3459
3460 `fieldname eq unquoted literal`
3461 `fieldname eq &#x27;single quoted literal&#x27;`
3462 `fieldname eq &quot;double quoted literal&quot;`
3463 `(fieldname1 eq literal) (fieldname2 ne &quot;literal&quot;)`
3464
3465 The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
3466 The literal value must match the entire field.
3467
3468 For example, to filter for instances that do not end with name &quot;instance&quot;,
3469 you would use `name ne .*instance`.
3470
3471 You cannot combine constraints on multiple fields using regular
3472 expressions.
3473 maxResults: integer, The maximum number of results per page that should be returned.
3474 If the number of available results is larger than `maxResults`,
3475 Compute Engine returns a `nextPageToken` that can be used to get
3476 the next page of results in subsequent list requests. Acceptable values are
3477 `0` to `500`, inclusive. (Default: `500`)
3478 orderBy: string, Sorts list results by a certain order. By default, results
3479 are returned in alphanumerical order based on the resource name.
3480
3481 You can also sort results in descending order based on the creation
3482 timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. This sorts
3483 results based on the `creationTimestamp` field in
3484 reverse chronological order (newest result first). Use this to sort
3485 resources like operations so that the newest operation is returned first.
3486
3487 Currently, only sorting by `name` or
3488 `creationTimestamp desc` is supported.
3489 pageToken: string, Specifies a page token to use. Set `pageToken` to the
3490 `nextPageToken` returned by a previous list request to get
3491 the next page of results.
3492 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case
3493 of failure. The default value is false.
3494
3495 For example, when partial success behavior is enabled, aggregatedList for a
3496 single zone scope either returns all resources in the zone or no resources,
3497 with an error code.
3498 x__xgafv: string, V1 error format.
3499 Allowed values
3500 1 - v1 error format
3501 2 - v2 error format
3502
3503 Returns:
3504 An object of the form:
3505
3506 { # A list of Disk resources.
3507 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
3508 &quot;items&quot;: [ # A list of Disk resources.
3509 { # Represents a Persistent Disk resource.
3510 #
3511 # Google Compute Engine has two Disk resources:
3512 #
3513 # * [Zonal](/compute/docs/reference/rest/v1/disks)
3514 # * [Regional](/compute/docs/reference/rest/v1/regionDisks)
3515 #
3516 # Persistent disks are required for running your VM instances.
3517 # Create both boot and non-boot (data) persistent disks. For more information,
3518 # read Persistent Disks. For more
3519 # storage options, read Storage options.
3520 #
3521 # The disks resource represents a zonal persistent disk.
3522 # For more information, readZonal persistent disks.
3523 #
3524 # The regionDisks resource represents a
3525 # regional persistent disk. For more information, read
3526 # Regional resources.
3527 &quot;accessMode&quot;: &quot;A String&quot;, # The access mode of the disk.
3528 #
3529 #
3530 # - READ_WRITE_SINGLE: The default AccessMode, means the
3531 # disk can be attached to single instance in RW mode.
3532 # - READ_WRITE_MANY: The AccessMode means the disk can be
3533 # attached to multiple instances in RW mode.
3534 # - READ_ONLY_MANY: The AccessMode means the disk can be
3535 # attached to multiple instances in RO mode.
3536 #
3537 #
3538 # The AccessMode is only valid for Hyperdisk disk types.
3539 &quot;architecture&quot;: &quot;A String&quot;, # The architecture of the disk. Valid values are
3540 # ARM64 or X86_64.
3541 &quot;asyncPrimaryDisk&quot;: { # Disk asynchronously replicated into this disk.
3542 &quot;consistencyGroupPolicy&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the DiskConsistencyGroupPolicy if replication was
3543 # started on the disk as a member of a group.
3544 &quot;consistencyGroupPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] ID of the DiskConsistencyGroupPolicy if replication was
3545 # started on the disk as a member of a group.
3546 &quot;disk&quot;: &quot;A String&quot;, # The other disk asynchronously replicated to or from the current disk.
3547 # You can provide this as a partial or full URL to the resource.
3548 # For example, the following are valid values:
3549 #
3550 #
3551 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
3552 # - projects/project/zones/zone/disks/disk
3553 # - zones/zone/disks/disk
3554 &quot;diskId&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique ID of the other disk asynchronously replicated
3555 # to or from the current disk. This value identifies the exact disk that
3556 # was used to create this replication. For example, if you started
3557 # replicating the persistent disk from a disk that was later deleted and
3558 # recreated under the same name, the disk ID would identify the exact
3559 # version of the disk that was used.
3560 },
3561 &quot;asyncSecondaryDisks&quot;: { # Output only. [Output Only] A list of disks this disk is asynchronously replicated to.
3562 &quot;a_key&quot;: {
3563 &quot;asyncReplicationDisk&quot;: {
3564 &quot;consistencyGroupPolicy&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the DiskConsistencyGroupPolicy if replication was
3565 # started on the disk as a member of a group.
3566 &quot;consistencyGroupPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] ID of the DiskConsistencyGroupPolicy if replication was
3567 # started on the disk as a member of a group.
3568 &quot;disk&quot;: &quot;A String&quot;, # The other disk asynchronously replicated to or from the current disk.
3569 # You can provide this as a partial or full URL to the resource.
3570 # For example, the following are valid values:
3571 #
3572 #
3573 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
3574 # - projects/project/zones/zone/disks/disk
3575 # - zones/zone/disks/disk
3576 &quot;diskId&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique ID of the other disk asynchronously replicated
3577 # to or from the current disk. This value identifies the exact disk that
3578 # was used to create this replication. For example, if you started
3579 # replicating the persistent disk from a disk that was later deleted and
3580 # recreated under the same name, the disk ID would identify the exact
3581 # version of the disk that was used.
3582 },
3583 },
3584 },
3585 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
3586 # text format.
3587 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
3588 # create the resource.
3589 &quot;diskEncryptionKey&quot;: { # Encrypts the disk using a
3590 # customer-supplied encryption key or a
3591 # customer-managed encryption key.
3592 #
3593 # Encryption keys do not protect access to metadata of the disk.
3594 #
3595 # After you encrypt a disk with a customer-supplied key, you must provide the
3596 # same key if you use the disk later. For example, to create a disk snapshot,
3597 # to create a disk image, to create a machine image, or to attach the disk to
3598 # a virtual machine.
3599 #
3600 # After you encrypt a disk with a customer-managed key, thediskEncryptionKey.kmsKeyName is set to a key *version*
3601 # name once the disk is created. The disk is encrypted with this version of
3602 # the key. In the response, diskEncryptionKey.kmsKeyName appears
3603 # in the following format:
3604 #
3605 # &quot;diskEncryptionKey.kmsKeyName&quot;:
3606 # &quot;projects/kms_project_id/locations/region/keyRings/
3607 # key_region/cryptoKeys/key
3608 # /cryptoKeysVersions/version
3609 #
3610 # If you do not provide an encryption key when creating the disk, then the
3611 # disk is encrypted using an automatically generated key and you don&#x27;t need
3612 # to provide a key to use the disk later.
3613 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS.
3614 # For example:
3615 #
3616 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
3617 # key_region/cryptoKeys/key
3618 #
3619 # The fully-qualifed key name may be returned for resource GET requests. For
3620 # example:
3621 #
3622 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
3623 # key_region/cryptoKeys/key
3624 # /cryptoKeyVersions/1
3625 &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # The service account being used for the encryption request for the given KMS
3626 # key. If absent, the Compute Engine default service account is used.
3627 # For example:
3628 #
3629 # &quot;kmsKeyServiceAccount&quot;: &quot;name@project_id.iam.gserviceaccount.com/
3630 &quot;rawKey&quot;: &quot;A String&quot;, # Specifies a 256-bit customer-supplied
3631 # encryption key, encoded in RFC
3632 # 4648 base64 to either encrypt or decrypt this resource. You can
3633 # provide either the rawKey or thersaEncryptedKey.
3634 # For example:
3635 #
3636 # &quot;rawKey&quot;:
3637 # &quot;SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=&quot;
3638 &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
3639 # customer-supplied encryption key to either encrypt or decrypt this
3640 # resource. You can provide either the rawKey or thersaEncryptedKey.
3641 # For example:
3642 #
3643 # &quot;rsaEncryptedKey&quot;:
3644 # &quot;ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
3645 # z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
3646 # D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==&quot;
3647 #
3648 # The key must meet the following requirements before you can provide it to
3649 # Compute Engine:
3650 #
3651 # 1. The key is wrapped using a RSA public key certificate provided by
3652 # Google.
3653 # 2. After being wrapped, the key must be encoded in RFC 4648 base64
3654 # encoding.
3655 #
3656 # Gets the RSA public key certificate provided by Google at:
3657 #
3658 #
3659 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
3660 &quot;sha256&quot;: &quot;A String&quot;, # [Output only] TheRFC
3661 # 4648 base64 encoded SHA-256 hash of the customer-supplied
3662 # encryption key that protects this resource.
3663 },
3664 &quot;enableConfidentialCompute&quot;: True or False, # Whether this disk is using confidential compute mode.
3665 &quot;guestOsFeatures&quot;: [ # A list of features to enable on the guest operating system. Applicable
3666 # only for bootable images. Read
3667 # Enabling guest operating system features to see a list of available
3668 # options.
3669 { # Guest OS features.
3670 &quot;type&quot;: &quot;A String&quot;, # The ID of a supported feature. To add multiple values, use commas to
3671 # separate values. Set to one or more of the following values:
3672 #
3673 # - VIRTIO_SCSI_MULTIQUEUE
3674 # - WINDOWS
3675 # - MULTI_IP_SUBNET
3676 # - UEFI_COMPATIBLE
3677 # - GVNIC
3678 # - SEV_CAPABLE
3679 # - SUSPEND_RESUME_COMPATIBLE
3680 # - SEV_LIVE_MIGRATABLE_V2
3681 # - SEV_SNP_CAPABLE
3682 # - TDX_CAPABLE
3683 # - IDPF
3684 # - SNP_SVSM_CAPABLE
3685 # - CCA_CAPABLE
3686 #
3687 #
3688 # For more information, see
3689 # Enabling guest operating system features.
3690 },
3691 ],
3692 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the resource. This identifier is
3693 # defined by the server.
3694 &quot;kind&quot;: &quot;compute#disk&quot;, # Output only. [Output Only] Type of the resource. Always compute#disk for
3695 # disks.
3696 &quot;labelFingerprint&quot;: &quot;A String&quot;, # A fingerprint for the labels being applied to this disk, which is
3697 # essentially a hash of the labels set used for optimistic locking. The
3698 # fingerprint is initially generated by Compute Engine and changes after
3699 # every request to modify or update labels. You must always provide an
3700 # up-to-date fingerprint hash in order to update or change labels,
3701 # otherwise the request will fail with error412 conditionNotMet.
3702 #
3703 # To see the latest fingerprint, make a get() request to
3704 # retrieve a disk.
3705 &quot;labels&quot;: { # Labels to apply to this disk. These can be later modified by
3706 # the setLabels method.
3707 &quot;a_key&quot;: &quot;A String&quot;,
3708 },
3709 &quot;lastAttachTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Last attach timestamp inRFC3339
3710 # text format.
3711 &quot;lastDetachTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Last detach timestamp inRFC3339
3712 # text format.
3713 &quot;licenseCodes&quot;: [ # Integer license codes indicating which licenses are attached to this disk.
3714 &quot;A String&quot;,
3715 ],
3716 &quot;licenses&quot;: [ # A list of publicly visible licenses. Reserved for Google&#x27;s use.
3717 &quot;A String&quot;,
3718 ],
3719 &quot;locationHint&quot;: &quot;A String&quot;, # An opaque location hint used to place the disk close to other resources.
3720 # This field is for use by internal tools that use the public API.
3721 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
3722 # The name must be 1-63 characters long, and comply withRFC1035.
3723 # Specifically, the name must be 1-63 characters long and match the regular
3724 # expression `[a-z]([-a-z0-9]*[a-z0-9])?`
3725 # which means the first character must be a lowercase letter, and all
3726 # following characters must be a dash, lowercase letter, or digit, except
3727 # the last character, which cannot be a dash.
3728 &quot;options&quot;: &quot;A String&quot;, # Internal use only.
3729 &quot;params&quot;: { # Additional disk params. # Input only. [Input Only] Additional params passed with the request, but not persisted
3730 # as part of resource payload.
3731 &quot;resourceManagerTags&quot;: { # Input only. Resource manager tags to be bound to the disk. Tag keys and values
3732 # have the same definition as resource
3733 # manager tags. Keys and values can be either in numeric format,
3734 # such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
3735 # namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
3736 # `{tag_value_short_name}`. The field is ignored (both PUT &amp;
3737 # PATCH) when empty.
3738 &quot;a_key&quot;: &quot;A String&quot;,
3739 },
3740 },
3741 &quot;physicalBlockSizeBytes&quot;: &quot;A String&quot;, # Physical block size of the persistent disk, in bytes.
3742 # If not present in a request, a default value is used.
3743 # The currently supported size is 4096, other sizes may be added in
3744 # the future.
3745 # If an unsupported value is requested, the error message will list
3746 # the supported values for the caller&#x27;s project.
3747 &quot;provisionedIops&quot;: &quot;A String&quot;, # Indicates how many IOPS to provision for the disk. This sets the number
3748 # of I/O operations per second that the disk can handle. Values must be
3749 # between 10,000 and 120,000. For more details, see theExtreme persistent
3750 # disk documentation.
3751 &quot;provisionedThroughput&quot;: &quot;A String&quot;, # Indicates how much throughput to provision for the disk. This sets the
3752 # number of throughput mb per second that the disk can handle. Values must be
3753 # greater than or equal to 1.
3754 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the disk resides. Only applicable for
3755 # regional resources.
3756 # You must specify this field as part of the HTTP request URL. It is
3757 # not settable as a field in the request body.
3758 &quot;replicaZones&quot;: [ # URLs of the zones where the disk should be replicated to. Only applicable
3759 # for regional resources.
3760 &quot;A String&quot;,
3761 ],
3762 &quot;resourcePolicies&quot;: [ # Resource policies applied to this disk for automatic snapshot creations.
3763 &quot;A String&quot;,
3764 ],
3765 &quot;resourceStatus&quot;: { # Output only. [Output Only] Status information for the disk resource.
3766 &quot;asyncPrimaryDisk&quot;: {
3767 &quot;state&quot;: &quot;A String&quot;,
3768 },
3769 &quot;asyncSecondaryDisks&quot;: { # Key: disk, value: AsyncReplicationStatus message
3770 &quot;a_key&quot;: {
3771 &quot;state&quot;: &quot;A String&quot;,
3772 },
3773 },
3774 },
3775 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
3776 &quot;satisfiesPzs&quot;: True or False, # Output only. [Output Only] Reserved for future use.
3777 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined fully-qualified URL for this resource.
3778 &quot;sizeGb&quot;: &quot;A String&quot;, # Size, in GB, of the persistent disk. You can specify
3779 # this field when creating a persistent disk using thesourceImage, sourceSnapshot, orsourceDisk parameter, or specify it alone to create an empty
3780 # persistent disk.
3781 #
3782 # If you specify this field along with a source, the value ofsizeGb must not be less than the size of the
3783 # source.
3784 # Acceptable values are greater than 0.
3785 &quot;sourceConsistencyGroupPolicy&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk
3786 # that was created using a consistency group.
3787 &quot;sourceConsistencyGroupPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] ID of the DiskConsistencyGroupPolicy for a secondary disk
3788 # that was created using a consistency group.
3789 &quot;sourceDisk&quot;: &quot;A String&quot;, # The source disk used to create this disk. You can provide this as a
3790 # partial or full URL to the resource. For example, the following are valid
3791 # values:
3792 #
3793 #
3794 # -
3795 # https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
3796 #
3797 # -
3798 # https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk
3799 #
3800 # -
3801 # projects/project/zones/zone/disks/disk
3802 #
3803 # -
3804 # projects/project/regions/region/disks/disk
3805 #
3806 # -
3807 # zones/zone/disks/disk
3808 #
3809 # -
3810 # regions/region/disks/disk
3811 &quot;sourceDiskId&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique ID of the disk used to create this disk. This
3812 # value identifies the exact disk that was used to create this persistent
3813 # disk. For example, if you created the persistent disk from a disk that
3814 # was later deleted and recreated under the same name, the source disk ID
3815 # would identify the exact version of the disk that was used.
3816 &quot;sourceImage&quot;: &quot;A String&quot;, # The source image used to create this disk. If the source image is
3817 # deleted, this field will not be set.
3818 #
3819 # To create a disk with one of the public operating system images, specify
3820 # the image by its family name. For example, specifyfamily/debian-9 to use the latest Debian 9 image:
3821 #
3822 # projects/debian-cloud/global/images/family/debian-9
3823 #
3824 #
3825 # Alternatively, use a specific version of a public operating system image:
3826 #
3827 # projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD
3828 #
3829 #
3830 # To create a disk with a custom image that you created, specify the
3831 # image name in the following format:
3832 #
3833 # global/images/my-custom-image
3834 #
3835 #
3836 # You can also specify a custom image by its image family, which returns
3837 # the latest version of the image in that family. Replace the image name
3838 # with family/family-name:
3839 #
3840 # global/images/family/my-image-family
3841 &quot;sourceImageEncryptionKey&quot;: { # Thecustomer-supplied
3842 # encryption key of the source image. Required if the source image is
3843 # protected by a customer-supplied encryption key.
3844 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS.
3845 # For example:
3846 #
3847 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
3848 # key_region/cryptoKeys/key
3849 #
3850 # The fully-qualifed key name may be returned for resource GET requests. For
3851 # example:
3852 #
3853 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
3854 # key_region/cryptoKeys/key
3855 # /cryptoKeyVersions/1
3856 &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # The service account being used for the encryption request for the given KMS
3857 # key. If absent, the Compute Engine default service account is used.
3858 # For example:
3859 #
3860 # &quot;kmsKeyServiceAccount&quot;: &quot;name@project_id.iam.gserviceaccount.com/
3861 &quot;rawKey&quot;: &quot;A String&quot;, # Specifies a 256-bit customer-supplied
3862 # encryption key, encoded in RFC
3863 # 4648 base64 to either encrypt or decrypt this resource. You can
3864 # provide either the rawKey or thersaEncryptedKey.
3865 # For example:
3866 #
3867 # &quot;rawKey&quot;:
3868 # &quot;SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=&quot;
3869 &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
3870 # customer-supplied encryption key to either encrypt or decrypt this
3871 # resource. You can provide either the rawKey or thersaEncryptedKey.
3872 # For example:
3873 #
3874 # &quot;rsaEncryptedKey&quot;:
3875 # &quot;ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
3876 # z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
3877 # D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==&quot;
3878 #
3879 # The key must meet the following requirements before you can provide it to
3880 # Compute Engine:
3881 #
3882 # 1. The key is wrapped using a RSA public key certificate provided by
3883 # Google.
3884 # 2. After being wrapped, the key must be encoded in RFC 4648 base64
3885 # encoding.
3886 #
3887 # Gets the RSA public key certificate provided by Google at:
3888 #
3889 #
3890 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
3891 &quot;sha256&quot;: &quot;A String&quot;, # [Output only] TheRFC
3892 # 4648 base64 encoded SHA-256 hash of the customer-supplied
3893 # encryption key that protects this resource.
3894 },
3895 &quot;sourceImageId&quot;: &quot;A String&quot;, # Output only. [Output Only] The ID value of the image used to create this disk. This
3896 # value identifies the exact image that was used to create this persistent
3897 # disk. For example, if you created the persistent disk from an image that
3898 # was later deleted and recreated under the same name, the source image ID
3899 # would identify the exact version of the image that was used.
3900 &quot;sourceInstantSnapshot&quot;: &quot;A String&quot;, # The source instant snapshot used to create this disk. You can provide
3901 # this as a partial or full URL to the resource. For example, the following
3902 # are valid values:
3903 #
3904 #
3905 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshots/instantSnapshot
3906 # - projects/project/zones/zone/instantSnapshots/instantSnapshot
3907 # - zones/zone/instantSnapshots/instantSnapshot
3908 &quot;sourceInstantSnapshotId&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique ID of the instant snapshot used to create this
3909 # disk. This value identifies the exact instant snapshot that was used to
3910 # create this persistent disk. For example, if you created the persistent
3911 # disk from an instant snapshot that was later deleted and recreated under
3912 # the same name, the source instant snapshot ID would identify the exact
3913 # version of the instant snapshot that was used.
3914 &quot;sourceSnapshot&quot;: &quot;A String&quot;, # The source snapshot used to create this disk. You can provide this as a
3915 # partial or full URL to the resource. For example, the following are valid
3916 # values:
3917 #
3918 #
3919 # - https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot
3920 # - projects/project/global/snapshots/snapshot
3921 # - global/snapshots/snapshot
3922 &quot;sourceSnapshotEncryptionKey&quot;: { # Thecustomer-supplied
3923 # encryption key of the source snapshot. Required if the source snapshot
3924 # is protected by a customer-supplied encryption key.
3925 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS.
3926 # For example:
3927 #
3928 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
3929 # key_region/cryptoKeys/key
3930 #
3931 # The fully-qualifed key name may be returned for resource GET requests. For
3932 # example:
3933 #
3934 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
3935 # key_region/cryptoKeys/key
3936 # /cryptoKeyVersions/1
3937 &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # The service account being used for the encryption request for the given KMS
3938 # key. If absent, the Compute Engine default service account is used.
3939 # For example:
3940 #
3941 # &quot;kmsKeyServiceAccount&quot;: &quot;name@project_id.iam.gserviceaccount.com/
3942 &quot;rawKey&quot;: &quot;A String&quot;, # Specifies a 256-bit customer-supplied
3943 # encryption key, encoded in RFC
3944 # 4648 base64 to either encrypt or decrypt this resource. You can
3945 # provide either the rawKey or thersaEncryptedKey.
3946 # For example:
3947 #
3948 # &quot;rawKey&quot;:
3949 # &quot;SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=&quot;
3950 &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
3951 # customer-supplied encryption key to either encrypt or decrypt this
3952 # resource. You can provide either the rawKey or thersaEncryptedKey.
3953 # For example:
3954 #
3955 # &quot;rsaEncryptedKey&quot;:
3956 # &quot;ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
3957 # z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
3958 # D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==&quot;
3959 #
3960 # The key must meet the following requirements before you can provide it to
3961 # Compute Engine:
3962 #
3963 # 1. The key is wrapped using a RSA public key certificate provided by
3964 # Google.
3965 # 2. After being wrapped, the key must be encoded in RFC 4648 base64
3966 # encoding.
3967 #
3968 # Gets the RSA public key certificate provided by Google at:
3969 #
3970 #
3971 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
3972 &quot;sha256&quot;: &quot;A String&quot;, # [Output only] TheRFC
3973 # 4648 base64 encoded SHA-256 hash of the customer-supplied
3974 # encryption key that protects this resource.
3975 },
3976 &quot;sourceSnapshotId&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique ID of the snapshot used to create this disk. This
3977 # value identifies the exact snapshot that was used to create this persistent
3978 # disk. For example, if you created the persistent disk from a snapshot that
3979 # was later deleted and recreated under the same name, the source snapshot ID
3980 # would identify the exact version of the snapshot that was used.
3981 &quot;sourceStorageObject&quot;: &quot;A String&quot;, # The full Google Cloud Storage URI where the disk image is stored. This file
3982 # must be a gzip-compressed tarball whose name ends in .tar.gz or virtual
3983 # machine disk whose name ends in vmdk. Valid URIs may start with gs:// or
3984 # https://storage.googleapis.com/. This flag is not optimized for creating
3985 # multiple disks from a source storage object. To create many disks from a
3986 # source storage object, use gcloud compute images
3987 # import instead.
3988 &quot;status&quot;: &quot;A String&quot;, # Output only. [Output Only] The status of disk creation.
3989 #
3990 #
3991 # - CREATING: Disk is provisioning.
3992 # - RESTORING: Source data is being copied into the
3993 # disk.
3994 # - FAILED: Disk creation failed.
3995 # - READY: Disk is ready for use.
3996 # - DELETING: Disk is deleting.
3997 &quot;storagePool&quot;: &quot;A String&quot;, # The storage pool in which the new disk is created. You can provide
3998 # this as a partial or full URL to the resource. For example, the following
3999 # are valid values:
4000 #
4001 #
4002 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/storagePools/storagePool
4003 # - projects/project/zones/zone/storagePools/storagePool
4004 # - zones/zone/storagePools/storagePool
4005 &quot;type&quot;: &quot;A String&quot;, # URL of the disk type resource describing which disk type to use to create
4006 # the disk. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk
4007 # types.
4008 &quot;users&quot;: [ # Output only. [Output Only] Links to the users of the disk (attached instances)
4009 # in form:projects/project/zones/zone/instances/instance
4010 &quot;A String&quot;,
4011 ],
4012 &quot;zone&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the zone where the disk resides.
4013 # You must specify this field as part of the HTTP request URL. It is
4014 # not settable as a field in the request body.
4015 },
4016 ],
4017 &quot;kind&quot;: &quot;compute#diskList&quot;, # Output only. [Output Only] Type of resource. Always compute#diskList for
4018 # lists of disks.
4019 &quot;nextPageToken&quot;: &quot;A String&quot;, # [Output Only] This token allows you to get the next page of results for
4020 # list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
4021 # the query parameter pageToken in the next list request.
4022 # Subsequent list requests will have their own nextPageToken to
4023 # continue paging through the results.
4024 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource.
4025 &quot;warning&quot;: { # [Output Only] Informational warning message.
4026 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
4027 # Engine returns NO_RESULTS_ON_PAGE if there
4028 # are no results in the response.
4029 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
4030 # value format. For example:
4031 #
4032 # &quot;data&quot;: [
4033 # {
4034 # &quot;key&quot;: &quot;scope&quot;,
4035 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
4036 # }
4037 {
4038 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
4039 # returned. For example, for warnings where there are no results in a list
4040 # request for a particular zone, this key might be scope and
4041 # the key value might be the zone name. Other examples might be a key
4042 # indicating a deprecated resource and a suggested replacement, or a
4043 # warning about invalid network settings (for example, if an instance
4044 # attempts to perform IP forwarding but is not enabled for IP forwarding).
4045 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
4046 },
4047 ],
4048 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
4049 },
4050 }</pre>
4051 </div>
4052
4053 <div class="method">
4054 <code class="details" id="list_next">list_next()</code>
4055 <pre>Retrieves the next page of results.
4056
4057 Args:
4058 previous_request: The request for the previous page. (required)
4059 previous_response: The response from the request for the previous page. (required)
4060
4061 Returns:
4062 A request object that you can call &#x27;execute()&#x27; on to request the next
4063 page. Returns None if there are no more items in the collection.
4064 </pre>
4065 </div>
4066
4067 <div class="method">
4068 <code class="details" id="removeResourcePolicies">removeResourcePolicies(project, region, disk, body=None, requestId=None, x__xgafv=None)</code>
4069 <pre>Removes resource policies from a regional disk.
4070
4071 Args:
4072 project: string, Project ID for this request. (required)
4073 region: string, The name of the region for this request. (required)
4074 disk: string, The disk name for this request. (required)
4075 body: object, The request body.
4076 The object takes the form of:
4077
4078 {
4079 &quot;resourcePolicies&quot;: [ # Resource policies to be removed from this disk.
4080 &quot;A String&quot;,
4081 ],
4082 }
4083
4084 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
4085 that if you must retry your request, the server will know to ignore the
4086 request if it has already been completed.
4087
4088 For example, consider a situation where you make an initial request and
4089 the request times out. If you make the request again with the same
4090 request ID, the server can check if original operation with the same
4091 request ID was received, and if so, will ignore the second request. This
4092 prevents clients from accidentally creating duplicate commitments.
4093
4094 The request ID must be
4095 a valid UUID with the exception that zero UUID is not supported
4096 (00000000-0000-0000-0000-000000000000).
4097 x__xgafv: string, V1 error format.
4098 Allowed values
4099 1 - v1 error format
4100 2 - v2 error format
4101
4102 Returns:
4103 An object of the form:
4104
4105 { # Represents an Operation resource.
4106 #
4107 # Google Compute Engine has three Operation resources:
4108 #
4109 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
4110 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
4111 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
4112 #
4113 # You can use an operation resource to manage asynchronous API requests.
4114 # For more information, readHandling
4115 # API responses.
4116 #
4117 # Operations can be global, regional or zonal.
4118 #
4119 # - For global operations, use the `globalOperations`
4120 # resource.
4121 # - For regional operations, use the
4122 # `regionOperations` resource.
4123 # - For zonal operations, use
4124 # the `zoneOperations` resource.
4125 #
4126 #
4127 #
4128 # For more information, read
4129 # Global, Regional, and Zonal Resources.
4130 #
4131 # Note that completed Operation resources have a limited
4132 # retention period.
4133 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
4134 # Not present otherwise.
4135 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
4136 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
4137 # set when the operation is created.
4138 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
4139 # text format.
4140 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
4141 # this field will be populated.
4142 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
4143 # operation.
4144 {
4145 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
4146 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
4147 # details. There is a set of defined message types to use for providing
4148 # details.The syntax depends on the error code. For example,
4149 # QuotaExceededInfo will have details when the error code is
4150 # QUOTA_EXCEEDED.
4151 {
4152 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
4153 #
4154 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
4155 # is not enabled:
4156 #
4157 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
4158 # &quot;domain&quot;: &quot;googleapis.com&quot;
4159 # &quot;metadata&quot;: {
4160 # &quot;resource&quot;: &quot;projects/123&quot;,
4161 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
4162 # }
4163 # }
4164 #
4165 # This response indicates that the pubsub.googleapis.com API is not enabled.
4166 #
4167 # Example of an error that is returned when attempting to create a Spanner
4168 # instance in a region that is out of stock:
4169 #
4170 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
4171 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
4172 # &quot;metadata&quot;: {
4173 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
4174 # }
4175 # }
4176 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
4177 # is typically the registered service name of the tool or product that
4178 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
4179 # generated by some common infrastructure, the error domain must be a
4180 # globally unique value that identifies the infrastructure. For Google API
4181 # infrastructure, the error domain is &quot;googleapis.com&quot;.
4182 &quot;metadatas&quot;: { # Additional structured details about this error.
4183 #
4184 # Keys must match a regular expression of `a-z+` but should
4185 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
4186 # length. When identifying the current value of an exceeded limit, the units
4187 # should be contained in the key, not the value. For example, rather than
4188 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
4189 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
4190 # instances that can be created in a single (batch) request.
4191 &quot;a_key&quot;: &quot;A String&quot;,
4192 },
4193 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
4194 # proximate cause of the error. Error reasons are unique within a particular
4195 # domain of errors. This should be at most 63 characters and match a
4196 # regular expression of `A-Z+[A-Z0-9]`, which represents
4197 # UPPER_SNAKE_CASE.
4198 },
4199 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
4200 #
4201 # For example, if a quota check failed with an error indicating the calling
4202 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
4203 # directly to the right place in the developer console to flip the bit.
4204 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
4205 { # Describes a URL link.
4206 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
4207 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
4208 },
4209 ],
4210 },
4211 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
4212 # which can be attached to an RPC error.
4213 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
4214 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
4215 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
4216 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
4217 },
4218 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
4219 &quot;dimensions&quot;: { # The map holding related quota dimensions.
4220 &quot;a_key&quot;: &quot;A String&quot;,
4221 },
4222 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
4223 # type or metric.
4224 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
4225 # or metric.
4226 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
4227 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
4228 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
4229 },
4230 },
4231 ],
4232 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
4233 # This property is optional.
4234 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
4235 },
4236 ],
4237 },
4238 &quot;getVersionOperationMetadata&quot;: {
4239 &quot;inlineSbomInfo&quot;: {
4240 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
4241 # appropriate identifiers.
4242 &quot;a_key&quot;: &quot;A String&quot;,
4243 },
4244 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
4245 # identifiers.
4246 &quot;a_key&quot;: &quot;A String&quot;,
4247 },
4248 },
4249 },
4250 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
4251 # message that was returned, such as `NOT FOUND`.
4252 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
4253 # status code that was returned. For example, a `404` means the
4254 # resource was not found.
4255 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
4256 # defined by the server.
4257 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
4258 # This value is inRFC3339
4259 # text format.
4260 &quot;instancesBulkInsertOperationMetadata&quot;: {
4261 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
4262 # Example key: zones/us-central1-a
4263 &quot;a_key&quot;: {
4264 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
4265 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
4266 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
4267 # error.
4268 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
4269 # if the flow is rolling forward or rolling back.
4270 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
4271 },
4272 },
4273 },
4274 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
4275 # Operation resources.
4276 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
4277 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
4278 # group of operations results from a `bulkInsert` API request.
4279 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
4280 # `update`, or `delete`, and so on.
4281 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
4282 # There is no requirement that this be linear or support any granularity of
4283 # operations. This should not be used to guess when the operation will be
4284 # complete. This number should monotonically increase as the operation
4285 # progresses.
4286 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
4287 # applicable when performing regional operations.
4288 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
4289 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
4290 # this field will contain information on all underlying zonal actions and
4291 # their state.
4292 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
4293 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
4294 # Example key: zones/us-central1-a
4295 &quot;a_key&quot;: {
4296 &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
4297 # populated.
4298 # different programming environments, including REST APIs and RPC APIs. It is
4299 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
4300 # three pieces of data: error code, error message, and error details.
4301 #
4302 # You can find out more about this error model and how to work with it in the
4303 # [API Design Guide](https://cloud.google.com/apis/design/errors).
4304 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
4305 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
4306 # message types for APIs to use.
4307 {
4308 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
4309 },
4310 ],
4311 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
4312 # user-facing error message should be localized and sent in the
4313 # google.rpc.Status.details field, or localized by the client.
4314 },
4315 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
4316 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
4317 },
4318 },
4319 },
4320 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
4321 # This value is inRFC3339
4322 # text format.
4323 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
4324 # following:
4325 # `PENDING`, `RUNNING`, or `DONE`.
4326 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
4327 # operation.
4328 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
4329 # of the target resource.
4330 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
4331 # operations related to creating a snapshot, this points to the disk
4332 # that the snapshot was created from.
4333 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
4334 # `[email protected]` or
4335 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
4336 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
4337 # operation, this field will be populated.
4338 {
4339 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
4340 # Engine returns NO_RESULTS_ON_PAGE if there
4341 # are no results in the response.
4342 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
4343 # value format. For example:
4344 #
4345 # &quot;data&quot;: [
4346 # {
4347 # &quot;key&quot;: &quot;scope&quot;,
4348 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
4349 # }
4350 {
4351 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
4352 # returned. For example, for warnings where there are no results in a list
4353 # request for a particular zone, this key might be scope and
4354 # the key value might be the zone name. Other examples might be a key
4355 # indicating a deprecated resource and a suggested replacement, or a
4356 # warning about invalid network settings (for example, if an instance
4357 # attempts to perform IP forwarding but is not enabled for IP forwarding).
4358 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
4359 },
4360 ],
4361 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
4362 },
4363 ],
4364 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
4365 # applicable when performing per-zone operations.
4366 }</pre>
4367 </div>
4368
4369 <div class="method">
4370 <code class="details" id="resize">resize(project, region, disk, body=None, requestId=None, x__xgafv=None)</code>
4371 <pre>Resizes the specified regional persistent disk.
4372
4373 Args:
4374 project: string, The project ID for this request. (required)
4375 region: string, Name of the region for this request. (required)
4376 disk: string, Name of the regional persistent disk. (required)
4377 body: object, The request body.
4378 The object takes the form of:
4379
4380 {
4381 &quot;sizeGb&quot;: &quot;A String&quot;, # The new size of the regional persistent disk, which is specified in GB.
4382 }
4383
4384 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
4385 that if you must retry your request, the server will know to ignore the
4386 request if it has already been completed.
4387
4388 For example, consider a situation where you make an initial request and
4389 the request times out. If you make the request again with the same
4390 request ID, the server can check if original operation with the same
4391 request ID was received, and if so, will ignore the second request. This
4392 prevents clients from accidentally creating duplicate commitments.
4393
4394 The request ID must be
4395 a valid UUID with the exception that zero UUID is not supported
4396 (00000000-0000-0000-0000-000000000000).
4397 x__xgafv: string, V1 error format.
4398 Allowed values
4399 1 - v1 error format
4400 2 - v2 error format
4401
4402 Returns:
4403 An object of the form:
4404
4405 { # Represents an Operation resource.
4406 #
4407 # Google Compute Engine has three Operation resources:
4408 #
4409 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
4410 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
4411 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
4412 #
4413 # You can use an operation resource to manage asynchronous API requests.
4414 # For more information, readHandling
4415 # API responses.
4416 #
4417 # Operations can be global, regional or zonal.
4418 #
4419 # - For global operations, use the `globalOperations`
4420 # resource.
4421 # - For regional operations, use the
4422 # `regionOperations` resource.
4423 # - For zonal operations, use
4424 # the `zoneOperations` resource.
4425 #
4426 #
4427 #
4428 # For more information, read
4429 # Global, Regional, and Zonal Resources.
4430 #
4431 # Note that completed Operation resources have a limited
4432 # retention period.
4433 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
4434 # Not present otherwise.
4435 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
4436 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
4437 # set when the operation is created.
4438 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
4439 # text format.
4440 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
4441 # this field will be populated.
4442 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
4443 # operation.
4444 {
4445 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
4446 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
4447 # details. There is a set of defined message types to use for providing
4448 # details.The syntax depends on the error code. For example,
4449 # QuotaExceededInfo will have details when the error code is
4450 # QUOTA_EXCEEDED.
4451 {
4452 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
4453 #
4454 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
4455 # is not enabled:
4456 #
4457 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
4458 # &quot;domain&quot;: &quot;googleapis.com&quot;
4459 # &quot;metadata&quot;: {
4460 # &quot;resource&quot;: &quot;projects/123&quot;,
4461 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
4462 # }
4463 # }
4464 #
4465 # This response indicates that the pubsub.googleapis.com API is not enabled.
4466 #
4467 # Example of an error that is returned when attempting to create a Spanner
4468 # instance in a region that is out of stock:
4469 #
4470 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
4471 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
4472 # &quot;metadata&quot;: {
4473 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
4474 # }
4475 # }
4476 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
4477 # is typically the registered service name of the tool or product that
4478 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
4479 # generated by some common infrastructure, the error domain must be a
4480 # globally unique value that identifies the infrastructure. For Google API
4481 # infrastructure, the error domain is &quot;googleapis.com&quot;.
4482 &quot;metadatas&quot;: { # Additional structured details about this error.
4483 #
4484 # Keys must match a regular expression of `a-z+` but should
4485 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
4486 # length. When identifying the current value of an exceeded limit, the units
4487 # should be contained in the key, not the value. For example, rather than
4488 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
4489 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
4490 # instances that can be created in a single (batch) request.
4491 &quot;a_key&quot;: &quot;A String&quot;,
4492 },
4493 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
4494 # proximate cause of the error. Error reasons are unique within a particular
4495 # domain of errors. This should be at most 63 characters and match a
4496 # regular expression of `A-Z+[A-Z0-9]`, which represents
4497 # UPPER_SNAKE_CASE.
4498 },
4499 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
4500 #
4501 # For example, if a quota check failed with an error indicating the calling
4502 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
4503 # directly to the right place in the developer console to flip the bit.
4504 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
4505 { # Describes a URL link.
4506 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
4507 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
4508 },
4509 ],
4510 },
4511 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
4512 # which can be attached to an RPC error.
4513 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
4514 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
4515 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
4516 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
4517 },
4518 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
4519 &quot;dimensions&quot;: { # The map holding related quota dimensions.
4520 &quot;a_key&quot;: &quot;A String&quot;,
4521 },
4522 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
4523 # type or metric.
4524 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
4525 # or metric.
4526 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
4527 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
4528 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
4529 },
4530 },
4531 ],
4532 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
4533 # This property is optional.
4534 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
4535 },
4536 ],
4537 },
4538 &quot;getVersionOperationMetadata&quot;: {
4539 &quot;inlineSbomInfo&quot;: {
4540 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
4541 # appropriate identifiers.
4542 &quot;a_key&quot;: &quot;A String&quot;,
4543 },
4544 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
4545 # identifiers.
4546 &quot;a_key&quot;: &quot;A String&quot;,
4547 },
4548 },
4549 },
4550 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
4551 # message that was returned, such as `NOT FOUND`.
4552 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
4553 # status code that was returned. For example, a `404` means the
4554 # resource was not found.
4555 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
4556 # defined by the server.
4557 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
4558 # This value is inRFC3339
4559 # text format.
4560 &quot;instancesBulkInsertOperationMetadata&quot;: {
4561 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
4562 # Example key: zones/us-central1-a
4563 &quot;a_key&quot;: {
4564 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
4565 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
4566 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
4567 # error.
4568 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
4569 # if the flow is rolling forward or rolling back.
4570 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
4571 },
4572 },
4573 },
4574 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
4575 # Operation resources.
4576 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
4577 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
4578 # group of operations results from a `bulkInsert` API request.
4579 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
4580 # `update`, or `delete`, and so on.
4581 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
4582 # There is no requirement that this be linear or support any granularity of
4583 # operations. This should not be used to guess when the operation will be
4584 # complete. This number should monotonically increase as the operation
4585 # progresses.
4586 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
4587 # applicable when performing regional operations.
4588 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
4589 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
4590 # this field will contain information on all underlying zonal actions and
4591 # their state.
4592 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
4593 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
4594 # Example key: zones/us-central1-a
4595 &quot;a_key&quot;: {
4596 &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
4597 # populated.
4598 # different programming environments, including REST APIs and RPC APIs. It is
4599 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
4600 # three pieces of data: error code, error message, and error details.
4601 #
4602 # You can find out more about this error model and how to work with it in the
4603 # [API Design Guide](https://cloud.google.com/apis/design/errors).
4604 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
4605 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
4606 # message types for APIs to use.
4607 {
4608 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
4609 },
4610 ],
4611 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
4612 # user-facing error message should be localized and sent in the
4613 # google.rpc.Status.details field, or localized by the client.
4614 },
4615 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
4616 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
4617 },
4618 },
4619 },
4620 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
4621 # This value is inRFC3339
4622 # text format.
4623 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
4624 # following:
4625 # `PENDING`, `RUNNING`, or `DONE`.
4626 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
4627 # operation.
4628 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
4629 # of the target resource.
4630 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
4631 # operations related to creating a snapshot, this points to the disk
4632 # that the snapshot was created from.
4633 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
4634 # `[email protected]` or
4635 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
4636 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
4637 # operation, this field will be populated.
4638 {
4639 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
4640 # Engine returns NO_RESULTS_ON_PAGE if there
4641 # are no results in the response.
4642 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
4643 # value format. For example:
4644 #
4645 # &quot;data&quot;: [
4646 # {
4647 # &quot;key&quot;: &quot;scope&quot;,
4648 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
4649 # }
4650 {
4651 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
4652 # returned. For example, for warnings where there are no results in a list
4653 # request for a particular zone, this key might be scope and
4654 # the key value might be the zone name. Other examples might be a key
4655 # indicating a deprecated resource and a suggested replacement, or a
4656 # warning about invalid network settings (for example, if an instance
4657 # attempts to perform IP forwarding but is not enabled for IP forwarding).
4658 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
4659 },
4660 ],
4661 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
4662 },
4663 ],
4664 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
4665 # applicable when performing per-zone operations.
4666 }</pre>
4667 </div>
4668
4669 <div class="method">
4670 <code class="details" id="setIamPolicy">setIamPolicy(project, region, resource, body=None, x__xgafv=None)</code>
4671 <pre>Sets the access control policy on the specified resource.
4672 Replaces any existing policy.
4673
4674 Args:
4675 project: string, Project ID for this request. (required)
4676 region: string, The name of the region for this request. (required)
4677 resource: string, Name or id of the resource for this request. (required)
4678 body: object, The request body.
4679 The object takes the form of:
4680
4681 {
4682 &quot;bindings&quot;: [ # Flatten Policy to create a backwacd compatible wire-format.
4683 # Deprecated. Use &#x27;policy&#x27; to specify bindings.
4684 { # Associates `members`, or principals, with a `role`.
4685 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
4686 #
4687 # If the condition evaluates to `true`, then this binding applies to the
4688 # current request.
4689 #
4690 # If the condition evaluates to `false`, then this binding does not apply to
4691 # the current request. However, a different role binding might grant the same
4692 # role to one or more of the principals in this binding.
4693 #
4694 # To learn which resources support conditions in their IAM policies, see the
4695 # [IAM
4696 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
4697 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
4698 # are documented at https://github.com/google/cel-spec.
4699 #
4700 # Example (Comparison):
4701 #
4702 # title: &quot;Summary size limit&quot;
4703 # description: &quot;Determines if a summary is less than 100 chars&quot;
4704 # expression: &quot;document.summary.size() &lt; 100&quot;
4705 #
4706 # Example (Equality):
4707 #
4708 # title: &quot;Requestor is owner&quot;
4709 # description: &quot;Determines if requestor is the document owner&quot;
4710 # expression: &quot;document.owner == request.auth.claims.email&quot;
4711 #
4712 # Example (Logic):
4713 #
4714 # title: &quot;Public documents&quot;
4715 # description: &quot;Determine whether the document should be publicly visible&quot;
4716 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
4717 #
4718 # Example (Data Manipulation):
4719 #
4720 # title: &quot;Notification string&quot;
4721 # description: &quot;Create a notification string with a timestamp.&quot;
4722 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
4723 #
4724 # The exact variables and functions that may be referenced within an expression
4725 # are determined by the service that evaluates it. See the service
4726 # documentation for additional information.
4727 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
4728 # describes the expression, e.g. when hovered over it in a UI.
4729 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
4730 # syntax.
4731 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
4732 # reporting, e.g. a file name and a position in the file.
4733 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
4734 # its purpose. This can be used e.g. in UIs which allow to enter the
4735 # expression.
4736 },
4737 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
4738 # `members` can have the following values:
4739 #
4740 # * `allUsers`: A special identifier that represents anyone who is
4741 # on the internet; with or without a Google account.
4742 #
4743 # * `allAuthenticatedUsers`: A special identifier that represents anyone
4744 # who is authenticated with a Google account or a service account.
4745 # Does not include identities that come from external identity providers
4746 # (IdPs) through identity federation.
4747 #
4748 # * `user:{emailid}`: An email address that represents a specific Google
4749 # account. For example, `[email protected]` .
4750 #
4751 #
4752 # * `serviceAccount:{emailid}`: An email address that represents a Google
4753 # service account. For example,
4754 # `[email protected]`.
4755 #
4756 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
4757 # identifier for a
4758 # [Kubernetes service
4759 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
4760 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
4761 #
4762 # * `group:{emailid}`: An email address that represents a Google group.
4763 # For example, `[email protected]`.
4764 #
4765 #
4766 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
4767 # users of that domain. For example, `google.com` or `example.com`.
4768 #
4769 #
4770 #
4771 #
4772 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
4773 # A single identity in a workforce identity pool.
4774 #
4775 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
4776 # All workforce identities in a group.
4777 #
4778 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
4779 # All workforce identities with a specific attribute value.
4780 #
4781 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
4782 # All identities in a workforce identity pool.
4783 #
4784 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
4785 # A single identity in a workload identity pool.
4786 #
4787 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
4788 # A workload identity pool group.
4789 #
4790 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
4791 # All identities in a workload identity pool with a certain attribute.
4792 #
4793 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
4794 # All identities in a workload identity pool.
4795 #
4796 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
4797 # identifier) representing a user that has been recently deleted. For
4798 # example, `[email protected]?uid=123456789012345678901`. If the user is
4799 # recovered, this value reverts to `user:{emailid}` and the recovered user
4800 # retains the role in the binding.
4801 #
4802 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
4803 # unique identifier) representing a service account that has been recently
4804 # deleted. For example,
4805 # `[email protected]?uid=123456789012345678901`.
4806 # If the service account is undeleted, this value reverts to
4807 # `serviceAccount:{emailid}` and the undeleted service account retains the
4808 # role in the binding.
4809 #
4810 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
4811 # identifier) representing a Google group that has been recently
4812 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
4813 # the group is recovered, this value reverts to `group:{emailid}` and the
4814 # recovered group retains the role in the binding.
4815 #
4816 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
4817 # Deleted single identity in a workforce identity pool. For example,
4818 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
4819 &quot;A String&quot;,
4820 ],
4821 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
4822 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
4823 #
4824 # For an overview of the IAM roles and permissions, see the
4825 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
4826 # a list of the available pre-defined roles, see
4827 # [here](https://cloud.google.com/iam/docs/understanding-roles).
4828 },
4829 ],
4830 &quot;etag&quot;: &quot;A String&quot;, # Flatten Policy to create a backward compatible wire-format.
4831 # Deprecated. Use &#x27;policy&#x27; to specify the etag.
4832 &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
4833 # the policy is limited to a few 10s of KB. An empty policy is in general a
4834 # valid policy but certain services (like Projects) might reject them.
4835 # controls for Google Cloud resources.
4836 #
4837 #
4838 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
4839 # `members`, or principals, to a single `role`. Principals can be user
4840 # accounts, service accounts, Google groups, and domains (such as G Suite). A
4841 # `role` is a named list of permissions; each `role` can be an IAM predefined
4842 # role or a user-created custom role.
4843 #
4844 # For some types of Google Cloud resources, a `binding` can also specify a
4845 # `condition`, which is a logical expression that allows access to a resource
4846 # only if the expression evaluates to `true`. A condition can add constraints
4847 # based on attributes of the request, the resource, or both. To learn which
4848 # resources support conditions in their IAM policies, see the
4849 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
4850 #
4851 # **JSON example:**
4852 #
4853 # ```
4854 # {
4855 # &quot;bindings&quot;: [
4856 # {
4857 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
4858 # &quot;members&quot;: [
4859 # &quot;user:[email protected]&quot;,
4860 # &quot;group:[email protected]&quot;,
4861 # &quot;domain:google.com&quot;,
4862 # &quot;serviceAccount:[email protected]&quot;
4863 # ]
4864 # },
4865 # {
4866 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
4867 # &quot;members&quot;: [
4868 # &quot;user:[email protected]&quot;
4869 # ],
4870 # &quot;condition&quot;: {
4871 # &quot;title&quot;: &quot;expirable access&quot;,
4872 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
4873 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
4874 # }
4875 # }
4876 # ],
4877 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
4878 # &quot;version&quot;: 3
4879 # }
4880 # ```
4881 #
4882 # **YAML example:**
4883 #
4884 # ```
4885 # bindings:
4886 # - members:
4887 # - user:[email protected]
4888 # - group:[email protected]
4889 # - domain:google.com
4890 # - serviceAccount:[email protected]
4891 # role: roles/resourcemanager.organizationAdmin
4892 # - members:
4893 # - user:[email protected]
4894 # role: roles/resourcemanager.organizationViewer
4895 # condition:
4896 # title: expirable access
4897 # description: Does not grant access after Sep 2020
4898 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
4899 # etag: BwWWja0YfJA=
4900 # version: 3
4901 # ```
4902 #
4903 # For a description of IAM and its features, see the
4904 # [IAM documentation](https://cloud.google.com/iam/docs/).
4905 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
4906 { # Specifies the audit configuration for a service.
4907 # The configuration determines which permission types are logged, and what
4908 # identities, if any, are exempted from logging.
4909 # An AuditConfig must have one or more AuditLogConfigs.
4910 #
4911 # If there are AuditConfigs for both `allServices` and a specific service,
4912 # the union of the two AuditConfigs is used for that service: the log_types
4913 # specified in each AuditConfig are enabled, and the exempted_members in each
4914 # AuditLogConfig are exempted.
4915 #
4916 # Example Policy with multiple AuditConfigs:
4917 #
4918 # {
4919 # &quot;audit_configs&quot;: [
4920 # {
4921 # &quot;service&quot;: &quot;allServices&quot;,
4922 # &quot;audit_log_configs&quot;: [
4923 # {
4924 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
4925 # &quot;exempted_members&quot;: [
4926 # &quot;user:[email protected]&quot;
4927 # ]
4928 # },
4929 # {
4930 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
4931 # },
4932 # {
4933 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
4934 # }
4935 # ]
4936 # },
4937 # {
4938 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
4939 # &quot;audit_log_configs&quot;: [
4940 # {
4941 # &quot;log_type&quot;: &quot;DATA_READ&quot;
4942 # },
4943 # {
4944 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
4945 # &quot;exempted_members&quot;: [
4946 # &quot;user:[email protected]&quot;
4947 # ]
4948 # }
4949 # ]
4950 # }
4951 # ]
4952 # }
4953 #
4954 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
4955 # logging. It also exempts `[email protected]` from DATA_READ logging, and
4956 # `[email protected]` from DATA_WRITE logging.
4957 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
4958 { # Provides the configuration for logging a type of permissions.
4959 # Example:
4960 #
4961 # {
4962 # &quot;audit_log_configs&quot;: [
4963 # {
4964 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
4965 # &quot;exempted_members&quot;: [
4966 # &quot;user:[email protected]&quot;
4967 # ]
4968 # },
4969 # {
4970 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
4971 # }
4972 # ]
4973 # }
4974 #
4975 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
4976 # [email protected] from DATA_READ logging.
4977 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
4978 # permission.
4979 # Follows the same format of Binding.members.
4980 &quot;A String&quot;,
4981 ],
4982 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
4983 },
4984 ],
4985 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
4986 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
4987 # `allServices` is a special value that covers all services.
4988 },
4989 ],
4990 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally,
4991 # may specify a `condition` that determines how and when the `bindings` are
4992 # applied. Each of the `bindings` must contain at least one principal.
4993 #
4994 # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
4995 # of these principals can be Google groups. Each occurrence of a principal
4996 # counts towards these limits. For example, if the `bindings` grant 50
4997 # different roles to `user:[email protected]`, and not to any other
4998 # principal, then you can add another 1,450 principals to the `bindings` in
4999 # the `Policy`.
5000 { # Associates `members`, or principals, with a `role`.
5001 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
5002 #
5003 # If the condition evaluates to `true`, then this binding applies to the
5004 # current request.
5005 #
5006 # If the condition evaluates to `false`, then this binding does not apply to
5007 # the current request. However, a different role binding might grant the same
5008 # role to one or more of the principals in this binding.
5009 #
5010 # To learn which resources support conditions in their IAM policies, see the
5011 # [IAM
5012 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
5013 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
5014 # are documented at https://github.com/google/cel-spec.
5015 #
5016 # Example (Comparison):
5017 #
5018 # title: &quot;Summary size limit&quot;
5019 # description: &quot;Determines if a summary is less than 100 chars&quot;
5020 # expression: &quot;document.summary.size() &lt; 100&quot;
5021 #
5022 # Example (Equality):
5023 #
5024 # title: &quot;Requestor is owner&quot;
5025 # description: &quot;Determines if requestor is the document owner&quot;
5026 # expression: &quot;document.owner == request.auth.claims.email&quot;
5027 #
5028 # Example (Logic):
5029 #
5030 # title: &quot;Public documents&quot;
5031 # description: &quot;Determine whether the document should be publicly visible&quot;
5032 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
5033 #
5034 # Example (Data Manipulation):
5035 #
5036 # title: &quot;Notification string&quot;
5037 # description: &quot;Create a notification string with a timestamp.&quot;
5038 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
5039 #
5040 # The exact variables and functions that may be referenced within an expression
5041 # are determined by the service that evaluates it. See the service
5042 # documentation for additional information.
5043 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
5044 # describes the expression, e.g. when hovered over it in a UI.
5045 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
5046 # syntax.
5047 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
5048 # reporting, e.g. a file name and a position in the file.
5049 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
5050 # its purpose. This can be used e.g. in UIs which allow to enter the
5051 # expression.
5052 },
5053 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
5054 # `members` can have the following values:
5055 #
5056 # * `allUsers`: A special identifier that represents anyone who is
5057 # on the internet; with or without a Google account.
5058 #
5059 # * `allAuthenticatedUsers`: A special identifier that represents anyone
5060 # who is authenticated with a Google account or a service account.
5061 # Does not include identities that come from external identity providers
5062 # (IdPs) through identity federation.
5063 #
5064 # * `user:{emailid}`: An email address that represents a specific Google
5065 # account. For example, `[email protected]` .
5066 #
5067 #
5068 # * `serviceAccount:{emailid}`: An email address that represents a Google
5069 # service account. For example,
5070 # `[email protected]`.
5071 #
5072 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
5073 # identifier for a
5074 # [Kubernetes service
5075 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
5076 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
5077 #
5078 # * `group:{emailid}`: An email address that represents a Google group.
5079 # For example, `[email protected]`.
5080 #
5081 #
5082 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
5083 # users of that domain. For example, `google.com` or `example.com`.
5084 #
5085 #
5086 #
5087 #
5088 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
5089 # A single identity in a workforce identity pool.
5090 #
5091 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
5092 # All workforce identities in a group.
5093 #
5094 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
5095 # All workforce identities with a specific attribute value.
5096 #
5097 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
5098 # All identities in a workforce identity pool.
5099 #
5100 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
5101 # A single identity in a workload identity pool.
5102 #
5103 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
5104 # A workload identity pool group.
5105 #
5106 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
5107 # All identities in a workload identity pool with a certain attribute.
5108 #
5109 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
5110 # All identities in a workload identity pool.
5111 #
5112 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
5113 # identifier) representing a user that has been recently deleted. For
5114 # example, `[email protected]?uid=123456789012345678901`. If the user is
5115 # recovered, this value reverts to `user:{emailid}` and the recovered user
5116 # retains the role in the binding.
5117 #
5118 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
5119 # unique identifier) representing a service account that has been recently
5120 # deleted. For example,
5121 # `[email protected]?uid=123456789012345678901`.
5122 # If the service account is undeleted, this value reverts to
5123 # `serviceAccount:{emailid}` and the undeleted service account retains the
5124 # role in the binding.
5125 #
5126 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
5127 # identifier) representing a Google group that has been recently
5128 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
5129 # the group is recovered, this value reverts to `group:{emailid}` and the
5130 # recovered group retains the role in the binding.
5131 #
5132 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
5133 # Deleted single identity in a workforce identity pool. For example,
5134 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
5135 &quot;A String&quot;,
5136 ],
5137 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
5138 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
5139 #
5140 # For an overview of the IAM roles and permissions, see the
5141 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
5142 # a list of the available pre-defined roles, see
5143 # [here](https://cloud.google.com/iam/docs/understanding-roles).
5144 },
5145 ],
5146 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
5147 # prevent simultaneous updates of a policy from overwriting each other.
5148 # It is strongly suggested that systems make use of the `etag` in the
5149 # read-modify-write cycle to perform policy updates in order to avoid race
5150 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
5151 # systems are expected to put that etag in the request to `setIamPolicy` to
5152 # ensure that their change will be applied to the same version of the policy.
5153 #
5154 # **Important:** If you use IAM Conditions, you must include the `etag` field
5155 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
5156 # you to overwrite a version `3` policy with a version `1` policy, and all of
5157 # the conditions in the version `3` policy are lost.
5158 &quot;version&quot;: 42, # Specifies the format of the policy.
5159 #
5160 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
5161 # are rejected.
5162 #
5163 # Any operation that affects conditional role bindings must specify version
5164 # `3`. This requirement applies to the following operations:
5165 #
5166 # * Getting a policy that includes a conditional role binding
5167 # * Adding a conditional role binding to a policy
5168 # * Changing a conditional role binding in a policy
5169 # * Removing any role binding, with or without a condition, from a policy
5170 # that includes conditions
5171 #
5172 # **Important:** If you use IAM Conditions, you must include the `etag` field
5173 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
5174 # you to overwrite a version `3` policy with a version `1` policy, and all of
5175 # the conditions in the version `3` policy are lost.
5176 #
5177 # If a policy does not include any conditions, operations on that policy may
5178 # specify any valid version or leave the field unset.
5179 #
5180 # To learn which resources support conditions in their IAM policies, see the
5181 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
5182 },
5183 }
5184
5185 x__xgafv: string, V1 error format.
5186 Allowed values
5187 1 - v1 error format
5188 2 - v2 error format
5189
5190 Returns:
5191 An object of the form:
5192
5193 { # An Identity and Access Management (IAM) policy, which specifies access
5194 # controls for Google Cloud resources.
5195 #
5196 #
5197 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
5198 # `members`, or principals, to a single `role`. Principals can be user
5199 # accounts, service accounts, Google groups, and domains (such as G Suite). A
5200 # `role` is a named list of permissions; each `role` can be an IAM predefined
5201 # role or a user-created custom role.
5202 #
5203 # For some types of Google Cloud resources, a `binding` can also specify a
5204 # `condition`, which is a logical expression that allows access to a resource
5205 # only if the expression evaluates to `true`. A condition can add constraints
5206 # based on attributes of the request, the resource, or both. To learn which
5207 # resources support conditions in their IAM policies, see the
5208 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
5209 #
5210 # **JSON example:**
5211 #
5212 # ```
5213 # {
5214 # &quot;bindings&quot;: [
5215 # {
5216 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
5217 # &quot;members&quot;: [
5218 # &quot;user:[email protected]&quot;,
5219 # &quot;group:[email protected]&quot;,
5220 # &quot;domain:google.com&quot;,
5221 # &quot;serviceAccount:[email protected]&quot;
5222 # ]
5223 # },
5224 # {
5225 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
5226 # &quot;members&quot;: [
5227 # &quot;user:[email protected]&quot;
5228 # ],
5229 # &quot;condition&quot;: {
5230 # &quot;title&quot;: &quot;expirable access&quot;,
5231 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
5232 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
5233 # }
5234 # }
5235 # ],
5236 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
5237 # &quot;version&quot;: 3
5238 # }
5239 # ```
5240 #
5241 # **YAML example:**
5242 #
5243 # ```
5244 # bindings:
5245 # - members:
5246 # - user:[email protected]
5247 # - group:[email protected]
5248 # - domain:google.com
5249 # - serviceAccount:[email protected]
5250 # role: roles/resourcemanager.organizationAdmin
5251 # - members:
5252 # - user:[email protected]
5253 # role: roles/resourcemanager.organizationViewer
5254 # condition:
5255 # title: expirable access
5256 # description: Does not grant access after Sep 2020
5257 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
5258 # etag: BwWWja0YfJA=
5259 # version: 3
5260 # ```
5261 #
5262 # For a description of IAM and its features, see the
5263 # [IAM documentation](https://cloud.google.com/iam/docs/).
5264 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
5265 { # Specifies the audit configuration for a service.
5266 # The configuration determines which permission types are logged, and what
5267 # identities, if any, are exempted from logging.
5268 # An AuditConfig must have one or more AuditLogConfigs.
5269 #
5270 # If there are AuditConfigs for both `allServices` and a specific service,
5271 # the union of the two AuditConfigs is used for that service: the log_types
5272 # specified in each AuditConfig are enabled, and the exempted_members in each
5273 # AuditLogConfig are exempted.
5274 #
5275 # Example Policy with multiple AuditConfigs:
5276 #
5277 # {
5278 # &quot;audit_configs&quot;: [
5279 # {
5280 # &quot;service&quot;: &quot;allServices&quot;,
5281 # &quot;audit_log_configs&quot;: [
5282 # {
5283 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
5284 # &quot;exempted_members&quot;: [
5285 # &quot;user:[email protected]&quot;
5286 # ]
5287 # },
5288 # {
5289 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
5290 # },
5291 # {
5292 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
5293 # }
5294 # ]
5295 # },
5296 # {
5297 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
5298 # &quot;audit_log_configs&quot;: [
5299 # {
5300 # &quot;log_type&quot;: &quot;DATA_READ&quot;
5301 # },
5302 # {
5303 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
5304 # &quot;exempted_members&quot;: [
5305 # &quot;user:[email protected]&quot;
5306 # ]
5307 # }
5308 # ]
5309 # }
5310 # ]
5311 # }
5312 #
5313 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
5314 # logging. It also exempts `[email protected]` from DATA_READ logging, and
5315 # `[email protected]` from DATA_WRITE logging.
5316 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
5317 { # Provides the configuration for logging a type of permissions.
5318 # Example:
5319 #
5320 # {
5321 # &quot;audit_log_configs&quot;: [
5322 # {
5323 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
5324 # &quot;exempted_members&quot;: [
5325 # &quot;user:[email protected]&quot;
5326 # ]
5327 # },
5328 # {
5329 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
5330 # }
5331 # ]
5332 # }
5333 #
5334 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
5335 # [email protected] from DATA_READ logging.
5336 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
5337 # permission.
5338 # Follows the same format of Binding.members.
5339 &quot;A String&quot;,
5340 ],
5341 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
5342 },
5343 ],
5344 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
5345 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
5346 # `allServices` is a special value that covers all services.
5347 },
5348 ],
5349 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally,
5350 # may specify a `condition` that determines how and when the `bindings` are
5351 # applied. Each of the `bindings` must contain at least one principal.
5352 #
5353 # The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
5354 # of these principals can be Google groups. Each occurrence of a principal
5355 # counts towards these limits. For example, if the `bindings` grant 50
5356 # different roles to `user:[email protected]`, and not to any other
5357 # principal, then you can add another 1,450 principals to the `bindings` in
5358 # the `Policy`.
5359 { # Associates `members`, or principals, with a `role`.
5360 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
5361 #
5362 # If the condition evaluates to `true`, then this binding applies to the
5363 # current request.
5364 #
5365 # If the condition evaluates to `false`, then this binding does not apply to
5366 # the current request. However, a different role binding might grant the same
5367 # role to one or more of the principals in this binding.
5368 #
5369 # To learn which resources support conditions in their IAM policies, see the
5370 # [IAM
5371 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
5372 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
5373 # are documented at https://github.com/google/cel-spec.
5374 #
5375 # Example (Comparison):
5376 #
5377 # title: &quot;Summary size limit&quot;
5378 # description: &quot;Determines if a summary is less than 100 chars&quot;
5379 # expression: &quot;document.summary.size() &lt; 100&quot;
5380 #
5381 # Example (Equality):
5382 #
5383 # title: &quot;Requestor is owner&quot;
5384 # description: &quot;Determines if requestor is the document owner&quot;
5385 # expression: &quot;document.owner == request.auth.claims.email&quot;
5386 #
5387 # Example (Logic):
5388 #
5389 # title: &quot;Public documents&quot;
5390 # description: &quot;Determine whether the document should be publicly visible&quot;
5391 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
5392 #
5393 # Example (Data Manipulation):
5394 #
5395 # title: &quot;Notification string&quot;
5396 # description: &quot;Create a notification string with a timestamp.&quot;
5397 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
5398 #
5399 # The exact variables and functions that may be referenced within an expression
5400 # are determined by the service that evaluates it. See the service
5401 # documentation for additional information.
5402 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
5403 # describes the expression, e.g. when hovered over it in a UI.
5404 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
5405 # syntax.
5406 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
5407 # reporting, e.g. a file name and a position in the file.
5408 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
5409 # its purpose. This can be used e.g. in UIs which allow to enter the
5410 # expression.
5411 },
5412 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource.
5413 # `members` can have the following values:
5414 #
5415 # * `allUsers`: A special identifier that represents anyone who is
5416 # on the internet; with or without a Google account.
5417 #
5418 # * `allAuthenticatedUsers`: A special identifier that represents anyone
5419 # who is authenticated with a Google account or a service account.
5420 # Does not include identities that come from external identity providers
5421 # (IdPs) through identity federation.
5422 #
5423 # * `user:{emailid}`: An email address that represents a specific Google
5424 # account. For example, `[email protected]` .
5425 #
5426 #
5427 # * `serviceAccount:{emailid}`: An email address that represents a Google
5428 # service account. For example,
5429 # `[email protected]`.
5430 #
5431 # * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
5432 # identifier for a
5433 # [Kubernetes service
5434 # account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
5435 # For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`.
5436 #
5437 # * `group:{emailid}`: An email address that represents a Google group.
5438 # For example, `[email protected]`.
5439 #
5440 #
5441 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
5442 # users of that domain. For example, `google.com` or `example.com`.
5443 #
5444 #
5445 #
5446 #
5447 # * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
5448 # A single identity in a workforce identity pool.
5449 #
5450 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
5451 # All workforce identities in a group.
5452 #
5453 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
5454 # All workforce identities with a specific attribute value.
5455 #
5456 # * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`:
5457 # All identities in a workforce identity pool.
5458 #
5459 # * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
5460 # A single identity in a workload identity pool.
5461 #
5462 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
5463 # A workload identity pool group.
5464 #
5465 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
5466 # All identities in a workload identity pool with a certain attribute.
5467 #
5468 # * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`:
5469 # All identities in a workload identity pool.
5470 #
5471 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
5472 # identifier) representing a user that has been recently deleted. For
5473 # example, `[email protected]?uid=123456789012345678901`. If the user is
5474 # recovered, this value reverts to `user:{emailid}` and the recovered user
5475 # retains the role in the binding.
5476 #
5477 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
5478 # unique identifier) representing a service account that has been recently
5479 # deleted. For example,
5480 # `[email protected]?uid=123456789012345678901`.
5481 # If the service account is undeleted, this value reverts to
5482 # `serviceAccount:{emailid}` and the undeleted service account retains the
5483 # role in the binding.
5484 #
5485 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
5486 # identifier) representing a Google group that has been recently
5487 # deleted. For example, `[email protected]?uid=123456789012345678901`. If
5488 # the group is recovered, this value reverts to `group:{emailid}` and the
5489 # recovered group retains the role in the binding.
5490 #
5491 # * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
5492 # Deleted single identity in a workforce identity pool. For example,
5493 # `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
5494 &quot;A String&quot;,
5495 ],
5496 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals.
5497 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
5498 #
5499 # For an overview of the IAM roles and permissions, see the
5500 # [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For
5501 # a list of the available pre-defined roles, see
5502 # [here](https://cloud.google.com/iam/docs/understanding-roles).
5503 },
5504 ],
5505 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
5506 # prevent simultaneous updates of a policy from overwriting each other.
5507 # It is strongly suggested that systems make use of the `etag` in the
5508 # read-modify-write cycle to perform policy updates in order to avoid race
5509 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
5510 # systems are expected to put that etag in the request to `setIamPolicy` to
5511 # ensure that their change will be applied to the same version of the policy.
5512 #
5513 # **Important:** If you use IAM Conditions, you must include the `etag` field
5514 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
5515 # you to overwrite a version `3` policy with a version `1` policy, and all of
5516 # the conditions in the version `3` policy are lost.
5517 &quot;version&quot;: 42, # Specifies the format of the policy.
5518 #
5519 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
5520 # are rejected.
5521 #
5522 # Any operation that affects conditional role bindings must specify version
5523 # `3`. This requirement applies to the following operations:
5524 #
5525 # * Getting a policy that includes a conditional role binding
5526 # * Adding a conditional role binding to a policy
5527 # * Changing a conditional role binding in a policy
5528 # * Removing any role binding, with or without a condition, from a policy
5529 # that includes conditions
5530 #
5531 # **Important:** If you use IAM Conditions, you must include the `etag` field
5532 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
5533 # you to overwrite a version `3` policy with a version `1` policy, and all of
5534 # the conditions in the version `3` policy are lost.
5535 #
5536 # If a policy does not include any conditions, operations on that policy may
5537 # specify any valid version or leave the field unset.
5538 #
5539 # To learn which resources support conditions in their IAM policies, see the
5540 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
5541 }</pre>
5542 </div>
5543
5544 <div class="method">
5545 <code class="details" id="setLabels">setLabels(project, region, resource, body=None, requestId=None, x__xgafv=None)</code>
5546 <pre>Sets the labels on the target regional disk.
5547
5548 Args:
5549 project: string, Project ID for this request. (required)
5550 region: string, The region for this request. (required)
5551 resource: string, Name or id of the resource for this request. (required)
5552 body: object, The request body.
5553 The object takes the form of:
5554
5555 {
5556 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the previous set of labels for this resource,
5557 # used to detect conflicts. The fingerprint is initially generated by Compute
5558 # Engine and changes after every request to modify or update labels. You must
5559 # always provide an up-to-date fingerprint hash in order to update or change
5560 # labels. Make a get() request to the resource to get the latest
5561 # fingerprint.
5562 &quot;labels&quot;: { # The labels to set for this resource.
5563 &quot;a_key&quot;: &quot;A String&quot;,
5564 },
5565 }
5566
5567 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
5568 that if you must retry your request, the server will know to ignore the
5569 request if it has already been completed.
5570
5571 For example, consider a situation where you make an initial request and
5572 the request times out. If you make the request again with the same
5573 request ID, the server can check if original operation with the same
5574 request ID was received, and if so, will ignore the second request. This
5575 prevents clients from accidentally creating duplicate commitments.
5576
5577 The request ID must be
5578 a valid UUID with the exception that zero UUID is not supported
5579 (00000000-0000-0000-0000-000000000000).
5580 x__xgafv: string, V1 error format.
5581 Allowed values
5582 1 - v1 error format
5583 2 - v2 error format
5584
5585 Returns:
5586 An object of the form:
5587
5588 { # Represents an Operation resource.
5589 #
5590 # Google Compute Engine has three Operation resources:
5591 #
5592 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
5593 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
5594 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
5595 #
5596 # You can use an operation resource to manage asynchronous API requests.
5597 # For more information, readHandling
5598 # API responses.
5599 #
5600 # Operations can be global, regional or zonal.
5601 #
5602 # - For global operations, use the `globalOperations`
5603 # resource.
5604 # - For regional operations, use the
5605 # `regionOperations` resource.
5606 # - For zonal operations, use
5607 # the `zoneOperations` resource.
5608 #
5609 #
5610 #
5611 # For more information, read
5612 # Global, Regional, and Zonal Resources.
5613 #
5614 # Note that completed Operation resources have a limited
5615 # retention period.
5616 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
5617 # Not present otherwise.
5618 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
5619 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
5620 # set when the operation is created.
5621 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
5622 # text format.
5623 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
5624 # this field will be populated.
5625 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
5626 # operation.
5627 {
5628 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
5629 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
5630 # details. There is a set of defined message types to use for providing
5631 # details.The syntax depends on the error code. For example,
5632 # QuotaExceededInfo will have details when the error code is
5633 # QUOTA_EXCEEDED.
5634 {
5635 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
5636 #
5637 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
5638 # is not enabled:
5639 #
5640 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
5641 # &quot;domain&quot;: &quot;googleapis.com&quot;
5642 # &quot;metadata&quot;: {
5643 # &quot;resource&quot;: &quot;projects/123&quot;,
5644 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
5645 # }
5646 # }
5647 #
5648 # This response indicates that the pubsub.googleapis.com API is not enabled.
5649 #
5650 # Example of an error that is returned when attempting to create a Spanner
5651 # instance in a region that is out of stock:
5652 #
5653 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
5654 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
5655 # &quot;metadata&quot;: {
5656 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
5657 # }
5658 # }
5659 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
5660 # is typically the registered service name of the tool or product that
5661 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
5662 # generated by some common infrastructure, the error domain must be a
5663 # globally unique value that identifies the infrastructure. For Google API
5664 # infrastructure, the error domain is &quot;googleapis.com&quot;.
5665 &quot;metadatas&quot;: { # Additional structured details about this error.
5666 #
5667 # Keys must match a regular expression of `a-z+` but should
5668 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
5669 # length. When identifying the current value of an exceeded limit, the units
5670 # should be contained in the key, not the value. For example, rather than
5671 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
5672 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
5673 # instances that can be created in a single (batch) request.
5674 &quot;a_key&quot;: &quot;A String&quot;,
5675 },
5676 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
5677 # proximate cause of the error. Error reasons are unique within a particular
5678 # domain of errors. This should be at most 63 characters and match a
5679 # regular expression of `A-Z+[A-Z0-9]`, which represents
5680 # UPPER_SNAKE_CASE.
5681 },
5682 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
5683 #
5684 # For example, if a quota check failed with an error indicating the calling
5685 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
5686 # directly to the right place in the developer console to flip the bit.
5687 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
5688 { # Describes a URL link.
5689 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
5690 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
5691 },
5692 ],
5693 },
5694 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
5695 # which can be attached to an RPC error.
5696 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
5697 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
5698 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
5699 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
5700 },
5701 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
5702 &quot;dimensions&quot;: { # The map holding related quota dimensions.
5703 &quot;a_key&quot;: &quot;A String&quot;,
5704 },
5705 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
5706 # type or metric.
5707 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
5708 # or metric.
5709 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
5710 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
5711 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
5712 },
5713 },
5714 ],
5715 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
5716 # This property is optional.
5717 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
5718 },
5719 ],
5720 },
5721 &quot;getVersionOperationMetadata&quot;: {
5722 &quot;inlineSbomInfo&quot;: {
5723 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
5724 # appropriate identifiers.
5725 &quot;a_key&quot;: &quot;A String&quot;,
5726 },
5727 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
5728 # identifiers.
5729 &quot;a_key&quot;: &quot;A String&quot;,
5730 },
5731 },
5732 },
5733 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
5734 # message that was returned, such as `NOT FOUND`.
5735 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
5736 # status code that was returned. For example, a `404` means the
5737 # resource was not found.
5738 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
5739 # defined by the server.
5740 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
5741 # This value is inRFC3339
5742 # text format.
5743 &quot;instancesBulkInsertOperationMetadata&quot;: {
5744 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
5745 # Example key: zones/us-central1-a
5746 &quot;a_key&quot;: {
5747 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
5748 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
5749 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
5750 # error.
5751 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
5752 # if the flow is rolling forward or rolling back.
5753 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
5754 },
5755 },
5756 },
5757 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
5758 # Operation resources.
5759 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
5760 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
5761 # group of operations results from a `bulkInsert` API request.
5762 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
5763 # `update`, or `delete`, and so on.
5764 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
5765 # There is no requirement that this be linear or support any granularity of
5766 # operations. This should not be used to guess when the operation will be
5767 # complete. This number should monotonically increase as the operation
5768 # progresses.
5769 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
5770 # applicable when performing regional operations.
5771 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
5772 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
5773 # this field will contain information on all underlying zonal actions and
5774 # their state.
5775 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
5776 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
5777 # Example key: zones/us-central1-a
5778 &quot;a_key&quot;: {
5779 &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
5780 # populated.
5781 # different programming environments, including REST APIs and RPC APIs. It is
5782 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
5783 # three pieces of data: error code, error message, and error details.
5784 #
5785 # You can find out more about this error model and how to work with it in the
5786 # [API Design Guide](https://cloud.google.com/apis/design/errors).
5787 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
5788 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
5789 # message types for APIs to use.
5790 {
5791 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
5792 },
5793 ],
5794 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
5795 # user-facing error message should be localized and sent in the
5796 # google.rpc.Status.details field, or localized by the client.
5797 },
5798 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
5799 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
5800 },
5801 },
5802 },
5803 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
5804 # This value is inRFC3339
5805 # text format.
5806 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
5807 # following:
5808 # `PENDING`, `RUNNING`, or `DONE`.
5809 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
5810 # operation.
5811 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
5812 # of the target resource.
5813 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
5814 # operations related to creating a snapshot, this points to the disk
5815 # that the snapshot was created from.
5816 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
5817 # `[email protected]` or
5818 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
5819 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
5820 # operation, this field will be populated.
5821 {
5822 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
5823 # Engine returns NO_RESULTS_ON_PAGE if there
5824 # are no results in the response.
5825 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
5826 # value format. For example:
5827 #
5828 # &quot;data&quot;: [
5829 # {
5830 # &quot;key&quot;: &quot;scope&quot;,
5831 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
5832 # }
5833 {
5834 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
5835 # returned. For example, for warnings where there are no results in a list
5836 # request for a particular zone, this key might be scope and
5837 # the key value might be the zone name. Other examples might be a key
5838 # indicating a deprecated resource and a suggested replacement, or a
5839 # warning about invalid network settings (for example, if an instance
5840 # attempts to perform IP forwarding but is not enabled for IP forwarding).
5841 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
5842 },
5843 ],
5844 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
5845 },
5846 ],
5847 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
5848 # applicable when performing per-zone operations.
5849 }</pre>
5850 </div>
5851
5852 <div class="method">
5853 <code class="details" id="startAsyncReplication">startAsyncReplication(project, region, disk, body=None, requestId=None, x__xgafv=None)</code>
5854 <pre>Starts asynchronous replication.
5855 Must be invoked on the primary disk.
5856
5857 Args:
5858 project: string, Project ID for this request. (required)
5859 region: string, The name of the region for this request. (required)
5860 disk: string, The name of the persistent disk. (required)
5861 body: object, The request body.
5862 The object takes the form of:
5863
5864 {
5865 &quot;asyncSecondaryDisk&quot;: &quot;A String&quot;, # The secondary disk to start asynchronous replication to.
5866 # You can provide this as a partial or full URL to the resource. For example,
5867 # the following are valid values:
5868 #
5869 #
5870 # -
5871 # https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
5872 #
5873 # -
5874 # https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk
5875 #
5876 # -
5877 # projects/project/zones/zone/disks/disk
5878 #
5879 # -
5880 # projects/project/regions/region/disks/disk
5881 #
5882 # -
5883 # zones/zone/disks/disk
5884 #
5885 # -
5886 # regions/region/disks/disk
5887 }
5888
5889 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
5890 that if you must retry your request, the server will know to ignore the
5891 request if it has already been completed.
5892
5893 For example, consider a situation where you make an initial request and
5894 the request times out. If you make the request again with the same
5895 request ID, the server can check if original operation with the same
5896 request ID was received, and if so, will ignore the second request. This
5897 prevents clients from accidentally creating duplicate commitments.
5898
5899 The request ID must be
5900 a valid UUID with the exception that zero UUID is not supported
5901 (00000000-0000-0000-0000-000000000000).
5902 x__xgafv: string, V1 error format.
5903 Allowed values
5904 1 - v1 error format
5905 2 - v2 error format
5906
5907 Returns:
5908 An object of the form:
5909
5910 { # Represents an Operation resource.
5911 #
5912 # Google Compute Engine has three Operation resources:
5913 #
5914 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
5915 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
5916 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
5917 #
5918 # You can use an operation resource to manage asynchronous API requests.
5919 # For more information, readHandling
5920 # API responses.
5921 #
5922 # Operations can be global, regional or zonal.
5923 #
5924 # - For global operations, use the `globalOperations`
5925 # resource.
5926 # - For regional operations, use the
5927 # `regionOperations` resource.
5928 # - For zonal operations, use
5929 # the `zoneOperations` resource.
5930 #
5931 #
5932 #
5933 # For more information, read
5934 # Global, Regional, and Zonal Resources.
5935 #
5936 # Note that completed Operation resources have a limited
5937 # retention period.
5938 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
5939 # Not present otherwise.
5940 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
5941 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
5942 # set when the operation is created.
5943 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
5944 # text format.
5945 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
5946 # this field will be populated.
5947 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
5948 # operation.
5949 {
5950 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
5951 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
5952 # details. There is a set of defined message types to use for providing
5953 # details.The syntax depends on the error code. For example,
5954 # QuotaExceededInfo will have details when the error code is
5955 # QUOTA_EXCEEDED.
5956 {
5957 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
5958 #
5959 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
5960 # is not enabled:
5961 #
5962 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
5963 # &quot;domain&quot;: &quot;googleapis.com&quot;
5964 # &quot;metadata&quot;: {
5965 # &quot;resource&quot;: &quot;projects/123&quot;,
5966 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
5967 # }
5968 # }
5969 #
5970 # This response indicates that the pubsub.googleapis.com API is not enabled.
5971 #
5972 # Example of an error that is returned when attempting to create a Spanner
5973 # instance in a region that is out of stock:
5974 #
5975 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
5976 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
5977 # &quot;metadata&quot;: {
5978 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
5979 # }
5980 # }
5981 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
5982 # is typically the registered service name of the tool or product that
5983 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
5984 # generated by some common infrastructure, the error domain must be a
5985 # globally unique value that identifies the infrastructure. For Google API
5986 # infrastructure, the error domain is &quot;googleapis.com&quot;.
5987 &quot;metadatas&quot;: { # Additional structured details about this error.
5988 #
5989 # Keys must match a regular expression of `a-z+` but should
5990 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
5991 # length. When identifying the current value of an exceeded limit, the units
5992 # should be contained in the key, not the value. For example, rather than
5993 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
5994 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
5995 # instances that can be created in a single (batch) request.
5996 &quot;a_key&quot;: &quot;A String&quot;,
5997 },
5998 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
5999 # proximate cause of the error. Error reasons are unique within a particular
6000 # domain of errors. This should be at most 63 characters and match a
6001 # regular expression of `A-Z+[A-Z0-9]`, which represents
6002 # UPPER_SNAKE_CASE.
6003 },
6004 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
6005 #
6006 # For example, if a quota check failed with an error indicating the calling
6007 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
6008 # directly to the right place in the developer console to flip the bit.
6009 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
6010 { # Describes a URL link.
6011 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
6012 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
6013 },
6014 ],
6015 },
6016 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
6017 # which can be attached to an RPC error.
6018 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
6019 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
6020 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
6021 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
6022 },
6023 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
6024 &quot;dimensions&quot;: { # The map holding related quota dimensions.
6025 &quot;a_key&quot;: &quot;A String&quot;,
6026 },
6027 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
6028 # type or metric.
6029 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
6030 # or metric.
6031 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
6032 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
6033 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
6034 },
6035 },
6036 ],
6037 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
6038 # This property is optional.
6039 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
6040 },
6041 ],
6042 },
6043 &quot;getVersionOperationMetadata&quot;: {
6044 &quot;inlineSbomInfo&quot;: {
6045 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
6046 # appropriate identifiers.
6047 &quot;a_key&quot;: &quot;A String&quot;,
6048 },
6049 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
6050 # identifiers.
6051 &quot;a_key&quot;: &quot;A String&quot;,
6052 },
6053 },
6054 },
6055 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
6056 # message that was returned, such as `NOT FOUND`.
6057 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
6058 # status code that was returned. For example, a `404` means the
6059 # resource was not found.
6060 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
6061 # defined by the server.
6062 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
6063 # This value is inRFC3339
6064 # text format.
6065 &quot;instancesBulkInsertOperationMetadata&quot;: {
6066 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
6067 # Example key: zones/us-central1-a
6068 &quot;a_key&quot;: {
6069 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
6070 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
6071 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
6072 # error.
6073 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
6074 # if the flow is rolling forward or rolling back.
6075 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
6076 },
6077 },
6078 },
6079 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
6080 # Operation resources.
6081 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
6082 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
6083 # group of operations results from a `bulkInsert` API request.
6084 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
6085 # `update`, or `delete`, and so on.
6086 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
6087 # There is no requirement that this be linear or support any granularity of
6088 # operations. This should not be used to guess when the operation will be
6089 # complete. This number should monotonically increase as the operation
6090 # progresses.
6091 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
6092 # applicable when performing regional operations.
6093 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
6094 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
6095 # this field will contain information on all underlying zonal actions and
6096 # their state.
6097 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
6098 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
6099 # Example key: zones/us-central1-a
6100 &quot;a_key&quot;: {
6101 &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
6102 # populated.
6103 # different programming environments, including REST APIs and RPC APIs. It is
6104 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
6105 # three pieces of data: error code, error message, and error details.
6106 #
6107 # You can find out more about this error model and how to work with it in the
6108 # [API Design Guide](https://cloud.google.com/apis/design/errors).
6109 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
6110 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
6111 # message types for APIs to use.
6112 {
6113 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
6114 },
6115 ],
6116 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
6117 # user-facing error message should be localized and sent in the
6118 # google.rpc.Status.details field, or localized by the client.
6119 },
6120 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
6121 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
6122 },
6123 },
6124 },
6125 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
6126 # This value is inRFC3339
6127 # text format.
6128 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
6129 # following:
6130 # `PENDING`, `RUNNING`, or `DONE`.
6131 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
6132 # operation.
6133 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
6134 # of the target resource.
6135 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
6136 # operations related to creating a snapshot, this points to the disk
6137 # that the snapshot was created from.
6138 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
6139 # `[email protected]` or
6140 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
6141 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
6142 # operation, this field will be populated.
6143 {
6144 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
6145 # Engine returns NO_RESULTS_ON_PAGE if there
6146 # are no results in the response.
6147 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
6148 # value format. For example:
6149 #
6150 # &quot;data&quot;: [
6151 # {
6152 # &quot;key&quot;: &quot;scope&quot;,
6153 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
6154 # }
6155 {
6156 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
6157 # returned. For example, for warnings where there are no results in a list
6158 # request for a particular zone, this key might be scope and
6159 # the key value might be the zone name. Other examples might be a key
6160 # indicating a deprecated resource and a suggested replacement, or a
6161 # warning about invalid network settings (for example, if an instance
6162 # attempts to perform IP forwarding but is not enabled for IP forwarding).
6163 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
6164 },
6165 ],
6166 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
6167 },
6168 ],
6169 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
6170 # applicable when performing per-zone operations.
6171 }</pre>
6172 </div>
6173
6174 <div class="method">
6175 <code class="details" id="stopAsyncReplication">stopAsyncReplication(project, region, disk, requestId=None, x__xgafv=None)</code>
6176 <pre>Stops asynchronous replication.
6177 Can be invoked either on the primary or on the secondary disk.
6178
6179 Args:
6180 project: string, Project ID for this request. (required)
6181 region: string, The name of the region for this request. (required)
6182 disk: string, The name of the persistent disk. (required)
6183 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
6184 that if you must retry your request, the server will know to ignore the
6185 request if it has already been completed.
6186
6187 For example, consider a situation where you make an initial request and
6188 the request times out. If you make the request again with the same
6189 request ID, the server can check if original operation with the same
6190 request ID was received, and if so, will ignore the second request. This
6191 prevents clients from accidentally creating duplicate commitments.
6192
6193 The request ID must be
6194 a valid UUID with the exception that zero UUID is not supported
6195 (00000000-0000-0000-0000-000000000000).
6196 x__xgafv: string, V1 error format.
6197 Allowed values
6198 1 - v1 error format
6199 2 - v2 error format
6200
6201 Returns:
6202 An object of the form:
6203
6204 { # Represents an Operation resource.
6205 #
6206 # Google Compute Engine has three Operation resources:
6207 #
6208 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
6209 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
6210 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
6211 #
6212 # You can use an operation resource to manage asynchronous API requests.
6213 # For more information, readHandling
6214 # API responses.
6215 #
6216 # Operations can be global, regional or zonal.
6217 #
6218 # - For global operations, use the `globalOperations`
6219 # resource.
6220 # - For regional operations, use the
6221 # `regionOperations` resource.
6222 # - For zonal operations, use
6223 # the `zoneOperations` resource.
6224 #
6225 #
6226 #
6227 # For more information, read
6228 # Global, Regional, and Zonal Resources.
6229 #
6230 # Note that completed Operation resources have a limited
6231 # retention period.
6232 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
6233 # Not present otherwise.
6234 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
6235 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
6236 # set when the operation is created.
6237 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
6238 # text format.
6239 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
6240 # this field will be populated.
6241 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
6242 # operation.
6243 {
6244 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
6245 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
6246 # details. There is a set of defined message types to use for providing
6247 # details.The syntax depends on the error code. For example,
6248 # QuotaExceededInfo will have details when the error code is
6249 # QUOTA_EXCEEDED.
6250 {
6251 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
6252 #
6253 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
6254 # is not enabled:
6255 #
6256 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
6257 # &quot;domain&quot;: &quot;googleapis.com&quot;
6258 # &quot;metadata&quot;: {
6259 # &quot;resource&quot;: &quot;projects/123&quot;,
6260 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
6261 # }
6262 # }
6263 #
6264 # This response indicates that the pubsub.googleapis.com API is not enabled.
6265 #
6266 # Example of an error that is returned when attempting to create a Spanner
6267 # instance in a region that is out of stock:
6268 #
6269 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
6270 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
6271 # &quot;metadata&quot;: {
6272 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
6273 # }
6274 # }
6275 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
6276 # is typically the registered service name of the tool or product that
6277 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
6278 # generated by some common infrastructure, the error domain must be a
6279 # globally unique value that identifies the infrastructure. For Google API
6280 # infrastructure, the error domain is &quot;googleapis.com&quot;.
6281 &quot;metadatas&quot;: { # Additional structured details about this error.
6282 #
6283 # Keys must match a regular expression of `a-z+` but should
6284 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
6285 # length. When identifying the current value of an exceeded limit, the units
6286 # should be contained in the key, not the value. For example, rather than
6287 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
6288 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
6289 # instances that can be created in a single (batch) request.
6290 &quot;a_key&quot;: &quot;A String&quot;,
6291 },
6292 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
6293 # proximate cause of the error. Error reasons are unique within a particular
6294 # domain of errors. This should be at most 63 characters and match a
6295 # regular expression of `A-Z+[A-Z0-9]`, which represents
6296 # UPPER_SNAKE_CASE.
6297 },
6298 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
6299 #
6300 # For example, if a quota check failed with an error indicating the calling
6301 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
6302 # directly to the right place in the developer console to flip the bit.
6303 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
6304 { # Describes a URL link.
6305 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
6306 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
6307 },
6308 ],
6309 },
6310 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
6311 # which can be attached to an RPC error.
6312 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
6313 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
6314 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
6315 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
6316 },
6317 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
6318 &quot;dimensions&quot;: { # The map holding related quota dimensions.
6319 &quot;a_key&quot;: &quot;A String&quot;,
6320 },
6321 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
6322 # type or metric.
6323 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
6324 # or metric.
6325 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
6326 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
6327 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
6328 },
6329 },
6330 ],
6331 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
6332 # This property is optional.
6333 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
6334 },
6335 ],
6336 },
6337 &quot;getVersionOperationMetadata&quot;: {
6338 &quot;inlineSbomInfo&quot;: {
6339 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
6340 # appropriate identifiers.
6341 &quot;a_key&quot;: &quot;A String&quot;,
6342 },
6343 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
6344 # identifiers.
6345 &quot;a_key&quot;: &quot;A String&quot;,
6346 },
6347 },
6348 },
6349 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
6350 # message that was returned, such as `NOT FOUND`.
6351 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
6352 # status code that was returned. For example, a `404` means the
6353 # resource was not found.
6354 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
6355 # defined by the server.
6356 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
6357 # This value is inRFC3339
6358 # text format.
6359 &quot;instancesBulkInsertOperationMetadata&quot;: {
6360 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
6361 # Example key: zones/us-central1-a
6362 &quot;a_key&quot;: {
6363 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
6364 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
6365 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
6366 # error.
6367 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
6368 # if the flow is rolling forward or rolling back.
6369 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
6370 },
6371 },
6372 },
6373 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
6374 # Operation resources.
6375 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
6376 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
6377 # group of operations results from a `bulkInsert` API request.
6378 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
6379 # `update`, or `delete`, and so on.
6380 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
6381 # There is no requirement that this be linear or support any granularity of
6382 # operations. This should not be used to guess when the operation will be
6383 # complete. This number should monotonically increase as the operation
6384 # progresses.
6385 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
6386 # applicable when performing regional operations.
6387 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
6388 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
6389 # this field will contain information on all underlying zonal actions and
6390 # their state.
6391 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
6392 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
6393 # Example key: zones/us-central1-a
6394 &quot;a_key&quot;: {
6395 &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
6396 # populated.
6397 # different programming environments, including REST APIs and RPC APIs. It is
6398 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
6399 # three pieces of data: error code, error message, and error details.
6400 #
6401 # You can find out more about this error model and how to work with it in the
6402 # [API Design Guide](https://cloud.google.com/apis/design/errors).
6403 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
6404 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
6405 # message types for APIs to use.
6406 {
6407 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
6408 },
6409 ],
6410 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
6411 # user-facing error message should be localized and sent in the
6412 # google.rpc.Status.details field, or localized by the client.
6413 },
6414 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
6415 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
6416 },
6417 },
6418 },
6419 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
6420 # This value is inRFC3339
6421 # text format.
6422 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
6423 # following:
6424 # `PENDING`, `RUNNING`, or `DONE`.
6425 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
6426 # operation.
6427 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
6428 # of the target resource.
6429 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
6430 # operations related to creating a snapshot, this points to the disk
6431 # that the snapshot was created from.
6432 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
6433 # `[email protected]` or
6434 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
6435 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
6436 # operation, this field will be populated.
6437 {
6438 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
6439 # Engine returns NO_RESULTS_ON_PAGE if there
6440 # are no results in the response.
6441 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
6442 # value format. For example:
6443 #
6444 # &quot;data&quot;: [
6445 # {
6446 # &quot;key&quot;: &quot;scope&quot;,
6447 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
6448 # }
6449 {
6450 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
6451 # returned. For example, for warnings where there are no results in a list
6452 # request for a particular zone, this key might be scope and
6453 # the key value might be the zone name. Other examples might be a key
6454 # indicating a deprecated resource and a suggested replacement, or a
6455 # warning about invalid network settings (for example, if an instance
6456 # attempts to perform IP forwarding but is not enabled for IP forwarding).
6457 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
6458 },
6459 ],
6460 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
6461 },
6462 ],
6463 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
6464 # applicable when performing per-zone operations.
6465 }</pre>
6466 </div>
6467
6468 <div class="method">
6469 <code class="details" id="stopGroupAsyncReplication">stopGroupAsyncReplication(project, region, body=None, requestId=None, x__xgafv=None)</code>
6470 <pre>Stops asynchronous replication for a consistency group of disks.
6471 Can be invoked either in the primary or secondary scope.
6472
6473 Args:
6474 project: string, Project ID for this request. (required)
6475 region: string, The name of the region for this request. This must be the region of the
6476 primary or secondary disks in the consistency group. (required)
6477 body: object, The request body.
6478 The object takes the form of:
6479
6480 { # A transient resource used in compute.disks.stopGroupAsyncReplication and
6481 # compute.regionDisks.stopGroupAsyncReplication. It is only used to process
6482 # requests and is not persisted.
6483 &quot;resourcePolicy&quot;: &quot;A String&quot;, # The URL of the DiskConsistencyGroupPolicy for the group of disks to stop.
6484 # This may be a full or partial URL, such as:
6485 #
6486 #
6487 # -
6488 # https://www.googleapis.com/compute/v1/projects/project/regions/region/resourcePolicies/resourcePolicy
6489 #
6490 # -
6491 # projects/project/regions/region/resourcePolicies/resourcePolicy
6492 #
6493 # -
6494 # regions/region/resourcePolicies/resourcePolicy
6495 }
6496
6497 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
6498 that if you must retry your request, the server will know to ignore the
6499 request if it has already been completed.
6500
6501 For example, consider a situation where you make an initial request and
6502 the request times out. If you make the request again with the same
6503 request ID, the server can check if original operation with the same
6504 request ID was received, and if so, will ignore the second request. This
6505 prevents clients from accidentally creating duplicate commitments.
6506
6507 The request ID must be
6508 a valid UUID with the exception that zero UUID is not supported
6509 (00000000-0000-0000-0000-000000000000).
6510 x__xgafv: string, V1 error format.
6511 Allowed values
6512 1 - v1 error format
6513 2 - v2 error format
6514
6515 Returns:
6516 An object of the form:
6517
6518 { # Represents an Operation resource.
6519 #
6520 # Google Compute Engine has three Operation resources:
6521 #
6522 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
6523 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
6524 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
6525 #
6526 # You can use an operation resource to manage asynchronous API requests.
6527 # For more information, readHandling
6528 # API responses.
6529 #
6530 # Operations can be global, regional or zonal.
6531 #
6532 # - For global operations, use the `globalOperations`
6533 # resource.
6534 # - For regional operations, use the
6535 # `regionOperations` resource.
6536 # - For zonal operations, use
6537 # the `zoneOperations` resource.
6538 #
6539 #
6540 #
6541 # For more information, read
6542 # Global, Regional, and Zonal Resources.
6543 #
6544 # Note that completed Operation resources have a limited
6545 # retention period.
6546 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
6547 # Not present otherwise.
6548 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
6549 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
6550 # set when the operation is created.
6551 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
6552 # text format.
6553 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
6554 # this field will be populated.
6555 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
6556 # operation.
6557 {
6558 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
6559 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
6560 # details. There is a set of defined message types to use for providing
6561 # details.The syntax depends on the error code. For example,
6562 # QuotaExceededInfo will have details when the error code is
6563 # QUOTA_EXCEEDED.
6564 {
6565 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
6566 #
6567 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
6568 # is not enabled:
6569 #
6570 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
6571 # &quot;domain&quot;: &quot;googleapis.com&quot;
6572 # &quot;metadata&quot;: {
6573 # &quot;resource&quot;: &quot;projects/123&quot;,
6574 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
6575 # }
6576 # }
6577 #
6578 # This response indicates that the pubsub.googleapis.com API is not enabled.
6579 #
6580 # Example of an error that is returned when attempting to create a Spanner
6581 # instance in a region that is out of stock:
6582 #
6583 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
6584 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
6585 # &quot;metadata&quot;: {
6586 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
6587 # }
6588 # }
6589 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
6590 # is typically the registered service name of the tool or product that
6591 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
6592 # generated by some common infrastructure, the error domain must be a
6593 # globally unique value that identifies the infrastructure. For Google API
6594 # infrastructure, the error domain is &quot;googleapis.com&quot;.
6595 &quot;metadatas&quot;: { # Additional structured details about this error.
6596 #
6597 # Keys must match a regular expression of `a-z+` but should
6598 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
6599 # length. When identifying the current value of an exceeded limit, the units
6600 # should be contained in the key, not the value. For example, rather than
6601 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
6602 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
6603 # instances that can be created in a single (batch) request.
6604 &quot;a_key&quot;: &quot;A String&quot;,
6605 },
6606 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
6607 # proximate cause of the error. Error reasons are unique within a particular
6608 # domain of errors. This should be at most 63 characters and match a
6609 # regular expression of `A-Z+[A-Z0-9]`, which represents
6610 # UPPER_SNAKE_CASE.
6611 },
6612 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
6613 #
6614 # For example, if a quota check failed with an error indicating the calling
6615 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
6616 # directly to the right place in the developer console to flip the bit.
6617 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
6618 { # Describes a URL link.
6619 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
6620 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
6621 },
6622 ],
6623 },
6624 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
6625 # which can be attached to an RPC error.
6626 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
6627 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
6628 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
6629 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
6630 },
6631 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
6632 &quot;dimensions&quot;: { # The map holding related quota dimensions.
6633 &quot;a_key&quot;: &quot;A String&quot;,
6634 },
6635 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
6636 # type or metric.
6637 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
6638 # or metric.
6639 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
6640 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
6641 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
6642 },
6643 },
6644 ],
6645 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
6646 # This property is optional.
6647 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
6648 },
6649 ],
6650 },
6651 &quot;getVersionOperationMetadata&quot;: {
6652 &quot;inlineSbomInfo&quot;: {
6653 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
6654 # appropriate identifiers.
6655 &quot;a_key&quot;: &quot;A String&quot;,
6656 },
6657 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
6658 # identifiers.
6659 &quot;a_key&quot;: &quot;A String&quot;,
6660 },
6661 },
6662 },
6663 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
6664 # message that was returned, such as `NOT FOUND`.
6665 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
6666 # status code that was returned. For example, a `404` means the
6667 # resource was not found.
6668 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
6669 # defined by the server.
6670 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
6671 # This value is inRFC3339
6672 # text format.
6673 &quot;instancesBulkInsertOperationMetadata&quot;: {
6674 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
6675 # Example key: zones/us-central1-a
6676 &quot;a_key&quot;: {
6677 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
6678 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
6679 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
6680 # error.
6681 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
6682 # if the flow is rolling forward or rolling back.
6683 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
6684 },
6685 },
6686 },
6687 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
6688 # Operation resources.
6689 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
6690 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
6691 # group of operations results from a `bulkInsert` API request.
6692 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
6693 # `update`, or `delete`, and so on.
6694 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
6695 # There is no requirement that this be linear or support any granularity of
6696 # operations. This should not be used to guess when the operation will be
6697 # complete. This number should monotonically increase as the operation
6698 # progresses.
6699 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
6700 # applicable when performing regional operations.
6701 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
6702 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
6703 # this field will contain information on all underlying zonal actions and
6704 # their state.
6705 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
6706 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
6707 # Example key: zones/us-central1-a
6708 &quot;a_key&quot;: {
6709 &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
6710 # populated.
6711 # different programming environments, including REST APIs and RPC APIs. It is
6712 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
6713 # three pieces of data: error code, error message, and error details.
6714 #
6715 # You can find out more about this error model and how to work with it in the
6716 # [API Design Guide](https://cloud.google.com/apis/design/errors).
6717 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
6718 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
6719 # message types for APIs to use.
6720 {
6721 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
6722 },
6723 ],
6724 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
6725 # user-facing error message should be localized and sent in the
6726 # google.rpc.Status.details field, or localized by the client.
6727 },
6728 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
6729 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
6730 },
6731 },
6732 },
6733 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
6734 # This value is inRFC3339
6735 # text format.
6736 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
6737 # following:
6738 # `PENDING`, `RUNNING`, or `DONE`.
6739 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
6740 # operation.
6741 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
6742 # of the target resource.
6743 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
6744 # operations related to creating a snapshot, this points to the disk
6745 # that the snapshot was created from.
6746 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
6747 # `[email protected]` or
6748 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
6749 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
6750 # operation, this field will be populated.
6751 {
6752 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
6753 # Engine returns NO_RESULTS_ON_PAGE if there
6754 # are no results in the response.
6755 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
6756 # value format. For example:
6757 #
6758 # &quot;data&quot;: [
6759 # {
6760 # &quot;key&quot;: &quot;scope&quot;,
6761 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
6762 # }
6763 {
6764 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
6765 # returned. For example, for warnings where there are no results in a list
6766 # request for a particular zone, this key might be scope and
6767 # the key value might be the zone name. Other examples might be a key
6768 # indicating a deprecated resource and a suggested replacement, or a
6769 # warning about invalid network settings (for example, if an instance
6770 # attempts to perform IP forwarding but is not enabled for IP forwarding).
6771 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
6772 },
6773 ],
6774 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
6775 },
6776 ],
6777 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
6778 # applicable when performing per-zone operations.
6779 }</pre>
6780 </div>
6781
6782 <div class="method">
6783 <code class="details" id="testIamPermissions">testIamPermissions(project, region, resource, body=None, x__xgafv=None)</code>
6784 <pre>Returns permissions that a caller has on the specified resource.
6785
6786 Args:
6787 project: string, Project ID for this request. (required)
6788 region: string, The name of the region for this request. (required)
6789 resource: string, Name or id of the resource for this request. (required)
6790 body: object, The request body.
6791 The object takes the form of:
6792
6793 {
6794 &quot;permissions&quot;: [ # The set of permissions to check for the &#x27;resource&#x27;. Permissions with
6795 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed.
6796 &quot;A String&quot;,
6797 ],
6798 }
6799
6800 x__xgafv: string, V1 error format.
6801 Allowed values
6802 1 - v1 error format
6803 2 - v2 error format
6804
6805 Returns:
6806 An object of the form:
6807
6808 {
6809 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
6810 # allowed.
6811 &quot;A String&quot;,
6812 ],
6813 }</pre>
6814 </div>
6815
6816 <div class="method">
6817 <code class="details" id="update">update(project, region, disk, body=None, paths=None, requestId=None, updateMask=None, x__xgafv=None)</code>
6818 <pre>Update the specified disk with the data included in the request. Update is
6819 performed only on selected fields included as part of update-mask.
6820
6821 Args:
6822 project: string, Project ID for this request. (required)
6823 region: string, The name of the region for this request. (required)
6824 disk: string, The disk name for this request. (required)
6825 body: object, The request body.
6826 The object takes the form of:
6827
6828 { # Represents a Persistent Disk resource.
6829 #
6830 # Google Compute Engine has two Disk resources:
6831 #
6832 # * [Zonal](/compute/docs/reference/rest/v1/disks)
6833 # * [Regional](/compute/docs/reference/rest/v1/regionDisks)
6834 #
6835 # Persistent disks are required for running your VM instances.
6836 # Create both boot and non-boot (data) persistent disks. For more information,
6837 # read Persistent Disks. For more
6838 # storage options, read Storage options.
6839 #
6840 # The disks resource represents a zonal persistent disk.
6841 # For more information, readZonal persistent disks.
6842 #
6843 # The regionDisks resource represents a
6844 # regional persistent disk. For more information, read
6845 # Regional resources.
6846 &quot;accessMode&quot;: &quot;A String&quot;, # The access mode of the disk.
6847 #
6848 #
6849 # - READ_WRITE_SINGLE: The default AccessMode, means the
6850 # disk can be attached to single instance in RW mode.
6851 # - READ_WRITE_MANY: The AccessMode means the disk can be
6852 # attached to multiple instances in RW mode.
6853 # - READ_ONLY_MANY: The AccessMode means the disk can be
6854 # attached to multiple instances in RO mode.
6855 #
6856 #
6857 # The AccessMode is only valid for Hyperdisk disk types.
6858 &quot;architecture&quot;: &quot;A String&quot;, # The architecture of the disk. Valid values are
6859 # ARM64 or X86_64.
6860 &quot;asyncPrimaryDisk&quot;: { # Disk asynchronously replicated into this disk.
6861 &quot;consistencyGroupPolicy&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the DiskConsistencyGroupPolicy if replication was
6862 # started on the disk as a member of a group.
6863 &quot;consistencyGroupPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] ID of the DiskConsistencyGroupPolicy if replication was
6864 # started on the disk as a member of a group.
6865 &quot;disk&quot;: &quot;A String&quot;, # The other disk asynchronously replicated to or from the current disk.
6866 # You can provide this as a partial or full URL to the resource.
6867 # For example, the following are valid values:
6868 #
6869 #
6870 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
6871 # - projects/project/zones/zone/disks/disk
6872 # - zones/zone/disks/disk
6873 &quot;diskId&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique ID of the other disk asynchronously replicated
6874 # to or from the current disk. This value identifies the exact disk that
6875 # was used to create this replication. For example, if you started
6876 # replicating the persistent disk from a disk that was later deleted and
6877 # recreated under the same name, the disk ID would identify the exact
6878 # version of the disk that was used.
6879 },
6880 &quot;asyncSecondaryDisks&quot;: { # Output only. [Output Only] A list of disks this disk is asynchronously replicated to.
6881 &quot;a_key&quot;: {
6882 &quot;asyncReplicationDisk&quot;: {
6883 &quot;consistencyGroupPolicy&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the DiskConsistencyGroupPolicy if replication was
6884 # started on the disk as a member of a group.
6885 &quot;consistencyGroupPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] ID of the DiskConsistencyGroupPolicy if replication was
6886 # started on the disk as a member of a group.
6887 &quot;disk&quot;: &quot;A String&quot;, # The other disk asynchronously replicated to or from the current disk.
6888 # You can provide this as a partial or full URL to the resource.
6889 # For example, the following are valid values:
6890 #
6891 #
6892 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
6893 # - projects/project/zones/zone/disks/disk
6894 # - zones/zone/disks/disk
6895 &quot;diskId&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique ID of the other disk asynchronously replicated
6896 # to or from the current disk. This value identifies the exact disk that
6897 # was used to create this replication. For example, if you started
6898 # replicating the persistent disk from a disk that was later deleted and
6899 # recreated under the same name, the disk ID would identify the exact
6900 # version of the disk that was used.
6901 },
6902 },
6903 },
6904 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
6905 # text format.
6906 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
6907 # create the resource.
6908 &quot;diskEncryptionKey&quot;: { # Encrypts the disk using a
6909 # customer-supplied encryption key or a
6910 # customer-managed encryption key.
6911 #
6912 # Encryption keys do not protect access to metadata of the disk.
6913 #
6914 # After you encrypt a disk with a customer-supplied key, you must provide the
6915 # same key if you use the disk later. For example, to create a disk snapshot,
6916 # to create a disk image, to create a machine image, or to attach the disk to
6917 # a virtual machine.
6918 #
6919 # After you encrypt a disk with a customer-managed key, thediskEncryptionKey.kmsKeyName is set to a key *version*
6920 # name once the disk is created. The disk is encrypted with this version of
6921 # the key. In the response, diskEncryptionKey.kmsKeyName appears
6922 # in the following format:
6923 #
6924 # &quot;diskEncryptionKey.kmsKeyName&quot;:
6925 # &quot;projects/kms_project_id/locations/region/keyRings/
6926 # key_region/cryptoKeys/key
6927 # /cryptoKeysVersions/version
6928 #
6929 # If you do not provide an encryption key when creating the disk, then the
6930 # disk is encrypted using an automatically generated key and you don&#x27;t need
6931 # to provide a key to use the disk later.
6932 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS.
6933 # For example:
6934 #
6935 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
6936 # key_region/cryptoKeys/key
6937 #
6938 # The fully-qualifed key name may be returned for resource GET requests. For
6939 # example:
6940 #
6941 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
6942 # key_region/cryptoKeys/key
6943 # /cryptoKeyVersions/1
6944 &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # The service account being used for the encryption request for the given KMS
6945 # key. If absent, the Compute Engine default service account is used.
6946 # For example:
6947 #
6948 # &quot;kmsKeyServiceAccount&quot;: &quot;name@project_id.iam.gserviceaccount.com/
6949 &quot;rawKey&quot;: &quot;A String&quot;, # Specifies a 256-bit customer-supplied
6950 # encryption key, encoded in RFC
6951 # 4648 base64 to either encrypt or decrypt this resource. You can
6952 # provide either the rawKey or thersaEncryptedKey.
6953 # For example:
6954 #
6955 # &quot;rawKey&quot;:
6956 # &quot;SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=&quot;
6957 &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
6958 # customer-supplied encryption key to either encrypt or decrypt this
6959 # resource. You can provide either the rawKey or thersaEncryptedKey.
6960 # For example:
6961 #
6962 # &quot;rsaEncryptedKey&quot;:
6963 # &quot;ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
6964 # z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
6965 # D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==&quot;
6966 #
6967 # The key must meet the following requirements before you can provide it to
6968 # Compute Engine:
6969 #
6970 # 1. The key is wrapped using a RSA public key certificate provided by
6971 # Google.
6972 # 2. After being wrapped, the key must be encoded in RFC 4648 base64
6973 # encoding.
6974 #
6975 # Gets the RSA public key certificate provided by Google at:
6976 #
6977 #
6978 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
6979 &quot;sha256&quot;: &quot;A String&quot;, # [Output only] TheRFC
6980 # 4648 base64 encoded SHA-256 hash of the customer-supplied
6981 # encryption key that protects this resource.
6982 },
6983 &quot;enableConfidentialCompute&quot;: True or False, # Whether this disk is using confidential compute mode.
6984 &quot;guestOsFeatures&quot;: [ # A list of features to enable on the guest operating system. Applicable
6985 # only for bootable images. Read
6986 # Enabling guest operating system features to see a list of available
6987 # options.
6988 { # Guest OS features.
6989 &quot;type&quot;: &quot;A String&quot;, # The ID of a supported feature. To add multiple values, use commas to
6990 # separate values. Set to one or more of the following values:
6991 #
6992 # - VIRTIO_SCSI_MULTIQUEUE
6993 # - WINDOWS
6994 # - MULTI_IP_SUBNET
6995 # - UEFI_COMPATIBLE
6996 # - GVNIC
6997 # - SEV_CAPABLE
6998 # - SUSPEND_RESUME_COMPATIBLE
6999 # - SEV_LIVE_MIGRATABLE_V2
7000 # - SEV_SNP_CAPABLE
7001 # - TDX_CAPABLE
7002 # - IDPF
7003 # - SNP_SVSM_CAPABLE
7004 # - CCA_CAPABLE
7005 #
7006 #
7007 # For more information, see
7008 # Enabling guest operating system features.
7009 },
7010 ],
7011 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the resource. This identifier is
7012 # defined by the server.
7013 &quot;kind&quot;: &quot;compute#disk&quot;, # Output only. [Output Only] Type of the resource. Always compute#disk for
7014 # disks.
7015 &quot;labelFingerprint&quot;: &quot;A String&quot;, # A fingerprint for the labels being applied to this disk, which is
7016 # essentially a hash of the labels set used for optimistic locking. The
7017 # fingerprint is initially generated by Compute Engine and changes after
7018 # every request to modify or update labels. You must always provide an
7019 # up-to-date fingerprint hash in order to update or change labels,
7020 # otherwise the request will fail with error412 conditionNotMet.
7021 #
7022 # To see the latest fingerprint, make a get() request to
7023 # retrieve a disk.
7024 &quot;labels&quot;: { # Labels to apply to this disk. These can be later modified by
7025 # the setLabels method.
7026 &quot;a_key&quot;: &quot;A String&quot;,
7027 },
7028 &quot;lastAttachTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Last attach timestamp inRFC3339
7029 # text format.
7030 &quot;lastDetachTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Last detach timestamp inRFC3339
7031 # text format.
7032 &quot;licenseCodes&quot;: [ # Integer license codes indicating which licenses are attached to this disk.
7033 &quot;A String&quot;,
7034 ],
7035 &quot;licenses&quot;: [ # A list of publicly visible licenses. Reserved for Google&#x27;s use.
7036 &quot;A String&quot;,
7037 ],
7038 &quot;locationHint&quot;: &quot;A String&quot;, # An opaque location hint used to place the disk close to other resources.
7039 # This field is for use by internal tools that use the public API.
7040 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
7041 # The name must be 1-63 characters long, and comply withRFC1035.
7042 # Specifically, the name must be 1-63 characters long and match the regular
7043 # expression `[a-z]([-a-z0-9]*[a-z0-9])?`
7044 # which means the first character must be a lowercase letter, and all
7045 # following characters must be a dash, lowercase letter, or digit, except
7046 # the last character, which cannot be a dash.
7047 &quot;options&quot;: &quot;A String&quot;, # Internal use only.
7048 &quot;params&quot;: { # Additional disk params. # Input only. [Input Only] Additional params passed with the request, but not persisted
7049 # as part of resource payload.
7050 &quot;resourceManagerTags&quot;: { # Input only. Resource manager tags to be bound to the disk. Tag keys and values
7051 # have the same definition as resource
7052 # manager tags. Keys and values can be either in numeric format,
7053 # such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in
7054 # namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and
7055 # `{tag_value_short_name}`. The field is ignored (both PUT &amp;
7056 # PATCH) when empty.
7057 &quot;a_key&quot;: &quot;A String&quot;,
7058 },
7059 },
7060 &quot;physicalBlockSizeBytes&quot;: &quot;A String&quot;, # Physical block size of the persistent disk, in bytes.
7061 # If not present in a request, a default value is used.
7062 # The currently supported size is 4096, other sizes may be added in
7063 # the future.
7064 # If an unsupported value is requested, the error message will list
7065 # the supported values for the caller&#x27;s project.
7066 &quot;provisionedIops&quot;: &quot;A String&quot;, # Indicates how many IOPS to provision for the disk. This sets the number
7067 # of I/O operations per second that the disk can handle. Values must be
7068 # between 10,000 and 120,000. For more details, see theExtreme persistent
7069 # disk documentation.
7070 &quot;provisionedThroughput&quot;: &quot;A String&quot;, # Indicates how much throughput to provision for the disk. This sets the
7071 # number of throughput mb per second that the disk can handle. Values must be
7072 # greater than or equal to 1.
7073 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the disk resides. Only applicable for
7074 # regional resources.
7075 # You must specify this field as part of the HTTP request URL. It is
7076 # not settable as a field in the request body.
7077 &quot;replicaZones&quot;: [ # URLs of the zones where the disk should be replicated to. Only applicable
7078 # for regional resources.
7079 &quot;A String&quot;,
7080 ],
7081 &quot;resourcePolicies&quot;: [ # Resource policies applied to this disk for automatic snapshot creations.
7082 &quot;A String&quot;,
7083 ],
7084 &quot;resourceStatus&quot;: { # Output only. [Output Only] Status information for the disk resource.
7085 &quot;asyncPrimaryDisk&quot;: {
7086 &quot;state&quot;: &quot;A String&quot;,
7087 },
7088 &quot;asyncSecondaryDisks&quot;: { # Key: disk, value: AsyncReplicationStatus message
7089 &quot;a_key&quot;: {
7090 &quot;state&quot;: &quot;A String&quot;,
7091 },
7092 },
7093 },
7094 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
7095 &quot;satisfiesPzs&quot;: True or False, # Output only. [Output Only] Reserved for future use.
7096 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined fully-qualified URL for this resource.
7097 &quot;sizeGb&quot;: &quot;A String&quot;, # Size, in GB, of the persistent disk. You can specify
7098 # this field when creating a persistent disk using thesourceImage, sourceSnapshot, orsourceDisk parameter, or specify it alone to create an empty
7099 # persistent disk.
7100 #
7101 # If you specify this field along with a source, the value ofsizeGb must not be less than the size of the
7102 # source.
7103 # Acceptable values are greater than 0.
7104 &quot;sourceConsistencyGroupPolicy&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the DiskConsistencyGroupPolicy for a secondary disk
7105 # that was created using a consistency group.
7106 &quot;sourceConsistencyGroupPolicyId&quot;: &quot;A String&quot;, # Output only. [Output Only] ID of the DiskConsistencyGroupPolicy for a secondary disk
7107 # that was created using a consistency group.
7108 &quot;sourceDisk&quot;: &quot;A String&quot;, # The source disk used to create this disk. You can provide this as a
7109 # partial or full URL to the resource. For example, the following are valid
7110 # values:
7111 #
7112 #
7113 # -
7114 # https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
7115 #
7116 # -
7117 # https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk
7118 #
7119 # -
7120 # projects/project/zones/zone/disks/disk
7121 #
7122 # -
7123 # projects/project/regions/region/disks/disk
7124 #
7125 # -
7126 # zones/zone/disks/disk
7127 #
7128 # -
7129 # regions/region/disks/disk
7130 &quot;sourceDiskId&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique ID of the disk used to create this disk. This
7131 # value identifies the exact disk that was used to create this persistent
7132 # disk. For example, if you created the persistent disk from a disk that
7133 # was later deleted and recreated under the same name, the source disk ID
7134 # would identify the exact version of the disk that was used.
7135 &quot;sourceImage&quot;: &quot;A String&quot;, # The source image used to create this disk. If the source image is
7136 # deleted, this field will not be set.
7137 #
7138 # To create a disk with one of the public operating system images, specify
7139 # the image by its family name. For example, specifyfamily/debian-9 to use the latest Debian 9 image:
7140 #
7141 # projects/debian-cloud/global/images/family/debian-9
7142 #
7143 #
7144 # Alternatively, use a specific version of a public operating system image:
7145 #
7146 # projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD
7147 #
7148 #
7149 # To create a disk with a custom image that you created, specify the
7150 # image name in the following format:
7151 #
7152 # global/images/my-custom-image
7153 #
7154 #
7155 # You can also specify a custom image by its image family, which returns
7156 # the latest version of the image in that family. Replace the image name
7157 # with family/family-name:
7158 #
7159 # global/images/family/my-image-family
7160 &quot;sourceImageEncryptionKey&quot;: { # Thecustomer-supplied
7161 # encryption key of the source image. Required if the source image is
7162 # protected by a customer-supplied encryption key.
7163 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS.
7164 # For example:
7165 #
7166 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
7167 # key_region/cryptoKeys/key
7168 #
7169 # The fully-qualifed key name may be returned for resource GET requests. For
7170 # example:
7171 #
7172 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
7173 # key_region/cryptoKeys/key
7174 # /cryptoKeyVersions/1
7175 &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # The service account being used for the encryption request for the given KMS
7176 # key. If absent, the Compute Engine default service account is used.
7177 # For example:
7178 #
7179 # &quot;kmsKeyServiceAccount&quot;: &quot;name@project_id.iam.gserviceaccount.com/
7180 &quot;rawKey&quot;: &quot;A String&quot;, # Specifies a 256-bit customer-supplied
7181 # encryption key, encoded in RFC
7182 # 4648 base64 to either encrypt or decrypt this resource. You can
7183 # provide either the rawKey or thersaEncryptedKey.
7184 # For example:
7185 #
7186 # &quot;rawKey&quot;:
7187 # &quot;SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=&quot;
7188 &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
7189 # customer-supplied encryption key to either encrypt or decrypt this
7190 # resource. You can provide either the rawKey or thersaEncryptedKey.
7191 # For example:
7192 #
7193 # &quot;rsaEncryptedKey&quot;:
7194 # &quot;ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
7195 # z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
7196 # D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==&quot;
7197 #
7198 # The key must meet the following requirements before you can provide it to
7199 # Compute Engine:
7200 #
7201 # 1. The key is wrapped using a RSA public key certificate provided by
7202 # Google.
7203 # 2. After being wrapped, the key must be encoded in RFC 4648 base64
7204 # encoding.
7205 #
7206 # Gets the RSA public key certificate provided by Google at:
7207 #
7208 #
7209 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
7210 &quot;sha256&quot;: &quot;A String&quot;, # [Output only] TheRFC
7211 # 4648 base64 encoded SHA-256 hash of the customer-supplied
7212 # encryption key that protects this resource.
7213 },
7214 &quot;sourceImageId&quot;: &quot;A String&quot;, # Output only. [Output Only] The ID value of the image used to create this disk. This
7215 # value identifies the exact image that was used to create this persistent
7216 # disk. For example, if you created the persistent disk from an image that
7217 # was later deleted and recreated under the same name, the source image ID
7218 # would identify the exact version of the image that was used.
7219 &quot;sourceInstantSnapshot&quot;: &quot;A String&quot;, # The source instant snapshot used to create this disk. You can provide
7220 # this as a partial or full URL to the resource. For example, the following
7221 # are valid values:
7222 #
7223 #
7224 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshots/instantSnapshot
7225 # - projects/project/zones/zone/instantSnapshots/instantSnapshot
7226 # - zones/zone/instantSnapshots/instantSnapshot
7227 &quot;sourceInstantSnapshotId&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique ID of the instant snapshot used to create this
7228 # disk. This value identifies the exact instant snapshot that was used to
7229 # create this persistent disk. For example, if you created the persistent
7230 # disk from an instant snapshot that was later deleted and recreated under
7231 # the same name, the source instant snapshot ID would identify the exact
7232 # version of the instant snapshot that was used.
7233 &quot;sourceSnapshot&quot;: &quot;A String&quot;, # The source snapshot used to create this disk. You can provide this as a
7234 # partial or full URL to the resource. For example, the following are valid
7235 # values:
7236 #
7237 #
7238 # - https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot
7239 # - projects/project/global/snapshots/snapshot
7240 # - global/snapshots/snapshot
7241 &quot;sourceSnapshotEncryptionKey&quot;: { # Thecustomer-supplied
7242 # encryption key of the source snapshot. Required if the source snapshot
7243 # is protected by a customer-supplied encryption key.
7244 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS.
7245 # For example:
7246 #
7247 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
7248 # key_region/cryptoKeys/key
7249 #
7250 # The fully-qualifed key name may be returned for resource GET requests. For
7251 # example:
7252 #
7253 # &quot;kmsKeyName&quot;: &quot;projects/kms_project_id/locations/region/keyRings/
7254 # key_region/cryptoKeys/key
7255 # /cryptoKeyVersions/1
7256 &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # The service account being used for the encryption request for the given KMS
7257 # key. If absent, the Compute Engine default service account is used.
7258 # For example:
7259 #
7260 # &quot;kmsKeyServiceAccount&quot;: &quot;name@project_id.iam.gserviceaccount.com/
7261 &quot;rawKey&quot;: &quot;A String&quot;, # Specifies a 256-bit customer-supplied
7262 # encryption key, encoded in RFC
7263 # 4648 base64 to either encrypt or decrypt this resource. You can
7264 # provide either the rawKey or thersaEncryptedKey.
7265 # For example:
7266 #
7267 # &quot;rawKey&quot;:
7268 # &quot;SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=&quot;
7269 &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit
7270 # customer-supplied encryption key to either encrypt or decrypt this
7271 # resource. You can provide either the rawKey or thersaEncryptedKey.
7272 # For example:
7273 #
7274 # &quot;rsaEncryptedKey&quot;:
7275 # &quot;ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH
7276 # z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD
7277 # D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==&quot;
7278 #
7279 # The key must meet the following requirements before you can provide it to
7280 # Compute Engine:
7281 #
7282 # 1. The key is wrapped using a RSA public key certificate provided by
7283 # Google.
7284 # 2. After being wrapped, the key must be encoded in RFC 4648 base64
7285 # encoding.
7286 #
7287 # Gets the RSA public key certificate provided by Google at:
7288 #
7289 #
7290 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
7291 &quot;sha256&quot;: &quot;A String&quot;, # [Output only] TheRFC
7292 # 4648 base64 encoded SHA-256 hash of the customer-supplied
7293 # encryption key that protects this resource.
7294 },
7295 &quot;sourceSnapshotId&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique ID of the snapshot used to create this disk. This
7296 # value identifies the exact snapshot that was used to create this persistent
7297 # disk. For example, if you created the persistent disk from a snapshot that
7298 # was later deleted and recreated under the same name, the source snapshot ID
7299 # would identify the exact version of the snapshot that was used.
7300 &quot;sourceStorageObject&quot;: &quot;A String&quot;, # The full Google Cloud Storage URI where the disk image is stored. This file
7301 # must be a gzip-compressed tarball whose name ends in .tar.gz or virtual
7302 # machine disk whose name ends in vmdk. Valid URIs may start with gs:// or
7303 # https://storage.googleapis.com/. This flag is not optimized for creating
7304 # multiple disks from a source storage object. To create many disks from a
7305 # source storage object, use gcloud compute images
7306 # import instead.
7307 &quot;status&quot;: &quot;A String&quot;, # Output only. [Output Only] The status of disk creation.
7308 #
7309 #
7310 # - CREATING: Disk is provisioning.
7311 # - RESTORING: Source data is being copied into the
7312 # disk.
7313 # - FAILED: Disk creation failed.
7314 # - READY: Disk is ready for use.
7315 # - DELETING: Disk is deleting.
7316 &quot;storagePool&quot;: &quot;A String&quot;, # The storage pool in which the new disk is created. You can provide
7317 # this as a partial or full URL to the resource. For example, the following
7318 # are valid values:
7319 #
7320 #
7321 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/storagePools/storagePool
7322 # - projects/project/zones/zone/storagePools/storagePool
7323 # - zones/zone/storagePools/storagePool
7324 &quot;type&quot;: &quot;A String&quot;, # URL of the disk type resource describing which disk type to use to create
7325 # the disk. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk
7326 # types.
7327 &quot;users&quot;: [ # Output only. [Output Only] Links to the users of the disk (attached instances)
7328 # in form:projects/project/zones/zone/instances/instance
7329 &quot;A String&quot;,
7330 ],
7331 &quot;zone&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the zone where the disk resides.
7332 # You must specify this field as part of the HTTP request URL. It is
7333 # not settable as a field in the request body.
7334 }
7335
7336 paths: string, A parameter (repeated)
7337 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
7338 that if you must retry your request, the server will know to ignore the
7339 request if it has already been completed.
7340
7341 For example, consider a situation where you make an initial request and
7342 the request times out. If you make the request again with the same
7343 request ID, the server can check if original operation with the same
7344 request ID was received, and if so, will ignore the second request. This
7345 prevents clients from accidentally creating duplicate commitments.
7346
7347 The request ID must be
7348 a valid UUID with the exception that zero UUID is not supported
7349 (00000000-0000-0000-0000-000000000000).
7350 updateMask: string, update_mask indicates fields to be updated as part of this request.
7351 x__xgafv: string, V1 error format.
7352 Allowed values
7353 1 - v1 error format
7354 2 - v2 error format
7355
7356 Returns:
7357 An object of the form:
7358
7359 { # Represents an Operation resource.
7360 #
7361 # Google Compute Engine has three Operation resources:
7362 #
7363 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
7364 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
7365 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
7366 #
7367 # You can use an operation resource to manage asynchronous API requests.
7368 # For more information, readHandling
7369 # API responses.
7370 #
7371 # Operations can be global, regional or zonal.
7372 #
7373 # - For global operations, use the `globalOperations`
7374 # resource.
7375 # - For regional operations, use the
7376 # `regionOperations` resource.
7377 # - For zonal operations, use
7378 # the `zoneOperations` resource.
7379 #
7380 #
7381 #
7382 # For more information, read
7383 # Global, Regional, and Zonal Resources.
7384 #
7385 # Note that completed Operation resources have a limited
7386 # retention period.
7387 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
7388 # Not present otherwise.
7389 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
7390 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
7391 # set when the operation is created.
7392 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
7393 # text format.
7394 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
7395 # this field will be populated.
7396 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
7397 # operation.
7398 {
7399 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
7400 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
7401 # details. There is a set of defined message types to use for providing
7402 # details.The syntax depends on the error code. For example,
7403 # QuotaExceededInfo will have details when the error code is
7404 # QUOTA_EXCEEDED.
7405 {
7406 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
7407 #
7408 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
7409 # is not enabled:
7410 #
7411 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
7412 # &quot;domain&quot;: &quot;googleapis.com&quot;
7413 # &quot;metadata&quot;: {
7414 # &quot;resource&quot;: &quot;projects/123&quot;,
7415 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
7416 # }
7417 # }
7418 #
7419 # This response indicates that the pubsub.googleapis.com API is not enabled.
7420 #
7421 # Example of an error that is returned when attempting to create a Spanner
7422 # instance in a region that is out of stock:
7423 #
7424 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
7425 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
7426 # &quot;metadata&quot;: {
7427 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
7428 # }
7429 # }
7430 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
7431 # is typically the registered service name of the tool or product that
7432 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
7433 # generated by some common infrastructure, the error domain must be a
7434 # globally unique value that identifies the infrastructure. For Google API
7435 # infrastructure, the error domain is &quot;googleapis.com&quot;.
7436 &quot;metadatas&quot;: { # Additional structured details about this error.
7437 #
7438 # Keys must match a regular expression of `a-z+` but should
7439 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
7440 # length. When identifying the current value of an exceeded limit, the units
7441 # should be contained in the key, not the value. For example, rather than
7442 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
7443 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
7444 # instances that can be created in a single (batch) request.
7445 &quot;a_key&quot;: &quot;A String&quot;,
7446 },
7447 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
7448 # proximate cause of the error. Error reasons are unique within a particular
7449 # domain of errors. This should be at most 63 characters and match a
7450 # regular expression of `A-Z+[A-Z0-9]`, which represents
7451 # UPPER_SNAKE_CASE.
7452 },
7453 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
7454 #
7455 # For example, if a quota check failed with an error indicating the calling
7456 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
7457 # directly to the right place in the developer console to flip the bit.
7458 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
7459 { # Describes a URL link.
7460 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
7461 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
7462 },
7463 ],
7464 },
7465 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
7466 # which can be attached to an RPC error.
7467 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
7468 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
7469 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
7470 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
7471 },
7472 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
7473 &quot;dimensions&quot;: { # The map holding related quota dimensions.
7474 &quot;a_key&quot;: &quot;A String&quot;,
7475 },
7476 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
7477 # type or metric.
7478 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
7479 # or metric.
7480 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
7481 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
7482 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
7483 },
7484 },
7485 ],
7486 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
7487 # This property is optional.
7488 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
7489 },
7490 ],
7491 },
7492 &quot;getVersionOperationMetadata&quot;: {
7493 &quot;inlineSbomInfo&quot;: {
7494 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
7495 # appropriate identifiers.
7496 &quot;a_key&quot;: &quot;A String&quot;,
7497 },
7498 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
7499 # identifiers.
7500 &quot;a_key&quot;: &quot;A String&quot;,
7501 },
7502 },
7503 },
7504 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
7505 # message that was returned, such as `NOT FOUND`.
7506 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
7507 # status code that was returned. For example, a `404` means the
7508 # resource was not found.
7509 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
7510 # defined by the server.
7511 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
7512 # This value is inRFC3339
7513 # text format.
7514 &quot;instancesBulkInsertOperationMetadata&quot;: {
7515 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
7516 # Example key: zones/us-central1-a
7517 &quot;a_key&quot;: {
7518 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
7519 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
7520 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
7521 # error.
7522 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
7523 # if the flow is rolling forward or rolling back.
7524 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
7525 },
7526 },
7527 },
7528 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
7529 # Operation resources.
7530 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
7531 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
7532 # group of operations results from a `bulkInsert` API request.
7533 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
7534 # `update`, or `delete`, and so on.
7535 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
7536 # There is no requirement that this be linear or support any granularity of
7537 # operations. This should not be used to guess when the operation will be
7538 # complete. This number should monotonically increase as the operation
7539 # progresses.
7540 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
7541 # applicable when performing regional operations.
7542 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
7543 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
7544 # this field will contain information on all underlying zonal actions and
7545 # their state.
7546 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
7547 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
7548 # Example key: zones/us-central1-a
7549 &quot;a_key&quot;: {
7550 &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
7551 # populated.
7552 # different programming environments, including REST APIs and RPC APIs. It is
7553 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
7554 # three pieces of data: error code, error message, and error details.
7555 #
7556 # You can find out more about this error model and how to work with it in the
7557 # [API Design Guide](https://cloud.google.com/apis/design/errors).
7558 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
7559 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
7560 # message types for APIs to use.
7561 {
7562 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
7563 },
7564 ],
7565 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
7566 # user-facing error message should be localized and sent in the
7567 # google.rpc.Status.details field, or localized by the client.
7568 },
7569 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
7570 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
7571 },
7572 },
7573 },
7574 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
7575 # This value is inRFC3339
7576 # text format.
7577 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
7578 # following:
7579 # `PENDING`, `RUNNING`, or `DONE`.
7580 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
7581 # operation.
7582 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
7583 # of the target resource.
7584 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
7585 # operations related to creating a snapshot, this points to the disk
7586 # that the snapshot was created from.
7587 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
7588 # `[email protected]` or
7589 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
7590 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
7591 # operation, this field will be populated.
7592 {
7593 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
7594 # Engine returns NO_RESULTS_ON_PAGE if there
7595 # are no results in the response.
7596 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
7597 # value format. For example:
7598 #
7599 # &quot;data&quot;: [
7600 # {
7601 # &quot;key&quot;: &quot;scope&quot;,
7602 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
7603 # }
7604 {
7605 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
7606 # returned. For example, for warnings where there are no results in a list
7607 # request for a particular zone, this key might be scope and
7608 # the key value might be the zone name. Other examples might be a key
7609 # indicating a deprecated resource and a suggested replacement, or a
7610 # warning about invalid network settings (for example, if an instance
7611 # attempts to perform IP forwarding but is not enabled for IP forwarding).
7612 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
7613 },
7614 ],
7615 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
7616 },
7617 ],
7618 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
7619 # applicable when performing per-zone operations.
7620 }</pre>
7621 </div>
7622
7623 <div class="method">
7624 <code class="details" id="updateKmsKey">updateKmsKey(project, region, disk, body=None, requestId=None, x__xgafv=None)</code>
7625 <pre>Rotates the customer-managed
7626 encryption key to the latest version for the specified persistent disk.
7627
7628 Args:
7629 project: string, Project ID for this request. (required)
7630 region: string, The name of the region for this request. (required)
7631 disk: string, Name of the Disk resource, should conform to RFC1035. (required)
7632 body: object, The request body.
7633 The object takes the form of:
7634
7635 {
7636 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Optional. The new KMS key to replace the current one on the disk. If empty, the disk
7637 # will be re-encrypted using the primary version of the disk&#x27;s current KMS
7638 # key.
7639 #
7640 # The KMS key can be provided in the following formats:
7641 #
7642 #
7643 # - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key
7644 #
7645 #
7646 # Where project is the project ID or
7647 # project number.
7648 }
7649
7650 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
7651 that if you must retry your request, the server will know to ignore the
7652 request if it has already been completed.
7653
7654 For example, consider a situation where you make an initial request and
7655 the request times out. If you make the request again with the same
7656 request ID, the server can check if original operation with the same
7657 request ID was received, and if so, will ignore the second request. This
7658 prevents clients from accidentally creating duplicate commitments.
7659
7660 The request ID must be
7661 a valid UUID with the exception that zero UUID is not supported
7662 (00000000-0000-0000-0000-000000000000).
7663 x__xgafv: string, V1 error format.
7664 Allowed values
7665 1 - v1 error format
7666 2 - v2 error format
7667
7668 Returns:
7669 An object of the form:
7670
7671 { # Represents an Operation resource.
7672 #
7673 # Google Compute Engine has three Operation resources:
7674 #
7675 # * [Global](/compute/docs/reference/rest/v1/globalOperations)
7676 # * [Regional](/compute/docs/reference/rest/v1/regionOperations)
7677 # * [Zonal](/compute/docs/reference/rest/v1/zoneOperations)
7678 #
7679 # You can use an operation resource to manage asynchronous API requests.
7680 # For more information, readHandling
7681 # API responses.
7682 #
7683 # Operations can be global, regional or zonal.
7684 #
7685 # - For global operations, use the `globalOperations`
7686 # resource.
7687 # - For regional operations, use the
7688 # `regionOperations` resource.
7689 # - For zonal operations, use
7690 # the `zoneOperations` resource.
7691 #
7692 #
7693 #
7694 # For more information, read
7695 # Global, Regional, and Zonal Resources.
7696 #
7697 # Note that completed Operation resources have a limited
7698 # retention period.
7699 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
7700 # Not present otherwise.
7701 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
7702 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
7703 # set when the operation is created.
7704 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
7705 # text format.
7706 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
7707 # this field will be populated.
7708 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
7709 # operation.
7710 {
7711 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
7712 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
7713 # details. There is a set of defined message types to use for providing
7714 # details.The syntax depends on the error code. For example,
7715 # QuotaExceededInfo will have details when the error code is
7716 # QUOTA_EXCEEDED.
7717 {
7718 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
7719 #
7720 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
7721 # is not enabled:
7722 #
7723 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
7724 # &quot;domain&quot;: &quot;googleapis.com&quot;
7725 # &quot;metadata&quot;: {
7726 # &quot;resource&quot;: &quot;projects/123&quot;,
7727 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
7728 # }
7729 # }
7730 #
7731 # This response indicates that the pubsub.googleapis.com API is not enabled.
7732 #
7733 # Example of an error that is returned when attempting to create a Spanner
7734 # instance in a region that is out of stock:
7735 #
7736 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
7737 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
7738 # &quot;metadata&quot;: {
7739 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
7740 # }
7741 # }
7742 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
7743 # is typically the registered service name of the tool or product that
7744 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
7745 # generated by some common infrastructure, the error domain must be a
7746 # globally unique value that identifies the infrastructure. For Google API
7747 # infrastructure, the error domain is &quot;googleapis.com&quot;.
7748 &quot;metadatas&quot;: { # Additional structured details about this error.
7749 #
7750 # Keys must match a regular expression of `a-z+` but should
7751 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
7752 # length. When identifying the current value of an exceeded limit, the units
7753 # should be contained in the key, not the value. For example, rather than
7754 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
7755 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
7756 # instances that can be created in a single (batch) request.
7757 &quot;a_key&quot;: &quot;A String&quot;,
7758 },
7759 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
7760 # proximate cause of the error. Error reasons are unique within a particular
7761 # domain of errors. This should be at most 63 characters and match a
7762 # regular expression of `A-Z+[A-Z0-9]`, which represents
7763 # UPPER_SNAKE_CASE.
7764 },
7765 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
7766 #
7767 # For example, if a quota check failed with an error indicating the calling
7768 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
7769 # directly to the right place in the developer console to flip the bit.
7770 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
7771 { # Describes a URL link.
7772 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
7773 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
7774 },
7775 ],
7776 },
7777 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
7778 # which can be attached to an RPC error.
7779 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
7780 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
7781 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
7782 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
7783 },
7784 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
7785 &quot;dimensions&quot;: { # The map holding related quota dimensions.
7786 &quot;a_key&quot;: &quot;A String&quot;,
7787 },
7788 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
7789 # type or metric.
7790 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
7791 # or metric.
7792 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
7793 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
7794 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
7795 },
7796 },
7797 ],
7798 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
7799 # This property is optional.
7800 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
7801 },
7802 ],
7803 },
7804 &quot;getVersionOperationMetadata&quot;: {
7805 &quot;inlineSbomInfo&quot;: {
7806 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
7807 # appropriate identifiers.
7808 &quot;a_key&quot;: &quot;A String&quot;,
7809 },
7810 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
7811 # identifiers.
7812 &quot;a_key&quot;: &quot;A String&quot;,
7813 },
7814 },
7815 },
7816 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
7817 # message that was returned, such as `NOT FOUND`.
7818 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
7819 # status code that was returned. For example, a `404` means the
7820 # resource was not found.
7821 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
7822 # defined by the server.
7823 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
7824 # This value is inRFC3339
7825 # text format.
7826 &quot;instancesBulkInsertOperationMetadata&quot;: {
7827 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
7828 # Example key: zones/us-central1-a
7829 &quot;a_key&quot;: {
7830 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
7831 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
7832 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
7833 # error.
7834 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
7835 # if the flow is rolling forward or rolling back.
7836 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
7837 },
7838 },
7839 },
7840 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
7841 # Operation resources.
7842 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
7843 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
7844 # group of operations results from a `bulkInsert` API request.
7845 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
7846 # `update`, or `delete`, and so on.
7847 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
7848 # There is no requirement that this be linear or support any granularity of
7849 # operations. This should not be used to guess when the operation will be
7850 # complete. This number should monotonically increase as the operation
7851 # progresses.
7852 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
7853 # applicable when performing regional operations.
7854 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
7855 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
7856 # this field will contain information on all underlying zonal actions and
7857 # their state.
7858 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
7859 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
7860 # Example key: zones/us-central1-a
7861 &quot;a_key&quot;: {
7862 &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
7863 # populated.
7864 # different programming environments, including REST APIs and RPC APIs. It is
7865 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
7866 # three pieces of data: error code, error message, and error details.
7867 #
7868 # You can find out more about this error model and how to work with it in the
7869 # [API Design Guide](https://cloud.google.com/apis/design/errors).
7870 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
7871 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
7872 # message types for APIs to use.
7873 {
7874 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
7875 },
7876 ],
7877 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
7878 # user-facing error message should be localized and sent in the
7879 # google.rpc.Status.details field, or localized by the client.
7880 },
7881 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
7882 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
7883 },
7884 },
7885 },
7886 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
7887 # This value is inRFC3339
7888 # text format.
7889 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
7890 # following:
7891 # `PENDING`, `RUNNING`, or `DONE`.
7892 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
7893 # operation.
7894 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
7895 # of the target resource.
7896 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
7897 # operations related to creating a snapshot, this points to the disk
7898 # that the snapshot was created from.
7899 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
7900 # `[email protected]` or
7901 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
7902 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
7903 # operation, this field will be populated.
7904 {
7905 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
7906 # Engine returns NO_RESULTS_ON_PAGE if there
7907 # are no results in the response.
7908 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
7909 # value format. For example:
7910 #
7911 # &quot;data&quot;: [
7912 # {
7913 # &quot;key&quot;: &quot;scope&quot;,
7914 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
7915 # }
7916 {
7917 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
7918 # returned. For example, for warnings where there are no results in a list
7919 # request for a particular zone, this key might be scope and
7920 # the key value might be the zone name. Other examples might be a key
7921 # indicating a deprecated resource and a suggested replacement, or a
7922 # warning about invalid network settings (for example, if an instance
7923 # attempts to perform IP forwarding but is not enabled for IP forwarding).
7924 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
7925 },
7926 ],
7927 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
7928 },
7929 ],
7930 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
7931 # applicable when performing per-zone operations.
7932 }</pre>
7933 </div>
7934
7935 </body></html>