• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.healthChecks.html">healthChecks</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#delete">delete(project, healthCheck)</a></code></p>
79<p class="firstline">Deletes the specified HealthCheck resource.</p>
80<p class="toc_element">
81  <code><a href="#get">get(project, healthCheck)</a></code></p>
82<p class="firstline">Returns the specified HealthCheck resource. Get a list of available health checks by making a list() request.</p>
83<p class="toc_element">
84  <code><a href="#insert">insert(project, body)</a></code></p>
85<p class="firstline">Creates a HealthCheck resource in the specified project using the data included in the request.</p>
86<p class="toc_element">
87  <code><a href="#list">list(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p>
88<p class="firstline">Retrieves the list of HealthCheck resources available to the specified project.</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, healthCheck, body)</a></code></p>
94<p class="firstline">Updates a HealthCheck resource in the specified project using the data included in the request. This method supports patch semantics.</p>
95<p class="toc_element">
96  <code><a href="#update">update(project, healthCheck, body)</a></code></p>
97<p class="firstline">Updates a HealthCheck resource 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, healthCheck)</code>
101  <pre>Deletes the specified HealthCheck resource.
102
103Args:
104  project: string, Project ID for this request. (required)
105  healthCheck: string, Name of the HealthCheck resource to delete. (required)
106
107Returns:
108  An object of the form:
109
110    { # An Operation resource, used to manage asynchronous API requests.
111    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
112    "clientOperationId": "A String", # [Output Only] Reserved for future use.
113    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
114    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
115    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
116    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
117    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
118    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
119    "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.
120    "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.
121    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
122    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
123    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
124    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
125      {
126        "message": "A String", # [Output Only] A human-readable description of the warning code.
127        "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.
128        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
129            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
130          {
131            "value": "A String", # [Output Only] A warning data value corresponding to the key.
132            "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).
133          },
134        ],
135      },
136    ],
137    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
138    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
139    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
140    "name": "A String", # [Output Only] Name of the resource.
141    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
142    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
143      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
144        {
145          "message": "A String", # [Output Only] An optional, human-readable error message.
146          "code": "A String", # [Output Only] The error type identifier for this error.
147          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
148        },
149      ],
150    },
151    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
152    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
153    "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.
154  }</pre>
155</div>
156
157<div class="method">
158    <code class="details" id="get">get(project, healthCheck)</code>
159  <pre>Returns the specified HealthCheck resource. Get a list of available health checks by making a list() request.
160
161Args:
162  project: string, Project ID for this request. (required)
163  healthCheck: string, Name of the HealthCheck resource to return. (required)
164
165Returns:
166  An object of the form:
167
168    { # An HealthCheck resource. This resource defines a template for how individual virtual machines should be checked for health, via one of the supported protocols.
169      "kind": "compute#healthCheck", # Type of the resource.
170      "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
171      "timeoutSec": 42, # How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.
172      "type": "A String", # Specifies the type of the healthCheck, either TCP, SSL, HTTP or HTTPS. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
173      "checkIntervalSec": 42, # How often (in seconds) to send a health check. The default value is 5 seconds.
174      "tcpHealthCheck": {
175        "portName": "A String", # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
176        "request": "A String", # The application data to send once the TCP connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII.
177        "proxyHeader": "A String", # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
178        "port": 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
179        "response": "A String", # The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII.
180      },
181      "httpHealthCheck": {
182        "portName": "A String", # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
183        "host": "A String", # The value of the host header in the HTTP health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
184        "proxyHeader": "A String", # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
185        "port": 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
186        "requestPath": "A String", # The request path of the HTTP health check request. The default value is /.
187      },
188      "httpsHealthCheck": {
189        "portName": "A String", # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
190        "host": "A String", # The value of the host header in the HTTPS health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
191        "proxyHeader": "A String", # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
192        "port": 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
193        "requestPath": "A String", # The request path of the HTTPS health check request. The default value is /.
194      },
195      "healthyThreshold": 42, # A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
196      "unhealthyThreshold": 42, # A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
197      "sslHealthCheck": {
198        "portName": "A String", # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
199        "request": "A String", # The application data to send once the SSL connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII.
200        "proxyHeader": "A String", # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
201        "port": 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
202        "response": "A String", # The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII.
203      },
204      "creationTimestamp": "A String", # [Output Only] Creation timestamp in 3339 text format.
205      "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
206      "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
207      "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.
208    }</pre>
209</div>
210
211<div class="method">
212    <code class="details" id="insert">insert(project, body)</code>
213  <pre>Creates a HealthCheck resource in the specified project using the data included in the request.
214
215Args:
216  project: string, Project ID for this request. (required)
217  body: object, The request body. (required)
218    The object takes the form of:
219
220{ # An HealthCheck resource. This resource defines a template for how individual virtual machines should be checked for health, via one of the supported protocols.
221    "kind": "compute#healthCheck", # Type of the resource.
222    "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
223    "timeoutSec": 42, # How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.
224    "type": "A String", # Specifies the type of the healthCheck, either TCP, SSL, HTTP or HTTPS. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
225    "checkIntervalSec": 42, # How often (in seconds) to send a health check. The default value is 5 seconds.
226    "tcpHealthCheck": {
227      "portName": "A String", # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
228      "request": "A String", # The application data to send once the TCP connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII.
229      "proxyHeader": "A String", # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
230      "port": 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
231      "response": "A String", # The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII.
232    },
233    "httpHealthCheck": {
234      "portName": "A String", # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
235      "host": "A String", # The value of the host header in the HTTP health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
236      "proxyHeader": "A String", # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
237      "port": 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
238      "requestPath": "A String", # The request path of the HTTP health check request. The default value is /.
239    },
240    "httpsHealthCheck": {
241      "portName": "A String", # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
242      "host": "A String", # The value of the host header in the HTTPS health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
243      "proxyHeader": "A String", # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
244      "port": 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
245      "requestPath": "A String", # The request path of the HTTPS health check request. The default value is /.
246    },
247    "healthyThreshold": 42, # A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
248    "unhealthyThreshold": 42, # A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
249    "sslHealthCheck": {
250      "portName": "A String", # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
251      "request": "A String", # The application data to send once the SSL connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII.
252      "proxyHeader": "A String", # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
253      "port": 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
254      "response": "A String", # The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII.
255    },
256    "creationTimestamp": "A String", # [Output Only] Creation timestamp in 3339 text format.
257    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
258    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
259    "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.
260  }
261
262
263Returns:
264  An object of the form:
265
266    { # An Operation resource, used to manage asynchronous API requests.
267    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
268    "clientOperationId": "A String", # [Output Only] Reserved for future use.
269    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
270    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
271    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
272    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
273    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
274    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
275    "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.
276    "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.
277    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
278    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
279    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
280    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
281      {
282        "message": "A String", # [Output Only] A human-readable description of the warning code.
283        "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.
284        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
285            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
286          {
287            "value": "A String", # [Output Only] A warning data value corresponding to the key.
288            "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).
289          },
290        ],
291      },
292    ],
293    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
294    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
295    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
296    "name": "A String", # [Output Only] Name of the resource.
297    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
298    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
299      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
300        {
301          "message": "A String", # [Output Only] An optional, human-readable error message.
302          "code": "A String", # [Output Only] The error type identifier for this error.
303          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
304        },
305      ],
306    },
307    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
308    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
309    "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.
310  }</pre>
311</div>
312
313<div class="method">
314    <code class="details" id="list">list(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
315  <pre>Retrieves the list of HealthCheck resources available to the specified project.
316
317Args:
318  project: string, Project ID for this request. (required)
319  orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
320
321You 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.
322
323Currently, only sorting by name or creationTimestamp desc is supported.
324  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)
325  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.
326  filter: string, Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
327
328The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
329
330For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
331
332You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values.
333
334To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
335
336Returns:
337  An object of the form:
338
339    { # Contains a list of HealthCheck resources.
340    "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.
341    "items": [ # A list of HealthCheck resources.
342      { # An HealthCheck resource. This resource defines a template for how individual virtual machines should be checked for health, via one of the supported protocols.
343          "kind": "compute#healthCheck", # Type of the resource.
344          "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
345          "timeoutSec": 42, # How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.
346          "type": "A String", # Specifies the type of the healthCheck, either TCP, SSL, HTTP or HTTPS. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
347          "checkIntervalSec": 42, # How often (in seconds) to send a health check. The default value is 5 seconds.
348          "tcpHealthCheck": {
349            "portName": "A String", # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
350            "request": "A String", # The application data to send once the TCP connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII.
351            "proxyHeader": "A String", # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
352            "port": 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
353            "response": "A String", # The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII.
354          },
355          "httpHealthCheck": {
356            "portName": "A String", # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
357            "host": "A String", # The value of the host header in the HTTP health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
358            "proxyHeader": "A String", # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
359            "port": 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
360            "requestPath": "A String", # The request path of the HTTP health check request. The default value is /.
361          },
362          "httpsHealthCheck": {
363            "portName": "A String", # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
364            "host": "A String", # The value of the host header in the HTTPS health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
365            "proxyHeader": "A String", # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
366            "port": 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
367            "requestPath": "A String", # The request path of the HTTPS health check request. The default value is /.
368          },
369          "healthyThreshold": 42, # A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
370          "unhealthyThreshold": 42, # A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
371          "sslHealthCheck": {
372            "portName": "A String", # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
373            "request": "A String", # The application data to send once the SSL connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII.
374            "proxyHeader": "A String", # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
375            "port": 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
376            "response": "A String", # The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII.
377          },
378          "creationTimestamp": "A String", # [Output Only] Creation timestamp in 3339 text format.
379          "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
380          "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
381          "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.
382        },
383    ],
384    "kind": "compute#healthCheckList", # Type of resource.
385    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
386    "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
387  }</pre>
388</div>
389
390<div class="method">
391    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
392  <pre>Retrieves the next page of results.
393
394Args:
395  previous_request: The request for the previous page. (required)
396  previous_response: The response from the request for the previous page. (required)
397
398Returns:
399  A request object that you can call 'execute()' on to request the next
400  page. Returns None if there are no more items in the collection.
401    </pre>
402</div>
403
404<div class="method">
405    <code class="details" id="patch">patch(project, healthCheck, body)</code>
406  <pre>Updates a HealthCheck resource in the specified project using the data included in the request. This method supports patch semantics.
407
408Args:
409  project: string, Project ID for this request. (required)
410  healthCheck: string, Name of the HealthCheck resource to patch. (required)
411  body: object, The request body. (required)
412    The object takes the form of:
413
414{ # An HealthCheck resource. This resource defines a template for how individual virtual machines should be checked for health, via one of the supported protocols.
415    "kind": "compute#healthCheck", # Type of the resource.
416    "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
417    "timeoutSec": 42, # How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.
418    "type": "A String", # Specifies the type of the healthCheck, either TCP, SSL, HTTP or HTTPS. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
419    "checkIntervalSec": 42, # How often (in seconds) to send a health check. The default value is 5 seconds.
420    "tcpHealthCheck": {
421      "portName": "A String", # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
422      "request": "A String", # The application data to send once the TCP connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII.
423      "proxyHeader": "A String", # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
424      "port": 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
425      "response": "A String", # The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII.
426    },
427    "httpHealthCheck": {
428      "portName": "A String", # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
429      "host": "A String", # The value of the host header in the HTTP health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
430      "proxyHeader": "A String", # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
431      "port": 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
432      "requestPath": "A String", # The request path of the HTTP health check request. The default value is /.
433    },
434    "httpsHealthCheck": {
435      "portName": "A String", # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
436      "host": "A String", # The value of the host header in the HTTPS health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
437      "proxyHeader": "A String", # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
438      "port": 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
439      "requestPath": "A String", # The request path of the HTTPS health check request. The default value is /.
440    },
441    "healthyThreshold": 42, # A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
442    "unhealthyThreshold": 42, # A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
443    "sslHealthCheck": {
444      "portName": "A String", # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
445      "request": "A String", # The application data to send once the SSL connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII.
446      "proxyHeader": "A String", # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
447      "port": 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
448      "response": "A String", # The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII.
449    },
450    "creationTimestamp": "A String", # [Output Only] Creation timestamp in 3339 text format.
451    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
452    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
453    "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.
454  }
455
456
457Returns:
458  An object of the form:
459
460    { # An Operation resource, used to manage asynchronous API requests.
461    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
462    "clientOperationId": "A String", # [Output Only] Reserved for future use.
463    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
464    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
465    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
466    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
467    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
468    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
469    "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.
470    "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.
471    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
472    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
473    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
474    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
475      {
476        "message": "A String", # [Output Only] A human-readable description of the warning code.
477        "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.
478        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
479            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
480          {
481            "value": "A String", # [Output Only] A warning data value corresponding to the key.
482            "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).
483          },
484        ],
485      },
486    ],
487    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
488    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
489    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
490    "name": "A String", # [Output Only] Name of the resource.
491    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
492    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
493      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
494        {
495          "message": "A String", # [Output Only] An optional, human-readable error message.
496          "code": "A String", # [Output Only] The error type identifier for this error.
497          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
498        },
499      ],
500    },
501    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
502    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
503    "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.
504  }</pre>
505</div>
506
507<div class="method">
508    <code class="details" id="update">update(project, healthCheck, body)</code>
509  <pre>Updates a HealthCheck resource in the specified project using the data included in the request.
510
511Args:
512  project: string, Project ID for this request. (required)
513  healthCheck: string, Name of the HealthCheck resource to update. (required)
514  body: object, The request body. (required)
515    The object takes the form of:
516
517{ # An HealthCheck resource. This resource defines a template for how individual virtual machines should be checked for health, via one of the supported protocols.
518    "kind": "compute#healthCheck", # Type of the resource.
519    "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
520    "timeoutSec": 42, # How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.
521    "type": "A String", # Specifies the type of the healthCheck, either TCP, SSL, HTTP or HTTPS. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
522    "checkIntervalSec": 42, # How often (in seconds) to send a health check. The default value is 5 seconds.
523    "tcpHealthCheck": {
524      "portName": "A String", # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
525      "request": "A String", # The application data to send once the TCP connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII.
526      "proxyHeader": "A String", # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
527      "port": 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
528      "response": "A String", # The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII.
529    },
530    "httpHealthCheck": {
531      "portName": "A String", # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
532      "host": "A String", # The value of the host header in the HTTP health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
533      "proxyHeader": "A String", # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
534      "port": 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
535      "requestPath": "A String", # The request path of the HTTP health check request. The default value is /.
536    },
537    "httpsHealthCheck": {
538      "portName": "A String", # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
539      "host": "A String", # The value of the host header in the HTTPS health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
540      "proxyHeader": "A String", # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
541      "port": 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
542      "requestPath": "A String", # The request path of the HTTPS health check request. The default value is /.
543    },
544    "healthyThreshold": 42, # A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
545    "unhealthyThreshold": 42, # A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
546    "sslHealthCheck": {
547      "portName": "A String", # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
548      "request": "A String", # The application data to send once the SSL connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII.
549      "proxyHeader": "A String", # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
550      "port": 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
551      "response": "A String", # The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII.
552    },
553    "creationTimestamp": "A String", # [Output Only] Creation timestamp in 3339 text format.
554    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
555    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
556    "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.
557  }
558
559
560Returns:
561  An object of the form:
562
563    { # An Operation resource, used to manage asynchronous API requests.
564    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
565    "clientOperationId": "A String", # [Output Only] Reserved for future use.
566    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
567    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
568    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
569    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
570    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
571    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
572    "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.
573    "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.
574    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
575    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
576    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
577    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
578      {
579        "message": "A String", # [Output Only] A human-readable description of the warning code.
580        "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.
581        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
582            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
583          {
584            "value": "A String", # [Output Only] A warning data value corresponding to the key.
585            "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).
586          },
587        ],
588      },
589    ],
590    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
591    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
592    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
593    "name": "A String", # [Output Only] Name of the resource.
594    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
595    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
596      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
597        {
598          "message": "A String", # [Output Only] An optional, human-readable error message.
599          "code": "A String", # [Output Only] The error type identifier for this error.
600          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
601        },
602      ],
603    },
604    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
605    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
606    "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.
607  }</pre>
608</div>
609
610</body></html>