Debian Codegraph @

docs/dyn/compute_alpha.regionAutoscalers.html

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