Debian Codegraph @

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