blob: 78deba5f79d341651d7d578a866cbd6ab8a17aab [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.targetPools.html">targetPools</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#addHealthCheck">addHealthCheck(project, region, targetPool, body)</a></code></p>
79<p class="firstline">Adds health check URL to targetPool.</p>
80<p class="toc_element">
81 <code><a href="#addInstance">addInstance(project, region, targetPool, body)</a></code></p>
82<p class="firstline">Adds instance url to targetPool.</p>
83<p class="toc_element">
84 <code><a href="#aggregatedList">aggregatedList(project, maxResults=None, pageToken=None, filter=None)</a></code></p>
85<p class="firstline">Retrieves the list of target pools grouped by scope.</p>
86<p class="toc_element">
87 <code><a href="#aggregatedList_next">aggregatedList_next(previous_request, previous_response)</a></code></p>
88<p class="firstline">Retrieves the next page of results.</p>
89<p class="toc_element">
90 <code><a href="#delete">delete(project, region, targetPool)</a></code></p>
91<p class="firstline">Deletes the specified TargetPool resource.</p>
92<p class="toc_element">
93 <code><a href="#get">get(project, region, targetPool)</a></code></p>
94<p class="firstline">Returns the specified TargetPool resource.</p>
95<p class="toc_element">
96 <code><a href="#getHealth">getHealth(project, region, targetPool, body)</a></code></p>
97<p class="firstline">Gets the most recent health check results for each IP for the given instance that is referenced by given TargetPool.</p>
98<p class="toc_element">
99 <code><a href="#insert">insert(project, region, body)</a></code></p>
100<p class="firstline">Creates a TargetPool resource in the specified project and region using the data included in the request.</p>
101<p class="toc_element">
102 <code><a href="#list">list(project, region, maxResults=None, pageToken=None, filter=None)</a></code></p>
103<p class="firstline">Retrieves the list of TargetPool resources available to the specified project and region.</p>
104<p class="toc_element">
105 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
106<p class="firstline">Retrieves the next page of results.</p>
107<p class="toc_element">
108 <code><a href="#removeHealthCheck">removeHealthCheck(project, region, targetPool, body)</a></code></p>
109<p class="firstline">Removes health check URL from targetPool.</p>
110<p class="toc_element">
111 <code><a href="#removeInstance">removeInstance(project, region, targetPool, body)</a></code></p>
112<p class="firstline">Removes instance URL from targetPool.</p>
113<p class="toc_element">
114 <code><a href="#setBackup">setBackup(project, region, targetPool, body, failoverRatio=None)</a></code></p>
115<p class="firstline">Changes backup pool configurations.</p>
116<h3>Method Details</h3>
117<div class="method">
118 <code class="details" id="addHealthCheck">addHealthCheck(project, region, targetPool, body)</code>
119 <pre>Adds health check URL to targetPool.
120
121Args:
122 project: string, A parameter (required)
123 region: string, Name of the region scoping this request. (required)
124 targetPool: string, Name of the TargetPool resource to which health_check_url is to be added. (required)
125 body: object, The request body. (required)
126 The object takes the form of:
127
128{
129 "healthChecks": [ # Health check URLs to be added to targetPool.
130 {
131 "healthCheck": "A String",
132 },
133 ],
134 }
135
136
137Returns:
138 An object of the form:
139
140 { # An operation resource, used to manage asynchronous API requests.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000141 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
142 "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
143 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800144 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000145 "zone": "A String", # [Output Only] URL of the zone where the operation resides.
146 "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete.
147 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
148 "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.
149 "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 -0800150 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000151 "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE.
152 "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format.
153 "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 -0400154 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000155 "message": "A String", # [Output Only] Optional human-readable details for this warning.
156 "code": "A String", # [Output Only] The warning type identifier for this warning.
157 "data": [ # [Output Only] Metadata for this warning in key: value format.
John Asmuth614db982014-04-24 15:46:26 -0400158 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000159 "value": "A String", # [Output Only] A warning data value corresponding to the key.
160 "key": "A String", # [Output Only] A key for the warning data.
John Asmuth614db982014-04-24 15:46:26 -0400161 },
162 ],
163 },
164 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000165 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
166 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format.
167 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources.
168 "name": "A String", # [Output Only] Name of the resource.
169 "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources.
170 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800171 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400172 {
Craig Citroe633be12015-03-02 13:40:36 -0800173 "message": "A String", # [Output Only] An optional, human-readable error message.
174 "code": "A String", # [Output Only] The error type identifier for this error.
175 "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 -0400176 },
177 ],
178 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000179 "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 -0800180 "selfLink": "A String", # [Output Only] Server defined URL for the resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000181 "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating.
John Asmuth614db982014-04-24 15:46:26 -0400182 }</pre>
183</div>
184
185<div class="method">
186 <code class="details" id="addInstance">addInstance(project, region, targetPool, body)</code>
187 <pre>Adds instance url to targetPool.
188
189Args:
190 project: string, A parameter (required)
191 region: string, Name of the region scoping this request. (required)
192 targetPool: string, Name of the TargetPool resource to which instance_url is to be added. (required)
193 body: object, The request body. (required)
194 The object takes the form of:
195
196{
197 "instances": [ # URLs of the instances to be added to targetPool.
198 {
199 "instance": "A String",
200 },
201 ],
202 }
203
204
205Returns:
206 An object of the form:
207
208 { # An operation resource, used to manage asynchronous API requests.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000209 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
210 "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
211 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800212 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000213 "zone": "A String", # [Output Only] URL of the zone where the operation resides.
214 "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete.
215 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
216 "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.
217 "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 -0800218 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000219 "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE.
220 "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format.
221 "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 -0400222 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000223 "message": "A String", # [Output Only] Optional human-readable details for this warning.
224 "code": "A String", # [Output Only] The warning type identifier for this warning.
225 "data": [ # [Output Only] Metadata for this warning in key: value format.
John Asmuth614db982014-04-24 15:46:26 -0400226 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000227 "value": "A String", # [Output Only] A warning data value corresponding to the key.
228 "key": "A String", # [Output Only] A key for the warning data.
John Asmuth614db982014-04-24 15:46:26 -0400229 },
230 ],
231 },
232 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000233 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
234 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format.
235 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources.
236 "name": "A String", # [Output Only] Name of the resource.
237 "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources.
238 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800239 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400240 {
Craig Citroe633be12015-03-02 13:40:36 -0800241 "message": "A String", # [Output Only] An optional, human-readable error message.
242 "code": "A String", # [Output Only] The error type identifier for this error.
243 "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 -0400244 },
245 ],
246 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000247 "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 -0800248 "selfLink": "A String", # [Output Only] Server defined URL for the resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000249 "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating.
John Asmuth614db982014-04-24 15:46:26 -0400250 }</pre>
251</div>
252
253<div class="method">
254 <code class="details" id="aggregatedList">aggregatedList(project, maxResults=None, pageToken=None, filter=None)</code>
255 <pre>Retrieves the list of target pools grouped by scope.
256
257Args:
258 project: string, Name of the project scoping this request. (required)
259 maxResults: integer, Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.
260 pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
261 filter: string, Optional. Filter expression for filtering listed resources.
262
263Returns:
264 An object of the form:
265
266 {
267 "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
268 "items": { # A map of scoped target pool lists.
269 "a_key": { # Name of the scope containing this set of target pools.
270 "warning": { # Informational warning which replaces the list of addresses when the list is empty.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000271 "message": "A String", # [Output Only] Optional human-readable details for this warning.
272 "code": "A String", # [Output Only] The warning type identifier for this warning.
273 "data": [ # [Output Only] Metadata for this warning in key: value format.
John Asmuth614db982014-04-24 15:46:26 -0400274 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000275 "value": "A String", # [Output Only] A warning data value corresponding to the key.
276 "key": "A String", # [Output Only] A key for the warning data.
John Asmuth614db982014-04-24 15:46:26 -0400277 },
278 ],
279 },
280 "targetPools": [ # List of target pools contained in this scope.
281 { # A TargetPool resource. This resource defines a pool of VMs, associated HttpHealthCheck resources, and the fallback TargetPool.
282 "failoverRatio": 3.14, # This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool (i.e., not as a backup pool to some other target pool). The value of the field must be in [0, 1].
283 #
284 # If set, 'backupPool' must also be set. They together define the fallback behavior of the primary target pool: if the ratio of the healthy VMs in the primary pool is at or below this number, traffic arriving at the load-balanced IP will be directed to the backup pool.
285 #
286 # In case where 'failoverRatio' is not set or all the VMs in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy.
287 "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
288 "region": "A String", # URL of the region where the target pool resides (output only).
289 "kind": "compute#targetPool", # Type of the resource.
290 "sessionAffinity": "A String", # Sesssion affinity option, must be one of the following values: 'NONE': Connections from the same client IP may go to any VM in the pool; 'CLIENT_IP': Connections from the same client IP will go to the same VM in the pool while that VM remains healthy. 'CLIENT_IP_PROTO': Connections from the same client IP with the same IP protocol will go to the same VM in the pool while that VM remains healthy.
291 "instances": [ # A list of resource URLs to the member VMs serving this pool. They must live in zones contained in the same region as this pool.
292 "A String",
293 ],
294 "backupPool": "A String", # This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool, and its 'failoverRatio' field is properly set to a value between [0, 1].
295 #
296 # 'backupPool' and 'failoverRatio' together define the fallback behavior of the primary target pool: if the ratio of the healthy VMs in the primary pool is at or below 'failoverRatio', traffic arriving at the load-balanced IP will be directed to the backup pool.
297 #
298 # In case where 'failoverRatio' and 'backupPool' are not set, or all the VMs in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy.
299 "healthChecks": [ # A list of URLs to the HttpHealthCheck resource. A member VM in this pool is considered healthy if and only if all specified health checks pass. An empty list means all member VMs will be considered healthy at all times.
300 "A String",
301 ],
302 "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
303 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
304 "selfLink": "A String", # Server defined URL for the resource (output only).
305 "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.
306 },
307 ],
308 },
309 },
310 "kind": "compute#targetPoolAggregatedList", # Type of resource.
311 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
312 "selfLink": "A String", # Server defined URL for this resource (output only).
313 }</pre>
314</div>
315
316<div class="method">
317 <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code>
318 <pre>Retrieves the next page of results.
319
320Args:
321 previous_request: The request for the previous page. (required)
322 previous_response: The response from the request for the previous page. (required)
323
324Returns:
325 A request object that you can call 'execute()' on to request the next
326 page. Returns None if there are no more items in the collection.
327 </pre>
328</div>
329
330<div class="method">
331 <code class="details" id="delete">delete(project, region, targetPool)</code>
332 <pre>Deletes the specified TargetPool resource.
333
334Args:
335 project: string, Name of the project scoping this request. (required)
336 region: string, Name of the region scoping this request. (required)
337 targetPool: string, Name of the TargetPool resource to delete. (required)
338
339Returns:
340 An object of the form:
341
342 { # An operation resource, used to manage asynchronous API requests.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000343 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
344 "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
345 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800346 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000347 "zone": "A String", # [Output Only] URL of the zone where the operation resides.
348 "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete.
349 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
350 "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.
351 "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 -0800352 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000353 "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE.
354 "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format.
355 "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 -0400356 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000357 "message": "A String", # [Output Only] Optional human-readable details for this warning.
358 "code": "A String", # [Output Only] The warning type identifier for this warning.
359 "data": [ # [Output Only] Metadata for this warning in key: value format.
John Asmuth614db982014-04-24 15:46:26 -0400360 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000361 "value": "A String", # [Output Only] A warning data value corresponding to the key.
362 "key": "A String", # [Output Only] A key for the warning data.
John Asmuth614db982014-04-24 15:46:26 -0400363 },
364 ],
365 },
366 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000367 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
368 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format.
369 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources.
370 "name": "A String", # [Output Only] Name of the resource.
371 "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources.
372 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800373 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400374 {
Craig Citroe633be12015-03-02 13:40:36 -0800375 "message": "A String", # [Output Only] An optional, human-readable error message.
376 "code": "A String", # [Output Only] The error type identifier for this error.
377 "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 -0400378 },
379 ],
380 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000381 "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 -0800382 "selfLink": "A String", # [Output Only] Server defined URL for the resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000383 "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating.
John Asmuth614db982014-04-24 15:46:26 -0400384 }</pre>
385</div>
386
387<div class="method">
388 <code class="details" id="get">get(project, region, targetPool)</code>
389 <pre>Returns the specified TargetPool resource.
390
391Args:
392 project: string, Name of the project scoping this request. (required)
393 region: string, Name of the region scoping this request. (required)
394 targetPool: string, Name of the TargetPool resource to return. (required)
395
396Returns:
397 An object of the form:
398
399 { # A TargetPool resource. This resource defines a pool of VMs, associated HttpHealthCheck resources, and the fallback TargetPool.
400 "failoverRatio": 3.14, # This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool (i.e., not as a backup pool to some other target pool). The value of the field must be in [0, 1].
401 #
402 # If set, 'backupPool' must also be set. They together define the fallback behavior of the primary target pool: if the ratio of the healthy VMs in the primary pool is at or below this number, traffic arriving at the load-balanced IP will be directed to the backup pool.
403 #
404 # In case where 'failoverRatio' is not set or all the VMs in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy.
405 "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
406 "region": "A String", # URL of the region where the target pool resides (output only).
407 "kind": "compute#targetPool", # Type of the resource.
408 "sessionAffinity": "A String", # Sesssion affinity option, must be one of the following values: 'NONE': Connections from the same client IP may go to any VM in the pool; 'CLIENT_IP': Connections from the same client IP will go to the same VM in the pool while that VM remains healthy. 'CLIENT_IP_PROTO': Connections from the same client IP with the same IP protocol will go to the same VM in the pool while that VM remains healthy.
409 "instances": [ # A list of resource URLs to the member VMs serving this pool. They must live in zones contained in the same region as this pool.
410 "A String",
411 ],
412 "backupPool": "A String", # This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool, and its 'failoverRatio' field is properly set to a value between [0, 1].
413 #
414 # 'backupPool' and 'failoverRatio' together define the fallback behavior of the primary target pool: if the ratio of the healthy VMs in the primary pool is at or below 'failoverRatio', traffic arriving at the load-balanced IP will be directed to the backup pool.
415 #
416 # In case where 'failoverRatio' and 'backupPool' are not set, or all the VMs in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy.
417 "healthChecks": [ # A list of URLs to the HttpHealthCheck resource. A member VM in this pool is considered healthy if and only if all specified health checks pass. An empty list means all member VMs will be considered healthy at all times.
418 "A String",
419 ],
420 "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
421 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
422 "selfLink": "A String", # Server defined URL for the resource (output only).
423 "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.
424 }</pre>
425</div>
426
427<div class="method">
428 <code class="details" id="getHealth">getHealth(project, region, targetPool, body)</code>
429 <pre>Gets the most recent health check results for each IP for the given instance that is referenced by given TargetPool.
430
431Args:
432 project: string, A parameter (required)
433 region: string, Name of the region scoping this request. (required)
434 targetPool: string, Name of the TargetPool resource to which the queried instance belongs. (required)
435 body: object, The request body. (required)
436 The object takes the form of:
437
438{
439 "instance": "A String",
440}
441
442
443Returns:
444 An object of the form:
445
446 {
447 "kind": "compute#targetPoolInstanceHealth", # Type of resource.
448 "healthStatus": [
449 {
450 "instance": "A String", # URL of the instance resource.
451 "healthState": "A String", # Health state of the instance.
452 "ipAddress": "A String", # The IP address represented by this resource.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700453 "port": 42, # The port on the instance.
John Asmuth614db982014-04-24 15:46:26 -0400454 },
455 ],
456 }</pre>
457</div>
458
459<div class="method">
460 <code class="details" id="insert">insert(project, region, body)</code>
461 <pre>Creates a TargetPool resource in the specified project and region using the data included in the request.
462
463Args:
464 project: string, Name of the project scoping this request. (required)
465 region: string, Name of the region scoping this request. (required)
466 body: object, The request body. (required)
467 The object takes the form of:
468
469{ # A TargetPool resource. This resource defines a pool of VMs, associated HttpHealthCheck resources, and the fallback TargetPool.
470 "failoverRatio": 3.14, # This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool (i.e., not as a backup pool to some other target pool). The value of the field must be in [0, 1].
471 #
472 # If set, 'backupPool' must also be set. They together define the fallback behavior of the primary target pool: if the ratio of the healthy VMs in the primary pool is at or below this number, traffic arriving at the load-balanced IP will be directed to the backup pool.
473 #
474 # In case where 'failoverRatio' is not set or all the VMs in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy.
475 "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
476 "region": "A String", # URL of the region where the target pool resides (output only).
477 "kind": "compute#targetPool", # Type of the resource.
478 "sessionAffinity": "A String", # Sesssion affinity option, must be one of the following values: 'NONE': Connections from the same client IP may go to any VM in the pool; 'CLIENT_IP': Connections from the same client IP will go to the same VM in the pool while that VM remains healthy. 'CLIENT_IP_PROTO': Connections from the same client IP with the same IP protocol will go to the same VM in the pool while that VM remains healthy.
479 "instances": [ # A list of resource URLs to the member VMs serving this pool. They must live in zones contained in the same region as this pool.
480 "A String",
481 ],
482 "backupPool": "A String", # This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool, and its 'failoverRatio' field is properly set to a value between [0, 1].
483 #
484 # 'backupPool' and 'failoverRatio' together define the fallback behavior of the primary target pool: if the ratio of the healthy VMs in the primary pool is at or below 'failoverRatio', traffic arriving at the load-balanced IP will be directed to the backup pool.
485 #
486 # In case where 'failoverRatio' and 'backupPool' are not set, or all the VMs in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy.
487 "healthChecks": [ # A list of URLs to the HttpHealthCheck resource. A member VM in this pool is considered healthy if and only if all specified health checks pass. An empty list means all member VMs will be considered healthy at all times.
488 "A String",
489 ],
490 "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
491 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
492 "selfLink": "A String", # Server defined URL for the resource (output only).
493 "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.
494 }
495
496
497Returns:
498 An object of the form:
499
500 { # An operation resource, used to manage asynchronous API requests.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000501 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
502 "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
503 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800504 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000505 "zone": "A String", # [Output Only] URL of the zone where the operation resides.
506 "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete.
507 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
508 "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.
509 "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 -0800510 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000511 "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE.
512 "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format.
513 "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 -0400514 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000515 "message": "A String", # [Output Only] Optional human-readable details for this warning.
516 "code": "A String", # [Output Only] The warning type identifier for this warning.
517 "data": [ # [Output Only] Metadata for this warning in key: value format.
John Asmuth614db982014-04-24 15:46:26 -0400518 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000519 "value": "A String", # [Output Only] A warning data value corresponding to the key.
520 "key": "A String", # [Output Only] A key for the warning data.
John Asmuth614db982014-04-24 15:46:26 -0400521 },
522 ],
523 },
524 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000525 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
526 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format.
527 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources.
528 "name": "A String", # [Output Only] Name of the resource.
529 "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources.
530 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800531 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400532 {
Craig Citroe633be12015-03-02 13:40:36 -0800533 "message": "A String", # [Output Only] An optional, human-readable error message.
534 "code": "A String", # [Output Only] The error type identifier for this error.
535 "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 -0400536 },
537 ],
538 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000539 "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 -0800540 "selfLink": "A String", # [Output Only] Server defined URL for the resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000541 "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating.
John Asmuth614db982014-04-24 15:46:26 -0400542 }</pre>
543</div>
544
545<div class="method">
546 <code class="details" id="list">list(project, region, maxResults=None, pageToken=None, filter=None)</code>
547 <pre>Retrieves the list of TargetPool resources available to the specified project and region.
548
549Args:
550 project: string, Name of the project scoping this request. (required)
551 region: string, Name of the region scoping this request. (required)
552 maxResults: integer, Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.
553 pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
554 filter: string, Optional. Filter expression for filtering listed resources.
555
556Returns:
557 An object of the form:
558
559 { # Contains a list of TargetPool resources.
560 "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
Craig Citroe633be12015-03-02 13:40:36 -0800561 "items": [ # A list of TargetPool resources.
John Asmuth614db982014-04-24 15:46:26 -0400562 { # A TargetPool resource. This resource defines a pool of VMs, associated HttpHealthCheck resources, and the fallback TargetPool.
563 "failoverRatio": 3.14, # This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool (i.e., not as a backup pool to some other target pool). The value of the field must be in [0, 1].
564 #
565 # If set, 'backupPool' must also be set. They together define the fallback behavior of the primary target pool: if the ratio of the healthy VMs in the primary pool is at or below this number, traffic arriving at the load-balanced IP will be directed to the backup pool.
566 #
567 # In case where 'failoverRatio' is not set or all the VMs in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy.
568 "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
569 "region": "A String", # URL of the region where the target pool resides (output only).
570 "kind": "compute#targetPool", # Type of the resource.
571 "sessionAffinity": "A String", # Sesssion affinity option, must be one of the following values: 'NONE': Connections from the same client IP may go to any VM in the pool; 'CLIENT_IP': Connections from the same client IP will go to the same VM in the pool while that VM remains healthy. 'CLIENT_IP_PROTO': Connections from the same client IP with the same IP protocol will go to the same VM in the pool while that VM remains healthy.
572 "instances": [ # A list of resource URLs to the member VMs serving this pool. They must live in zones contained in the same region as this pool.
573 "A String",
574 ],
575 "backupPool": "A String", # This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool, and its 'failoverRatio' field is properly set to a value between [0, 1].
576 #
577 # 'backupPool' and 'failoverRatio' together define the fallback behavior of the primary target pool: if the ratio of the healthy VMs in the primary pool is at or below 'failoverRatio', traffic arriving at the load-balanced IP will be directed to the backup pool.
578 #
579 # In case where 'failoverRatio' and 'backupPool' are not set, or all the VMs in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy.
580 "healthChecks": [ # A list of URLs to the HttpHealthCheck resource. A member VM in this pool is considered healthy if and only if all specified health checks pass. An empty list means all member VMs will be considered healthy at all times.
581 "A String",
582 ],
583 "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
584 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
585 "selfLink": "A String", # Server defined URL for the resource (output only).
586 "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.
587 },
588 ],
589 "kind": "compute#targetPoolList", # Type of resource.
590 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
591 "selfLink": "A String", # Server defined URL for this resource (output only).
592 }</pre>
593</div>
594
595<div class="method">
596 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
597 <pre>Retrieves the next page of results.
598
599Args:
600 previous_request: The request for the previous page. (required)
601 previous_response: The response from the request for the previous page. (required)
602
603Returns:
604 A request object that you can call 'execute()' on to request the next
605 page. Returns None if there are no more items in the collection.
606 </pre>
607</div>
608
609<div class="method">
610 <code class="details" id="removeHealthCheck">removeHealthCheck(project, region, targetPool, body)</code>
611 <pre>Removes health check URL from targetPool.
612
613Args:
614 project: string, A parameter (required)
615 region: string, Name of the region scoping this request. (required)
616 targetPool: string, Name of the TargetPool resource to which health_check_url is to be removed. (required)
617 body: object, The request body. (required)
618 The object takes the form of:
619
620{
621 "healthChecks": [ # Health check URLs to be removed from targetPool.
622 {
623 "healthCheck": "A String",
624 },
625 ],
626 }
627
628
629Returns:
630 An object of the form:
631
632 { # An operation resource, used to manage asynchronous API requests.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000633 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
634 "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
635 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800636 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000637 "zone": "A String", # [Output Only] URL of the zone where the operation resides.
638 "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete.
639 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
640 "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.
641 "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 -0800642 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000643 "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE.
644 "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format.
645 "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 -0400646 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000647 "message": "A String", # [Output Only] Optional human-readable details for this warning.
648 "code": "A String", # [Output Only] The warning type identifier for this warning.
649 "data": [ # [Output Only] Metadata for this warning in key: value format.
John Asmuth614db982014-04-24 15:46:26 -0400650 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000651 "value": "A String", # [Output Only] A warning data value corresponding to the key.
652 "key": "A String", # [Output Only] A key for the warning data.
John Asmuth614db982014-04-24 15:46:26 -0400653 },
654 ],
655 },
656 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000657 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
658 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format.
659 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources.
660 "name": "A String", # [Output Only] Name of the resource.
661 "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources.
662 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800663 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400664 {
Craig Citroe633be12015-03-02 13:40:36 -0800665 "message": "A String", # [Output Only] An optional, human-readable error message.
666 "code": "A String", # [Output Only] The error type identifier for this error.
667 "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 -0400668 },
669 ],
670 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000671 "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 -0800672 "selfLink": "A String", # [Output Only] Server defined URL for the resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000673 "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating.
John Asmuth614db982014-04-24 15:46:26 -0400674 }</pre>
675</div>
676
677<div class="method">
678 <code class="details" id="removeInstance">removeInstance(project, region, targetPool, body)</code>
679 <pre>Removes instance URL from targetPool.
680
681Args:
682 project: string, A parameter (required)
683 region: string, Name of the region scoping this request. (required)
684 targetPool: string, Name of the TargetPool resource to which instance_url is to be removed. (required)
685 body: object, The request body. (required)
686 The object takes the form of:
687
688{
689 "instances": [ # URLs of the instances to be removed from targetPool.
690 {
691 "instance": "A String",
692 },
693 ],
694 }
695
696
697Returns:
698 An object of the form:
699
700 { # An operation resource, used to manage asynchronous API requests.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000701 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
702 "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
703 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800704 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000705 "zone": "A String", # [Output Only] URL of the zone where the operation resides.
706 "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete.
707 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
708 "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.
709 "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 -0800710 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000711 "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE.
712 "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format.
713 "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 -0400714 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000715 "message": "A String", # [Output Only] Optional human-readable details for this warning.
716 "code": "A String", # [Output Only] The warning type identifier for this warning.
717 "data": [ # [Output Only] Metadata for this warning in key: value format.
John Asmuth614db982014-04-24 15:46:26 -0400718 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000719 "value": "A String", # [Output Only] A warning data value corresponding to the key.
720 "key": "A String", # [Output Only] A key for the warning data.
John Asmuth614db982014-04-24 15:46:26 -0400721 },
722 ],
723 },
724 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000725 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
726 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format.
727 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources.
728 "name": "A String", # [Output Only] Name of the resource.
729 "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources.
730 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800731 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400732 {
Craig Citroe633be12015-03-02 13:40:36 -0800733 "message": "A String", # [Output Only] An optional, human-readable error message.
734 "code": "A String", # [Output Only] The error type identifier for this error.
735 "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 -0400736 },
737 ],
738 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000739 "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 -0800740 "selfLink": "A String", # [Output Only] Server defined URL for the resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000741 "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating.
John Asmuth614db982014-04-24 15:46:26 -0400742 }</pre>
743</div>
744
745<div class="method">
746 <code class="details" id="setBackup">setBackup(project, region, targetPool, body, failoverRatio=None)</code>
747 <pre>Changes backup pool configurations.
748
749Args:
750 project: string, Name of the project scoping this request. (required)
751 region: string, Name of the region scoping this request. (required)
752 targetPool: string, Name of the TargetPool resource for which the backup is to be set. (required)
753 body: object, The request body. (required)
754 The object takes the form of:
755
756{
757 "target": "A String",
758 }
759
760 failoverRatio: number, New failoverRatio value for the containing target pool.
761
762Returns:
763 An object of the form:
764
765 { # An operation resource, used to manage asynchronous API requests.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000766 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
767 "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
768 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800769 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000770 "zone": "A String", # [Output Only] URL of the zone where the operation resides.
771 "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete.
772 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
773 "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.
774 "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 -0800775 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000776 "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE.
777 "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format.
778 "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 -0400779 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000780 "message": "A String", # [Output Only] Optional human-readable details for this warning.
781 "code": "A String", # [Output Only] The warning type identifier for this warning.
782 "data": [ # [Output Only] Metadata for this warning in key: value format.
John Asmuth614db982014-04-24 15:46:26 -0400783 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000784 "value": "A String", # [Output Only] A warning data value corresponding to the key.
785 "key": "A String", # [Output Only] A key for the warning data.
John Asmuth614db982014-04-24 15:46:26 -0400786 },
787 ],
788 },
789 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000790 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
791 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format.
792 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources.
793 "name": "A String", # [Output Only] Name of the resource.
794 "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources.
795 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800796 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400797 {
Craig Citroe633be12015-03-02 13:40:36 -0800798 "message": "A String", # [Output Only] An optional, human-readable error message.
799 "code": "A String", # [Output Only] The error type identifier for this error.
800 "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 -0400801 },
802 ],
803 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000804 "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 -0800805 "selfLink": "A String", # [Output Only] Server defined URL for the resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000806 "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating.
John Asmuth614db982014-04-24 15:46:26 -0400807 }</pre>
808</div>
809
810</body></html>