Debian Codegraph @

docs/dyn/compute_alpha.regionHealthAggregationPolicies.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="compute_alpha.html">Compute Engine API</a> . <a href="compute_alpha.regionHealthAggregationPolicies.html">regionHealthAggregationPolicies</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, serviceProjectNumber=None, x__xgafv=None)</a></code></p>
79 <p class="firstline">Retrieves the list of all HealthAggregationPolicy resources,</p>
80 <p class="toc_element">
81 <code><a href="#aggregatedList_next">aggregatedList_next()</a></code></p>
82 <p class="firstline">Retrieves the next page of results.</p>
83 <p class="toc_element">
84 <code><a href="#close">close()</a></code></p>
85 <p class="firstline">Close httplib2 connections.</p>
86 <p class="toc_element">
87 <code><a href="#delete">delete(project, region, healthAggregationPolicy, requestId=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Deletes the specified HealthAggregationPolicy in the given region.</p>
89 <p class="toc_element">
90 <code><a href="#get">get(project, region, healthAggregationPolicy, x__xgafv=None)</a></code></p>
91 <p class="firstline">Returns the specified HealthAggregationPolicy resource in the given region.</p>
92 <p class="toc_element">
93 <code><a href="#insert">insert(project, region, body=None, requestId=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Create a HealthAggregationPolicy in the specified project in the given</p>
95 <p class="toc_element">
96 <code><a href="#list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Lists the HealthAggregationPolicies for a project in the given region.</p>
98 <p class="toc_element">
99 <code><a href="#list_next">list_next()</a></code></p>
100 <p class="firstline">Retrieves the next page of results.</p>
101 <p class="toc_element">
102 <code><a href="#patch">patch(project, region, healthAggregationPolicy, body=None, requestId=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Updates the specified regional HealthAggregationPolicy</p>
104 <p class="toc_element">
105 <code><a href="#testIamPermissions">testIamPermissions(project, region, resource, body=None, x__xgafv=None)</a></code></p>
106 <p class="firstline">Returns permissions that a caller has on the specified resource.</p>
107 <h3>Method Details</h3>
108 <div class="method">
109 <code class="details" id="aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, serviceProjectNumber=None, x__xgafv=None)</code>
110 <pre>Retrieves the list of all HealthAggregationPolicy resources,
111 regional and global, available to the specified project.
112
113 To prevent failure, it is recommended that you set the
114 `returnPartialSuccess` parameter to `true`.
115
116 Args:
117 project: string, Name of the project scoping this request. (required)
118 filter: string, A filter expression that filters resources listed in the response. Most
119 Compute resources support two types of filter expressions:
120 expressions that support regular expressions and expressions that follow
121 API improvement proposal AIP-160.
122 These two types of filter expressions cannot be mixed in one request.
123
124 If you want to use AIP-160, your expression must specify the field name, an
125 operator, and the value that you want to use for filtering. The value
126 must be a string, a number, or a boolean. The operator
127 must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`.
128
129 For example, if you are filtering Compute Engine instances, you can
130 exclude instances named `example-instance` by specifying
131 `name != example-instance`.
132
133 The `:*` comparison can be used to test whether a key has been defined.
134 For example, to find all objects with `owner` label use:
135 ```
136 labels.owner:*
137 ```
138
139 You can also filter nested fields. For example, you could specify
140 `scheduling.automaticRestart = false` to include instances only
141 if they are not scheduled for automatic restarts. You can use filtering
142 on nested fields to filter based onresource labels.
143
144 To filter on multiple expressions, provide each separate expression within
145 parentheses. For example:
146 ```
147 (scheduling.automaticRestart = true)
148 (cpuPlatform = &quot;Intel Skylake&quot;)
149 ```
150 By default, each expression is an `AND` expression. However, you
151 can include `AND` and `OR` expressions explicitly.
152 For example:
153 ```
154 (cpuPlatform = &quot;Intel Skylake&quot;) OR
155 (cpuPlatform = &quot;Intel Broadwell&quot;) AND
156 (scheduling.automaticRestart = true)
157 ```
158
159 If you want to use a regular expression, use the `eq` (equal) or `ne`
160 (not equal) operator against a single un-parenthesized expression with or
161 without quotes or against multiple parenthesized expressions. Examples:
162
163 `fieldname eq unquoted literal`
164 `fieldname eq &#x27;single quoted literal&#x27;`
165 `fieldname eq &quot;double quoted literal&quot;`
166 `(fieldname1 eq literal) (fieldname2 ne &quot;literal&quot;)`
167
168 The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
169 The literal value must match the entire field.
170
171 For example, to filter for instances that do not end with name &quot;instance&quot;,
172 you would use `name ne .*instance`.
173
174 You cannot combine constraints on multiple fields using regular
175 expressions.
176 includeAllScopes: boolean, Indicates whether every visible scope for each scope type (zone, region,
177 global) should be included in the response. For new resource types added
178 after this field, the flag has no effect as new resource types will always
179 include every visible scope for each scope type in response. For resource
180 types which predate this field, if this flag is omitted or false, only
181 scopes of the scope types where the resource type is expected to be found
182 will be included.
183 maxResults: integer, The maximum number of results per page that should be returned.
184 If the number of available results is larger than `maxResults`,
185 Compute Engine returns a `nextPageToken` that can be used to get
186 the next page of results in subsequent list requests. Acceptable values are
187 `0` to `500`, inclusive. (Default: `500`)
188 orderBy: string, Sorts list results by a certain order. By default, results
189 are returned in alphanumerical order based on the resource name.
190
191 You can also sort results in descending order based on the creation
192 timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. This sorts
193 results based on the `creationTimestamp` field in
194 reverse chronological order (newest result first). Use this to sort
195 resources like operations so that the newest operation is returned first.
196
197 Currently, only sorting by `name` or
198 `creationTimestamp desc` is supported.
199 pageToken: string, Specifies a page token to use. Set `pageToken` to the
200 `nextPageToken` returned by a previous list request to get
201 the next page of results.
202 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case
203 of failure. The default value is false.
204
205 For example, when partial success behavior is enabled, aggregatedList for a
206 single zone scope either returns all resources in the zone or no resources,
207 with an error code.
208 serviceProjectNumber: string, The Shared VPC service project id or service project number for which
209 aggregated list request is invoked for subnetworks list-usable api.
210 x__xgafv: string, V1 error format.
211 Allowed values
212 1 - v1 error format
213 2 - v2 error format
214
215 Returns:
216 An object of the form:
217
218 { # Contains a list of HealthAggregationPoliciesScopedList.
219 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
220 &quot;items&quot;: { # A list of HealthAggregationPoliciesScopedList resources.
221 &quot;a_key&quot;: { # Name of the scope containing this set of HealthAggregationPolicies.
222 &quot;healthAggregationPolicies&quot;: [ # A list of HealthAggregationPolicys contained in this scope.
223 { # Represents a health aggregation policy.
224 #
225 # A health aggregation policy resource defines a policy to aggregate health.
226 #
227 # For more information, see
228 # Health checks overview.
229 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
230 # text format.
231 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
232 # create the resource.
233 &quot;fingerprint&quot;: &quot;A String&quot;, # Fingerprint of this resource. A hash of the contents stored in this object.
234 # This field is used in optimistic locking. This field will be ignored when
235 # inserting a HealthAggregationPolicy. An up-to-date fingerprint
236 # must be provided in order to patch the HealthAggregationPolicy; Otherwise,
237 # the request will fail with error 412 conditionNotMet. To see
238 # the latest fingerprint, make a get() request to retrieve the
239 # HealthAggregationPolicy.
240 &quot;healthyPercentThreshold&quot;: 42, # Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the threshold (as a
241 # percentage) of healthy endpoints required in order to consider the
242 # aggregated health result HEALTHY. Defaults to 60. Must be in
243 # range [0, 100]. Not applicable if the policyType field isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional,
244 # and will be set to the default if unspecified. Note that both this
245 # threshold and minHealthyThreshold must be satisfied in order
246 # for HEALTHY to be the aggregated result. &quot;Endpoints&quot; refers to network
247 # endpoints within a Network Endpoint Group or instances within an Instance
248 # Group.
249 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the resource. This identifier is
250 # defined by the server.
251 &quot;kind&quot;: &quot;compute#healthAggregationPolicy&quot;, # Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for health aggregation
252 # policies.
253 &quot;minHealthyThreshold&quot;: 42, # Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the minimum number of
254 # healthy endpoints required in order to consider the aggregated health
255 # result HEALTHY. Defaults to 1. Must be positive. Not
256 # applicable if the policyType field isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional,
257 # and will be set to the default if unspecified. Note that both this
258 # threshold and healthyPercentThreshold must be satisfied in
259 # order for HEALTHY to be the aggregated result. &quot;Endpoints&quot; refers to
260 # network endpoints within a Network Endpoint Group or instances within an
261 # Instance Group.
262 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
263 # The name must be 1-63 characters long, and comply withRFC1035.
264 # Specifically, the name must be 1-63 characters long and match the regular
265 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
266 # character must be a lowercase letter, and all following characters must
267 # be a dash, lowercase letter, or digit, except the last character, which
268 # cannot be a dash.
269 &quot;policyType&quot;: &quot;A String&quot;, # Specifies the type of the healthAggregationPolicy. The only allowed value
270 # for global resources is DNS_PUBLIC_IP_POLICY. The only allowed
271 # value for regional resources is BACKEND_SERVICE_POLICY. Must
272 # be specified when the healthAggregationPolicy is created, and cannot be
273 # mutated.
274 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the health aggregation policy
275 # resides. This field applies only to the regional resource. You must specify
276 # this field as part of the HTTP request URL. It is not settable as a field
277 # in the request body.
278 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for the resource.
279 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL with id for the resource.
280 },
281 ],
282 &quot;warning&quot;: { # Informational warning which replaces the list of health aggregation
283 # policies when the list is empty.
284 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
285 # Engine returns NO_RESULTS_ON_PAGE if there
286 # are no results in the response.
287 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
288 # value format. For example:
289 #
290 # &quot;data&quot;: [
291 # {
292 # &quot;key&quot;: &quot;scope&quot;,
293 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
294 # }
295 {
296 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
297 # returned. For example, for warnings where there are no results in a list
298 # request for a particular zone, this key might be scope and
299 # the key value might be the zone name. Other examples might be a key
300 # indicating a deprecated resource and a suggested replacement, or a
301 # warning about invalid network settings (for example, if an instance
302 # attempts to perform IP forwarding but is not enabled for IP forwarding).
303 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
304 },
305 ],
306 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
307 },
308 },
309 },
310 &quot;kind&quot;: &quot;compute#healthAggregationPolicyAggregatedList&quot;, # Output only. Type of resource.
311 &quot;nextPageToken&quot;: &quot;A String&quot;, # [Output Only] This token allows you to get the next page of results for
312 # list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
313 # the query parameter pageToken in the next list request.
314 # Subsequent list requests will have their own nextPageToken to
315 # continue paging through the results.
316 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource.
317 &quot;unreachables&quot;: [ # Output only. [Output Only] Unreachable resources.
318 &quot;A String&quot;,
319 ],
320 &quot;warning&quot;: { # [Output Only] Informational warning message.
321 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
322 # Engine returns NO_RESULTS_ON_PAGE if there
323 # are no results in the response.
324 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
325 # value format. For example:
326 #
327 # &quot;data&quot;: [
328 # {
329 # &quot;key&quot;: &quot;scope&quot;,
330 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
331 # }
332 {
333 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
334 # returned. For example, for warnings where there are no results in a list
335 # request for a particular zone, this key might be scope and
336 # the key value might be the zone name. Other examples might be a key
337 # indicating a deprecated resource and a suggested replacement, or a
338 # warning about invalid network settings (for example, if an instance
339 # attempts to perform IP forwarding but is not enabled for IP forwarding).
340 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
341 },
342 ],
343 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
344 },
345 }</pre>
346 </div>
347
348 <div class="method">
349 <code class="details" id="aggregatedList_next">aggregatedList_next()</code>
350 <pre>Retrieves the next page of results.
351
352 Args:
353 previous_request: The request for the previous page. (required)
354 previous_response: The response from the request for the previous page. (required)
355
356 Returns:
357 A request object that you can call &#x27;execute()&#x27; on to request the next
358 page. Returns None if there are no more items in the collection.
359 </pre>
360 </div>
361
362 <div class="method">
363 <code class="details" id="close">close()</code>
364 <pre>Close httplib2 connections.</pre>
365 </div>
366
367 <div class="method">
368 <code class="details" id="delete">delete(project, region, healthAggregationPolicy, requestId=None, x__xgafv=None)</code>
369 <pre>Deletes the specified HealthAggregationPolicy in the given region.
370
371 Args:
372 project: string, Project ID for this request. (required)
373 region: string, Name of the region scoping this request. (required)
374 healthAggregationPolicy: string, Name of the HealthAggregationPolicy resource to delete. (required)
375 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
376 that if you must retry your request, the server will know to ignore the
377 request if it has already been completed.
378
379 For example, consider a situation where you make an initial request and
380 the request times out. If you make the request again with the same
381 request ID, the server can check if original operation with the same
382 request ID was received, and if so, will ignore the second request. This
383 prevents clients from accidentally creating duplicate commitments.
384
385 The request ID must be
386 a valid UUID with the exception that zero UUID is not supported
387 (00000000-0000-0000-0000-000000000000).
388 x__xgafv: string, V1 error format.
389 Allowed values
390 1 - v1 error format
391 2 - v2 error format
392
393 Returns:
394 An object of the form:
395
396 { # Represents an Operation resource.
397 #
398 # Google Compute Engine has three Operation resources:
399 #
400 # * [Global](/compute/docs/reference/rest/alpha/globalOperations)
401 # * [Regional](/compute/docs/reference/rest/alpha/regionOperations)
402 # * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations)
403 #
404 # You can use an operation resource to manage asynchronous API requests.
405 # For more information, readHandling
406 # API responses.
407 #
408 # Operations can be global, regional or zonal.
409 #
410 # - For global operations, use the `globalOperations`
411 # resource.
412 # - For regional operations, use the
413 # `regionOperations` resource.
414 # - For zonal operations, use
415 # the `zoneOperations` resource.
416 #
417 #
418 #
419 # For more information, read
420 # Global, Regional, and Zonal Resources.
421 #
422 # Note that completed Operation resources have a limited
423 # retention period.
424 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
425 # Not present otherwise.
426 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
427 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
428 # set when the operation is created.
429 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
430 # text format.
431 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
432 # this field will be populated.
433 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
434 # operation.
435 {
436 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
437 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
438 # details. There is a set of defined message types to use for providing
439 # details.The syntax depends on the error code. For example,
440 # QuotaExceededInfo will have details when the error code is
441 # QUOTA_EXCEEDED.
442 {
443 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
444 #
445 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
446 # is not enabled:
447 #
448 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
449 # &quot;domain&quot;: &quot;googleapis.com&quot;
450 # &quot;metadata&quot;: {
451 # &quot;resource&quot;: &quot;projects/123&quot;,
452 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
453 # }
454 # }
455 #
456 # This response indicates that the pubsub.googleapis.com API is not enabled.
457 #
458 # Example of an error that is returned when attempting to create a Spanner
459 # instance in a region that is out of stock:
460 #
461 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
462 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
463 # &quot;metadata&quot;: {
464 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
465 # }
466 # }
467 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
468 # is typically the registered service name of the tool or product that
469 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
470 # generated by some common infrastructure, the error domain must be a
471 # globally unique value that identifies the infrastructure. For Google API
472 # infrastructure, the error domain is &quot;googleapis.com&quot;.
473 &quot;metadatas&quot;: { # Additional structured details about this error.
474 #
475 # Keys must match a regular expression of `a-z+` but should
476 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
477 # length. When identifying the current value of an exceeded limit, the units
478 # should be contained in the key, not the value. For example, rather than
479 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
480 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
481 # instances that can be created in a single (batch) request.
482 &quot;a_key&quot;: &quot;A String&quot;,
483 },
484 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
485 # proximate cause of the error. Error reasons are unique within a particular
486 # domain of errors. This should be at most 63 characters and match a
487 # regular expression of `A-Z+[A-Z0-9]`, which represents
488 # UPPER_SNAKE_CASE.
489 },
490 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
491 #
492 # For example, if a quota check failed with an error indicating the calling
493 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
494 # directly to the right place in the developer console to flip the bit.
495 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
496 { # Describes a URL link.
497 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
498 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
499 },
500 ],
501 },
502 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
503 # which can be attached to an RPC error.
504 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
505 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
506 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
507 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
508 },
509 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
510 &quot;dimensions&quot;: { # The map holding related quota dimensions.
511 &quot;a_key&quot;: &quot;A String&quot;,
512 },
513 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
514 # type or metric.
515 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
516 # or metric.
517 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
518 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
519 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
520 },
521 },
522 ],
523 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
524 # This property is optional.
525 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
526 },
527 ],
528 },
529 &quot;getVersionOperationMetadata&quot;: {
530 &quot;inlineSbomInfo&quot;: {
531 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
532 # appropriate identifiers.
533 &quot;a_key&quot;: &quot;A String&quot;,
534 },
535 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
536 # identifiers.
537 &quot;a_key&quot;: &quot;A String&quot;,
538 },
539 },
540 },
541 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
542 # message that was returned, such as `NOT FOUND`.
543 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
544 # status code that was returned. For example, a `404` means the
545 # resource was not found.
546 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
547 # defined by the server.
548 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
549 # This value is inRFC3339
550 # text format.
551 &quot;instancesBulkInsertOperationMetadata&quot;: {
552 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
553 # Example key: zones/us-central1-a
554 &quot;a_key&quot;: {
555 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
556 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
557 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
558 # error.
559 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
560 # if the flow is rolling forward or rolling back.
561 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
562 },
563 },
564 },
565 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
566 # Operation resources.
567 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
568 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
569 # group of operations results from a `bulkInsert` API request.
570 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
571 # `update`, or `delete`, and so on.
572 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
573 # There is no requirement that this be linear or support any granularity of
574 # operations. This should not be used to guess when the operation will be
575 # complete. This number should monotonically increase as the operation
576 # progresses.
577 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
578 # applicable when performing regional operations.
579 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
580 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
581 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
582 # this field will contain information on all underlying zonal actions and
583 # their state.
584 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
585 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
586 # Example key: zones/us-central1-a
587 &quot;a_key&quot;: {
588 &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
589 # populated.
590 # different programming environments, including REST APIs and RPC APIs. It is
591 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
592 # three pieces of data: error code, error message, and error details.
593 #
594 # You can find out more about this error model and how to work with it in the
595 # [API Design Guide](https://cloud.google.com/apis/design/errors).
596 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
597 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
598 # message types for APIs to use.
599 {
600 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
601 },
602 ],
603 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
604 # user-facing error message should be localized and sent in the
605 # google.rpc.Status.details field, or localized by the client.
606 },
607 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
608 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
609 },
610 },
611 },
612 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
613 # This value is inRFC3339
614 # text format.
615 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
616 # following:
617 # `PENDING`, `RUNNING`, or `DONE`.
618 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
619 # operation.
620 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
621 # of the target resource.
622 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
623 # operations related to creating a snapshot, this points to the disk
624 # that the snapshot was created from.
625 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
626 # `[email protected]` or
627 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
628 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
629 # operation, this field will be populated.
630 {
631 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
632 # Engine returns NO_RESULTS_ON_PAGE if there
633 # are no results in the response.
634 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
635 # value format. For example:
636 #
637 # &quot;data&quot;: [
638 # {
639 # &quot;key&quot;: &quot;scope&quot;,
640 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
641 # }
642 {
643 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
644 # returned. For example, for warnings where there are no results in a list
645 # request for a particular zone, this key might be scope and
646 # the key value might be the zone name. Other examples might be a key
647 # indicating a deprecated resource and a suggested replacement, or a
648 # warning about invalid network settings (for example, if an instance
649 # attempts to perform IP forwarding but is not enabled for IP forwarding).
650 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
651 },
652 ],
653 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
654 },
655 ],
656 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
657 # applicable when performing per-zone operations.
658 }</pre>
659 </div>
660
661 <div class="method">
662 <code class="details" id="get">get(project, region, healthAggregationPolicy, x__xgafv=None)</code>
663 <pre>Returns the specified HealthAggregationPolicy resource in the given region.
664
665 Args:
666 project: string, Project ID for this request. (required)
667 region: string, Name of the region scoping this request. (required)
668 healthAggregationPolicy: string, Name of the HealthAggregationPolicy resource to return. (required)
669 x__xgafv: string, V1 error format.
670 Allowed values
671 1 - v1 error format
672 2 - v2 error format
673
674 Returns:
675 An object of the form:
676
677 { # Represents a health aggregation policy.
678 #
679 # A health aggregation policy resource defines a policy to aggregate health.
680 #
681 # For more information, see
682 # Health checks overview.
683 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
684 # text format.
685 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
686 # create the resource.
687 &quot;fingerprint&quot;: &quot;A String&quot;, # Fingerprint of this resource. A hash of the contents stored in this object.
688 # This field is used in optimistic locking. This field will be ignored when
689 # inserting a HealthAggregationPolicy. An up-to-date fingerprint
690 # must be provided in order to patch the HealthAggregationPolicy; Otherwise,
691 # the request will fail with error 412 conditionNotMet. To see
692 # the latest fingerprint, make a get() request to retrieve the
693 # HealthAggregationPolicy.
694 &quot;healthyPercentThreshold&quot;: 42, # Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the threshold (as a
695 # percentage) of healthy endpoints required in order to consider the
696 # aggregated health result HEALTHY. Defaults to 60. Must be in
697 # range [0, 100]. Not applicable if the policyType field isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional,
698 # and will be set to the default if unspecified. Note that both this
699 # threshold and minHealthyThreshold must be satisfied in order
700 # for HEALTHY to be the aggregated result. &quot;Endpoints&quot; refers to network
701 # endpoints within a Network Endpoint Group or instances within an Instance
702 # Group.
703 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the resource. This identifier is
704 # defined by the server.
705 &quot;kind&quot;: &quot;compute#healthAggregationPolicy&quot;, # Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for health aggregation
706 # policies.
707 &quot;minHealthyThreshold&quot;: 42, # Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the minimum number of
708 # healthy endpoints required in order to consider the aggregated health
709 # result HEALTHY. Defaults to 1. Must be positive. Not
710 # applicable if the policyType field isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional,
711 # and will be set to the default if unspecified. Note that both this
712 # threshold and healthyPercentThreshold must be satisfied in
713 # order for HEALTHY to be the aggregated result. &quot;Endpoints&quot; refers to
714 # network endpoints within a Network Endpoint Group or instances within an
715 # Instance Group.
716 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
717 # The name must be 1-63 characters long, and comply withRFC1035.
718 # Specifically, the name must be 1-63 characters long and match the regular
719 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
720 # character must be a lowercase letter, and all following characters must
721 # be a dash, lowercase letter, or digit, except the last character, which
722 # cannot be a dash.
723 &quot;policyType&quot;: &quot;A String&quot;, # Specifies the type of the healthAggregationPolicy. The only allowed value
724 # for global resources is DNS_PUBLIC_IP_POLICY. The only allowed
725 # value for regional resources is BACKEND_SERVICE_POLICY. Must
726 # be specified when the healthAggregationPolicy is created, and cannot be
727 # mutated.
728 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the health aggregation policy
729 # resides. This field applies only to the regional resource. You must specify
730 # this field as part of the HTTP request URL. It is not settable as a field
731 # in the request body.
732 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for the resource.
733 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL with id for the resource.
734 }</pre>
735 </div>
736
737 <div class="method">
738 <code class="details" id="insert">insert(project, region, body=None, requestId=None, x__xgafv=None)</code>
739 <pre>Create a HealthAggregationPolicy in the specified project in the given
740 region using the parameters that are included in the request.
741
742 Args:
743 project: string, Project ID for this request. (required)
744 region: string, Name of the region scoping this request. (required)
745 body: object, The request body.
746 The object takes the form of:
747
748 { # Represents a health aggregation policy.
749 #
750 # A health aggregation policy resource defines a policy to aggregate health.
751 #
752 # For more information, see
753 # Health checks overview.
754 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
755 # text format.
756 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
757 # create the resource.
758 &quot;fingerprint&quot;: &quot;A String&quot;, # Fingerprint of this resource. A hash of the contents stored in this object.
759 # This field is used in optimistic locking. This field will be ignored when
760 # inserting a HealthAggregationPolicy. An up-to-date fingerprint
761 # must be provided in order to patch the HealthAggregationPolicy; Otherwise,
762 # the request will fail with error 412 conditionNotMet. To see
763 # the latest fingerprint, make a get() request to retrieve the
764 # HealthAggregationPolicy.
765 &quot;healthyPercentThreshold&quot;: 42, # Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the threshold (as a
766 # percentage) of healthy endpoints required in order to consider the
767 # aggregated health result HEALTHY. Defaults to 60. Must be in
768 # range [0, 100]. Not applicable if the policyType field isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional,
769 # and will be set to the default if unspecified. Note that both this
770 # threshold and minHealthyThreshold must be satisfied in order
771 # for HEALTHY to be the aggregated result. &quot;Endpoints&quot; refers to network
772 # endpoints within a Network Endpoint Group or instances within an Instance
773 # Group.
774 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the resource. This identifier is
775 # defined by the server.
776 &quot;kind&quot;: &quot;compute#healthAggregationPolicy&quot;, # Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for health aggregation
777 # policies.
778 &quot;minHealthyThreshold&quot;: 42, # Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the minimum number of
779 # healthy endpoints required in order to consider the aggregated health
780 # result HEALTHY. Defaults to 1. Must be positive. Not
781 # applicable if the policyType field isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional,
782 # and will be set to the default if unspecified. Note that both this
783 # threshold and healthyPercentThreshold must be satisfied in
784 # order for HEALTHY to be the aggregated result. &quot;Endpoints&quot; refers to
785 # network endpoints within a Network Endpoint Group or instances within an
786 # Instance Group.
787 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
788 # The name must be 1-63 characters long, and comply withRFC1035.
789 # Specifically, the name must be 1-63 characters long and match the regular
790 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
791 # character must be a lowercase letter, and all following characters must
792 # be a dash, lowercase letter, or digit, except the last character, which
793 # cannot be a dash.
794 &quot;policyType&quot;: &quot;A String&quot;, # Specifies the type of the healthAggregationPolicy. The only allowed value
795 # for global resources is DNS_PUBLIC_IP_POLICY. The only allowed
796 # value for regional resources is BACKEND_SERVICE_POLICY. Must
797 # be specified when the healthAggregationPolicy is created, and cannot be
798 # mutated.
799 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the health aggregation policy
800 # resides. This field applies only to the regional resource. You must specify
801 # this field as part of the HTTP request URL. It is not settable as a field
802 # in the request body.
803 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for the resource.
804 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL with id for the resource.
805 }
806
807 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
808 that if you must retry your request, the server will know to ignore the
809 request if it has already been completed.
810
811 For example, consider a situation where you make an initial request and
812 the request times out. If you make the request again with the same
813 request ID, the server can check if original operation with the same
814 request ID was received, and if so, will ignore the second request. This
815 prevents clients from accidentally creating duplicate commitments.
816
817 The request ID must be
818 a valid UUID with the exception that zero UUID is not supported
819 (00000000-0000-0000-0000-000000000000).
820 x__xgafv: string, V1 error format.
821 Allowed values
822 1 - v1 error format
823 2 - v2 error format
824
825 Returns:
826 An object of the form:
827
828 { # Represents an Operation resource.
829 #
830 # Google Compute Engine has three Operation resources:
831 #
832 # * [Global](/compute/docs/reference/rest/alpha/globalOperations)
833 # * [Regional](/compute/docs/reference/rest/alpha/regionOperations)
834 # * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations)
835 #
836 # You can use an operation resource to manage asynchronous API requests.
837 # For more information, readHandling
838 # API responses.
839 #
840 # Operations can be global, regional or zonal.
841 #
842 # - For global operations, use the `globalOperations`
843 # resource.
844 # - For regional operations, use the
845 # `regionOperations` resource.
846 # - For zonal operations, use
847 # the `zoneOperations` resource.
848 #
849 #
850 #
851 # For more information, read
852 # Global, Regional, and Zonal Resources.
853 #
854 # Note that completed Operation resources have a limited
855 # retention period.
856 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
857 # Not present otherwise.
858 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
859 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
860 # set when the operation is created.
861 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
862 # text format.
863 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
864 # this field will be populated.
865 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
866 # operation.
867 {
868 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
869 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
870 # details. There is a set of defined message types to use for providing
871 # details.The syntax depends on the error code. For example,
872 # QuotaExceededInfo will have details when the error code is
873 # QUOTA_EXCEEDED.
874 {
875 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
876 #
877 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
878 # is not enabled:
879 #
880 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
881 # &quot;domain&quot;: &quot;googleapis.com&quot;
882 # &quot;metadata&quot;: {
883 # &quot;resource&quot;: &quot;projects/123&quot;,
884 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
885 # }
886 # }
887 #
888 # This response indicates that the pubsub.googleapis.com API is not enabled.
889 #
890 # Example of an error that is returned when attempting to create a Spanner
891 # instance in a region that is out of stock:
892 #
893 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
894 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
895 # &quot;metadata&quot;: {
896 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
897 # }
898 # }
899 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
900 # is typically the registered service name of the tool or product that
901 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
902 # generated by some common infrastructure, the error domain must be a
903 # globally unique value that identifies the infrastructure. For Google API
904 # infrastructure, the error domain is &quot;googleapis.com&quot;.
905 &quot;metadatas&quot;: { # Additional structured details about this error.
906 #
907 # Keys must match a regular expression of `a-z+` but should
908 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
909 # length. When identifying the current value of an exceeded limit, the units
910 # should be contained in the key, not the value. For example, rather than
911 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
912 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
913 # instances that can be created in a single (batch) request.
914 &quot;a_key&quot;: &quot;A String&quot;,
915 },
916 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
917 # proximate cause of the error. Error reasons are unique within a particular
918 # domain of errors. This should be at most 63 characters and match a
919 # regular expression of `A-Z+[A-Z0-9]`, which represents
920 # UPPER_SNAKE_CASE.
921 },
922 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
923 #
924 # For example, if a quota check failed with an error indicating the calling
925 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
926 # directly to the right place in the developer console to flip the bit.
927 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
928 { # Describes a URL link.
929 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
930 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
931 },
932 ],
933 },
934 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
935 # which can be attached to an RPC error.
936 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
937 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
938 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
939 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
940 },
941 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
942 &quot;dimensions&quot;: { # The map holding related quota dimensions.
943 &quot;a_key&quot;: &quot;A String&quot;,
944 },
945 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
946 # type or metric.
947 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
948 # or metric.
949 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
950 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
951 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
952 },
953 },
954 ],
955 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
956 # This property is optional.
957 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
958 },
959 ],
960 },
961 &quot;getVersionOperationMetadata&quot;: {
962 &quot;inlineSbomInfo&quot;: {
963 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
964 # appropriate identifiers.
965 &quot;a_key&quot;: &quot;A String&quot;,
966 },
967 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
968 # identifiers.
969 &quot;a_key&quot;: &quot;A String&quot;,
970 },
971 },
972 },
973 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
974 # message that was returned, such as `NOT FOUND`.
975 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
976 # status code that was returned. For example, a `404` means the
977 # resource was not found.
978 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
979 # defined by the server.
980 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
981 # This value is inRFC3339
982 # text format.
983 &quot;instancesBulkInsertOperationMetadata&quot;: {
984 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
985 # Example key: zones/us-central1-a
986 &quot;a_key&quot;: {
987 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
988 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
989 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
990 # error.
991 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
992 # if the flow is rolling forward or rolling back.
993 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
994 },
995 },
996 },
997 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
998 # Operation resources.
999 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
1000 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
1001 # group of operations results from a `bulkInsert` API request.
1002 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
1003 # `update`, or `delete`, and so on.
1004 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
1005 # There is no requirement that this be linear or support any granularity of
1006 # operations. This should not be used to guess when the operation will be
1007 # complete. This number should monotonically increase as the operation
1008 # progresses.
1009 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
1010 # applicable when performing regional operations.
1011 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1012 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
1013 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
1014 # this field will contain information on all underlying zonal actions and
1015 # their state.
1016 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
1017 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
1018 # Example key: zones/us-central1-a
1019 &quot;a_key&quot;: {
1020 &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
1021 # populated.
1022 # different programming environments, including REST APIs and RPC APIs. It is
1023 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1024 # three pieces of data: error code, error message, and error details.
1025 #
1026 # You can find out more about this error model and how to work with it in the
1027 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1028 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1029 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1030 # message types for APIs to use.
1031 {
1032 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1033 },
1034 ],
1035 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1036 # user-facing error message should be localized and sent in the
1037 # google.rpc.Status.details field, or localized by the client.
1038 },
1039 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
1040 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
1041 },
1042 },
1043 },
1044 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
1045 # This value is inRFC3339
1046 # text format.
1047 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
1048 # following:
1049 # `PENDING`, `RUNNING`, or `DONE`.
1050 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
1051 # operation.
1052 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
1053 # of the target resource.
1054 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
1055 # operations related to creating a snapshot, this points to the disk
1056 # that the snapshot was created from.
1057 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
1058 # `[email protected]` or
1059 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
1060 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
1061 # operation, this field will be populated.
1062 {
1063 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1064 # Engine returns NO_RESULTS_ON_PAGE if there
1065 # are no results in the response.
1066 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1067 # value format. For example:
1068 #
1069 # &quot;data&quot;: [
1070 # {
1071 # &quot;key&quot;: &quot;scope&quot;,
1072 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1073 # }
1074 {
1075 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1076 # returned. For example, for warnings where there are no results in a list
1077 # request for a particular zone, this key might be scope and
1078 # the key value might be the zone name. Other examples might be a key
1079 # indicating a deprecated resource and a suggested replacement, or a
1080 # warning about invalid network settings (for example, if an instance
1081 # attempts to perform IP forwarding but is not enabled for IP forwarding).
1082 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1083 },
1084 ],
1085 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1086 },
1087 ],
1088 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
1089 # applicable when performing per-zone operations.
1090 }</pre>
1091 </div>
1092
1093 <div class="method">
1094 <code class="details" id="list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code>
1095 <pre>Lists the HealthAggregationPolicies for a project in the given region.
1096
1097 Args:
1098 project: string, Project ID for this request. (required)
1099 region: string, Name of the region scoping this request. (required)
1100 filter: string, A filter expression that filters resources listed in the response. Most
1101 Compute resources support two types of filter expressions:
1102 expressions that support regular expressions and expressions that follow
1103 API improvement proposal AIP-160.
1104 These two types of filter expressions cannot be mixed in one request.
1105
1106 If you want to use AIP-160, your expression must specify the field name, an
1107 operator, and the value that you want to use for filtering. The value
1108 must be a string, a number, or a boolean. The operator
1109 must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`.
1110
1111 For example, if you are filtering Compute Engine instances, you can
1112 exclude instances named `example-instance` by specifying
1113 `name != example-instance`.
1114
1115 The `:*` comparison can be used to test whether a key has been defined.
1116 For example, to find all objects with `owner` label use:
1117 ```
1118 labels.owner:*
1119 ```
1120
1121 You can also filter nested fields. For example, you could specify
1122 `scheduling.automaticRestart = false` to include instances only
1123 if they are not scheduled for automatic restarts. You can use filtering
1124 on nested fields to filter based onresource labels.
1125
1126 To filter on multiple expressions, provide each separate expression within
1127 parentheses. For example:
1128 ```
1129 (scheduling.automaticRestart = true)
1130 (cpuPlatform = &quot;Intel Skylake&quot;)
1131 ```
1132 By default, each expression is an `AND` expression. However, you
1133 can include `AND` and `OR` expressions explicitly.
1134 For example:
1135 ```
1136 (cpuPlatform = &quot;Intel Skylake&quot;) OR
1137 (cpuPlatform = &quot;Intel Broadwell&quot;) AND
1138 (scheduling.automaticRestart = true)
1139 ```
1140
1141 If you want to use a regular expression, use the `eq` (equal) or `ne`
1142 (not equal) operator against a single un-parenthesized expression with or
1143 without quotes or against multiple parenthesized expressions. Examples:
1144
1145 `fieldname eq unquoted literal`
1146 `fieldname eq &#x27;single quoted literal&#x27;`
1147 `fieldname eq &quot;double quoted literal&quot;`
1148 `(fieldname1 eq literal) (fieldname2 ne &quot;literal&quot;)`
1149
1150 The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
1151 The literal value must match the entire field.
1152
1153 For example, to filter for instances that do not end with name &quot;instance&quot;,
1154 you would use `name ne .*instance`.
1155
1156 You cannot combine constraints on multiple fields using regular
1157 expressions.
1158 maxResults: integer, The maximum number of results per page that should be returned.
1159 If the number of available results is larger than `maxResults`,
1160 Compute Engine returns a `nextPageToken` that can be used to get
1161 the next page of results in subsequent list requests. Acceptable values are
1162 `0` to `500`, inclusive. (Default: `500`)
1163 orderBy: string, Sorts list results by a certain order. By default, results
1164 are returned in alphanumerical order based on the resource name.
1165
1166 You can also sort results in descending order based on the creation
1167 timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. This sorts
1168 results based on the `creationTimestamp` field in
1169 reverse chronological order (newest result first). Use this to sort
1170 resources like operations so that the newest operation is returned first.
1171
1172 Currently, only sorting by `name` or
1173 `creationTimestamp desc` is supported.
1174 pageToken: string, Specifies a page token to use. Set `pageToken` to the
1175 `nextPageToken` returned by a previous list request to get
1176 the next page of results.
1177 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case
1178 of failure. The default value is false.
1179
1180 For example, when partial success behavior is enabled, aggregatedList for a
1181 single zone scope either returns all resources in the zone or no resources,
1182 with an error code.
1183 x__xgafv: string, V1 error format.
1184 Allowed values
1185 1 - v1 error format
1186 2 - v2 error format
1187
1188 Returns:
1189 An object of the form:
1190
1191 {
1192 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
1193 &quot;items&quot;: [ # A list of HealthAggregationPolicy resources.
1194 { # Represents a health aggregation policy.
1195 #
1196 # A health aggregation policy resource defines a policy to aggregate health.
1197 #
1198 # For more information, see
1199 # Health checks overview.
1200 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
1201 # text format.
1202 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
1203 # create the resource.
1204 &quot;fingerprint&quot;: &quot;A String&quot;, # Fingerprint of this resource. A hash of the contents stored in this object.
1205 # This field is used in optimistic locking. This field will be ignored when
1206 # inserting a HealthAggregationPolicy. An up-to-date fingerprint
1207 # must be provided in order to patch the HealthAggregationPolicy; Otherwise,
1208 # the request will fail with error 412 conditionNotMet. To see
1209 # the latest fingerprint, make a get() request to retrieve the
1210 # HealthAggregationPolicy.
1211 &quot;healthyPercentThreshold&quot;: 42, # Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the threshold (as a
1212 # percentage) of healthy endpoints required in order to consider the
1213 # aggregated health result HEALTHY. Defaults to 60. Must be in
1214 # range [0, 100]. Not applicable if the policyType field isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional,
1215 # and will be set to the default if unspecified. Note that both this
1216 # threshold and minHealthyThreshold must be satisfied in order
1217 # for HEALTHY to be the aggregated result. &quot;Endpoints&quot; refers to network
1218 # endpoints within a Network Endpoint Group or instances within an Instance
1219 # Group.
1220 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the resource. This identifier is
1221 # defined by the server.
1222 &quot;kind&quot;: &quot;compute#healthAggregationPolicy&quot;, # Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for health aggregation
1223 # policies.
1224 &quot;minHealthyThreshold&quot;: 42, # Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the minimum number of
1225 # healthy endpoints required in order to consider the aggregated health
1226 # result HEALTHY. Defaults to 1. Must be positive. Not
1227 # applicable if the policyType field isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional,
1228 # and will be set to the default if unspecified. Note that both this
1229 # threshold and healthyPercentThreshold must be satisfied in
1230 # order for HEALTHY to be the aggregated result. &quot;Endpoints&quot; refers to
1231 # network endpoints within a Network Endpoint Group or instances within an
1232 # Instance Group.
1233 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
1234 # The name must be 1-63 characters long, and comply withRFC1035.
1235 # Specifically, the name must be 1-63 characters long and match the regular
1236 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
1237 # character must be a lowercase letter, and all following characters must
1238 # be a dash, lowercase letter, or digit, except the last character, which
1239 # cannot be a dash.
1240 &quot;policyType&quot;: &quot;A String&quot;, # Specifies the type of the healthAggregationPolicy. The only allowed value
1241 # for global resources is DNS_PUBLIC_IP_POLICY. The only allowed
1242 # value for regional resources is BACKEND_SERVICE_POLICY. Must
1243 # be specified when the healthAggregationPolicy is created, and cannot be
1244 # mutated.
1245 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the health aggregation policy
1246 # resides. This field applies only to the regional resource. You must specify
1247 # this field as part of the HTTP request URL. It is not settable as a field
1248 # in the request body.
1249 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for the resource.
1250 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL with id for the resource.
1251 },
1252 ],
1253 &quot;kind&quot;: &quot;compute#healthAggregationPolicyList&quot;, # Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for health aggregation
1254 # policies.
1255 &quot;nextPageToken&quot;: &quot;A String&quot;, # [Output Only] This token allows you to get the next page of results for
1256 # list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
1257 # the query parameter pageToken in the next list request.
1258 # Subsequent list requests will have their own nextPageToken to
1259 # continue paging through the results.
1260 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for this resource.
1261 &quot;warning&quot;: { # [Output Only] Informational warning message.
1262 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1263 # Engine returns NO_RESULTS_ON_PAGE if there
1264 # are no results in the response.
1265 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1266 # value format. For example:
1267 #
1268 # &quot;data&quot;: [
1269 # {
1270 # &quot;key&quot;: &quot;scope&quot;,
1271 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1272 # }
1273 {
1274 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1275 # returned. For example, for warnings where there are no results in a list
1276 # request for a particular zone, this key might be scope and
1277 # the key value might be the zone name. Other examples might be a key
1278 # indicating a deprecated resource and a suggested replacement, or a
1279 # warning about invalid network settings (for example, if an instance
1280 # attempts to perform IP forwarding but is not enabled for IP forwarding).
1281 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1282 },
1283 ],
1284 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1285 },
1286 }</pre>
1287 </div>
1288
1289 <div class="method">
1290 <code class="details" id="list_next">list_next()</code>
1291 <pre>Retrieves the next page of results.
1292
1293 Args:
1294 previous_request: The request for the previous page. (required)
1295 previous_response: The response from the request for the previous page. (required)
1296
1297 Returns:
1298 A request object that you can call &#x27;execute()&#x27; on to request the next
1299 page. Returns None if there are no more items in the collection.
1300 </pre>
1301 </div>
1302
1303 <div class="method">
1304 <code class="details" id="patch">patch(project, region, healthAggregationPolicy, body=None, requestId=None, x__xgafv=None)</code>
1305 <pre>Updates the specified regional HealthAggregationPolicy
1306 resource with the data included in the request. This method supportsPATCH
1307 semantics and uses theJSON merge
1308 patch format and processing rules.
1309
1310 Args:
1311 project: string, Project ID for this request. (required)
1312 region: string, Name of the region scoping this request. (required)
1313 healthAggregationPolicy: string, Name of the HealthAggregationPolicy to update. The name
1314 must be 1-63 characters long, and comply with RFC1035. (required)
1315 body: object, The request body.
1316 The object takes the form of:
1317
1318 { # Represents a health aggregation policy.
1319 #
1320 # A health aggregation policy resource defines a policy to aggregate health.
1321 #
1322 # For more information, see
1323 # Health checks overview.
1324 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
1325 # text format.
1326 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
1327 # create the resource.
1328 &quot;fingerprint&quot;: &quot;A String&quot;, # Fingerprint of this resource. A hash of the contents stored in this object.
1329 # This field is used in optimistic locking. This field will be ignored when
1330 # inserting a HealthAggregationPolicy. An up-to-date fingerprint
1331 # must be provided in order to patch the HealthAggregationPolicy; Otherwise,
1332 # the request will fail with error 412 conditionNotMet. To see
1333 # the latest fingerprint, make a get() request to retrieve the
1334 # HealthAggregationPolicy.
1335 &quot;healthyPercentThreshold&quot;: 42, # Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the threshold (as a
1336 # percentage) of healthy endpoints required in order to consider the
1337 # aggregated health result HEALTHY. Defaults to 60. Must be in
1338 # range [0, 100]. Not applicable if the policyType field isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional,
1339 # and will be set to the default if unspecified. Note that both this
1340 # threshold and minHealthyThreshold must be satisfied in order
1341 # for HEALTHY to be the aggregated result. &quot;Endpoints&quot; refers to network
1342 # endpoints within a Network Endpoint Group or instances within an Instance
1343 # Group.
1344 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the resource. This identifier is
1345 # defined by the server.
1346 &quot;kind&quot;: &quot;compute#healthAggregationPolicy&quot;, # Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for health aggregation
1347 # policies.
1348 &quot;minHealthyThreshold&quot;: 42, # Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the minimum number of
1349 # healthy endpoints required in order to consider the aggregated health
1350 # result HEALTHY. Defaults to 1. Must be positive. Not
1351 # applicable if the policyType field isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional,
1352 # and will be set to the default if unspecified. Note that both this
1353 # threshold and healthyPercentThreshold must be satisfied in
1354 # order for HEALTHY to be the aggregated result. &quot;Endpoints&quot; refers to
1355 # network endpoints within a Network Endpoint Group or instances within an
1356 # Instance Group.
1357 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
1358 # The name must be 1-63 characters long, and comply withRFC1035.
1359 # Specifically, the name must be 1-63 characters long and match the regular
1360 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
1361 # character must be a lowercase letter, and all following characters must
1362 # be a dash, lowercase letter, or digit, except the last character, which
1363 # cannot be a dash.
1364 &quot;policyType&quot;: &quot;A String&quot;, # Specifies the type of the healthAggregationPolicy. The only allowed value
1365 # for global resources is DNS_PUBLIC_IP_POLICY. The only allowed
1366 # value for regional resources is BACKEND_SERVICE_POLICY. Must
1367 # be specified when the healthAggregationPolicy is created, and cannot be
1368 # mutated.
1369 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the health aggregation policy
1370 # resides. This field applies only to the regional resource. You must specify
1371 # this field as part of the HTTP request URL. It is not settable as a field
1372 # in the request body.
1373 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for the resource.
1374 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL with id for the resource.
1375 }
1376
1377 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
1378 that if you must retry your request, the server will know to ignore the
1379 request if it has already been completed.
1380
1381 For example, consider a situation where you make an initial request and
1382 the request times out. If you make the request again with the same
1383 request ID, the server can check if original operation with the same
1384 request ID was received, and if so, will ignore the second request. This
1385 prevents clients from accidentally creating duplicate commitments.
1386
1387 The request ID must be
1388 a valid UUID with the exception that zero UUID is not supported
1389 (00000000-0000-0000-0000-000000000000).
1390 x__xgafv: string, V1 error format.
1391 Allowed values
1392 1 - v1 error format
1393 2 - v2 error format
1394
1395 Returns:
1396 An object of the form:
1397
1398 { # Represents an Operation resource.
1399 #
1400 # Google Compute Engine has three Operation resources:
1401 #
1402 # * [Global](/compute/docs/reference/rest/alpha/globalOperations)
1403 # * [Regional](/compute/docs/reference/rest/alpha/regionOperations)
1404 # * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations)
1405 #
1406 # You can use an operation resource to manage asynchronous API requests.
1407 # For more information, readHandling
1408 # API responses.
1409 #
1410 # Operations can be global, regional or zonal.
1411 #
1412 # - For global operations, use the `globalOperations`
1413 # resource.
1414 # - For regional operations, use the
1415 # `regionOperations` resource.
1416 # - For zonal operations, use
1417 # the `zoneOperations` resource.
1418 #
1419 #
1420 #
1421 # For more information, read
1422 # Global, Regional, and Zonal Resources.
1423 #
1424 # Note that completed Operation resources have a limited
1425 # retention period.
1426 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
1427 # Not present otherwise.
1428 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1429 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
1430 # set when the operation is created.
1431 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
1432 # text format.
1433 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
1434 # this field will be populated.
1435 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
1436 # operation.
1437 {
1438 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
1439 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
1440 # details. There is a set of defined message types to use for providing
1441 # details.The syntax depends on the error code. For example,
1442 # QuotaExceededInfo will have details when the error code is
1443 # QUOTA_EXCEEDED.
1444 {
1445 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
1446 #
1447 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
1448 # is not enabled:
1449 #
1450 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
1451 # &quot;domain&quot;: &quot;googleapis.com&quot;
1452 # &quot;metadata&quot;: {
1453 # &quot;resource&quot;: &quot;projects/123&quot;,
1454 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
1455 # }
1456 # }
1457 #
1458 # This response indicates that the pubsub.googleapis.com API is not enabled.
1459 #
1460 # Example of an error that is returned when attempting to create a Spanner
1461 # instance in a region that is out of stock:
1462 #
1463 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
1464 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
1465 # &quot;metadata&quot;: {
1466 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
1467 # }
1468 # }
1469 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
1470 # is typically the registered service name of the tool or product that
1471 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
1472 # generated by some common infrastructure, the error domain must be a
1473 # globally unique value that identifies the infrastructure. For Google API
1474 # infrastructure, the error domain is &quot;googleapis.com&quot;.
1475 &quot;metadatas&quot;: { # Additional structured details about this error.
1476 #
1477 # Keys must match a regular expression of `a-z+` but should
1478 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
1479 # length. When identifying the current value of an exceeded limit, the units
1480 # should be contained in the key, not the value. For example, rather than
1481 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
1482 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
1483 # instances that can be created in a single (batch) request.
1484 &quot;a_key&quot;: &quot;A String&quot;,
1485 },
1486 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
1487 # proximate cause of the error. Error reasons are unique within a particular
1488 # domain of errors. This should be at most 63 characters and match a
1489 # regular expression of `A-Z+[A-Z0-9]`, which represents
1490 # UPPER_SNAKE_CASE.
1491 },
1492 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
1493 #
1494 # For example, if a quota check failed with an error indicating the calling
1495 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
1496 # directly to the right place in the developer console to flip the bit.
1497 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
1498 { # Describes a URL link.
1499 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
1500 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
1501 },
1502 ],
1503 },
1504 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
1505 # which can be attached to an RPC error.
1506 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
1507 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
1508 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
1509 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
1510 },
1511 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
1512 &quot;dimensions&quot;: { # The map holding related quota dimensions.
1513 &quot;a_key&quot;: &quot;A String&quot;,
1514 },
1515 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
1516 # type or metric.
1517 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
1518 # or metric.
1519 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
1520 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
1521 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
1522 },
1523 },
1524 ],
1525 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
1526 # This property is optional.
1527 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
1528 },
1529 ],
1530 },
1531 &quot;getVersionOperationMetadata&quot;: {
1532 &quot;inlineSbomInfo&quot;: {
1533 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
1534 # appropriate identifiers.
1535 &quot;a_key&quot;: &quot;A String&quot;,
1536 },
1537 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
1538 # identifiers.
1539 &quot;a_key&quot;: &quot;A String&quot;,
1540 },
1541 },
1542 },
1543 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
1544 # message that was returned, such as `NOT FOUND`.
1545 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
1546 # status code that was returned. For example, a `404` means the
1547 # resource was not found.
1548 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
1549 # defined by the server.
1550 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
1551 # This value is inRFC3339
1552 # text format.
1553 &quot;instancesBulkInsertOperationMetadata&quot;: {
1554 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
1555 # Example key: zones/us-central1-a
1556 &quot;a_key&quot;: {
1557 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
1558 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
1559 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
1560 # error.
1561 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
1562 # if the flow is rolling forward or rolling back.
1563 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
1564 },
1565 },
1566 },
1567 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
1568 # Operation resources.
1569 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
1570 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
1571 # group of operations results from a `bulkInsert` API request.
1572 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
1573 # `update`, or `delete`, and so on.
1574 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
1575 # There is no requirement that this be linear or support any granularity of
1576 # operations. This should not be used to guess when the operation will be
1577 # complete. This number should monotonically increase as the operation
1578 # progresses.
1579 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
1580 # applicable when performing regional operations.
1581 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1582 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for this resource with the resource id.
1583 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
1584 # this field will contain information on all underlying zonal actions and
1585 # their state.
1586 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
1587 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
1588 # Example key: zones/us-central1-a
1589 &quot;a_key&quot;: {
1590 &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
1591 # populated.
1592 # different programming environments, including REST APIs and RPC APIs. It is
1593 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1594 # three pieces of data: error code, error message, and error details.
1595 #
1596 # You can find out more about this error model and how to work with it in the
1597 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1598 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1599 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1600 # message types for APIs to use.
1601 {
1602 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1603 },
1604 ],
1605 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1606 # user-facing error message should be localized and sent in the
1607 # google.rpc.Status.details field, or localized by the client.
1608 },
1609 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
1610 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
1611 },
1612 },
1613 },
1614 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
1615 # This value is inRFC3339
1616 # text format.
1617 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
1618 # following:
1619 # `PENDING`, `RUNNING`, or `DONE`.
1620 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
1621 # operation.
1622 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
1623 # of the target resource.
1624 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
1625 # operations related to creating a snapshot, this points to the disk
1626 # that the snapshot was created from.
1627 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
1628 # `[email protected]` or
1629 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
1630 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
1631 # operation, this field will be populated.
1632 {
1633 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1634 # Engine returns NO_RESULTS_ON_PAGE if there
1635 # are no results in the response.
1636 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1637 # value format. For example:
1638 #
1639 # &quot;data&quot;: [
1640 # {
1641 # &quot;key&quot;: &quot;scope&quot;,
1642 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1643 # }
1644 {
1645 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1646 # returned. For example, for warnings where there are no results in a list
1647 # request for a particular zone, this key might be scope and
1648 # the key value might be the zone name. Other examples might be a key
1649 # indicating a deprecated resource and a suggested replacement, or a
1650 # warning about invalid network settings (for example, if an instance
1651 # attempts to perform IP forwarding but is not enabled for IP forwarding).
1652 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1653 },
1654 ],
1655 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1656 },
1657 ],
1658 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
1659 # applicable when performing per-zone operations.
1660 }</pre>
1661 </div>
1662
1663 <div class="method">
1664 <code class="details" id="testIamPermissions">testIamPermissions(project, region, resource, body=None, x__xgafv=None)</code>
1665 <pre>Returns permissions that a caller has on the specified resource.
1666
1667 Args:
1668 project: string, Project ID for this request. (required)
1669 region: string, The name of the region for this request. (required)
1670 resource: string, Name or id of the resource for this request. (required)
1671 body: object, The request body.
1672 The object takes the form of:
1673
1674 {
1675 &quot;permissions&quot;: [ # The set of permissions to check for the &#x27;resource&#x27;. Permissions with
1676 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed.
1677 &quot;A String&quot;,
1678 ],
1679 }
1680
1681 x__xgafv: string, V1 error format.
1682 Allowed values
1683 1 - v1 error format
1684 2 - v2 error format
1685
1686 Returns:
1687 An object of the form:
1688
1689 {
1690 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
1691 # allowed.
1692 &quot;A String&quot;,
1693 ],
1694 }</pre>
1695 </div>
1696
1697 </body></html>