1<html><body>
2<style>
3
4body, 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
15body {
16  font-size: 13px;
17  padding: 1em;
18}
19
20h1 {
21  font-size: 26px;
22  margin-bottom: 1em;
23}
24
25h2 {
26  font-size: 24px;
27  margin-bottom: 1em;
28}
29
30h3 {
31  font-size: 20px;
32  margin-bottom: 1em;
33  margin-top: 1em;
34}
35
36pre, code {
37  line-height: 1.5;
38  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42  margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46  font-family: Arial, sans serif;
47}
48
49h1, 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.regionAutoscalers.html">regionAutoscalers</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#delete">delete(project, region, autoscaler, requestId=None)</a></code></p>
79<p class="firstline">Deletes the specified autoscaler.</p>
80<p class="toc_element">
81  <code><a href="#get">get(project, region, autoscaler)</a></code></p>
82<p class="firstline">Returns the specified autoscaler.</p>
83<p class="toc_element">
84  <code><a href="#insert">insert(project, region, body, requestId=None)</a></code></p>
85<p class="firstline">Creates an autoscaler in the specified project using the data included in the request.</p>
86<p class="toc_element">
87  <code><a href="#list">list(project, region, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p>
88<p class="firstline">Retrieves a list of autoscalers contained within the specified region.</p>
89<p class="toc_element">
90  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<p class="toc_element">
93  <code><a href="#patch">patch(project, region, body, requestId=None, autoscaler=None)</a></code></p>
94<p class="firstline">Updates an autoscaler in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.</p>
95<p class="toc_element">
96  <code><a href="#update">update(project, region, body, requestId=None, autoscaler=None)</a></code></p>
97<p class="firstline">Updates an autoscaler in the specified project using the data included in the request.</p>
98<h3>Method Details</h3>
99<div class="method">
100    <code class="details" id="delete">delete(project, region, autoscaler, requestId=None)</code>
101  <pre>Deletes the specified autoscaler.
102
103Args:
104  project: string, Project ID for this request. (required)
105  region: string, Name of the region scoping this request. (required)
106  autoscaler: string, Name of the autoscaler to delete. (required)
107  requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
108
109For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
110
111The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
112
113Returns:
114  An object of the form:
115
116    { # Represents an Operation resource.
117      #
118      # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
119      #
120      # Operations can be global, regional or zonal.
121      # - For global operations, use the globalOperations resource.
122      # - For regional operations, use the regionOperations resource.
123      # - For zonal operations, use the zonalOperations resource.
124      #
125      # For more information, read  Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
126    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
127    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
128    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
129    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
130    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
131    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
132    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
133    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
134    "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses.
135    "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
136    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
137    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
138    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
139    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
140      {
141        "message": "A String", # [Output Only] A human-readable description of the warning code.
142        "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
143        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
144            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
145          {
146            "value": "A String", # [Output Only] A warning data value corresponding to the key.
147            "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
148          },
149        ],
150      },
151    ],
152    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
153    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
154    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
155    "name": "A String", # [Output Only] Name of the resource.
156    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
157    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
158      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
159        {
160          "message": "A String", # [Output Only] An optional, human-readable error message.
161          "code": "A String", # [Output Only] The error type identifier for this error.
162          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
163        },
164      ],
165    },
166    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
167    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
168    "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from.
169  }</pre>
170</div>
171
172<div class="method">
173    <code class="details" id="get">get(project, region, autoscaler)</code>
174  <pre>Returns the specified autoscaler.
175
176Args:
177  project: string, Project ID for this request. (required)
178  region: string, Name of the region scoping this request. (required)
179  autoscaler: string, Name of the autoscaler to return. (required)
180
181Returns:
182  An object of the form:
183
184    { # Represents an Autoscaler resource.
185        #
186        #
187        #
188        # Use autoscalers to automatically add or delete instances from a managed instance group according to your defined autoscaling policy. For more information, read Autoscaling Groups of Instances.
189        #
190        # For zonal managed instance groups resource, use the autoscaler resource.
191        #
192        # For regional managed instance groups, use the regionAutoscalers resource. (== resource_for beta.autoscalers ==) (== resource_for v1.autoscalers ==) (== resource_for beta.regionAutoscalers ==) (== resource_for v1.regionAutoscalers ==)
193      "status": "A String", # [Output Only] The status of the autoscaler configuration.
194      "kind": "compute#autoscaler", # [Output Only] Type of the resource. Always compute#autoscaler for autoscalers.
195      "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
196      "zone": "A String", # [Output Only] URL of the zone where the instance group resides (for autoscalers living in zonal scope).
197      "region": "A String", # [Output Only] URL of the region where the instance group resides (for autoscalers living in regional scope).
198      "autoscalingPolicy": { # Cloud Autoscaler policy. # The configuration parameters for the autoscaling algorithm. You can define one or more of the policies for an autoscaler: cpuUtilization, customMetricUtilizations, and loadBalancingUtilization.
199          #
200          # If none of these are specified, the default will be to autoscale based on cpuUtilization to 0.6 or 60%.
201        "maxNumReplicas": 42, # The maximum number of instances that the autoscaler can scale up to. This is required when creating or updating an autoscaler. The maximum number of replicas should not be lower than minimal number of replicas.
202        "coolDownPeriodSec": 42, # The number of seconds that the autoscaler should wait before it starts collecting information from a new instance. This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. The default time autoscaler waits is 60 seconds.
203            #
204            # Virtual machine initialization times might vary because of numerous factors. We recommend that you test how long an instance may take to initialize. To do this, create an instance and time the startup process.
205        "loadBalancingUtilization": { # Configuration parameters of autoscaling based on load balancing. # Configuration parameters of autoscaling based on load balancer.
206          "utilizationTarget": 3.14, # Fraction of backend capacity utilization (set in HTTP(S) load balancing configuration) that autoscaler should maintain. Must be a positive float value. If not defined, the default is 0.8.
207        },
208        "customMetricUtilizations": [ # Configuration parameters of autoscaling based on a custom metric.
209          { # Custom utilization metric policy.
210            "metric": "A String", # The identifier (type) of the Stackdriver Monitoring metric. The metric cannot have negative values.
211                #
212                # The metric must have a value type of INT64 or DOUBLE.
213            "utilizationTargetType": "A String", # Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE.
214            "utilizationTarget": 3.14, # The target value of the metric that autoscaler should maintain. This must be a positive value. A utilization metric scales number of virtual machines handling requests to increase or decrease proportionally to the metric.
215                #
216                # For example, a good metric to use as a utilization_target is compute.googleapis.com/instance/network/received_bytes_count. The autoscaler will work to keep this value constant for each of the instances.
217          },
218        ],
219        "cpuUtilization": { # CPU utilization policy. # Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.
220          "utilizationTarget": 3.14, # The target CPU utilization that the autoscaler should maintain. Must be a float value in the range (0, 1]. If not specified, the default is 0.6.
221              #
222              # If the CPU level is below the target utilization, the autoscaler scales down the number of instances until it reaches the minimum number of instances you specified or until the average CPU of your instances reaches the target utilization.
223              #
224              # If the average CPU is above the target utilization, the autoscaler scales up until it reaches the maximum number of instances you specified or until the average utilization reaches the target utilization.
225        },
226        "minNumReplicas": 42, # The minimum number of replicas that the autoscaler can scale down to. This cannot be less than 0. If not provided, autoscaler will choose a default value depending on maximum number of instances allowed.
227      },
228      "target": "A String", # URL of the managed instance group that this autoscaler will scale.
229      "statusDetails": [ # [Output Only] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter.
230        {
231          "message": "A String", # The status message.
232          "type": "A String", # The type of error returned.
233        },
234      ],
235      "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
236      "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
237      "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
238      "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
239    }</pre>
240</div>
241
242<div class="method">
243    <code class="details" id="insert">insert(project, region, body, requestId=None)</code>
244  <pre>Creates an autoscaler in the specified project using the data included in the request.
245
246Args:
247  project: string, Project ID for this request. (required)
248  region: string, Name of the region scoping this request. (required)
249  body: object, The request body. (required)
250    The object takes the form of:
251
252{ # Represents an Autoscaler resource.
253      #
254      #
255      #
256      # Use autoscalers to automatically add or delete instances from a managed instance group according to your defined autoscaling policy. For more information, read Autoscaling Groups of Instances.
257      #
258      # For zonal managed instance groups resource, use the autoscaler resource.
259      #
260      # For regional managed instance groups, use the regionAutoscalers resource. (== resource_for beta.autoscalers ==) (== resource_for v1.autoscalers ==) (== resource_for beta.regionAutoscalers ==) (== resource_for v1.regionAutoscalers ==)
261    "status": "A String", # [Output Only] The status of the autoscaler configuration.
262    "kind": "compute#autoscaler", # [Output Only] Type of the resource. Always compute#autoscaler for autoscalers.
263    "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
264    "zone": "A String", # [Output Only] URL of the zone where the instance group resides (for autoscalers living in zonal scope).
265    "region": "A String", # [Output Only] URL of the region where the instance group resides (for autoscalers living in regional scope).
266    "autoscalingPolicy": { # Cloud Autoscaler policy. # The configuration parameters for the autoscaling algorithm. You can define one or more of the policies for an autoscaler: cpuUtilization, customMetricUtilizations, and loadBalancingUtilization.
267        #
268        # If none of these are specified, the default will be to autoscale based on cpuUtilization to 0.6 or 60%.
269      "maxNumReplicas": 42, # The maximum number of instances that the autoscaler can scale up to. This is required when creating or updating an autoscaler. The maximum number of replicas should not be lower than minimal number of replicas.
270      "coolDownPeriodSec": 42, # The number of seconds that the autoscaler should wait before it starts collecting information from a new instance. This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. The default time autoscaler waits is 60 seconds.
271          #
272          # Virtual machine initialization times might vary because of numerous factors. We recommend that you test how long an instance may take to initialize. To do this, create an instance and time the startup process.
273      "loadBalancingUtilization": { # Configuration parameters of autoscaling based on load balancing. # Configuration parameters of autoscaling based on load balancer.
274        "utilizationTarget": 3.14, # Fraction of backend capacity utilization (set in HTTP(S) load balancing configuration) that autoscaler should maintain. Must be a positive float value. If not defined, the default is 0.8.
275      },
276      "customMetricUtilizations": [ # Configuration parameters of autoscaling based on a custom metric.
277        { # Custom utilization metric policy.
278          "metric": "A String", # The identifier (type) of the Stackdriver Monitoring metric. The metric cannot have negative values.
279              #
280              # The metric must have a value type of INT64 or DOUBLE.
281          "utilizationTargetType": "A String", # Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE.
282          "utilizationTarget": 3.14, # The target value of the metric that autoscaler should maintain. This must be a positive value. A utilization metric scales number of virtual machines handling requests to increase or decrease proportionally to the metric.
283              #
284              # For example, a good metric to use as a utilization_target is compute.googleapis.com/instance/network/received_bytes_count. The autoscaler will work to keep this value constant for each of the instances.
285        },
286      ],
287      "cpuUtilization": { # CPU utilization policy. # Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.
288        "utilizationTarget": 3.14, # The target CPU utilization that the autoscaler should maintain. Must be a float value in the range (0, 1]. If not specified, the default is 0.6.
289            #
290            # If the CPU level is below the target utilization, the autoscaler scales down the number of instances until it reaches the minimum number of instances you specified or until the average CPU of your instances reaches the target utilization.
291            #
292            # If the average CPU is above the target utilization, the autoscaler scales up until it reaches the maximum number of instances you specified or until the average utilization reaches the target utilization.
293      },
294      "minNumReplicas": 42, # The minimum number of replicas that the autoscaler can scale down to. This cannot be less than 0. If not provided, autoscaler will choose a default value depending on maximum number of instances allowed.
295    },
296    "target": "A String", # URL of the managed instance group that this autoscaler will scale.
297    "statusDetails": [ # [Output Only] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter.
298      {
299        "message": "A String", # The status message.
300        "type": "A String", # The type of error returned.
301      },
302    ],
303    "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
304    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
305    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
306    "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
307  }
308
309  requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
310
311For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
312
313The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
314
315Returns:
316  An object of the form:
317
318    { # Represents an Operation resource.
319      #
320      # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
321      #
322      # Operations can be global, regional or zonal.
323      # - For global operations, use the globalOperations resource.
324      # - For regional operations, use the regionOperations resource.
325      # - For zonal operations, use the zonalOperations resource.
326      #
327      # For more information, read  Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
328    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
329    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
330    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
331    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
332    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
333    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
334    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
335    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
336    "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses.
337    "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
338    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
339    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
340    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
341    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
342      {
343        "message": "A String", # [Output Only] A human-readable description of the warning code.
344        "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
345        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
346            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
347          {
348            "value": "A String", # [Output Only] A warning data value corresponding to the key.
349            "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
350          },
351        ],
352      },
353    ],
354    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
355    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
356    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
357    "name": "A String", # [Output Only] Name of the resource.
358    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
359    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
360      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
361        {
362          "message": "A String", # [Output Only] An optional, human-readable error message.
363          "code": "A String", # [Output Only] The error type identifier for this error.
364          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
365        },
366      ],
367    },
368    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
369    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
370    "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from.
371  }</pre>
372</div>
373
374<div class="method">
375    <code class="details" id="list">list(project, region, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
376  <pre>Retrieves a list of autoscalers contained within the specified region.
377
378Args:
379  project: string, Project ID for this request. (required)
380  region: string, Name of the region scoping this request. (required)
381  orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
382
383You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.
384
385Currently, only sorting by name or creationTimestamp desc is supported.
386  maxResults: integer, The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
387  pageToken: string, Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results.
388  filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <.
389
390For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance.
391
392You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.
393
394To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true).
395
396Returns:
397  An object of the form:
398
399    { # Contains a list of autoscalers.
400    "nextPageToken": "A String", # [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
401    "kind": "compute#regionAutoscalerList", # Type of resource.
402    "items": [ # A list of Autoscaler resources.
403      { # Represents an Autoscaler resource.
404            #
405            #
406            #
407            # Use autoscalers to automatically add or delete instances from a managed instance group according to your defined autoscaling policy. For more information, read Autoscaling Groups of Instances.
408            #
409            # For zonal managed instance groups resource, use the autoscaler resource.
410            #
411            # For regional managed instance groups, use the regionAutoscalers resource. (== resource_for beta.autoscalers ==) (== resource_for v1.autoscalers ==) (== resource_for beta.regionAutoscalers ==) (== resource_for v1.regionAutoscalers ==)
412          "status": "A String", # [Output Only] The status of the autoscaler configuration.
413          "kind": "compute#autoscaler", # [Output Only] Type of the resource. Always compute#autoscaler for autoscalers.
414          "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
415          "zone": "A String", # [Output Only] URL of the zone where the instance group resides (for autoscalers living in zonal scope).
416          "region": "A String", # [Output Only] URL of the region where the instance group resides (for autoscalers living in regional scope).
417          "autoscalingPolicy": { # Cloud Autoscaler policy. # The configuration parameters for the autoscaling algorithm. You can define one or more of the policies for an autoscaler: cpuUtilization, customMetricUtilizations, and loadBalancingUtilization.
418              #
419              # If none of these are specified, the default will be to autoscale based on cpuUtilization to 0.6 or 60%.
420            "maxNumReplicas": 42, # The maximum number of instances that the autoscaler can scale up to. This is required when creating or updating an autoscaler. The maximum number of replicas should not be lower than minimal number of replicas.
421            "coolDownPeriodSec": 42, # The number of seconds that the autoscaler should wait before it starts collecting information from a new instance. This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. The default time autoscaler waits is 60 seconds.
422                #
423                # Virtual machine initialization times might vary because of numerous factors. We recommend that you test how long an instance may take to initialize. To do this, create an instance and time the startup process.
424            "loadBalancingUtilization": { # Configuration parameters of autoscaling based on load balancing. # Configuration parameters of autoscaling based on load balancer.
425              "utilizationTarget": 3.14, # Fraction of backend capacity utilization (set in HTTP(S) load balancing configuration) that autoscaler should maintain. Must be a positive float value. If not defined, the default is 0.8.
426            },
427            "customMetricUtilizations": [ # Configuration parameters of autoscaling based on a custom metric.
428              { # Custom utilization metric policy.
429                "metric": "A String", # The identifier (type) of the Stackdriver Monitoring metric. The metric cannot have negative values.
430                    #
431                    # The metric must have a value type of INT64 or DOUBLE.
432                "utilizationTargetType": "A String", # Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE.
433                "utilizationTarget": 3.14, # The target value of the metric that autoscaler should maintain. This must be a positive value. A utilization metric scales number of virtual machines handling requests to increase or decrease proportionally to the metric.
434                    #
435                    # For example, a good metric to use as a utilization_target is compute.googleapis.com/instance/network/received_bytes_count. The autoscaler will work to keep this value constant for each of the instances.
436              },
437            ],
438            "cpuUtilization": { # CPU utilization policy. # Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.
439              "utilizationTarget": 3.14, # The target CPU utilization that the autoscaler should maintain. Must be a float value in the range (0, 1]. If not specified, the default is 0.6.
440                  #
441                  # If the CPU level is below the target utilization, the autoscaler scales down the number of instances until it reaches the minimum number of instances you specified or until the average CPU of your instances reaches the target utilization.
442                  #
443                  # If the average CPU is above the target utilization, the autoscaler scales up until it reaches the maximum number of instances you specified or until the average utilization reaches the target utilization.
444            },
445            "minNumReplicas": 42, # The minimum number of replicas that the autoscaler can scale down to. This cannot be less than 0. If not provided, autoscaler will choose a default value depending on maximum number of instances allowed.
446          },
447          "target": "A String", # URL of the managed instance group that this autoscaler will scale.
448          "statusDetails": [ # [Output Only] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter.
449            {
450              "message": "A String", # The status message.
451              "type": "A String", # The type of error returned.
452            },
453          ],
454          "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
455          "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
456          "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
457          "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
458        },
459    ],
460    "warning": { # [Output Only] Informational warning message.
461      "message": "A String", # [Output Only] A human-readable description of the warning code.
462      "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
463      "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
464          # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
465        {
466          "value": "A String", # [Output Only] A warning data value corresponding to the key.
467          "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
468        },
469      ],
470    },
471    "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
472    "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
473  }</pre>
474</div>
475
476<div class="method">
477    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
478  <pre>Retrieves the next page of results.
479
480Args:
481  previous_request: The request for the previous page. (required)
482  previous_response: The response from the request for the previous page. (required)
483
484Returns:
485  A request object that you can call 'execute()' on to request the next
486  page. Returns None if there are no more items in the collection.
487    </pre>
488</div>
489
490<div class="method">
491    <code class="details" id="patch">patch(project, region, body, requestId=None, autoscaler=None)</code>
492  <pre>Updates an autoscaler in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
493
494Args:
495  project: string, Project ID for this request. (required)
496  region: string, Name of the region scoping this request. (required)
497  body: object, The request body. (required)
498    The object takes the form of:
499
500{ # Represents an Autoscaler resource.
501      #
502      #
503      #
504      # Use autoscalers to automatically add or delete instances from a managed instance group according to your defined autoscaling policy. For more information, read Autoscaling Groups of Instances.
505      #
506      # For zonal managed instance groups resource, use the autoscaler resource.
507      #
508      # For regional managed instance groups, use the regionAutoscalers resource. (== resource_for beta.autoscalers ==) (== resource_for v1.autoscalers ==) (== resource_for beta.regionAutoscalers ==) (== resource_for v1.regionAutoscalers ==)
509    "status": "A String", # [Output Only] The status of the autoscaler configuration.
510    "kind": "compute#autoscaler", # [Output Only] Type of the resource. Always compute#autoscaler for autoscalers.
511    "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
512    "zone": "A String", # [Output Only] URL of the zone where the instance group resides (for autoscalers living in zonal scope).
513    "region": "A String", # [Output Only] URL of the region where the instance group resides (for autoscalers living in regional scope).
514    "autoscalingPolicy": { # Cloud Autoscaler policy. # The configuration parameters for the autoscaling algorithm. You can define one or more of the policies for an autoscaler: cpuUtilization, customMetricUtilizations, and loadBalancingUtilization.
515        #
516        # If none of these are specified, the default will be to autoscale based on cpuUtilization to 0.6 or 60%.
517      "maxNumReplicas": 42, # The maximum number of instances that the autoscaler can scale up to. This is required when creating or updating an autoscaler. The maximum number of replicas should not be lower than minimal number of replicas.
518      "coolDownPeriodSec": 42, # The number of seconds that the autoscaler should wait before it starts collecting information from a new instance. This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. The default time autoscaler waits is 60 seconds.
519          #
520          # Virtual machine initialization times might vary because of numerous factors. We recommend that you test how long an instance may take to initialize. To do this, create an instance and time the startup process.
521      "loadBalancingUtilization": { # Configuration parameters of autoscaling based on load balancing. # Configuration parameters of autoscaling based on load balancer.
522        "utilizationTarget": 3.14, # Fraction of backend capacity utilization (set in HTTP(S) load balancing configuration) that autoscaler should maintain. Must be a positive float value. If not defined, the default is 0.8.
523      },
524      "customMetricUtilizations": [ # Configuration parameters of autoscaling based on a custom metric.
525        { # Custom utilization metric policy.
526          "metric": "A String", # The identifier (type) of the Stackdriver Monitoring metric. The metric cannot have negative values.
527              #
528              # The metric must have a value type of INT64 or DOUBLE.
529          "utilizationTargetType": "A String", # Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE.
530          "utilizationTarget": 3.14, # The target value of the metric that autoscaler should maintain. This must be a positive value. A utilization metric scales number of virtual machines handling requests to increase or decrease proportionally to the metric.
531              #
532              # For example, a good metric to use as a utilization_target is compute.googleapis.com/instance/network/received_bytes_count. The autoscaler will work to keep this value constant for each of the instances.
533        },
534      ],
535      "cpuUtilization": { # CPU utilization policy. # Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.
536        "utilizationTarget": 3.14, # The target CPU utilization that the autoscaler should maintain. Must be a float value in the range (0, 1]. If not specified, the default is 0.6.
537            #
538            # If the CPU level is below the target utilization, the autoscaler scales down the number of instances until it reaches the minimum number of instances you specified or until the average CPU of your instances reaches the target utilization.
539            #
540            # If the average CPU is above the target utilization, the autoscaler scales up until it reaches the maximum number of instances you specified or until the average utilization reaches the target utilization.
541      },
542      "minNumReplicas": 42, # The minimum number of replicas that the autoscaler can scale down to. This cannot be less than 0. If not provided, autoscaler will choose a default value depending on maximum number of instances allowed.
543    },
544    "target": "A String", # URL of the managed instance group that this autoscaler will scale.
545    "statusDetails": [ # [Output Only] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter.
546      {
547        "message": "A String", # The status message.
548        "type": "A String", # The type of error returned.
549      },
550    ],
551    "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
552    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
553    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
554    "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
555  }
556
557  requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
558
559For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
560
561The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
562  autoscaler: string, Name of the autoscaler to patch.
563
564Returns:
565  An object of the form:
566
567    { # Represents an Operation resource.
568      #
569      # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
570      #
571      # Operations can be global, regional or zonal.
572      # - For global operations, use the globalOperations resource.
573      # - For regional operations, use the regionOperations resource.
574      # - For zonal operations, use the zonalOperations resource.
575      #
576      # For more information, read  Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
577    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
578    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
579    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
580    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
581    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
582    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
583    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
584    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
585    "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses.
586    "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
587    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
588    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
589    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
590    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
591      {
592        "message": "A String", # [Output Only] A human-readable description of the warning code.
593        "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
594        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
595            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
596          {
597            "value": "A String", # [Output Only] A warning data value corresponding to the key.
598            "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
599          },
600        ],
601      },
602    ],
603    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
604    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
605    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
606    "name": "A String", # [Output Only] Name of the resource.
607    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
608    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
609      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
610        {
611          "message": "A String", # [Output Only] An optional, human-readable error message.
612          "code": "A String", # [Output Only] The error type identifier for this error.
613          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
614        },
615      ],
616    },
617    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
618    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
619    "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from.
620  }</pre>
621</div>
622
623<div class="method">
624    <code class="details" id="update">update(project, region, body, requestId=None, autoscaler=None)</code>
625  <pre>Updates an autoscaler in the specified project using the data included in the request.
626
627Args:
628  project: string, Project ID for this request. (required)
629  region: string, Name of the region scoping this request. (required)
630  body: object, The request body. (required)
631    The object takes the form of:
632
633{ # Represents an Autoscaler resource.
634      #
635      #
636      #
637      # Use autoscalers to automatically add or delete instances from a managed instance group according to your defined autoscaling policy. For more information, read Autoscaling Groups of Instances.
638      #
639      # For zonal managed instance groups resource, use the autoscaler resource.
640      #
641      # For regional managed instance groups, use the regionAutoscalers resource. (== resource_for beta.autoscalers ==) (== resource_for v1.autoscalers ==) (== resource_for beta.regionAutoscalers ==) (== resource_for v1.regionAutoscalers ==)
642    "status": "A String", # [Output Only] The status of the autoscaler configuration.
643    "kind": "compute#autoscaler", # [Output Only] Type of the resource. Always compute#autoscaler for autoscalers.
644    "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
645    "zone": "A String", # [Output Only] URL of the zone where the instance group resides (for autoscalers living in zonal scope).
646    "region": "A String", # [Output Only] URL of the region where the instance group resides (for autoscalers living in regional scope).
647    "autoscalingPolicy": { # Cloud Autoscaler policy. # The configuration parameters for the autoscaling algorithm. You can define one or more of the policies for an autoscaler: cpuUtilization, customMetricUtilizations, and loadBalancingUtilization.
648        #
649        # If none of these are specified, the default will be to autoscale based on cpuUtilization to 0.6 or 60%.
650      "maxNumReplicas": 42, # The maximum number of instances that the autoscaler can scale up to. This is required when creating or updating an autoscaler. The maximum number of replicas should not be lower than minimal number of replicas.
651      "coolDownPeriodSec": 42, # The number of seconds that the autoscaler should wait before it starts collecting information from a new instance. This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. The default time autoscaler waits is 60 seconds.
652          #
653          # Virtual machine initialization times might vary because of numerous factors. We recommend that you test how long an instance may take to initialize. To do this, create an instance and time the startup process.
654      "loadBalancingUtilization": { # Configuration parameters of autoscaling based on load balancing. # Configuration parameters of autoscaling based on load balancer.
655        "utilizationTarget": 3.14, # Fraction of backend capacity utilization (set in HTTP(S) load balancing configuration) that autoscaler should maintain. Must be a positive float value. If not defined, the default is 0.8.
656      },
657      "customMetricUtilizations": [ # Configuration parameters of autoscaling based on a custom metric.
658        { # Custom utilization metric policy.
659          "metric": "A String", # The identifier (type) of the Stackdriver Monitoring metric. The metric cannot have negative values.
660              #
661              # The metric must have a value type of INT64 or DOUBLE.
662          "utilizationTargetType": "A String", # Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE.
663          "utilizationTarget": 3.14, # The target value of the metric that autoscaler should maintain. This must be a positive value. A utilization metric scales number of virtual machines handling requests to increase or decrease proportionally to the metric.
664              #
665              # For example, a good metric to use as a utilization_target is compute.googleapis.com/instance/network/received_bytes_count. The autoscaler will work to keep this value constant for each of the instances.
666        },
667      ],
668      "cpuUtilization": { # CPU utilization policy. # Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.
669        "utilizationTarget": 3.14, # The target CPU utilization that the autoscaler should maintain. Must be a float value in the range (0, 1]. If not specified, the default is 0.6.
670            #
671            # If the CPU level is below the target utilization, the autoscaler scales down the number of instances until it reaches the minimum number of instances you specified or until the average CPU of your instances reaches the target utilization.
672            #
673            # If the average CPU is above the target utilization, the autoscaler scales up until it reaches the maximum number of instances you specified or until the average utilization reaches the target utilization.
674      },
675      "minNumReplicas": 42, # The minimum number of replicas that the autoscaler can scale down to. This cannot be less than 0. If not provided, autoscaler will choose a default value depending on maximum number of instances allowed.
676    },
677    "target": "A String", # URL of the managed instance group that this autoscaler will scale.
678    "statusDetails": [ # [Output Only] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter.
679      {
680        "message": "A String", # The status message.
681        "type": "A String", # The type of error returned.
682      },
683    ],
684    "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
685    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
686    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
687    "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
688  }
689
690  requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
691
692For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
693
694The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
695  autoscaler: string, Name of the autoscaler to update.
696
697Returns:
698  An object of the form:
699
700    { # Represents an Operation resource.
701      #
702      # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
703      #
704      # Operations can be global, regional or zonal.
705      # - For global operations, use the globalOperations resource.
706      # - For regional operations, use the regionOperations resource.
707      # - For zonal operations, use the zonalOperations resource.
708      #
709      # For more information, read  Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
710    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
711    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
712    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
713    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
714    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
715    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
716    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
717    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
718    "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses.
719    "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
720    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
721    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
722    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
723    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
724      {
725        "message": "A String", # [Output Only] A human-readable description of the warning code.
726        "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
727        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
728            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
729          {
730            "value": "A String", # [Output Only] A warning data value corresponding to the key.
731            "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
732          },
733        ],
734      },
735    ],
736    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
737    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
738    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
739    "name": "A String", # [Output Only] Name of the resource.
740    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
741    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
742      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
743        {
744          "message": "A String", # [Output Only] An optional, human-readable error message.
745          "code": "A String", # [Output Only] The error type identifier for this error.
746          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
747        },
748      ],
749    },
750    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
751    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
752    "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from.
753  }</pre>
754</div>
755
756</body></html>