Debian Codegraph @

docs/dyn/compute_v1.autoscalers.html

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