blob: e89c1224716c8255c6175262628b65d15c42f998 [file] [log] [blame]
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001<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">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None)</a></code></p>
Dan O'Mearadd494642020-05-01 07:42:23 -070079<p class="firstline">Retrieves the list of all HealthCheck resources, regional and global, available to the specified project.</p>
80<p class="toc_element">
81 <code><a href="#aggregatedList_next">aggregatedList_next(previous_request, previous_response)</a></code></p>
82<p class="firstline">Retrieves the next page of results.</p>
83<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070084 <code><a href="#close">close()</a></code></p>
85<p class="firstline">Close httplib2 connections.</p>
86<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070087 <code><a href="#delete">delete(project, healthCheck, requestId=None)</a></code></p>
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -070088<p class="firstline">Deletes the specified HealthCheck resource.</p>
89<p class="toc_element">
90 <code><a href="#get">get(project, healthCheck)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Returns the specified HealthCheck resource. Gets a list of available health checks by making a list() request.</p>
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -070092<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#insert">insert(project, body=None, requestId=None)</a></code></p>
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -070094<p class="firstline">Creates a HealthCheck resource in the specified project using the data included in the request.</p>
95<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070096 <code><a href="#list">list(project, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None)</a></code></p>
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -070097<p class="firstline">Retrieves the list of HealthCheck resources available to the specified project.</p>
98<p class="toc_element">
99 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
100<p class="firstline">Retrieves the next page of results.</p>
101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#patch">patch(project, healthCheck, body=None, requestId=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<p class="firstline">Updates a HealthCheck resource 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>
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#update">update(project, healthCheck, body=None, requestId=None)</a></code></p>
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700106<p class="firstline">Updates a HealthCheck resource in the specified project using the data included in the request.</p>
107<h3>Method Details</h3>
108<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700109 <code class="details" id="aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None)</code>
Dan O'Mearadd494642020-05-01 07:42:23 -0700110 <pre>Retrieves the list of all HealthCheck resources, regional and global, available to the specified project.
111
112Args:
113 project: string, Name of the project scoping this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700114 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 `=`, `!=`, `&gt;`, or `&lt;`.
115
116For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
117
118You 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.
119
Bu Sun Kim65020912020-05-20 12:08:20 -0700120To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = &quot;Intel Skylake&quot;) ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = &quot;Intel Skylake&quot;) OR (cpuPlatform = &quot;Intel Broadwell&quot;) AND (scheduling.automaticRestart = true) ```
Dan O'Mearadd494642020-05-01 07:42:23 -0700121 includeAllScopes: boolean, Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
Bu Sun Kim65020912020-05-20 12:08:20 -0700122 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`)
123 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
124
125You can also sort results in descending order based on the creation timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. 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.
126
127Currently, only sorting by `name` or `creationTimestamp desc` is supported.
128 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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800129 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
Dan O'Mearadd494642020-05-01 07:42:23 -0700130
131Returns:
132 An object of the form:
133
134 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800135 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
136 &quot;items&quot;: { # A list of HealthChecksScopedList resources.
137 &quot;a_key&quot;: { # Name of the scope containing this set of HealthChecks.
138 &quot;healthChecks&quot;: [ # A list of HealthChecks contained in this scope.
139 { # Represents a Health Check resource.
140 #
141 # Google Compute Engine has two Health Check resources:
142 #
143 # * [Global](/compute/docs/reference/rest/{$api_version}/healthChecks) * [Regional](/compute/docs/reference/rest/{$api_version}/regionHealthChecks)
144 #
145 # Internal HTTP(S) load balancers must use regional health checks (`compute.v1.regionHealthChecks`).
146 #
147 # Traffic Director must use global health checks (`compute.v1.HealthChecks`).
148 #
149 # Internal TCP/UDP load balancers can use either regional or global health checks (`compute.v1.regionHealthChecks` or `compute.v1.HealthChecks`).
150 #
151 # External HTTP(S), TCP proxy, and SSL proxy load balancers as well as managed instance group auto-healing must use global health checks (`compute.v1.HealthChecks`).
152 #
153 # Network load balancers must use legacy HTTP health checks (httpHealthChecks).
154 #
155 # For more information, see Health checks overview.
156 &quot;checkIntervalSec&quot;: 42, # How often (in seconds) to send a health check. The default value is 5 seconds.
157 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in 3339 text format.
158 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you create the resource.
159 &quot;grpcHealthCheck&quot;: {
160 &quot;grpcServiceName&quot;: &quot;A String&quot;, # The gRPC service name for the health check. This field is optional. The value of grpc_service_name has the following meanings by convention:
161 # - Empty service_name means the overall status of all services at the backend.
162 # - Non-empty service_name means the health of that gRPC service, as defined by the owner of the service.
163 # The grpc_service_name can only be ASCII.
164 &quot;port&quot;: 42, # The port number for the health check request. Must be specified if port_name and port_specification are not set or if port_specification is USE_FIXED_PORT. Valid values are 1 through 65535.
165 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. The port_name should conform to RFC1035.
166 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
167 # USE_FIXED_PORT: The port number in port is used for health checking.
168 # USE_NAMED_PORT: The portName is used for health checking.
169 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
170 #
171 #
172 # If not specified, gRPC health check follows behavior specified in port and portName fields.
Bu Sun Kim65020912020-05-20 12:08:20 -0700173 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800174 &quot;healthyThreshold&quot;: 42, # A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
175 &quot;http2HealthCheck&quot;: {
176 &quot;host&quot;: &quot;A String&quot;, # The value of the host header in the HTTP/2 health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
177 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
178 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
179 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
180 # USE_FIXED_PORT: The port number in port is used for health checking.
181 # USE_NAMED_PORT: The portName is used for health checking.
182 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
183 #
184 #
185 # If not specified, HTTP2 health check follows behavior specified in port and portName fields.
186 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
187 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTP/2 health check request. The default value is /.
188 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
189 },
190 &quot;httpHealthCheck&quot;: {
191 &quot;host&quot;: &quot;A String&quot;, # 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.
192 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
193 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
194 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
195 # USE_FIXED_PORT: The port number in port is used for health checking.
196 # USE_NAMED_PORT: The portName is used for health checking.
197 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
198 #
199 #
200 # If not specified, HTTP health check follows behavior specified in port and portName fields.
201 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
202 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTP health check request. The default value is /.
203 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
204 },
205 &quot;httpsHealthCheck&quot;: {
206 &quot;host&quot;: &quot;A String&quot;, # 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.
207 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
208 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
209 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
210 # USE_FIXED_PORT: The port number in port is used for health checking.
211 # USE_NAMED_PORT: The portName is used for health checking.
212 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
213 #
214 #
215 # If not specified, HTTPS health check follows behavior specified in port and portName fields.
216 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
217 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTPS health check request. The default value is /.
218 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
219 },
220 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
221 &quot;kind&quot;: &quot;compute#healthCheck&quot;, # Type of the resource.
222 &quot;logConfig&quot;: { # Configuration of logging on a health check. If logging is enabled, logs will be exported to Stackdriver. # Configure logging on this health check.
223 &quot;enable&quot;: True or False, # Indicates whether or not to export logs. This is false by default, which means no health check logging will be done.
224 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800225 &quot;name&quot;: &quot;A String&quot;, # 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. For example, a name that is 1-63 characters long, matches the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`, and otherwise complies with RFC1035. This regular expression describes a name where the first character is a lowercase letter, and all following characters are a dash, lowercase letter, or digit, except the last character, which isn&#x27;t a dash.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800226 &quot;region&quot;: &quot;A String&quot;, # [Output Only] Region where the health check resides. Not applicable to global health checks.
227 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
228 &quot;sslHealthCheck&quot;: {
229 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
230 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
231 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
232 # USE_FIXED_PORT: The port number in port is used for health checking.
233 # USE_NAMED_PORT: The portName is used for health checking.
234 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
235 #
236 #
237 # If not specified, SSL health check follows behavior specified in port and portName fields.
238 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
239 &quot;request&quot;: &quot;A String&quot;, # 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.
240 &quot;response&quot;: &quot;A String&quot;, # 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.
241 },
242 &quot;tcpHealthCheck&quot;: {
243 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
244 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
245 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
246 # USE_FIXED_PORT: The port number in port is used for health checking.
247 # USE_NAMED_PORT: The portName is used for health checking.
248 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
249 #
250 #
251 # If not specified, TCP health check follows behavior specified in port and portName fields.
252 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
253 &quot;request&quot;: &quot;A String&quot;, # 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.
254 &quot;response&quot;: &quot;A String&quot;, # 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 &quot;timeoutSec&quot;: 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.
257 &quot;type&quot;: &quot;A String&quot;, # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
258 &quot;unhealthyThreshold&quot;: 42, # A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
Dan O'Mearadd494642020-05-01 07:42:23 -0700259 },
260 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800261 &quot;warning&quot;: { # Informational warning which replaces the list of backend services when the list is empty.
262 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
263 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
264 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
265 {
266 &quot;key&quot;: &quot;A String&quot;, # [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).
267 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
268 },
269 ],
270 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
271 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700272 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800273 },
274 &quot;kind&quot;: &quot;compute#healthChecksAggregatedList&quot;, # Type of resource.
275 &quot;nextPageToken&quot;: &quot;A String&quot;, # [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.
276 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for this resource.
277 &quot;unreachables&quot;: [ # [Output Only] Unreachable resources.
278 &quot;A String&quot;,
279 ],
280 &quot;warning&quot;: { # [Output Only] Informational warning message.
281 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
282 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
283 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
284 {
285 &quot;key&quot;: &quot;A String&quot;, # [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).
286 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
287 },
288 ],
289 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
290 },
291}</pre>
Dan O'Mearadd494642020-05-01 07:42:23 -0700292</div>
293
294<div class="method">
295 <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code>
296 <pre>Retrieves the next page of results.
297
298Args:
299 previous_request: The request for the previous page. (required)
300 previous_response: The response from the request for the previous page. (required)
301
302Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700303 A request object that you can call &#x27;execute()&#x27; on to request the next
Dan O'Mearadd494642020-05-01 07:42:23 -0700304 page. Returns None if there are no more items in the collection.
305 </pre>
306</div>
307
308<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700309 <code class="details" id="close">close()</code>
310 <pre>Close httplib2 connections.</pre>
311</div>
312
313<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700314 <code class="details" id="delete">delete(project, healthCheck, requestId=None)</code>
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700315 <pre>Deletes the specified HealthCheck resource.
316
317Args:
318 project: string, Project ID for this request. (required)
319 healthCheck: string, Name of the HealthCheck resource to delete. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700320 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.
321
322For 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.
323
324The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700325
326Returns:
327 An object of the form:
328
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700329 { # Represents an Operation resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800330 #
331 # Google Compute Engine has three Operation resources:
332 #
333 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
334 #
335 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
336 #
337 # Operations can be global, regional or zonal.
338 # - For global operations, use the `globalOperations` resource.
339 # - For regional operations, use the `regionOperations` resource.
340 # - For zonal operations, use the `zonalOperations` resource.
341 #
342 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
343 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
344 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
345 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
346 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
347 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
348 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700349 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800350 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
351 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
352 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Bu Sun Kim65020912020-05-20 12:08:20 -0700353 },
354 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800355 },
356 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`.
357 &quot;httpErrorStatusCode&quot;: 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.
358 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
359 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
360 &quot;kind&quot;: &quot;compute#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
361 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800362 &quot;operationGroupId&quot;: &quot;A String&quot;, # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800363 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
364 &quot;progress&quot;: 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.
365 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
366 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
367 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
368 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`.
369 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
370 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
371 &quot;targetLink&quot;: &quot;A String&quot;, # [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.
372 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
373 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
374 {
375 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
376 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
377 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
378 {
379 &quot;key&quot;: &quot;A String&quot;, # [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).
380 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
381 },
382 ],
383 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
384 },
385 ],
386 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
387}</pre>
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700388</div>
389
390<div class="method">
391 <code class="details" id="get">get(project, healthCheck)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700392 <pre>Returns the specified HealthCheck resource. Gets a list of available health checks by making a list() request.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700393
394Args:
395 project: string, Project ID for this request. (required)
396 healthCheck: string, Name of the HealthCheck resource to return. (required)
397
398Returns:
399 An object of the form:
400
Dan O'Mearadd494642020-05-01 07:42:23 -0700401 { # Represents a Health Check resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800402 #
403 # Google Compute Engine has two Health Check resources:
404 #
405 # * [Global](/compute/docs/reference/rest/{$api_version}/healthChecks) * [Regional](/compute/docs/reference/rest/{$api_version}/regionHealthChecks)
406 #
407 # Internal HTTP(S) load balancers must use regional health checks (`compute.v1.regionHealthChecks`).
408 #
409 # Traffic Director must use global health checks (`compute.v1.HealthChecks`).
410 #
411 # Internal TCP/UDP load balancers can use either regional or global health checks (`compute.v1.regionHealthChecks` or `compute.v1.HealthChecks`).
412 #
413 # External HTTP(S), TCP proxy, and SSL proxy load balancers as well as managed instance group auto-healing must use global health checks (`compute.v1.HealthChecks`).
414 #
415 # Network load balancers must use legacy HTTP health checks (httpHealthChecks).
416 #
417 # For more information, see Health checks overview.
418 &quot;checkIntervalSec&quot;: 42, # How often (in seconds) to send a health check. The default value is 5 seconds.
419 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in 3339 text format.
420 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you create the resource.
421 &quot;grpcHealthCheck&quot;: {
422 &quot;grpcServiceName&quot;: &quot;A String&quot;, # The gRPC service name for the health check. This field is optional. The value of grpc_service_name has the following meanings by convention:
423 # - Empty service_name means the overall status of all services at the backend.
424 # - Non-empty service_name means the health of that gRPC service, as defined by the owner of the service.
425 # The grpc_service_name can only be ASCII.
426 &quot;port&quot;: 42, # The port number for the health check request. Must be specified if port_name and port_specification are not set or if port_specification is USE_FIXED_PORT. Valid values are 1 through 65535.
427 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. The port_name should conform to RFC1035.
428 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
429 # USE_FIXED_PORT: The port number in port is used for health checking.
430 # USE_NAMED_PORT: The portName is used for health checking.
431 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
432 #
433 #
434 # If not specified, gRPC health check follows behavior specified in port and portName fields.
435 },
436 &quot;healthyThreshold&quot;: 42, # A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
437 &quot;http2HealthCheck&quot;: {
438 &quot;host&quot;: &quot;A String&quot;, # The value of the host header in the HTTP/2 health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
439 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
440 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
441 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
442 # USE_FIXED_PORT: The port number in port is used for health checking.
443 # USE_NAMED_PORT: The portName is used for health checking.
444 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
445 #
446 #
447 # If not specified, HTTP2 health check follows behavior specified in port and portName fields.
448 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
449 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTP/2 health check request. The default value is /.
450 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
451 },
452 &quot;httpHealthCheck&quot;: {
453 &quot;host&quot;: &quot;A String&quot;, # 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.
454 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
455 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
456 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
457 # USE_FIXED_PORT: The port number in port is used for health checking.
458 # USE_NAMED_PORT: The portName is used for health checking.
459 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
460 #
461 #
462 # If not specified, HTTP health check follows behavior specified in port and portName fields.
463 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
464 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTP health check request. The default value is /.
465 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
466 },
467 &quot;httpsHealthCheck&quot;: {
468 &quot;host&quot;: &quot;A String&quot;, # 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.
469 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
470 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
471 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
472 # USE_FIXED_PORT: The port number in port is used for health checking.
473 # USE_NAMED_PORT: The portName is used for health checking.
474 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
475 #
476 #
477 # If not specified, HTTPS health check follows behavior specified in port and portName fields.
478 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
479 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTPS health check request. The default value is /.
480 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
481 },
482 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
483 &quot;kind&quot;: &quot;compute#healthCheck&quot;, # Type of the resource.
484 &quot;logConfig&quot;: { # Configuration of logging on a health check. If logging is enabled, logs will be exported to Stackdriver. # Configure logging on this health check.
485 &quot;enable&quot;: True or False, # Indicates whether or not to export logs. This is false by default, which means no health check logging will be done.
486 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800487 &quot;name&quot;: &quot;A String&quot;, # 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. For example, a name that is 1-63 characters long, matches the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`, and otherwise complies with RFC1035. This regular expression describes a name where the first character is a lowercase letter, and all following characters are a dash, lowercase letter, or digit, except the last character, which isn&#x27;t a dash.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800488 &quot;region&quot;: &quot;A String&quot;, # [Output Only] Region where the health check resides. Not applicable to global health checks.
489 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
490 &quot;sslHealthCheck&quot;: {
491 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
492 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
493 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
494 # USE_FIXED_PORT: The port number in port is used for health checking.
495 # USE_NAMED_PORT: The portName is used for health checking.
496 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
497 #
498 #
499 # If not specified, SSL health check follows behavior specified in port and portName fields.
500 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
501 &quot;request&quot;: &quot;A String&quot;, # 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.
502 &quot;response&quot;: &quot;A String&quot;, # 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.
503 },
504 &quot;tcpHealthCheck&quot;: {
505 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
506 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
507 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
508 # USE_FIXED_PORT: The port number in port is used for health checking.
509 # USE_NAMED_PORT: The portName is used for health checking.
510 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
511 #
512 #
513 # If not specified, TCP health check follows behavior specified in port and portName fields.
514 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
515 &quot;request&quot;: &quot;A String&quot;, # 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.
516 &quot;response&quot;: &quot;A String&quot;, # 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.
517 },
518 &quot;timeoutSec&quot;: 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.
519 &quot;type&quot;: &quot;A String&quot;, # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
520 &quot;unhealthyThreshold&quot;: 42, # A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
521}</pre>
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700522</div>
523
524<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700525 <code class="details" id="insert">insert(project, body=None, requestId=None)</code>
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700526 <pre>Creates a HealthCheck resource in the specified project using the data included in the request.
527
528Args:
529 project: string, Project ID for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700530 body: object, The request body.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700531 The object takes the form of:
532
Dan O'Mearadd494642020-05-01 07:42:23 -0700533{ # Represents a Health Check resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700534 #
535 # Google Compute Engine has two Health Check resources:
536 #
537 # * [Global](/compute/docs/reference/rest/{$api_version}/healthChecks) * [Regional](/compute/docs/reference/rest/{$api_version}/regionHealthChecks)
538 #
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700539 # Internal HTTP(S) load balancers must use regional health checks (`compute.v1.regionHealthChecks`).
Bu Sun Kim65020912020-05-20 12:08:20 -0700540 #
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700541 # Traffic Director must use global health checks (`compute.v1.HealthChecks`).
542 #
543 # Internal TCP/UDP load balancers can use either regional or global health checks (`compute.v1.regionHealthChecks` or `compute.v1.HealthChecks`).
544 #
545 # External HTTP(S), TCP proxy, and SSL proxy load balancers as well as managed instance group auto-healing must use global health checks (`compute.v1.HealthChecks`).
546 #
547 # Network load balancers must use legacy HTTP health checks (httpHealthChecks).
548 #
549 # For more information, see Health checks overview.
Bu Sun Kim65020912020-05-20 12:08:20 -0700550 &quot;checkIntervalSec&quot;: 42, # How often (in seconds) to send a health check. The default value is 5 seconds.
551 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in 3339 text format.
552 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you create the resource.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700553 &quot;grpcHealthCheck&quot;: {
554 &quot;grpcServiceName&quot;: &quot;A String&quot;, # The gRPC service name for the health check. This field is optional. The value of grpc_service_name has the following meanings by convention:
555 # - Empty service_name means the overall status of all services at the backend.
556 # - Non-empty service_name means the health of that gRPC service, as defined by the owner of the service.
557 # The grpc_service_name can only be ASCII.
558 &quot;port&quot;: 42, # The port number for the health check request. Must be specified if port_name and port_specification are not set or if port_specification is USE_FIXED_PORT. Valid values are 1 through 65535.
559 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. The port_name should conform to RFC1035.
560 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
561 # USE_FIXED_PORT: The port number in port is used for health checking.
562 # USE_NAMED_PORT: The portName is used for health checking.
563 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
564 #
565 #
566 # If not specified, gRPC health check follows behavior specified in port and portName fields.
567 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700568 &quot;healthyThreshold&quot;: 42, # A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
569 &quot;http2HealthCheck&quot;: {
570 &quot;host&quot;: &quot;A String&quot;, # The value of the host header in the HTTP/2 health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
571 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
572 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
573 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
574 # USE_FIXED_PORT: The port number in port is used for health checking.
575 # USE_NAMED_PORT: The portName is used for health checking.
576 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
577 #
578 #
579 # If not specified, HTTP2 health check follows behavior specified in port and portName fields.
580 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
581 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTP/2 health check request. The default value is /.
582 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
583 },
584 &quot;httpHealthCheck&quot;: {
585 &quot;host&quot;: &quot;A String&quot;, # 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.
586 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
587 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
588 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
589 # USE_FIXED_PORT: The port number in port is used for health checking.
590 # USE_NAMED_PORT: The portName is used for health checking.
591 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
592 #
593 #
594 # If not specified, HTTP health check follows behavior specified in port and portName fields.
595 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
596 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTP health check request. The default value is /.
597 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
598 },
599 &quot;httpsHealthCheck&quot;: {
600 &quot;host&quot;: &quot;A String&quot;, # 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.
601 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
602 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
603 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
604 # USE_FIXED_PORT: The port number in port is used for health checking.
605 # USE_NAMED_PORT: The portName is used for health checking.
606 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
607 #
608 #
609 # If not specified, HTTPS health check follows behavior specified in port and portName fields.
610 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
611 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTPS health check request. The default value is /.
612 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
613 },
614 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
615 &quot;kind&quot;: &quot;compute#healthCheck&quot;, # Type of the resource.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700616 &quot;logConfig&quot;: { # Configuration of logging on a health check. If logging is enabled, logs will be exported to Stackdriver. # Configure logging on this health check.
617 &quot;enable&quot;: True or False, # Indicates whether or not to export logs. This is false by default, which means no health check logging will be done.
618 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800619 &quot;name&quot;: &quot;A String&quot;, # 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. For example, a name that is 1-63 characters long, matches the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`, and otherwise complies with RFC1035. This regular expression describes a name where the first character is a lowercase letter, and all following characters are a dash, lowercase letter, or digit, except the last character, which isn&#x27;t a dash.
Bu Sun Kim65020912020-05-20 12:08:20 -0700620 &quot;region&quot;: &quot;A String&quot;, # [Output Only] Region where the health check resides. Not applicable to global health checks.
621 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
622 &quot;sslHealthCheck&quot;: {
623 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
624 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
625 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
626 # USE_FIXED_PORT: The port number in port is used for health checking.
627 # USE_NAMED_PORT: The portName is used for health checking.
628 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
629 #
630 #
631 # If not specified, SSL health check follows behavior specified in port and portName fields.
632 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
633 &quot;request&quot;: &quot;A String&quot;, # 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.
634 &quot;response&quot;: &quot;A String&quot;, # 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.
635 },
636 &quot;tcpHealthCheck&quot;: {
637 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
638 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
639 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
640 # USE_FIXED_PORT: The port number in port is used for health checking.
641 # USE_NAMED_PORT: The portName is used for health checking.
642 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
643 #
644 #
645 # If not specified, TCP health check follows behavior specified in port and portName fields.
646 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
647 &quot;request&quot;: &quot;A String&quot;, # 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.
648 &quot;response&quot;: &quot;A String&quot;, # 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.
649 },
650 &quot;timeoutSec&quot;: 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.
651 &quot;type&quot;: &quot;A String&quot;, # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
652 &quot;unhealthyThreshold&quot;: 42, # A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
653}
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700654
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700655 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.
656
657For 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.
658
659The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700660
661Returns:
662 An object of the form:
663
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700664 { # Represents an Operation resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800665 #
666 # Google Compute Engine has three Operation resources:
667 #
668 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
669 #
670 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
671 #
672 # Operations can be global, regional or zonal.
673 # - For global operations, use the `globalOperations` resource.
674 # - For regional operations, use the `regionOperations` resource.
675 # - For zonal operations, use the `zonalOperations` resource.
676 #
677 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
678 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
679 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
680 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
681 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
682 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
683 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700684 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800685 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
686 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
687 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Bu Sun Kim65020912020-05-20 12:08:20 -0700688 },
689 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800690 },
691 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`.
692 &quot;httpErrorStatusCode&quot;: 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.
693 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
694 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
695 &quot;kind&quot;: &quot;compute#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
696 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800697 &quot;operationGroupId&quot;: &quot;A String&quot;, # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800698 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
699 &quot;progress&quot;: 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.
700 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
701 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
702 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
703 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`.
704 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
705 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
706 &quot;targetLink&quot;: &quot;A String&quot;, # [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.
707 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
708 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
709 {
710 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
711 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
712 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
713 {
714 &quot;key&quot;: &quot;A String&quot;, # [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).
715 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
716 },
717 ],
718 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
719 },
720 ],
721 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
722}</pre>
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700723</div>
724
725<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700726 <code class="details" id="list">list(project, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None)</code>
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700727 <pre>Retrieves the list of HealthCheck resources available to the specified project.
728
729Args:
730 project: string, Project ID for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700731 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 `=`, `!=`, `&gt;`, or `&lt;`.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700732
Dan O'Mearadd494642020-05-01 07:42:23 -0700733For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700734
Dan O'Mearadd494642020-05-01 07:42:23 -0700735You 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.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700736
Bu Sun Kim65020912020-05-20 12:08:20 -0700737To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = &quot;Intel Skylake&quot;) ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = &quot;Intel Skylake&quot;) OR (cpuPlatform = &quot;Intel Broadwell&quot;) AND (scheduling.automaticRestart = true) ```
738 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`)
739 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
740
741You can also sort results in descending order based on the creation timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. 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.
742
743Currently, only sorting by `name` or `creationTimestamp desc` is supported.
744 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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800745 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700746
747Returns:
748 An object of the form:
749
750 { # Contains a list of HealthCheck resources.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800751 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
752 &quot;items&quot;: [ # A list of HealthCheck resources.
753 { # Represents a Health Check resource.
754 #
755 # Google Compute Engine has two Health Check resources:
756 #
757 # * [Global](/compute/docs/reference/rest/{$api_version}/healthChecks) * [Regional](/compute/docs/reference/rest/{$api_version}/regionHealthChecks)
758 #
759 # Internal HTTP(S) load balancers must use regional health checks (`compute.v1.regionHealthChecks`).
760 #
761 # Traffic Director must use global health checks (`compute.v1.HealthChecks`).
762 #
763 # Internal TCP/UDP load balancers can use either regional or global health checks (`compute.v1.regionHealthChecks` or `compute.v1.HealthChecks`).
764 #
765 # External HTTP(S), TCP proxy, and SSL proxy load balancers as well as managed instance group auto-healing must use global health checks (`compute.v1.HealthChecks`).
766 #
767 # Network load balancers must use legacy HTTP health checks (httpHealthChecks).
768 #
769 # For more information, see Health checks overview.
770 &quot;checkIntervalSec&quot;: 42, # How often (in seconds) to send a health check. The default value is 5 seconds.
771 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in 3339 text format.
772 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you create the resource.
773 &quot;grpcHealthCheck&quot;: {
774 &quot;grpcServiceName&quot;: &quot;A String&quot;, # The gRPC service name for the health check. This field is optional. The value of grpc_service_name has the following meanings by convention:
775 # - Empty service_name means the overall status of all services at the backend.
776 # - Non-empty service_name means the health of that gRPC service, as defined by the owner of the service.
777 # The grpc_service_name can only be ASCII.
778 &quot;port&quot;: 42, # The port number for the health check request. Must be specified if port_name and port_specification are not set or if port_specification is USE_FIXED_PORT. Valid values are 1 through 65535.
779 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. The port_name should conform to RFC1035.
780 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
781 # USE_FIXED_PORT: The port number in port is used for health checking.
782 # USE_NAMED_PORT: The portName is used for health checking.
783 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
784 #
785 #
786 # If not specified, gRPC health check follows behavior specified in port and portName fields.
787 },
788 &quot;healthyThreshold&quot;: 42, # A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
789 &quot;http2HealthCheck&quot;: {
790 &quot;host&quot;: &quot;A String&quot;, # The value of the host header in the HTTP/2 health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
791 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
792 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
793 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
794 # USE_FIXED_PORT: The port number in port is used for health checking.
795 # USE_NAMED_PORT: The portName is used for health checking.
796 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
797 #
798 #
799 # If not specified, HTTP2 health check follows behavior specified in port and portName fields.
800 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
801 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTP/2 health check request. The default value is /.
802 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
803 },
804 &quot;httpHealthCheck&quot;: {
805 &quot;host&quot;: &quot;A String&quot;, # 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.
806 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
807 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
808 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
809 # USE_FIXED_PORT: The port number in port is used for health checking.
810 # USE_NAMED_PORT: The portName is used for health checking.
811 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
812 #
813 #
814 # If not specified, HTTP health check follows behavior specified in port and portName fields.
815 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
816 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTP health check request. The default value is /.
817 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
818 },
819 &quot;httpsHealthCheck&quot;: {
820 &quot;host&quot;: &quot;A String&quot;, # 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.
821 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
822 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
823 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
824 # USE_FIXED_PORT: The port number in port is used for health checking.
825 # USE_NAMED_PORT: The portName is used for health checking.
826 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
827 #
828 #
829 # If not specified, HTTPS health check follows behavior specified in port and portName fields.
830 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
831 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTPS health check request. The default value is /.
832 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
833 },
834 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
835 &quot;kind&quot;: &quot;compute#healthCheck&quot;, # Type of the resource.
836 &quot;logConfig&quot;: { # Configuration of logging on a health check. If logging is enabled, logs will be exported to Stackdriver. # Configure logging on this health check.
837 &quot;enable&quot;: True or False, # Indicates whether or not to export logs. This is false by default, which means no health check logging will be done.
838 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800839 &quot;name&quot;: &quot;A String&quot;, # 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. For example, a name that is 1-63 characters long, matches the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`, and otherwise complies with RFC1035. This regular expression describes a name where the first character is a lowercase letter, and all following characters are a dash, lowercase letter, or digit, except the last character, which isn&#x27;t a dash.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800840 &quot;region&quot;: &quot;A String&quot;, # [Output Only] Region where the health check resides. Not applicable to global health checks.
841 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
842 &quot;sslHealthCheck&quot;: {
843 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
844 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
845 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
846 # USE_FIXED_PORT: The port number in port is used for health checking.
847 # USE_NAMED_PORT: The portName is used for health checking.
848 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
849 #
850 #
851 # If not specified, SSL health check follows behavior specified in port and portName fields.
852 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
853 &quot;request&quot;: &quot;A String&quot;, # 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.
854 &quot;response&quot;: &quot;A String&quot;, # 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.
855 },
856 &quot;tcpHealthCheck&quot;: {
857 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
858 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
859 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
860 # USE_FIXED_PORT: The port number in port is used for health checking.
861 # USE_NAMED_PORT: The portName is used for health checking.
862 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
863 #
864 #
865 # If not specified, TCP health check follows behavior specified in port and portName fields.
866 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
867 &quot;request&quot;: &quot;A String&quot;, # 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.
868 &quot;response&quot;: &quot;A String&quot;, # 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.
869 },
870 &quot;timeoutSec&quot;: 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.
871 &quot;type&quot;: &quot;A String&quot;, # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
872 &quot;unhealthyThreshold&quot;: 42, # A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
873 },
874 ],
875 &quot;kind&quot;: &quot;compute#healthCheckList&quot;, # Type of resource.
876 &quot;nextPageToken&quot;: &quot;A String&quot;, # [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.
877 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for this resource.
878 &quot;warning&quot;: { # [Output Only] Informational warning message.
879 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
880 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
881 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
882 {
883 &quot;key&quot;: &quot;A String&quot;, # [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).
884 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
Bu Sun Kim65020912020-05-20 12:08:20 -0700885 },
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700886 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800887 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
888 },
889}</pre>
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700890</div>
891
892<div class="method">
893 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
894 <pre>Retrieves the next page of results.
895
896Args:
897 previous_request: The request for the previous page. (required)
898 previous_response: The response from the request for the previous page. (required)
899
900Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700901 A request object that you can call &#x27;execute()&#x27; on to request the next
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700902 page. Returns None if there are no more items in the collection.
903 </pre>
904</div>
905
906<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700907 <code class="details" id="patch">patch(project, healthCheck, body=None, requestId=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700908 <pre>Updates a HealthCheck resource 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.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700909
910Args:
911 project: string, Project ID for this request. (required)
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400912 healthCheck: string, Name of the HealthCheck resource to patch. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700913 body: object, The request body.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700914 The object takes the form of:
915
Dan O'Mearadd494642020-05-01 07:42:23 -0700916{ # Represents a Health Check resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700917 #
918 # Google Compute Engine has two Health Check resources:
919 #
920 # * [Global](/compute/docs/reference/rest/{$api_version}/healthChecks) * [Regional](/compute/docs/reference/rest/{$api_version}/regionHealthChecks)
921 #
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700922 # Internal HTTP(S) load balancers must use regional health checks (`compute.v1.regionHealthChecks`).
Bu Sun Kim65020912020-05-20 12:08:20 -0700923 #
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700924 # Traffic Director must use global health checks (`compute.v1.HealthChecks`).
925 #
926 # Internal TCP/UDP load balancers can use either regional or global health checks (`compute.v1.regionHealthChecks` or `compute.v1.HealthChecks`).
927 #
928 # External HTTP(S), TCP proxy, and SSL proxy load balancers as well as managed instance group auto-healing must use global health checks (`compute.v1.HealthChecks`).
929 #
930 # Network load balancers must use legacy HTTP health checks (httpHealthChecks).
931 #
932 # For more information, see Health checks overview.
Bu Sun Kim65020912020-05-20 12:08:20 -0700933 &quot;checkIntervalSec&quot;: 42, # How often (in seconds) to send a health check. The default value is 5 seconds.
934 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in 3339 text format.
935 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you create the resource.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700936 &quot;grpcHealthCheck&quot;: {
937 &quot;grpcServiceName&quot;: &quot;A String&quot;, # The gRPC service name for the health check. This field is optional. The value of grpc_service_name has the following meanings by convention:
938 # - Empty service_name means the overall status of all services at the backend.
939 # - Non-empty service_name means the health of that gRPC service, as defined by the owner of the service.
940 # The grpc_service_name can only be ASCII.
941 &quot;port&quot;: 42, # The port number for the health check request. Must be specified if port_name and port_specification are not set or if port_specification is USE_FIXED_PORT. Valid values are 1 through 65535.
942 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. The port_name should conform to RFC1035.
943 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
944 # USE_FIXED_PORT: The port number in port is used for health checking.
945 # USE_NAMED_PORT: The portName is used for health checking.
946 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
947 #
948 #
949 # If not specified, gRPC health check follows behavior specified in port and portName fields.
950 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700951 &quot;healthyThreshold&quot;: 42, # A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
952 &quot;http2HealthCheck&quot;: {
953 &quot;host&quot;: &quot;A String&quot;, # The value of the host header in the HTTP/2 health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
954 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
955 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
956 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
957 # USE_FIXED_PORT: The port number in port is used for health checking.
958 # USE_NAMED_PORT: The portName is used for health checking.
959 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
960 #
961 #
962 # If not specified, HTTP2 health check follows behavior specified in port and portName fields.
963 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
964 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTP/2 health check request. The default value is /.
965 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
966 },
967 &quot;httpHealthCheck&quot;: {
968 &quot;host&quot;: &quot;A String&quot;, # 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.
969 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
970 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
971 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
972 # USE_FIXED_PORT: The port number in port is used for health checking.
973 # USE_NAMED_PORT: The portName is used for health checking.
974 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
975 #
976 #
977 # If not specified, HTTP health check follows behavior specified in port and portName fields.
978 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
979 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTP health check request. The default value is /.
980 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
981 },
982 &quot;httpsHealthCheck&quot;: {
983 &quot;host&quot;: &quot;A String&quot;, # 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.
984 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
985 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
986 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
987 # USE_FIXED_PORT: The port number in port is used for health checking.
988 # USE_NAMED_PORT: The portName is used for health checking.
989 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
990 #
991 #
992 # If not specified, HTTPS health check follows behavior specified in port and portName fields.
993 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
994 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTPS health check request. The default value is /.
995 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
996 },
997 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
998 &quot;kind&quot;: &quot;compute#healthCheck&quot;, # Type of the resource.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700999 &quot;logConfig&quot;: { # Configuration of logging on a health check. If logging is enabled, logs will be exported to Stackdriver. # Configure logging on this health check.
1000 &quot;enable&quot;: True or False, # Indicates whether or not to export logs. This is false by default, which means no health check logging will be done.
1001 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001002 &quot;name&quot;: &quot;A String&quot;, # 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. For example, a name that is 1-63 characters long, matches the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`, and otherwise complies with RFC1035. This regular expression describes a name where the first character is a lowercase letter, and all following characters are a dash, lowercase letter, or digit, except the last character, which isn&#x27;t a dash.
Bu Sun Kim65020912020-05-20 12:08:20 -07001003 &quot;region&quot;: &quot;A String&quot;, # [Output Only] Region where the health check resides. Not applicable to global health checks.
1004 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1005 &quot;sslHealthCheck&quot;: {
1006 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
1007 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
1008 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
1009 # USE_FIXED_PORT: The port number in port is used for health checking.
1010 # USE_NAMED_PORT: The portName is used for health checking.
1011 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
1012 #
1013 #
1014 # If not specified, SSL health check follows behavior specified in port and portName fields.
1015 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
1016 &quot;request&quot;: &quot;A String&quot;, # 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.
1017 &quot;response&quot;: &quot;A String&quot;, # 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.
1018 },
1019 &quot;tcpHealthCheck&quot;: {
1020 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
1021 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
1022 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
1023 # USE_FIXED_PORT: The port number in port is used for health checking.
1024 # USE_NAMED_PORT: The portName is used for health checking.
1025 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
1026 #
1027 #
1028 # If not specified, TCP health check follows behavior specified in port and portName fields.
1029 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
1030 &quot;request&quot;: &quot;A String&quot;, # 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.
1031 &quot;response&quot;: &quot;A String&quot;, # 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.
1032 },
1033 &quot;timeoutSec&quot;: 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.
1034 &quot;type&quot;: &quot;A String&quot;, # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
1035 &quot;unhealthyThreshold&quot;: 42, # A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
1036}
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001037
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001038 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.
1039
1040For 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.
1041
1042The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001043
1044Returns:
1045 An object of the form:
1046
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001047 { # Represents an Operation resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001048 #
1049 # Google Compute Engine has three Operation resources:
1050 #
1051 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
1052 #
1053 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
1054 #
1055 # Operations can be global, regional or zonal.
1056 # - For global operations, use the `globalOperations` resource.
1057 # - For regional operations, use the `regionOperations` resource.
1058 # - For zonal operations, use the `zonalOperations` resource.
1059 #
1060 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
1061 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
1062 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1063 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
1064 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
1065 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
1066 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001067 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001068 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
1069 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
1070 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Bu Sun Kim65020912020-05-20 12:08:20 -07001071 },
1072 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001073 },
1074 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`.
1075 &quot;httpErrorStatusCode&quot;: 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.
1076 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
1077 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
1078 &quot;kind&quot;: &quot;compute#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
1079 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001080 &quot;operationGroupId&quot;: &quot;A String&quot;, # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001081 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
1082 &quot;progress&quot;: 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.
1083 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
1084 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1085 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
1086 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`.
1087 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
1088 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
1089 &quot;targetLink&quot;: &quot;A String&quot;, # [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.
1090 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
1091 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
1092 {
1093 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
1094 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
1095 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
1096 {
1097 &quot;key&quot;: &quot;A String&quot;, # [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).
1098 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1099 },
1100 ],
1101 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1102 },
1103 ],
1104 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
1105}</pre>
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001106</div>
1107
1108<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001109 <code class="details" id="update">update(project, healthCheck, body=None, requestId=None)</code>
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001110 <pre>Updates a HealthCheck resource in the specified project using the data included in the request.
1111
1112Args:
1113 project: string, Project ID for this request. (required)
1114 healthCheck: string, Name of the HealthCheck resource to update. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001115 body: object, The request body.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001116 The object takes the form of:
1117
Dan O'Mearadd494642020-05-01 07:42:23 -07001118{ # Represents a Health Check resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001119 #
1120 # Google Compute Engine has two Health Check resources:
1121 #
1122 # * [Global](/compute/docs/reference/rest/{$api_version}/healthChecks) * [Regional](/compute/docs/reference/rest/{$api_version}/regionHealthChecks)
1123 #
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001124 # Internal HTTP(S) load balancers must use regional health checks (`compute.v1.regionHealthChecks`).
Bu Sun Kim65020912020-05-20 12:08:20 -07001125 #
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001126 # Traffic Director must use global health checks (`compute.v1.HealthChecks`).
1127 #
1128 # Internal TCP/UDP load balancers can use either regional or global health checks (`compute.v1.regionHealthChecks` or `compute.v1.HealthChecks`).
1129 #
1130 # External HTTP(S), TCP proxy, and SSL proxy load balancers as well as managed instance group auto-healing must use global health checks (`compute.v1.HealthChecks`).
1131 #
1132 # Network load balancers must use legacy HTTP health checks (httpHealthChecks).
1133 #
1134 # For more information, see Health checks overview.
Bu Sun Kim65020912020-05-20 12:08:20 -07001135 &quot;checkIntervalSec&quot;: 42, # How often (in seconds) to send a health check. The default value is 5 seconds.
1136 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in 3339 text format.
1137 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you create the resource.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001138 &quot;grpcHealthCheck&quot;: {
1139 &quot;grpcServiceName&quot;: &quot;A String&quot;, # The gRPC service name for the health check. This field is optional. The value of grpc_service_name has the following meanings by convention:
1140 # - Empty service_name means the overall status of all services at the backend.
1141 # - Non-empty service_name means the health of that gRPC service, as defined by the owner of the service.
1142 # The grpc_service_name can only be ASCII.
1143 &quot;port&quot;: 42, # The port number for the health check request. Must be specified if port_name and port_specification are not set or if port_specification is USE_FIXED_PORT. Valid values are 1 through 65535.
1144 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. The port_name should conform to RFC1035.
1145 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
1146 # USE_FIXED_PORT: The port number in port is used for health checking.
1147 # USE_NAMED_PORT: The portName is used for health checking.
1148 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
1149 #
1150 #
1151 # If not specified, gRPC health check follows behavior specified in port and portName fields.
1152 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001153 &quot;healthyThreshold&quot;: 42, # A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.
1154 &quot;http2HealthCheck&quot;: {
1155 &quot;host&quot;: &quot;A String&quot;, # The value of the host header in the HTTP/2 health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used.
1156 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
1157 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
1158 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
1159 # USE_FIXED_PORT: The port number in port is used for health checking.
1160 # USE_NAMED_PORT: The portName is used for health checking.
1161 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
1162 #
1163 #
1164 # If not specified, HTTP2 health check follows behavior specified in port and portName fields.
1165 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
1166 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTP/2 health check request. The default value is /.
1167 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
1168 },
1169 &quot;httpHealthCheck&quot;: {
1170 &quot;host&quot;: &quot;A String&quot;, # 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.
1171 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
1172 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
1173 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
1174 # USE_FIXED_PORT: The port number in port is used for health checking.
1175 # USE_NAMED_PORT: The portName is used for health checking.
1176 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
1177 #
1178 #
1179 # If not specified, HTTP health check follows behavior specified in port and portName fields.
1180 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
1181 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTP health check request. The default value is /.
1182 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
1183 },
1184 &quot;httpsHealthCheck&quot;: {
1185 &quot;host&quot;: &quot;A String&quot;, # 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.
1186 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
1187 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
1188 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
1189 # USE_FIXED_PORT: The port number in port is used for health checking.
1190 # USE_NAMED_PORT: The portName is used for health checking.
1191 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
1192 #
1193 #
1194 # If not specified, HTTPS health check follows behavior specified in port and portName fields.
1195 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
1196 &quot;requestPath&quot;: &quot;A String&quot;, # The request path of the HTTPS health check request. The default value is /.
1197 &quot;response&quot;: &quot;A String&quot;, # The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII.
1198 },
1199 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1200 &quot;kind&quot;: &quot;compute#healthCheck&quot;, # Type of the resource.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001201 &quot;logConfig&quot;: { # Configuration of logging on a health check. If logging is enabled, logs will be exported to Stackdriver. # Configure logging on this health check.
1202 &quot;enable&quot;: True or False, # Indicates whether or not to export logs. This is false by default, which means no health check logging will be done.
1203 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001204 &quot;name&quot;: &quot;A String&quot;, # 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. For example, a name that is 1-63 characters long, matches the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`, and otherwise complies with RFC1035. This regular expression describes a name where the first character is a lowercase letter, and all following characters are a dash, lowercase letter, or digit, except the last character, which isn&#x27;t a dash.
Bu Sun Kim65020912020-05-20 12:08:20 -07001205 &quot;region&quot;: &quot;A String&quot;, # [Output Only] Region where the health check resides. Not applicable to global health checks.
1206 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1207 &quot;sslHealthCheck&quot;: {
1208 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535.
1209 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
1210 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
1211 # USE_FIXED_PORT: The port number in port is used for health checking.
1212 # USE_NAMED_PORT: The portName is used for health checking.
1213 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
1214 #
1215 #
1216 # If not specified, SSL health check follows behavior specified in port and portName fields.
1217 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
1218 &quot;request&quot;: &quot;A String&quot;, # 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.
1219 &quot;response&quot;: &quot;A String&quot;, # 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.
1220 },
1221 &quot;tcpHealthCheck&quot;: {
1222 &quot;port&quot;: 42, # The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
1223 &quot;portName&quot;: &quot;A String&quot;, # Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
1224 &quot;portSpecification&quot;: &quot;A String&quot;, # Specifies how port is selected for health checking, can be one of following values:
1225 # USE_FIXED_PORT: The port number in port is used for health checking.
1226 # USE_NAMED_PORT: The portName is used for health checking.
1227 # USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking.
1228 #
1229 #
1230 # If not specified, TCP health check follows behavior specified in port and portName fields.
1231 &quot;proxyHeader&quot;: &quot;A String&quot;, # Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
1232 &quot;request&quot;: &quot;A String&quot;, # 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.
1233 &quot;response&quot;: &quot;A String&quot;, # 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.
1234 },
1235 &quot;timeoutSec&quot;: 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.
1236 &quot;type&quot;: &quot;A String&quot;, # Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field.
1237 &quot;unhealthyThreshold&quot;: 42, # A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.
1238}
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001239
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001240 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.
1241
1242For 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.
1243
1244The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001245
1246Returns:
1247 An object of the form:
1248
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001249 { # Represents an Operation resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001250 #
1251 # Google Compute Engine has three Operation resources:
1252 #
1253 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
1254 #
1255 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
1256 #
1257 # Operations can be global, regional or zonal.
1258 # - For global operations, use the `globalOperations` resource.
1259 # - For regional operations, use the `regionOperations` resource.
1260 # - For zonal operations, use the `zonalOperations` resource.
1261 #
1262 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
1263 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
1264 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1265 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
1266 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
1267 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
1268 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001269 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001270 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
1271 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
1272 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Bu Sun Kim65020912020-05-20 12:08:20 -07001273 },
1274 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001275 },
1276 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`.
1277 &quot;httpErrorStatusCode&quot;: 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.
1278 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
1279 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
1280 &quot;kind&quot;: &quot;compute#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
1281 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001282 &quot;operationGroupId&quot;: &quot;A String&quot;, # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001283 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
1284 &quot;progress&quot;: 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.
1285 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
1286 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1287 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
1288 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`.
1289 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
1290 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
1291 &quot;targetLink&quot;: &quot;A String&quot;, # [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.
1292 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
1293 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
1294 {
1295 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
1296 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
1297 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
1298 {
1299 &quot;key&quot;: &quot;A String&quot;, # [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).
1300 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1301 },
1302 ],
1303 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1304 },
1305 ],
1306 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
1307}</pre>
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001308</div>
1309
1310</body></html>