Debian Codegraph @

docs/dyn/compute_beta.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_beta.html">Compute Engine API</a> . <a href="compute_beta.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/beta/globalOperations)
401 # * [Regional](/compute/docs/reference/rest/beta/regionOperations)
402 # * [Zonal](/compute/docs/reference/rest/beta/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;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
581 # this field will contain information on all underlying zonal actions and
582 # their state.
583 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
584 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
585 # Example key: zones/us-central1-a
586 &quot;a_key&quot;: {
587 &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
588 # populated.
589 # different programming environments, including REST APIs and RPC APIs. It is
590 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
591 # three pieces of data: error code, error message, and error details.
592 #
593 # You can find out more about this error model and how to work with it in the
594 # [API Design Guide](https://cloud.google.com/apis/design/errors).
595 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
596 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
597 # message types for APIs to use.
598 {
599 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
600 },
601 ],
602 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
603 # user-facing error message should be localized and sent in the
604 # google.rpc.Status.details field, or localized by the client.
605 },
606 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
607 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
608 },
609 },
610 },
611 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
612 # This value is inRFC3339
613 # text format.
614 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
615 # following:
616 # `PENDING`, `RUNNING`, or `DONE`.
617 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
618 # operation.
619 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
620 # of the target resource.
621 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
622 # operations related to creating a snapshot, this points to the disk
623 # that the snapshot was created from.
624 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
625 # `[email protected]` or
626 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
627 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
628 # operation, this field will be populated.
629 {
630 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
631 # Engine returns NO_RESULTS_ON_PAGE if there
632 # are no results in the response.
633 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
634 # value format. For example:
635 #
636 # &quot;data&quot;: [
637 # {
638 # &quot;key&quot;: &quot;scope&quot;,
639 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
640 # }
641 {
642 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
643 # returned. For example, for warnings where there are no results in a list
644 # request for a particular zone, this key might be scope and
645 # the key value might be the zone name. Other examples might be a key
646 # indicating a deprecated resource and a suggested replacement, or a
647 # warning about invalid network settings (for example, if an instance
648 # attempts to perform IP forwarding but is not enabled for IP forwarding).
649 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
650 },
651 ],
652 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
653 },
654 ],
655 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
656 # applicable when performing per-zone operations.
657 }</pre>
658 </div>
659
660 <div class="method">
661 <code class="details" id="get">get(project, region, healthAggregationPolicy, x__xgafv=None)</code>
662 <pre>Returns the specified HealthAggregationPolicy resource in the given region.
663
664 Args:
665 project: string, Project ID for this request. (required)
666 region: string, Name of the region scoping this request. (required)
667 healthAggregationPolicy: string, Name of the HealthAggregationPolicy resource to return. (required)
668 x__xgafv: string, V1 error format.
669 Allowed values
670 1 - v1 error format
671 2 - v2 error format
672
673 Returns:
674 An object of the form:
675
676 { # Represents a health aggregation policy.
677 #
678 # A health aggregation policy resource defines a policy to aggregate health.
679 #
680 # For more information, see
681 # Health checks overview.
682 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
683 # text format.
684 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
685 # create the resource.
686 &quot;fingerprint&quot;: &quot;A String&quot;, # Fingerprint of this resource. A hash of the contents stored in this object.
687 # This field is used in optimistic locking. This field will be ignored when
688 # inserting a HealthAggregationPolicy. An up-to-date fingerprint
689 # must be provided in order to patch the HealthAggregationPolicy; Otherwise,
690 # the request will fail with error 412 conditionNotMet. To see
691 # the latest fingerprint, make a get() request to retrieve the
692 # HealthAggregationPolicy.
693 &quot;healthyPercentThreshold&quot;: 42, # Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the threshold (as a
694 # percentage) of healthy endpoints required in order to consider the
695 # aggregated health result HEALTHY. Defaults to 60. Must be in
696 # range [0, 100]. Not applicable if the policyType field isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional,
697 # and will be set to the default if unspecified. Note that both this
698 # threshold and minHealthyThreshold must be satisfied in order
699 # for HEALTHY to be the aggregated result. &quot;Endpoints&quot; refers to network
700 # endpoints within a Network Endpoint Group or instances within an Instance
701 # Group.
702 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the resource. This identifier is
703 # defined by the server.
704 &quot;kind&quot;: &quot;compute#healthAggregationPolicy&quot;, # Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for health aggregation
705 # policies.
706 &quot;minHealthyThreshold&quot;: 42, # Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the minimum number of
707 # healthy endpoints required in order to consider the aggregated health
708 # result HEALTHY. Defaults to 1. Must be positive. Not
709 # applicable if the policyType field isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional,
710 # and will be set to the default if unspecified. Note that both this
711 # threshold and healthyPercentThreshold must be satisfied in
712 # order for HEALTHY to be the aggregated result. &quot;Endpoints&quot; refers to
713 # network endpoints within a Network Endpoint Group or instances within an
714 # Instance Group.
715 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
716 # The name must be 1-63 characters long, and comply withRFC1035.
717 # Specifically, the name must be 1-63 characters long and match the regular
718 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
719 # character must be a lowercase letter, and all following characters must
720 # be a dash, lowercase letter, or digit, except the last character, which
721 # cannot be a dash.
722 &quot;policyType&quot;: &quot;A String&quot;, # Specifies the type of the healthAggregationPolicy. The only allowed value
723 # for global resources is DNS_PUBLIC_IP_POLICY. The only allowed
724 # value for regional resources is BACKEND_SERVICE_POLICY. Must
725 # be specified when the healthAggregationPolicy is created, and cannot be
726 # mutated.
727 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the health aggregation policy
728 # resides. This field applies only to the regional resource. You must specify
729 # this field as part of the HTTP request URL. It is not settable as a field
730 # in the request body.
731 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for the resource.
732 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL with id for the resource.
733 }</pre>
734 </div>
735
736 <div class="method">
737 <code class="details" id="insert">insert(project, region, body=None, requestId=None, x__xgafv=None)</code>
738 <pre>Create a HealthAggregationPolicy in the specified project in the given
739 region using the parameters that are included in the request.
740
741 Args:
742 project: string, Project ID for this request. (required)
743 region: string, Name of the region scoping this request. (required)
744 body: object, The request body.
745 The object takes the form of:
746
747 { # Represents a health aggregation policy.
748 #
749 # A health aggregation policy resource defines a policy to aggregate health.
750 #
751 # For more information, see
752 # Health checks overview.
753 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
754 # text format.
755 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
756 # create the resource.
757 &quot;fingerprint&quot;: &quot;A String&quot;, # Fingerprint of this resource. A hash of the contents stored in this object.
758 # This field is used in optimistic locking. This field will be ignored when
759 # inserting a HealthAggregationPolicy. An up-to-date fingerprint
760 # must be provided in order to patch the HealthAggregationPolicy; Otherwise,
761 # the request will fail with error 412 conditionNotMet. To see
762 # the latest fingerprint, make a get() request to retrieve the
763 # HealthAggregationPolicy.
764 &quot;healthyPercentThreshold&quot;: 42, # Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the threshold (as a
765 # percentage) of healthy endpoints required in order to consider the
766 # aggregated health result HEALTHY. Defaults to 60. Must be in
767 # range [0, 100]. Not applicable if the policyType field isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional,
768 # and will be set to the default if unspecified. Note that both this
769 # threshold and minHealthyThreshold must be satisfied in order
770 # for HEALTHY to be the aggregated result. &quot;Endpoints&quot; refers to network
771 # endpoints within a Network Endpoint Group or instances within an Instance
772 # Group.
773 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the resource. This identifier is
774 # defined by the server.
775 &quot;kind&quot;: &quot;compute#healthAggregationPolicy&quot;, # Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for health aggregation
776 # policies.
777 &quot;minHealthyThreshold&quot;: 42, # Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the minimum number of
778 # healthy endpoints required in order to consider the aggregated health
779 # result HEALTHY. Defaults to 1. Must be positive. Not
780 # applicable if the policyType field isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional,
781 # and will be set to the default if unspecified. Note that both this
782 # threshold and healthyPercentThreshold must be satisfied in
783 # order for HEALTHY to be the aggregated result. &quot;Endpoints&quot; refers to
784 # network endpoints within a Network Endpoint Group or instances within an
785 # Instance Group.
786 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
787 # The name must be 1-63 characters long, and comply withRFC1035.
788 # Specifically, the name must be 1-63 characters long and match the regular
789 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
790 # character must be a lowercase letter, and all following characters must
791 # be a dash, lowercase letter, or digit, except the last character, which
792 # cannot be a dash.
793 &quot;policyType&quot;: &quot;A String&quot;, # Specifies the type of the healthAggregationPolicy. The only allowed value
794 # for global resources is DNS_PUBLIC_IP_POLICY. The only allowed
795 # value for regional resources is BACKEND_SERVICE_POLICY. Must
796 # be specified when the healthAggregationPolicy is created, and cannot be
797 # mutated.
798 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the health aggregation policy
799 # resides. This field applies only to the regional resource. You must specify
800 # this field as part of the HTTP request URL. It is not settable as a field
801 # in the request body.
802 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for the resource.
803 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL with id for the resource.
804 }
805
806 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
807 that if you must retry your request, the server will know to ignore the
808 request if it has already been completed.
809
810 For example, consider a situation where you make an initial request and
811 the request times out. If you make the request again with the same
812 request ID, the server can check if original operation with the same
813 request ID was received, and if so, will ignore the second request. This
814 prevents clients from accidentally creating duplicate commitments.
815
816 The request ID must be
817 a valid UUID with the exception that zero UUID is not supported
818 (00000000-0000-0000-0000-000000000000).
819 x__xgafv: string, V1 error format.
820 Allowed values
821 1 - v1 error format
822 2 - v2 error format
823
824 Returns:
825 An object of the form:
826
827 { # Represents an Operation resource.
828 #
829 # Google Compute Engine has three Operation resources:
830 #
831 # * [Global](/compute/docs/reference/rest/beta/globalOperations)
832 # * [Regional](/compute/docs/reference/rest/beta/regionOperations)
833 # * [Zonal](/compute/docs/reference/rest/beta/zoneOperations)
834 #
835 # You can use an operation resource to manage asynchronous API requests.
836 # For more information, readHandling
837 # API responses.
838 #
839 # Operations can be global, regional or zonal.
840 #
841 # - For global operations, use the `globalOperations`
842 # resource.
843 # - For regional operations, use the
844 # `regionOperations` resource.
845 # - For zonal operations, use
846 # the `zoneOperations` resource.
847 #
848 #
849 #
850 # For more information, read
851 # Global, Regional, and Zonal Resources.
852 #
853 # Note that completed Operation resources have a limited
854 # retention period.
855 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
856 # Not present otherwise.
857 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
858 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
859 # set when the operation is created.
860 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
861 # text format.
862 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
863 # this field will be populated.
864 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
865 # operation.
866 {
867 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
868 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
869 # details. There is a set of defined message types to use for providing
870 # details.The syntax depends on the error code. For example,
871 # QuotaExceededInfo will have details when the error code is
872 # QUOTA_EXCEEDED.
873 {
874 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
875 #
876 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
877 # is not enabled:
878 #
879 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
880 # &quot;domain&quot;: &quot;googleapis.com&quot;
881 # &quot;metadata&quot;: {
882 # &quot;resource&quot;: &quot;projects/123&quot;,
883 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
884 # }
885 # }
886 #
887 # This response indicates that the pubsub.googleapis.com API is not enabled.
888 #
889 # Example of an error that is returned when attempting to create a Spanner
890 # instance in a region that is out of stock:
891 #
892 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
893 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
894 # &quot;metadata&quot;: {
895 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
896 # }
897 # }
898 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
899 # is typically the registered service name of the tool or product that
900 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
901 # generated by some common infrastructure, the error domain must be a
902 # globally unique value that identifies the infrastructure. For Google API
903 # infrastructure, the error domain is &quot;googleapis.com&quot;.
904 &quot;metadatas&quot;: { # Additional structured details about this error.
905 #
906 # Keys must match a regular expression of `a-z+` but should
907 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
908 # length. When identifying the current value of an exceeded limit, the units
909 # should be contained in the key, not the value. For example, rather than
910 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
911 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
912 # instances that can be created in a single (batch) request.
913 &quot;a_key&quot;: &quot;A String&quot;,
914 },
915 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
916 # proximate cause of the error. Error reasons are unique within a particular
917 # domain of errors. This should be at most 63 characters and match a
918 # regular expression of `A-Z+[A-Z0-9]`, which represents
919 # UPPER_SNAKE_CASE.
920 },
921 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
922 #
923 # For example, if a quota check failed with an error indicating the calling
924 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
925 # directly to the right place in the developer console to flip the bit.
926 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
927 { # Describes a URL link.
928 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
929 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
930 },
931 ],
932 },
933 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
934 # which can be attached to an RPC error.
935 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
936 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
937 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
938 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
939 },
940 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
941 &quot;dimensions&quot;: { # The map holding related quota dimensions.
942 &quot;a_key&quot;: &quot;A String&quot;,
943 },
944 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
945 # type or metric.
946 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
947 # or metric.
948 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
949 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
950 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
951 },
952 },
953 ],
954 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
955 # This property is optional.
956 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
957 },
958 ],
959 },
960 &quot;getVersionOperationMetadata&quot;: {
961 &quot;inlineSbomInfo&quot;: {
962 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
963 # appropriate identifiers.
964 &quot;a_key&quot;: &quot;A String&quot;,
965 },
966 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
967 # identifiers.
968 &quot;a_key&quot;: &quot;A String&quot;,
969 },
970 },
971 },
972 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
973 # message that was returned, such as `NOT FOUND`.
974 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
975 # status code that was returned. For example, a `404` means the
976 # resource was not found.
977 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
978 # defined by the server.
979 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
980 # This value is inRFC3339
981 # text format.
982 &quot;instancesBulkInsertOperationMetadata&quot;: {
983 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
984 # Example key: zones/us-central1-a
985 &quot;a_key&quot;: {
986 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
987 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
988 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
989 # error.
990 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
991 # if the flow is rolling forward or rolling back.
992 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
993 },
994 },
995 },
996 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
997 # Operation resources.
998 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
999 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
1000 # group of operations results from a `bulkInsert` API request.
1001 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
1002 # `update`, or `delete`, and so on.
1003 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
1004 # There is no requirement that this be linear or support any granularity of
1005 # operations. This should not be used to guess when the operation will be
1006 # complete. This number should monotonically increase as the operation
1007 # progresses.
1008 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
1009 # applicable when performing regional operations.
1010 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1011 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
1012 # this field will contain information on all underlying zonal actions and
1013 # their state.
1014 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
1015 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
1016 # Example key: zones/us-central1-a
1017 &quot;a_key&quot;: {
1018 &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
1019 # populated.
1020 # different programming environments, including REST APIs and RPC APIs. It is
1021 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1022 # three pieces of data: error code, error message, and error details.
1023 #
1024 # You can find out more about this error model and how to work with it in the
1025 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1026 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1027 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1028 # message types for APIs to use.
1029 {
1030 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1031 },
1032 ],
1033 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1034 # user-facing error message should be localized and sent in the
1035 # google.rpc.Status.details field, or localized by the client.
1036 },
1037 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
1038 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
1039 },
1040 },
1041 },
1042 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
1043 # This value is inRFC3339
1044 # text format.
1045 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
1046 # following:
1047 # `PENDING`, `RUNNING`, or `DONE`.
1048 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
1049 # operation.
1050 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
1051 # of the target resource.
1052 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
1053 # operations related to creating a snapshot, this points to the disk
1054 # that the snapshot was created from.
1055 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
1056 # `[email protected]` or
1057 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
1058 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
1059 # operation, this field will be populated.
1060 {
1061 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1062 # Engine returns NO_RESULTS_ON_PAGE if there
1063 # are no results in the response.
1064 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1065 # value format. For example:
1066 #
1067 # &quot;data&quot;: [
1068 # {
1069 # &quot;key&quot;: &quot;scope&quot;,
1070 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1071 # }
1072 {
1073 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1074 # returned. For example, for warnings where there are no results in a list
1075 # request for a particular zone, this key might be scope and
1076 # the key value might be the zone name. Other examples might be a key
1077 # indicating a deprecated resource and a suggested replacement, or a
1078 # warning about invalid network settings (for example, if an instance
1079 # attempts to perform IP forwarding but is not enabled for IP forwarding).
1080 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1081 },
1082 ],
1083 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1084 },
1085 ],
1086 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
1087 # applicable when performing per-zone operations.
1088 }</pre>
1089 </div>
1090
1091 <div class="method">
1092 <code class="details" id="list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code>
1093 <pre>Lists the HealthAggregationPolicies for a project in the given region.
1094
1095 Args:
1096 project: string, Project ID for this request. (required)
1097 region: string, Name of the region scoping this request. (required)
1098 filter: string, A filter expression that filters resources listed in the response. Most
1099 Compute resources support two types of filter expressions:
1100 expressions that support regular expressions and expressions that follow
1101 API improvement proposal AIP-160.
1102 These two types of filter expressions cannot be mixed in one request.
1103
1104 If you want to use AIP-160, your expression must specify the field name, an
1105 operator, and the value that you want to use for filtering. The value
1106 must be a string, a number, or a boolean. The operator
1107 must be either `=`, `!=`, `&gt;`, `&lt;`, `&lt;=`, `&gt;=` or `:`.
1108
1109 For example, if you are filtering Compute Engine instances, you can
1110 exclude instances named `example-instance` by specifying
1111 `name != example-instance`.
1112
1113 The `:*` comparison can be used to test whether a key has been defined.
1114 For example, to find all objects with `owner` label use:
1115 ```
1116 labels.owner:*
1117 ```
1118
1119 You can also filter nested fields. For example, you could specify
1120 `scheduling.automaticRestart = false` to include instances only
1121 if they are not scheduled for automatic restarts. You can use filtering
1122 on nested fields to filter based onresource labels.
1123
1124 To filter on multiple expressions, provide each separate expression within
1125 parentheses. For example:
1126 ```
1127 (scheduling.automaticRestart = true)
1128 (cpuPlatform = &quot;Intel Skylake&quot;)
1129 ```
1130 By default, each expression is an `AND` expression. However, you
1131 can include `AND` and `OR` expressions explicitly.
1132 For example:
1133 ```
1134 (cpuPlatform = &quot;Intel Skylake&quot;) OR
1135 (cpuPlatform = &quot;Intel Broadwell&quot;) AND
1136 (scheduling.automaticRestart = true)
1137 ```
1138
1139 If you want to use a regular expression, use the `eq` (equal) or `ne`
1140 (not equal) operator against a single un-parenthesized expression with or
1141 without quotes or against multiple parenthesized expressions. Examples:
1142
1143 `fieldname eq unquoted literal`
1144 `fieldname eq &#x27;single quoted literal&#x27;`
1145 `fieldname eq &quot;double quoted literal&quot;`
1146 `(fieldname1 eq literal) (fieldname2 ne &quot;literal&quot;)`
1147
1148 The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
1149 The literal value must match the entire field.
1150
1151 For example, to filter for instances that do not end with name &quot;instance&quot;,
1152 you would use `name ne .*instance`.
1153
1154 You cannot combine constraints on multiple fields using regular
1155 expressions.
1156 maxResults: integer, The maximum number of results per page that should be returned.
1157 If the number of available results is larger than `maxResults`,
1158 Compute Engine returns a `nextPageToken` that can be used to get
1159 the next page of results in subsequent list requests. Acceptable values are
1160 `0` to `500`, inclusive. (Default: `500`)
1161 orderBy: string, Sorts list results by a certain order. By default, results
1162 are returned in alphanumerical order based on the resource name.
1163
1164 You can also sort results in descending order based on the creation
1165 timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. This sorts
1166 results based on the `creationTimestamp` field in
1167 reverse chronological order (newest result first). Use this to sort
1168 resources like operations so that the newest operation is returned first.
1169
1170 Currently, only sorting by `name` or
1171 `creationTimestamp desc` is supported.
1172 pageToken: string, Specifies a page token to use. Set `pageToken` to the
1173 `nextPageToken` returned by a previous list request to get
1174 the next page of results.
1175 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case
1176 of failure. The default value is false.
1177
1178 For example, when partial success behavior is enabled, aggregatedList for a
1179 single zone scope either returns all resources in the zone or no resources,
1180 with an error code.
1181 x__xgafv: string, V1 error format.
1182 Allowed values
1183 1 - v1 error format
1184 2 - v2 error format
1185
1186 Returns:
1187 An object of the form:
1188
1189 {
1190 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
1191 &quot;items&quot;: [ # A list of HealthAggregationPolicy resources.
1192 { # Represents a health aggregation policy.
1193 #
1194 # A health aggregation policy resource defines a policy to aggregate health.
1195 #
1196 # For more information, see
1197 # Health checks overview.
1198 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
1199 # text format.
1200 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
1201 # create the resource.
1202 &quot;fingerprint&quot;: &quot;A String&quot;, # Fingerprint of this resource. A hash of the contents stored in this object.
1203 # This field is used in optimistic locking. This field will be ignored when
1204 # inserting a HealthAggregationPolicy. An up-to-date fingerprint
1205 # must be provided in order to patch the HealthAggregationPolicy; Otherwise,
1206 # the request will fail with error 412 conditionNotMet. To see
1207 # the latest fingerprint, make a get() request to retrieve the
1208 # HealthAggregationPolicy.
1209 &quot;healthyPercentThreshold&quot;: 42, # Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the threshold (as a
1210 # percentage) of healthy endpoints required in order to consider the
1211 # aggregated health result HEALTHY. Defaults to 60. Must be in
1212 # range [0, 100]. Not applicable if the policyType field isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional,
1213 # and will be set to the default if unspecified. Note that both this
1214 # threshold and minHealthyThreshold must be satisfied in order
1215 # for HEALTHY to be the aggregated result. &quot;Endpoints&quot; refers to network
1216 # endpoints within a Network Endpoint Group or instances within an Instance
1217 # Group.
1218 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the resource. This identifier is
1219 # defined by the server.
1220 &quot;kind&quot;: &quot;compute#healthAggregationPolicy&quot;, # Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for health aggregation
1221 # policies.
1222 &quot;minHealthyThreshold&quot;: 42, # Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the minimum number of
1223 # healthy endpoints required in order to consider the aggregated health
1224 # result HEALTHY. Defaults to 1. Must be positive. Not
1225 # applicable if the policyType field isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional,
1226 # and will be set to the default if unspecified. Note that both this
1227 # threshold and healthyPercentThreshold must be satisfied in
1228 # order for HEALTHY to be the aggregated result. &quot;Endpoints&quot; refers to
1229 # network endpoints within a Network Endpoint Group or instances within an
1230 # Instance Group.
1231 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
1232 # The name must be 1-63 characters long, and comply withRFC1035.
1233 # Specifically, the name must be 1-63 characters long and match the regular
1234 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
1235 # character must be a lowercase letter, and all following characters must
1236 # be a dash, lowercase letter, or digit, except the last character, which
1237 # cannot be a dash.
1238 &quot;policyType&quot;: &quot;A String&quot;, # Specifies the type of the healthAggregationPolicy. The only allowed value
1239 # for global resources is DNS_PUBLIC_IP_POLICY. The only allowed
1240 # value for regional resources is BACKEND_SERVICE_POLICY. Must
1241 # be specified when the healthAggregationPolicy is created, and cannot be
1242 # mutated.
1243 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the health aggregation policy
1244 # resides. This field applies only to the regional resource. You must specify
1245 # this field as part of the HTTP request URL. It is not settable as a field
1246 # in the request body.
1247 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for the resource.
1248 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL with id for the resource.
1249 },
1250 ],
1251 &quot;kind&quot;: &quot;compute#healthAggregationPolicyList&quot;, # Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for health aggregation
1252 # policies.
1253 &quot;nextPageToken&quot;: &quot;A String&quot;, # [Output Only] This token allows you to get the next page of results for
1254 # list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for
1255 # the query parameter pageToken in the next list request.
1256 # Subsequent list requests will have their own nextPageToken to
1257 # continue paging through the results.
1258 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for this resource.
1259 &quot;warning&quot;: { # [Output Only] Informational warning message.
1260 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1261 # Engine returns NO_RESULTS_ON_PAGE if there
1262 # are no results in the response.
1263 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1264 # value format. For example:
1265 #
1266 # &quot;data&quot;: [
1267 # {
1268 # &quot;key&quot;: &quot;scope&quot;,
1269 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1270 # }
1271 {
1272 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1273 # returned. For example, for warnings where there are no results in a list
1274 # request for a particular zone, this key might be scope and
1275 # the key value might be the zone name. Other examples might be a key
1276 # indicating a deprecated resource and a suggested replacement, or a
1277 # warning about invalid network settings (for example, if an instance
1278 # attempts to perform IP forwarding but is not enabled for IP forwarding).
1279 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1280 },
1281 ],
1282 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1283 },
1284 }</pre>
1285 </div>
1286
1287 <div class="method">
1288 <code class="details" id="list_next">list_next()</code>
1289 <pre>Retrieves the next page of results.
1290
1291 Args:
1292 previous_request: The request for the previous page. (required)
1293 previous_response: The response from the request for the previous page. (required)
1294
1295 Returns:
1296 A request object that you can call &#x27;execute()&#x27; on to request the next
1297 page. Returns None if there are no more items in the collection.
1298 </pre>
1299 </div>
1300
1301 <div class="method">
1302 <code class="details" id="patch">patch(project, region, healthAggregationPolicy, body=None, requestId=None, x__xgafv=None)</code>
1303 <pre>Updates the specified regional HealthAggregationPolicy
1304 resource with the data included in the request. This method supportsPATCH
1305 semantics and uses theJSON merge
1306 patch format and processing rules.
1307
1308 Args:
1309 project: string, Project ID for this request. (required)
1310 region: string, Name of the region scoping this request. (required)
1311 healthAggregationPolicy: string, Name of the HealthAggregationPolicy to update. The name
1312 must be 1-63 characters long, and comply with RFC1035. (required)
1313 body: object, The request body.
1314 The object takes the form of:
1315
1316 { # Represents a health aggregation policy.
1317 #
1318 # A health aggregation policy resource defines a policy to aggregate health.
1319 #
1320 # For more information, see
1321 # Health checks overview.
1322 &quot;creationTimestamp&quot;: &quot;A String&quot;, # Output only. [Output Only] Creation timestamp inRFC3339
1323 # text format.
1324 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you
1325 # create the resource.
1326 &quot;fingerprint&quot;: &quot;A String&quot;, # Fingerprint of this resource. A hash of the contents stored in this object.
1327 # This field is used in optimistic locking. This field will be ignored when
1328 # inserting a HealthAggregationPolicy. An up-to-date fingerprint
1329 # must be provided in order to patch the HealthAggregationPolicy; Otherwise,
1330 # the request will fail with error 412 conditionNotMet. To see
1331 # the latest fingerprint, make a get() request to retrieve the
1332 # HealthAggregationPolicy.
1333 &quot;healthyPercentThreshold&quot;: 42, # Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the threshold (as a
1334 # percentage) of healthy endpoints required in order to consider the
1335 # aggregated health result HEALTHY. Defaults to 60. Must be in
1336 # range [0, 100]. Not applicable if the policyType field isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional,
1337 # and will be set to the default if unspecified. Note that both this
1338 # threshold and minHealthyThreshold must be satisfied in order
1339 # for HEALTHY to be the aggregated result. &quot;Endpoints&quot; refers to network
1340 # endpoints within a Network Endpoint Group or instances within an Instance
1341 # Group.
1342 &quot;id&quot;: &quot;A String&quot;, # Output only. [Output Only] The unique identifier for the resource. This identifier is
1343 # defined by the server.
1344 &quot;kind&quot;: &quot;compute#healthAggregationPolicy&quot;, # Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for health aggregation
1345 # policies.
1346 &quot;minHealthyThreshold&quot;: 42, # Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the minimum number of
1347 # healthy endpoints required in order to consider the aggregated health
1348 # result HEALTHY. Defaults to 1. Must be positive. Not
1349 # applicable if the policyType field isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional,
1350 # and will be set to the default if unspecified. Note that both this
1351 # threshold and healthyPercentThreshold must be satisfied in
1352 # order for HEALTHY to be the aggregated result. &quot;Endpoints&quot; refers to
1353 # network endpoints within a Network Endpoint Group or instances within an
1354 # Instance Group.
1355 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created.
1356 # The name must be 1-63 characters long, and comply withRFC1035.
1357 # Specifically, the name must be 1-63 characters long and match the regular
1358 # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
1359 # character must be a lowercase letter, and all following characters must
1360 # be a dash, lowercase letter, or digit, except the last character, which
1361 # cannot be a dash.
1362 &quot;policyType&quot;: &quot;A String&quot;, # Specifies the type of the healthAggregationPolicy. The only allowed value
1363 # for global resources is DNS_PUBLIC_IP_POLICY. The only allowed
1364 # value for regional resources is BACKEND_SERVICE_POLICY. Must
1365 # be specified when the healthAggregationPolicy is created, and cannot be
1366 # mutated.
1367 &quot;region&quot;: &quot;A String&quot;, # Output only. [Output Only] URL of the region where the health aggregation policy
1368 # resides. This field applies only to the regional resource. You must specify
1369 # this field as part of the HTTP request URL. It is not settable as a field
1370 # in the request body.
1371 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL for the resource.
1372 &quot;selfLinkWithId&quot;: &quot;A String&quot;, # Output only. [Output Only] Server-defined URL with id for the resource.
1373 }
1374
1375 requestId: string, An optional request ID to identify requests. Specify a unique request ID so
1376 that if you must retry your request, the server will know to ignore the
1377 request if it has already been completed.
1378
1379 For example, consider a situation where you make an initial request and
1380 the request times out. If you make the request again with the same
1381 request ID, the server can check if original operation with the same
1382 request ID was received, and if so, will ignore the second request. This
1383 prevents clients from accidentally creating duplicate commitments.
1384
1385 The request ID must be
1386 a valid UUID with the exception that zero UUID is not supported
1387 (00000000-0000-0000-0000-000000000000).
1388 x__xgafv: string, V1 error format.
1389 Allowed values
1390 1 - v1 error format
1391 2 - v2 error format
1392
1393 Returns:
1394 An object of the form:
1395
1396 { # Represents an Operation resource.
1397 #
1398 # Google Compute Engine has three Operation resources:
1399 #
1400 # * [Global](/compute/docs/reference/rest/beta/globalOperations)
1401 # * [Regional](/compute/docs/reference/rest/beta/regionOperations)
1402 # * [Zonal](/compute/docs/reference/rest/beta/zoneOperations)
1403 #
1404 # You can use an operation resource to manage asynchronous API requests.
1405 # For more information, readHandling
1406 # API responses.
1407 #
1408 # Operations can be global, regional or zonal.
1409 #
1410 # - For global operations, use the `globalOperations`
1411 # resource.
1412 # - For regional operations, use the
1413 # `regionOperations` resource.
1414 # - For zonal operations, use
1415 # the `zoneOperations` resource.
1416 #
1417 #
1418 #
1419 # For more information, read
1420 # Global, Regional, and Zonal Resources.
1421 #
1422 # Note that completed Operation resources have a limited
1423 # retention period.
1424 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request.
1425 # Not present otherwise.
1426 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1427 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is
1428 # set when the operation is created.
1429 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is inRFC3339
1430 # text format.
1431 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation,
1432 # this field will be populated.
1433 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this
1434 # operation.
1435 {
1436 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
1437 &quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error
1438 # details. There is a set of defined message types to use for providing
1439 # details.The syntax depends on the error code. For example,
1440 # QuotaExceededInfo will have details when the error code is
1441 # QUOTA_EXCEEDED.
1442 {
1443 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details.
1444 #
1445 # Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it
1446 # is not enabled:
1447 #
1448 # { &quot;reason&quot;: &quot;API_DISABLED&quot;
1449 # &quot;domain&quot;: &quot;googleapis.com&quot;
1450 # &quot;metadata&quot;: {
1451 # &quot;resource&quot;: &quot;projects/123&quot;,
1452 # &quot;service&quot;: &quot;pubsub.googleapis.com&quot;
1453 # }
1454 # }
1455 #
1456 # This response indicates that the pubsub.googleapis.com API is not enabled.
1457 #
1458 # Example of an error that is returned when attempting to create a Spanner
1459 # instance in a region that is out of stock:
1460 #
1461 # { &quot;reason&quot;: &quot;STOCKOUT&quot;
1462 # &quot;domain&quot;: &quot;spanner.googleapis.com&quot;,
1463 # &quot;metadata&quot;: {
1464 # &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot;
1465 # }
1466 # }
1467 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain
1468 # is typically the registered service name of the tool or product that
1469 # generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is
1470 # generated by some common infrastructure, the error domain must be a
1471 # globally unique value that identifies the infrastructure. For Google API
1472 # infrastructure, the error domain is &quot;googleapis.com&quot;.
1473 &quot;metadatas&quot;: { # Additional structured details about this error.
1474 #
1475 # Keys must match a regular expression of `a-z+` but should
1476 # ideally be lowerCamelCase. Also, they must be limited to 64 characters in
1477 # length. When identifying the current value of an exceeded limit, the units
1478 # should be contained in the key, not the value. For example, rather than
1479 # `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as,
1480 # `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of
1481 # instances that can be created in a single (batch) request.
1482 &quot;a_key&quot;: &quot;A String&quot;,
1483 },
1484 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the
1485 # proximate cause of the error. Error reasons are unique within a particular
1486 # domain of errors. This should be at most 63 characters and match a
1487 # regular expression of `A-Z+[A-Z0-9]`, which represents
1488 # UPPER_SNAKE_CASE.
1489 },
1490 &quot;help&quot;: { # Provides links to documentation or for performing an out of band action.
1491 #
1492 # For example, if a quota check failed with an error indicating the calling
1493 # project hasn&#x27;t enabled the accessed service, this can contain a URL pointing
1494 # directly to the right place in the developer console to flip the bit.
1495 &quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
1496 { # Describes a URL link.
1497 &quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
1498 &quot;url&quot;: &quot;A String&quot;, # The URL of the link.
1499 },
1500 ],
1501 },
1502 &quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user
1503 # which can be attached to an RPC error.
1504 &quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at
1505 # https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
1506 # Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
1507 &quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
1508 },
1509 &quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
1510 &quot;dimensions&quot;: { # The map holding related quota dimensions.
1511 &quot;a_key&quot;: &quot;A String&quot;,
1512 },
1513 &quot;futureLimit&quot;: 3.14, # Future quota limit being rolled out. The limit&#x27;s unit depends on the quota
1514 # type or metric.
1515 &quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type
1516 # or metric.
1517 &quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
1518 &quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
1519 &quot;rolloutStatus&quot;: &quot;A String&quot;, # Rollout status of the future quota limit.
1520 },
1521 },
1522 ],
1523 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error.
1524 # This property is optional.
1525 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
1526 },
1527 ],
1528 },
1529 &quot;getVersionOperationMetadata&quot;: {
1530 &quot;inlineSbomInfo&quot;: {
1531 &quot;currentComponentVersions&quot;: { # A mapping of components to their currently-applied versions or other
1532 # appropriate identifiers.
1533 &quot;a_key&quot;: &quot;A String&quot;,
1534 },
1535 &quot;targetComponentVersions&quot;: { # A mapping of components to their target versions or other appropriate
1536 # identifiers.
1537 &quot;a_key&quot;: &quot;A String&quot;,
1538 },
1539 },
1540 },
1541 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error
1542 # message that was returned, such as `NOT FOUND`.
1543 &quot;httpErrorStatusCode&quot;: 42, # [Output Only] If the operation fails, this field contains the HTTP error
1544 # status code that was returned. For example, a `404` means the
1545 # resource was not found.
1546 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is
1547 # defined by the server.
1548 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested.
1549 # This value is inRFC3339
1550 # text format.
1551 &quot;instancesBulkInsertOperationMetadata&quot;: {
1552 &quot;perLocationStatus&quot;: { # Status information per location (location name is key).
1553 # Example key: zones/us-central1-a
1554 &quot;a_key&quot;: {
1555 &quot;createdVmCount&quot;: 42, # [Output Only] Count of VMs successfully created so far.
1556 &quot;deletedVmCount&quot;: 42, # [Output Only] Count of VMs that got deleted during rollback.
1557 &quot;failedToCreateVmCount&quot;: 42, # [Output Only] Count of VMs that started creating but encountered an
1558 # error.
1559 &quot;status&quot;: &quot;A String&quot;, # [Output Only] Creation status of BulkInsert operation - information
1560 # if the flow is rolling forward or rolling back.
1561 &quot;targetVmCount&quot;: 42, # [Output Only] Count of VMs originally planned to be created.
1562 },
1563 },
1564 },
1565 &quot;kind&quot;: &quot;compute#operation&quot;, # Output only. [Output Only] Type of the resource. Always `compute#operation` for
1566 # Operation resources.
1567 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
1568 &quot;operationGroupId&quot;: &quot;A String&quot;, # Output only. [Output Only] An ID that represents a group of operations, such as when a
1569 # group of operations results from a `bulkInsert` API request.
1570 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`,
1571 # `update`, or `delete`, and so on.
1572 &quot;progress&quot;: 42, # [Output Only] An optional progress indicator that ranges from 0 to 100.
1573 # There is no requirement that this be linear or support any granularity of
1574 # operations. This should not be used to guess when the operation will be
1575 # complete. This number should monotonically increase as the operation
1576 # progresses.
1577 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only
1578 # applicable when performing regional operations.
1579 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1580 &quot;setCommonInstanceMetadataOperationMetadata&quot;: { # Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
1581 # this field will contain information on all underlying zonal actions and
1582 # their state.
1583 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The client operation id.
1584 &quot;perLocationOperations&quot;: { # [Output Only] Status information per location (location name is key).
1585 # Example key: zones/us-central1-a
1586 &quot;a_key&quot;: {
1587 &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
1588 # populated.
1589 # different programming environments, including REST APIs and RPC APIs. It is
1590 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1591 # three pieces of data: error code, error message, and error details.
1592 #
1593 # You can find out more about this error model and how to work with it in the
1594 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1595 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1596 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1597 # message types for APIs to use.
1598 {
1599 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1600 },
1601 ],
1602 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1603 # user-facing error message should be localized and sent in the
1604 # google.rpc.Status.details field, or localized by the client.
1605 },
1606 &quot;state&quot;: &quot;A String&quot;, # [Output Only] Status of the action, which can be one of the following:
1607 # `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.
1608 },
1609 },
1610 },
1611 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server.
1612 # This value is inRFC3339
1613 # text format.
1614 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the
1615 # following:
1616 # `PENDING`, `RUNNING`, or `DONE`.
1617 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the
1618 # operation.
1619 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation
1620 # of the target resource.
1621 &quot;targetLink&quot;: &quot;A String&quot;, # [Output Only] The URL of the resource that the operation modifies. For
1622 # operations related to creating a snapshot, this points to the disk
1623 # that the snapshot was created from.
1624 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example:
1625 # `[email protected]` or
1626 # `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.
1627 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the
1628 # operation, this field will be populated.
1629 {
1630 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute
1631 # Engine returns NO_RESULTS_ON_PAGE if there
1632 # are no results in the response.
1633 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key:
1634 # value format. For example:
1635 #
1636 # &quot;data&quot;: [
1637 # {
1638 # &quot;key&quot;: &quot;scope&quot;,
1639 # &quot;value&quot;: &quot;zones/us-east1-d&quot;
1640 # }
1641 {
1642 &quot;key&quot;: &quot;A String&quot;, # [Output Only] A key that provides more detail on the warning being
1643 # returned. For example, for warnings where there are no results in a list
1644 # request for a particular zone, this key might be scope and
1645 # the key value might be the zone name. Other examples might be a key
1646 # indicating a deprecated resource and a suggested replacement, or a
1647 # warning about invalid network settings (for example, if an instance
1648 # attempts to perform IP forwarding but is not enabled for IP forwarding).
1649 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1650 },
1651 ],
1652 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1653 },
1654 ],
1655 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only
1656 # applicable when performing per-zone operations.
1657 }</pre>
1658 </div>
1659
1660 <div class="method">
1661 <code class="details" id="testIamPermissions">testIamPermissions(project, region, resource, body=None, x__xgafv=None)</code>
1662 <pre>Returns permissions that a caller has on the specified resource.
1663
1664 Args:
1665 project: string, Project ID for this request. (required)
1666 region: string, The name of the region for this request. (required)
1667 resource: string, Name or id of the resource for this request. (required)
1668 body: object, The request body.
1669 The object takes the form of:
1670
1671 {
1672 &quot;permissions&quot;: [ # The set of permissions to check for the &#x27;resource&#x27;. Permissions with
1673 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed.
1674 &quot;A String&quot;,
1675 ],
1676 }
1677
1678 x__xgafv: string, V1 error format.
1679 Allowed values
1680 1 - v1 error format
1681 2 - v2 error format
1682
1683 Returns:
1684 An object of the form:
1685
1686 {
1687 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
1688 # allowed.
1689 &quot;A String&quot;,
1690 ],
1691 }</pre>
1692 </div>
1693
1694 </body></html>