blob: 1a13a332645f5630500163078ade7bea2c9ce48d [file] [log] [blame]
John Asmuth614db982014-04-24 15:46:26 -04001<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.httpHealthChecks.html">httpHealthChecks</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#delete">delete(project, httpHealthCheck)</a></code></p>
79<p class="firstline">Deletes the specified HttpHealthCheck resource.</p>
80<p class="toc_element">
81 <code><a href="#get">get(project, httpHealthCheck)</a></code></p>
82<p class="firstline">Returns the specified HttpHealthCheck resource.</p>
83<p class="toc_element">
84 <code><a href="#insert">insert(project, body)</a></code></p>
85<p class="firstline">Creates a HttpHealthCheck resource in the specified project using the data included in the request.</p>
86<p class="toc_element">
87 <code><a href="#list">list(project, maxResults=None, pageToken=None, filter=None)</a></code></p>
88<p class="firstline">Retrieves the list of HttpHealthCheck resources available to the specified project.</p>
89<p class="toc_element">
90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<p class="toc_element">
93 <code><a href="#patch">patch(project, httpHealthCheck, body)</a></code></p>
94<p class="firstline">Updates a HttpHealthCheck resource in the specified project using the data included in the request. This method supports patch semantics.</p>
95<p class="toc_element">
96 <code><a href="#update">update(project, httpHealthCheck, body)</a></code></p>
97<p class="firstline">Updates a HttpHealthCheck resource in the specified project using the data included in the request.</p>
98<h3>Method Details</h3>
99<div class="method">
100 <code class="details" id="delete">delete(project, httpHealthCheck)</code>
101 <pre>Deletes the specified HttpHealthCheck resource.
102
103Args:
104 project: string, Name of the project scoping this request. (required)
105 httpHealthCheck: string, Name of the HttpHealthCheck resource to delete. (required)
106
107Returns:
108 An object of the form:
109
110 { # An operation resource, used to manage asynchronous API requests.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000111 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
112 "clientOperationId": "A String", # [Output Only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project
113 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800114 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000115 "zone": "A String", # [Output Only] URL of the zone where the operation resides.
116 "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete.
117 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
118 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses.
119 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as 404.
Craig Citroe633be12015-03-02 13:40:36 -0800120 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000121 "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE.
122 "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format.
123 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
John Asmuth614db982014-04-24 15:46:26 -0400124 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000125 "message": "A String", # [Output Only] Optional human-readable details for this warning.
126 "code": "A String", # [Output Only] The warning type identifier for this warning.
127 "data": [ # [Output Only] Metadata for this warning in key: value format.
John Asmuth614db982014-04-24 15:46:26 -0400128 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000129 "value": "A String", # [Output Only] A warning data value corresponding to the key.
130 "key": "A String", # [Output Only] A key for the warning data.
John Asmuth614db982014-04-24 15:46:26 -0400131 },
132 ],
133 },
134 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000135 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
136 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format.
137 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources.
138 "name": "A String", # [Output Only] Name of the resource.
139 "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources.
140 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800141 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400142 {
Craig Citroe633be12015-03-02 13:40:36 -0800143 "message": "A String", # [Output Only] An optional, human-readable error message.
144 "code": "A String", # [Output Only] The error type identifier for this error.
145 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional.
John Asmuth614db982014-04-24 15:46:26 -0400146 },
147 ],
148 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000149 "endTime": "A String", # [Output Only] The time that this operation was completed. This is in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800150 "selfLink": "A String", # [Output Only] Server defined URL for the resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000151 "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating.
John Asmuth614db982014-04-24 15:46:26 -0400152 }</pre>
153</div>
154
155<div class="method">
156 <code class="details" id="get">get(project, httpHealthCheck)</code>
157 <pre>Returns the specified HttpHealthCheck resource.
158
159Args:
160 project: string, Name of the project scoping this request. (required)
161 httpHealthCheck: string, Name of the HttpHealthCheck resource to return. (required)
162
163Returns:
164 An object of the form:
165
166 { # An HttpHealthCheck resource. This resource defines a template for how individual VMs should be checked for health, via HTTP.
167 "kind": "compute#httpHealthCheck", # Type of the resource.
168 "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
Craig Citroe633be12015-03-02 13:40:36 -0800169 "timeoutSec": 42, # How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.
John Asmuth614db982014-04-24 15:46:26 -0400170 "checkIntervalSec": 42, # How often (in seconds) to send a health check. The default value is 5 seconds.
171 "port": 42, # The TCP port number for the HTTP health check request. The default value is 80.
172 "healthyThreshold": 42, # A so-far unhealthy VM will be marked healthy after this many consecutive successes. The default value is 2.
173 "host": "A String", # The value of the host header in the HTTP health check request. If left empty (default value), the public IP on behalf of which this health check is performed will be used.
174 "requestPath": "A String", # The request path of the HTTP health check request. The default value is "/".
175 "unhealthyThreshold": 42, # A so-far healthy VM will be marked unhealthy after this many consecutive failures. The default value is 2.
176 "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
177 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
178 "selfLink": "A String", # Server defined URL for the resource (output only).
179 "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
180 }</pre>
181</div>
182
183<div class="method">
184 <code class="details" id="insert">insert(project, body)</code>
185 <pre>Creates a HttpHealthCheck resource in the specified project using the data included in the request.
186
187Args:
188 project: string, Name of the project scoping this request. (required)
189 body: object, The request body. (required)
190 The object takes the form of:
191
192{ # An HttpHealthCheck resource. This resource defines a template for how individual VMs should be checked for health, via HTTP.
193 "kind": "compute#httpHealthCheck", # Type of the resource.
194 "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
Craig Citroe633be12015-03-02 13:40:36 -0800195 "timeoutSec": 42, # How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.
John Asmuth614db982014-04-24 15:46:26 -0400196 "checkIntervalSec": 42, # How often (in seconds) to send a health check. The default value is 5 seconds.
197 "port": 42, # The TCP port number for the HTTP health check request. The default value is 80.
198 "healthyThreshold": 42, # A so-far unhealthy VM will be marked healthy after this many consecutive successes. The default value is 2.
199 "host": "A String", # The value of the host header in the HTTP health check request. If left empty (default value), the public IP on behalf of which this health check is performed will be used.
200 "requestPath": "A String", # The request path of the HTTP health check request. The default value is "/".
201 "unhealthyThreshold": 42, # A so-far healthy VM will be marked unhealthy after this many consecutive failures. The default value is 2.
202 "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
203 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
204 "selfLink": "A String", # Server defined URL for the resource (output only).
205 "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
206 }
207
208
209Returns:
210 An object of the form:
211
212 { # An operation resource, used to manage asynchronous API requests.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000213 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
214 "clientOperationId": "A String", # [Output Only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project
215 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800216 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000217 "zone": "A String", # [Output Only] URL of the zone where the operation resides.
218 "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete.
219 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
220 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses.
221 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as 404.
Craig Citroe633be12015-03-02 13:40:36 -0800222 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000223 "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE.
224 "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format.
225 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
John Asmuth614db982014-04-24 15:46:26 -0400226 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000227 "message": "A String", # [Output Only] Optional human-readable details for this warning.
228 "code": "A String", # [Output Only] The warning type identifier for this warning.
229 "data": [ # [Output Only] Metadata for this warning in key: value format.
John Asmuth614db982014-04-24 15:46:26 -0400230 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000231 "value": "A String", # [Output Only] A warning data value corresponding to the key.
232 "key": "A String", # [Output Only] A key for the warning data.
John Asmuth614db982014-04-24 15:46:26 -0400233 },
234 ],
235 },
236 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000237 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
238 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format.
239 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources.
240 "name": "A String", # [Output Only] Name of the resource.
241 "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources.
242 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800243 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400244 {
Craig Citroe633be12015-03-02 13:40:36 -0800245 "message": "A String", # [Output Only] An optional, human-readable error message.
246 "code": "A String", # [Output Only] The error type identifier for this error.
247 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional.
John Asmuth614db982014-04-24 15:46:26 -0400248 },
249 ],
250 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000251 "endTime": "A String", # [Output Only] The time that this operation was completed. This is in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800252 "selfLink": "A String", # [Output Only] Server defined URL for the resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000253 "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating.
John Asmuth614db982014-04-24 15:46:26 -0400254 }</pre>
255</div>
256
257<div class="method">
258 <code class="details" id="list">list(project, maxResults=None, pageToken=None, filter=None)</code>
259 <pre>Retrieves the list of HttpHealthCheck resources available to the specified project.
260
261Args:
262 project: string, Name of the project scoping this request. (required)
263 maxResults: integer, Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.
264 pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
265 filter: string, Optional. Filter expression for filtering listed resources.
266
267Returns:
268 An object of the form:
269
270 { # Contains a list of HttpHealthCheck resources.
271 "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
Craig Citroe633be12015-03-02 13:40:36 -0800272 "items": [ # A list of HttpHealthCheck resources.
John Asmuth614db982014-04-24 15:46:26 -0400273 { # An HttpHealthCheck resource. This resource defines a template for how individual VMs should be checked for health, via HTTP.
274 "kind": "compute#httpHealthCheck", # Type of the resource.
275 "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
Craig Citroe633be12015-03-02 13:40:36 -0800276 "timeoutSec": 42, # How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.
John Asmuth614db982014-04-24 15:46:26 -0400277 "checkIntervalSec": 42, # How often (in seconds) to send a health check. The default value is 5 seconds.
278 "port": 42, # The TCP port number for the HTTP health check request. The default value is 80.
279 "healthyThreshold": 42, # A so-far unhealthy VM will be marked healthy after this many consecutive successes. The default value is 2.
280 "host": "A String", # The value of the host header in the HTTP health check request. If left empty (default value), the public IP on behalf of which this health check is performed will be used.
281 "requestPath": "A String", # The request path of the HTTP health check request. The default value is "/".
282 "unhealthyThreshold": 42, # A so-far healthy VM will be marked unhealthy after this many consecutive failures. The default value is 2.
283 "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
284 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
285 "selfLink": "A String", # Server defined URL for the resource (output only).
286 "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
287 },
288 ],
289 "kind": "compute#httpHealthCheckList", # Type of resource.
290 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
291 "selfLink": "A String", # Server defined URL for this resource (output only).
292 }</pre>
293</div>
294
295<div class="method">
296 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
297 <pre>Retrieves the next page of results.
298
299Args:
300 previous_request: The request for the previous page. (required)
301 previous_response: The response from the request for the previous page. (required)
302
303Returns:
304 A request object that you can call 'execute()' on to request the next
305 page. Returns None if there are no more items in the collection.
306 </pre>
307</div>
308
309<div class="method">
310 <code class="details" id="patch">patch(project, httpHealthCheck, body)</code>
311 <pre>Updates a HttpHealthCheck resource in the specified project using the data included in the request. This method supports patch semantics.
312
313Args:
314 project: string, Name of the project scoping this request. (required)
315 httpHealthCheck: string, Name of the HttpHealthCheck resource to update. (required)
316 body: object, The request body. (required)
317 The object takes the form of:
318
319{ # An HttpHealthCheck resource. This resource defines a template for how individual VMs should be checked for health, via HTTP.
320 "kind": "compute#httpHealthCheck", # Type of the resource.
321 "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
Craig Citroe633be12015-03-02 13:40:36 -0800322 "timeoutSec": 42, # How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.
John Asmuth614db982014-04-24 15:46:26 -0400323 "checkIntervalSec": 42, # How often (in seconds) to send a health check. The default value is 5 seconds.
324 "port": 42, # The TCP port number for the HTTP health check request. The default value is 80.
325 "healthyThreshold": 42, # A so-far unhealthy VM will be marked healthy after this many consecutive successes. The default value is 2.
326 "host": "A String", # The value of the host header in the HTTP health check request. If left empty (default value), the public IP on behalf of which this health check is performed will be used.
327 "requestPath": "A String", # The request path of the HTTP health check request. The default value is "/".
328 "unhealthyThreshold": 42, # A so-far healthy VM will be marked unhealthy after this many consecutive failures. The default value is 2.
329 "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
330 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
331 "selfLink": "A String", # Server defined URL for the resource (output only).
332 "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
333 }
334
335
336Returns:
337 An object of the form:
338
339 { # An operation resource, used to manage asynchronous API requests.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000340 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
341 "clientOperationId": "A String", # [Output Only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project
342 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800343 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000344 "zone": "A String", # [Output Only] URL of the zone where the operation resides.
345 "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete.
346 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
347 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses.
348 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as 404.
Craig Citroe633be12015-03-02 13:40:36 -0800349 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000350 "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE.
351 "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format.
352 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
John Asmuth614db982014-04-24 15:46:26 -0400353 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000354 "message": "A String", # [Output Only] Optional human-readable details for this warning.
355 "code": "A String", # [Output Only] The warning type identifier for this warning.
356 "data": [ # [Output Only] Metadata for this warning in key: value format.
John Asmuth614db982014-04-24 15:46:26 -0400357 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000358 "value": "A String", # [Output Only] A warning data value corresponding to the key.
359 "key": "A String", # [Output Only] A key for the warning data.
John Asmuth614db982014-04-24 15:46:26 -0400360 },
361 ],
362 },
363 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000364 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
365 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format.
366 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources.
367 "name": "A String", # [Output Only] Name of the resource.
368 "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources.
369 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800370 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400371 {
Craig Citroe633be12015-03-02 13:40:36 -0800372 "message": "A String", # [Output Only] An optional, human-readable error message.
373 "code": "A String", # [Output Only] The error type identifier for this error.
374 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional.
John Asmuth614db982014-04-24 15:46:26 -0400375 },
376 ],
377 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000378 "endTime": "A String", # [Output Only] The time that this operation was completed. This is in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800379 "selfLink": "A String", # [Output Only] Server defined URL for the resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000380 "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating.
John Asmuth614db982014-04-24 15:46:26 -0400381 }</pre>
382</div>
383
384<div class="method">
385 <code class="details" id="update">update(project, httpHealthCheck, body)</code>
386 <pre>Updates a HttpHealthCheck resource in the specified project using the data included in the request.
387
388Args:
389 project: string, Name of the project scoping this request. (required)
390 httpHealthCheck: string, Name of the HttpHealthCheck resource to update. (required)
391 body: object, The request body. (required)
392 The object takes the form of:
393
394{ # An HttpHealthCheck resource. This resource defines a template for how individual VMs should be checked for health, via HTTP.
395 "kind": "compute#httpHealthCheck", # Type of the resource.
396 "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
Craig Citroe633be12015-03-02 13:40:36 -0800397 "timeoutSec": 42, # How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.
John Asmuth614db982014-04-24 15:46:26 -0400398 "checkIntervalSec": 42, # How often (in seconds) to send a health check. The default value is 5 seconds.
399 "port": 42, # The TCP port number for the HTTP health check request. The default value is 80.
400 "healthyThreshold": 42, # A so-far unhealthy VM will be marked healthy after this many consecutive successes. The default value is 2.
401 "host": "A String", # The value of the host header in the HTTP health check request. If left empty (default value), the public IP on behalf of which this health check is performed will be used.
402 "requestPath": "A String", # The request path of the HTTP health check request. The default value is "/".
403 "unhealthyThreshold": 42, # A so-far healthy VM will be marked unhealthy after this many consecutive failures. The default value is 2.
404 "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
405 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
406 "selfLink": "A String", # Server defined URL for the resource (output only).
407 "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
408 }
409
410
411Returns:
412 An object of the form:
413
414 { # An operation resource, used to manage asynchronous API requests.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000415 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
416 "clientOperationId": "A String", # [Output Only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project
417 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800418 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000419 "zone": "A String", # [Output Only] URL of the zone where the operation resides.
420 "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete.
421 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
422 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses.
423 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as 404.
Craig Citroe633be12015-03-02 13:40:36 -0800424 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000425 "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE.
426 "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format.
427 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
John Asmuth614db982014-04-24 15:46:26 -0400428 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000429 "message": "A String", # [Output Only] Optional human-readable details for this warning.
430 "code": "A String", # [Output Only] The warning type identifier for this warning.
431 "data": [ # [Output Only] Metadata for this warning in key: value format.
John Asmuth614db982014-04-24 15:46:26 -0400432 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000433 "value": "A String", # [Output Only] A warning data value corresponding to the key.
434 "key": "A String", # [Output Only] A key for the warning data.
John Asmuth614db982014-04-24 15:46:26 -0400435 },
436 ],
437 },
438 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000439 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
440 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format.
441 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources.
442 "name": "A String", # [Output Only] Name of the resource.
443 "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources.
444 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800445 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400446 {
Craig Citroe633be12015-03-02 13:40:36 -0800447 "message": "A String", # [Output Only] An optional, human-readable error message.
448 "code": "A String", # [Output Only] The error type identifier for this error.
449 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional.
John Asmuth614db982014-04-24 15:46:26 -0400450 },
451 ],
452 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000453 "endTime": "A String", # [Output Only] The time that this operation was completed. This is in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800454 "selfLink": "A String", # [Output Only] Server defined URL for the resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000455 "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating.
John Asmuth614db982014-04-24 15:46:26 -0400456 }</pre>
457</div>
458
459</body></html>