blob: a2272ad9b66f4a1d94f6fc77f213eaac30fddf1c [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>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080079<p class="firstline">Adds health check URLs to a target pool.</p>
John Asmuth614db982014-04-24 15:46:26 -040080<p class="toc_element">
81 <code><a href="#addInstance">addInstance(project, region, targetPool, body)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080082<p class="firstline">Adds an instance to a target pool.</p>
John Asmuth614db982014-04-24 15:46:26 -040083<p class="toc_element">
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -070084 <code><a href="#aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080085<p class="firstline">Retrieves an aggregated list of target pools.</p>
John Asmuth614db982014-04-24 15:46:26 -040086<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>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080091<p class="firstline">Deletes the specified target pool.</p>
John Asmuth614db982014-04-24 15:46:26 -040092<p class="toc_element">
93 <code><a href="#get">get(project, region, targetPool)</a></code></p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070094<p class="firstline">Returns the specified target pool. Get a list of available target pools by making a list() request.</p>
John Asmuth614db982014-04-24 15:46:26 -040095<p class="toc_element">
96 <code><a href="#getHealth">getHealth(project, region, targetPool, body)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080097<p class="firstline">Gets the most recent health check results for each IP for the instance that is referenced by the given target pool.</p>
John Asmuth614db982014-04-24 15:46:26 -040098<p class="toc_element">
99 <code><a href="#insert">insert(project, region, body)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800100<p class="firstline">Creates a target pool in the specified project and region using the data included in the request.</p>
John Asmuth614db982014-04-24 15:46:26 -0400101<p class="toc_element">
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700102 <code><a href="#list">list(project, region, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800103<p class="firstline">Retrieves a list of target pools available to the specified project and region.</p>
John Asmuth614db982014-04-24 15:46:26 -0400104<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>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800109<p class="firstline">Removes health check URL from a target pool.</p>
John Asmuth614db982014-04-24 15:46:26 -0400110<p class="toc_element">
111 <code><a href="#removeInstance">removeInstance(project, region, targetPool, body)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800112<p class="firstline">Removes instance URL from a target pool.</p>
John Asmuth614db982014-04-24 15:46:26 -0400113<p class="toc_element">
114 <code><a href="#setBackup">setBackup(project, region, targetPool, body, failoverRatio=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800115<p class="firstline">Changes a backup target pool's configurations.</p>
John Asmuth614db982014-04-24 15:46:26 -0400116<h3>Method Details</h3>
117<div class="method">
118 <code class="details" id="addHealthCheck">addHealthCheck(project, region, targetPool, body)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800119 <pre>Adds health check URLs to a target pool.
John Asmuth614db982014-04-24 15:46:26 -0400120
121Args:
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800122 project: string, Project ID for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -0400123 region: string, Name of the region scoping this request. (required)
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800124 targetPool: string, Name of the target pool to add a health check to. (required)
John Asmuth614db982014-04-24 15:46:26 -0400125 body: object, The request body. (required)
126 The object takes the form of:
127
128{
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800129 "healthChecks": [ # A list of HttpHealthCheck resources to add to the target pool.
130 { # A full or valid partial URL to a health check. For example, the following are valid URLs:
131 # - https://www.googleapis.com/compute/beta/projects/project-id/global/httpHealthChecks/health-check
132 # - projects/project-id/global/httpHealthChecks/health-check
133 # - global/httpHealthChecks/health-check
John Asmuth614db982014-04-24 15:46:26 -0400134 "healthCheck": "A String",
135 },
136 ],
137 }
138
139
140Returns:
141 An object of the form:
142
Takashi Matsuo06694102015-09-11 13:55:40 -0700143 { # An Operation resource, used to manage asynchronous API requests.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800144 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
145 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000146 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800147 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
148 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
149 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
150 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000151 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800152 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses.
153 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
Craig Citroe633be12015-03-02 13:40:36 -0800154 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800155 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
156 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000157 "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 -0400158 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800159 "message": "A String", # [Output Only] A human-readable description of the warning code.
160 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
161 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
162 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
John Asmuth614db982014-04-24 15:46:26 -0400163 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000164 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700165 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
John Asmuth614db982014-04-24 15:46:26 -0400166 },
167 ],
168 },
169 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000170 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800171 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
172 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000173 "name": "A String", # [Output Only] Name of the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800174 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000175 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800176 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400177 {
Craig Citroe633be12015-03-02 13:40:36 -0800178 "message": "A String", # [Output Only] An optional, human-readable error message.
179 "code": "A String", # [Output Only] The error type identifier for this error.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700180 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
John Asmuth614db982014-04-24 15:46:26 -0400181 },
182 ],
183 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800184 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -0700185 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700186 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. If creating a persistent disk snapshot, this points to the persistent disk that the snapshot was created from.
John Asmuth614db982014-04-24 15:46:26 -0400187 }</pre>
188</div>
189
190<div class="method">
191 <code class="details" id="addInstance">addInstance(project, region, targetPool, body)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800192 <pre>Adds an instance to a target pool.
John Asmuth614db982014-04-24 15:46:26 -0400193
194Args:
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800195 project: string, Project ID for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -0400196 region: string, Name of the region scoping this request. (required)
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800197 targetPool: string, Name of the TargetPool resource to add instances to. (required)
John Asmuth614db982014-04-24 15:46:26 -0400198 body: object, The request body. (required)
199 The object takes the form of:
200
201{
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800202 "instances": [ # A full or partial URL to an instance to add to this target pool. This can be a full or partial URL. For example, the following are valid URLs:
203 # - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/instances/instance-name
204 # - projects/project-id/zones/zone/instances/instance-name
205 # - zones/zone/instances/instance-name
John Asmuth614db982014-04-24 15:46:26 -0400206 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800207 "instance": "A String", # The URL for a specific instance.
John Asmuth614db982014-04-24 15:46:26 -0400208 },
209 ],
210 }
211
212
213Returns:
214 An object of the form:
215
Takashi Matsuo06694102015-09-11 13:55:40 -0700216 { # An Operation resource, used to manage asynchronous API requests.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800217 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
218 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000219 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800220 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
221 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
222 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
223 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000224 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800225 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses.
226 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
Craig Citroe633be12015-03-02 13:40:36 -0800227 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800228 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
229 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000230 "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 -0400231 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800232 "message": "A String", # [Output Only] A human-readable description of the warning code.
233 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
234 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
235 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
John Asmuth614db982014-04-24 15:46:26 -0400236 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000237 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700238 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
John Asmuth614db982014-04-24 15:46:26 -0400239 },
240 ],
241 },
242 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000243 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800244 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
245 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000246 "name": "A String", # [Output Only] Name of the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800247 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000248 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800249 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400250 {
Craig Citroe633be12015-03-02 13:40:36 -0800251 "message": "A String", # [Output Only] An optional, human-readable error message.
252 "code": "A String", # [Output Only] The error type identifier for this error.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700253 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
John Asmuth614db982014-04-24 15:46:26 -0400254 },
255 ],
256 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800257 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -0700258 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700259 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. If creating a persistent disk snapshot, this points to the persistent disk that the snapshot was created from.
John Asmuth614db982014-04-24 15:46:26 -0400260 }</pre>
261</div>
262
263<div class="method">
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700264 <code class="details" id="aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800265 <pre>Retrieves an aggregated list of target pools.
John Asmuth614db982014-04-24 15:46:26 -0400266
267Args:
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800268 project: string, Project ID for this request. (required)
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700269 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
270
271You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.
272
273Currently, only sorting by name or creationTimestamp desc is supported.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800274 maxResults: integer, The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests.
275 pageToken: string, Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results.
276 filter: string, Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
Takashi Matsuo06694102015-09-11 13:55:40 -0700277
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800278The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
Takashi Matsuo06694102015-09-11 13:55:40 -0700279
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700280For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800281
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700282You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800283
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700284To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
John Asmuth614db982014-04-24 15:46:26 -0400285
286Returns:
287 An object of the form:
288
289 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800290 "nextPageToken": "A String", # [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
291 "items": { # [Output Only] A map of scoped target pool lists.
John Asmuth614db982014-04-24 15:46:26 -0400292 "a_key": { # Name of the scope containing this set of target pools.
293 "warning": { # Informational warning which replaces the list of addresses when the list is empty.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800294 "message": "A String", # [Output Only] A human-readable description of the warning code.
295 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
296 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
297 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
John Asmuth614db982014-04-24 15:46:26 -0400298 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000299 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700300 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
John Asmuth614db982014-04-24 15:46:26 -0400301 },
302 ],
303 },
304 "targetPools": [ # List of target pools contained in this scope.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800305 { # A TargetPool resource. This resource defines a pool of instances, associated HttpHealthCheck resources, and the fallback target pool.
John Asmuth614db982014-04-24 15:46:26 -0400306 "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].
307 #
Takashi Matsuo06694102015-09-11 13:55:40 -0700308 # If set, backupPool must also be set. They together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below this number, traffic arriving at the load-balanced IP will be directed to the backup pool.
John Asmuth614db982014-04-24 15:46:26 -0400309 #
Takashi Matsuo06694102015-09-11 13:55:40 -0700310 # In case where failoverRatio is not set or all the instances 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 instances with the best effort, or to all instances when no instance is healthy.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800311 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Takashi Matsuo06694102015-09-11 13:55:40 -0700312 "region": "A String", # [Output Only] URL of the region where the target pool resides.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800313 "kind": "compute#targetPool", # [Output Only] Type of the resource. Always compute#targetPool for target pools.
314 "sessionAffinity": "A String", # Sesssion affinity option, must be one of the following values:
315 # NONE: Connections from the same client IP may go to any instance in the pool.
316 # CLIENT_IP: Connections from the same client IP will go to the same instance in the pool while that instance remains healthy.
317 # CLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to the same instance in the pool while that instance remains healthy.
318 "instances": [ # A list of resource URLs to the virtual machine instances serving this pool. They must live in zones contained in the same region as this pool.
John Asmuth614db982014-04-24 15:46:26 -0400319 "A String",
320 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700321 "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].
John Asmuth614db982014-04-24 15:46:26 -0400322 #
Takashi Matsuo06694102015-09-11 13:55:40 -0700323 # backupPool and failoverRatio together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below failoverRatio, traffic arriving at the load-balanced IP will be directed to the backup pool.
John Asmuth614db982014-04-24 15:46:26 -0400324 #
Takashi Matsuo06694102015-09-11 13:55:40 -0700325 # In case where failoverRatio and backupPool are not set, or all the instances 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 instances with the best effort, or to all instances when no instance is healthy.
326 "healthChecks": [ # A list of URLs to the HttpHealthCheck resource. A member instance in this pool is considered healthy if and only if all specified health checks pass. An empty list means all member instances will be considered healthy at all times.
John Asmuth614db982014-04-24 15:46:26 -0400327 "A String",
328 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700329 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800330 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Takashi Matsuo06694102015-09-11 13:55:40 -0700331 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
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. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
John Asmuth614db982014-04-24 15:46:26 -0400333 },
334 ],
335 },
336 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800337 "kind": "compute#targetPoolAggregatedList", # [Output Only] Type of resource. Always compute#targetPoolAggregatedList for aggregated lists of target pools.
Takashi Matsuo06694102015-09-11 13:55:40 -0700338 "id": "A String", # [Output Only] Unique identifier for the resource. Defined by the server.
339 "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
John Asmuth614db982014-04-24 15:46:26 -0400340 }</pre>
341</div>
342
343<div class="method">
344 <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code>
345 <pre>Retrieves the next page of results.
346
347Args:
348 previous_request: The request for the previous page. (required)
349 previous_response: The response from the request for the previous page. (required)
350
351Returns:
352 A request object that you can call 'execute()' on to request the next
353 page. Returns None if there are no more items in the collection.
354 </pre>
355</div>
356
357<div class="method">
358 <code class="details" id="delete">delete(project, region, targetPool)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800359 <pre>Deletes the specified target pool.
John Asmuth614db982014-04-24 15:46:26 -0400360
361Args:
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800362 project: string, Project ID for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -0400363 region: string, Name of the region scoping this request. (required)
364 targetPool: string, Name of the TargetPool resource to delete. (required)
365
366Returns:
367 An object of the form:
368
Takashi Matsuo06694102015-09-11 13:55:40 -0700369 { # An Operation resource, used to manage asynchronous API requests.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800370 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
371 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000372 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800373 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
374 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
375 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
376 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000377 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800378 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses.
379 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
Craig Citroe633be12015-03-02 13:40:36 -0800380 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800381 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
382 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000383 "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 -0400384 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800385 "message": "A String", # [Output Only] A human-readable description of the warning code.
386 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
387 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
388 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
John Asmuth614db982014-04-24 15:46:26 -0400389 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000390 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700391 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
John Asmuth614db982014-04-24 15:46:26 -0400392 },
393 ],
394 },
395 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000396 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800397 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
398 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000399 "name": "A String", # [Output Only] Name of the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800400 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000401 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800402 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400403 {
Craig Citroe633be12015-03-02 13:40:36 -0800404 "message": "A String", # [Output Only] An optional, human-readable error message.
405 "code": "A String", # [Output Only] The error type identifier for this error.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700406 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
John Asmuth614db982014-04-24 15:46:26 -0400407 },
408 ],
409 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800410 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -0700411 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700412 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. If creating a persistent disk snapshot, this points to the persistent disk that the snapshot was created from.
John Asmuth614db982014-04-24 15:46:26 -0400413 }</pre>
414</div>
415
416<div class="method">
417 <code class="details" id="get">get(project, region, targetPool)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700418 <pre>Returns the specified target pool. Get a list of available target pools by making a list() request.
John Asmuth614db982014-04-24 15:46:26 -0400419
420Args:
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800421 project: string, Project ID for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -0400422 region: string, Name of the region scoping this request. (required)
423 targetPool: string, Name of the TargetPool resource to return. (required)
424
425Returns:
426 An object of the form:
427
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800428 { # A TargetPool resource. This resource defines a pool of instances, associated HttpHealthCheck resources, and the fallback target pool.
John Asmuth614db982014-04-24 15:46:26 -0400429 "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].
430 #
Takashi Matsuo06694102015-09-11 13:55:40 -0700431 # If set, backupPool must also be set. They together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below this number, traffic arriving at the load-balanced IP will be directed to the backup pool.
John Asmuth614db982014-04-24 15:46:26 -0400432 #
Takashi Matsuo06694102015-09-11 13:55:40 -0700433 # In case where failoverRatio is not set or all the instances 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 instances with the best effort, or to all instances when no instance is healthy.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800434 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Takashi Matsuo06694102015-09-11 13:55:40 -0700435 "region": "A String", # [Output Only] URL of the region where the target pool resides.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800436 "kind": "compute#targetPool", # [Output Only] Type of the resource. Always compute#targetPool for target pools.
437 "sessionAffinity": "A String", # Sesssion affinity option, must be one of the following values:
438 # NONE: Connections from the same client IP may go to any instance in the pool.
439 # CLIENT_IP: Connections from the same client IP will go to the same instance in the pool while that instance remains healthy.
440 # CLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to the same instance in the pool while that instance remains healthy.
441 "instances": [ # A list of resource URLs to the virtual machine instances serving this pool. They must live in zones contained in the same region as this pool.
John Asmuth614db982014-04-24 15:46:26 -0400442 "A String",
443 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700444 "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].
John Asmuth614db982014-04-24 15:46:26 -0400445 #
Takashi Matsuo06694102015-09-11 13:55:40 -0700446 # backupPool and failoverRatio together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below failoverRatio, traffic arriving at the load-balanced IP will be directed to the backup pool.
John Asmuth614db982014-04-24 15:46:26 -0400447 #
Takashi Matsuo06694102015-09-11 13:55:40 -0700448 # In case where failoverRatio and backupPool are not set, or all the instances 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 instances with the best effort, or to all instances when no instance is healthy.
449 "healthChecks": [ # A list of URLs to the HttpHealthCheck resource. A member instance in this pool is considered healthy if and only if all specified health checks pass. An empty list means all member instances will be considered healthy at all times.
John Asmuth614db982014-04-24 15:46:26 -0400450 "A String",
451 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700452 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800453 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Takashi Matsuo06694102015-09-11 13:55:40 -0700454 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
455 "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
John Asmuth614db982014-04-24 15:46:26 -0400456 }</pre>
457</div>
458
459<div class="method">
460 <code class="details" id="getHealth">getHealth(project, region, targetPool, body)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800461 <pre>Gets the most recent health check results for each IP for the instance that is referenced by the given target pool.
John Asmuth614db982014-04-24 15:46:26 -0400462
463Args:
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800464 project: string, Project ID for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -0400465 region: string, Name of the region scoping this request. (required)
466 targetPool: string, Name of the TargetPool resource to which the queried instance belongs. (required)
467 body: object, The request body. (required)
468 The object takes the form of:
469
470{
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800471 "instance": "A String", # The URL for a specific instance.
John Asmuth614db982014-04-24 15:46:26 -0400472}
473
474
475Returns:
476 An object of the form:
477
478 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800479 "kind": "compute#targetPoolInstanceHealth", # [Output Only] Type of resource. Always compute#targetPoolInstanceHealth when checking the health of an instance.
John Asmuth614db982014-04-24 15:46:26 -0400480 "healthStatus": [
481 {
482 "instance": "A String", # URL of the instance resource.
483 "healthState": "A String", # Health state of the instance.
484 "ipAddress": "A String", # The IP address represented by this resource.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700485 "port": 42, # The port on the instance.
John Asmuth614db982014-04-24 15:46:26 -0400486 },
487 ],
488 }</pre>
489</div>
490
491<div class="method">
492 <code class="details" id="insert">insert(project, region, body)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800493 <pre>Creates a target pool in the specified project and region using the data included in the request.
John Asmuth614db982014-04-24 15:46:26 -0400494
495Args:
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800496 project: string, Project ID for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -0400497 region: string, Name of the region scoping this request. (required)
498 body: object, The request body. (required)
499 The object takes the form of:
500
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800501{ # A TargetPool resource. This resource defines a pool of instances, associated HttpHealthCheck resources, and the fallback target pool.
John Asmuth614db982014-04-24 15:46:26 -0400502 "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].
503 #
Takashi Matsuo06694102015-09-11 13:55:40 -0700504 # If set, backupPool must also be set. They together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below this number, traffic arriving at the load-balanced IP will be directed to the backup pool.
John Asmuth614db982014-04-24 15:46:26 -0400505 #
Takashi Matsuo06694102015-09-11 13:55:40 -0700506 # In case where failoverRatio is not set or all the instances 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 instances with the best effort, or to all instances when no instance is healthy.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800507 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Takashi Matsuo06694102015-09-11 13:55:40 -0700508 "region": "A String", # [Output Only] URL of the region where the target pool resides.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800509 "kind": "compute#targetPool", # [Output Only] Type of the resource. Always compute#targetPool for target pools.
510 "sessionAffinity": "A String", # Sesssion affinity option, must be one of the following values:
511 # NONE: Connections from the same client IP may go to any instance in the pool.
512 # CLIENT_IP: Connections from the same client IP will go to the same instance in the pool while that instance remains healthy.
513 # CLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to the same instance in the pool while that instance remains healthy.
514 "instances": [ # A list of resource URLs to the virtual machine instances serving this pool. They must live in zones contained in the same region as this pool.
John Asmuth614db982014-04-24 15:46:26 -0400515 "A String",
516 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700517 "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].
John Asmuth614db982014-04-24 15:46:26 -0400518 #
Takashi Matsuo06694102015-09-11 13:55:40 -0700519 # backupPool and failoverRatio together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below failoverRatio, traffic arriving at the load-balanced IP will be directed to the backup pool.
John Asmuth614db982014-04-24 15:46:26 -0400520 #
Takashi Matsuo06694102015-09-11 13:55:40 -0700521 # In case where failoverRatio and backupPool are not set, or all the instances 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 instances with the best effort, or to all instances when no instance is healthy.
522 "healthChecks": [ # A list of URLs to the HttpHealthCheck resource. A member instance in this pool is considered healthy if and only if all specified health checks pass. An empty list means all member instances will be considered healthy at all times.
John Asmuth614db982014-04-24 15:46:26 -0400523 "A String",
524 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700525 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800526 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Takashi Matsuo06694102015-09-11 13:55:40 -0700527 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
528 "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
John Asmuth614db982014-04-24 15:46:26 -0400529 }
530
531
532Returns:
533 An object of the form:
534
Takashi Matsuo06694102015-09-11 13:55:40 -0700535 { # An Operation resource, used to manage asynchronous API requests.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800536 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
537 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000538 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800539 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
540 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
541 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
542 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000543 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800544 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses.
545 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
Craig Citroe633be12015-03-02 13:40:36 -0800546 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800547 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
548 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000549 "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 -0400550 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800551 "message": "A String", # [Output Only] A human-readable description of the warning code.
552 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
553 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
554 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
John Asmuth614db982014-04-24 15:46:26 -0400555 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000556 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700557 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
John Asmuth614db982014-04-24 15:46:26 -0400558 },
559 ],
560 },
561 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000562 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800563 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
564 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000565 "name": "A String", # [Output Only] Name of the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800566 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000567 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800568 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400569 {
Craig Citroe633be12015-03-02 13:40:36 -0800570 "message": "A String", # [Output Only] An optional, human-readable error message.
571 "code": "A String", # [Output Only] The error type identifier for this error.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700572 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
John Asmuth614db982014-04-24 15:46:26 -0400573 },
574 ],
575 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800576 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -0700577 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700578 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. If creating a persistent disk snapshot, this points to the persistent disk that the snapshot was created from.
John Asmuth614db982014-04-24 15:46:26 -0400579 }</pre>
580</div>
581
582<div class="method">
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700583 <code class="details" id="list">list(project, region, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800584 <pre>Retrieves a list of target pools available to the specified project and region.
John Asmuth614db982014-04-24 15:46:26 -0400585
586Args:
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800587 project: string, Project ID for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -0400588 region: string, Name of the region scoping this request. (required)
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700589 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
590
591You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.
592
593Currently, only sorting by name or creationTimestamp desc is supported.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800594 maxResults: integer, The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests.
595 pageToken: string, Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results.
596 filter: string, Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
Takashi Matsuo06694102015-09-11 13:55:40 -0700597
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800598The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
Takashi Matsuo06694102015-09-11 13:55:40 -0700599
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700600For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800601
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700602You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800603
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700604To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
John Asmuth614db982014-04-24 15:46:26 -0400605
606Returns:
607 An object of the form:
608
609 { # Contains a list of TargetPool resources.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800610 "nextPageToken": "A String", # [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
Craig Citroe633be12015-03-02 13:40:36 -0800611 "items": [ # A list of TargetPool resources.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800612 { # A TargetPool resource. This resource defines a pool of instances, associated HttpHealthCheck resources, and the fallback target pool.
John Asmuth614db982014-04-24 15:46:26 -0400613 "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].
614 #
Takashi Matsuo06694102015-09-11 13:55:40 -0700615 # If set, backupPool must also be set. They together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below this number, traffic arriving at the load-balanced IP will be directed to the backup pool.
John Asmuth614db982014-04-24 15:46:26 -0400616 #
Takashi Matsuo06694102015-09-11 13:55:40 -0700617 # In case where failoverRatio is not set or all the instances 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 instances with the best effort, or to all instances when no instance is healthy.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800618 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Takashi Matsuo06694102015-09-11 13:55:40 -0700619 "region": "A String", # [Output Only] URL of the region where the target pool resides.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800620 "kind": "compute#targetPool", # [Output Only] Type of the resource. Always compute#targetPool for target pools.
621 "sessionAffinity": "A String", # Sesssion affinity option, must be one of the following values:
622 # NONE: Connections from the same client IP may go to any instance in the pool.
623 # CLIENT_IP: Connections from the same client IP will go to the same instance in the pool while that instance remains healthy.
624 # CLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to the same instance in the pool while that instance remains healthy.
625 "instances": [ # A list of resource URLs to the virtual machine instances serving this pool. They must live in zones contained in the same region as this pool.
John Asmuth614db982014-04-24 15:46:26 -0400626 "A String",
627 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700628 "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].
John Asmuth614db982014-04-24 15:46:26 -0400629 #
Takashi Matsuo06694102015-09-11 13:55:40 -0700630 # backupPool and failoverRatio together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below failoverRatio, traffic arriving at the load-balanced IP will be directed to the backup pool.
John Asmuth614db982014-04-24 15:46:26 -0400631 #
Takashi Matsuo06694102015-09-11 13:55:40 -0700632 # In case where failoverRatio and backupPool are not set, or all the instances 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 instances with the best effort, or to all instances when no instance is healthy.
633 "healthChecks": [ # A list of URLs to the HttpHealthCheck resource. A member instance in this pool is considered healthy if and only if all specified health checks pass. An empty list means all member instances will be considered healthy at all times.
John Asmuth614db982014-04-24 15:46:26 -0400634 "A String",
635 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700636 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800637 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Takashi Matsuo06694102015-09-11 13:55:40 -0700638 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
639 "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
John Asmuth614db982014-04-24 15:46:26 -0400640 },
641 ],
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800642 "kind": "compute#targetPoolList", # [Output Only] Type of resource. Always compute#targetPoolList for lists of target pools.
Takashi Matsuo06694102015-09-11 13:55:40 -0700643 "id": "A String", # [Output Only] Unique identifier for the resource. Defined by the server.
644 "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
John Asmuth614db982014-04-24 15:46:26 -0400645 }</pre>
646</div>
647
648<div class="method">
649 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
650 <pre>Retrieves the next page of results.
651
652Args:
653 previous_request: The request for the previous page. (required)
654 previous_response: The response from the request for the previous page. (required)
655
656Returns:
657 A request object that you can call 'execute()' on to request the next
658 page. Returns None if there are no more items in the collection.
659 </pre>
660</div>
661
662<div class="method">
663 <code class="details" id="removeHealthCheck">removeHealthCheck(project, region, targetPool, body)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800664 <pre>Removes health check URL from a target pool.
John Asmuth614db982014-04-24 15:46:26 -0400665
666Args:
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800667 project: string, Project ID for this request. (required)
668 region: string, Name of the region for this request. (required)
669 targetPool: string, Name of the target pool to remove health checks from. (required)
John Asmuth614db982014-04-24 15:46:26 -0400670 body: object, The request body. (required)
671 The object takes the form of:
672
673{
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800674 "healthChecks": [ # Health check URL to be removed. This can be a full or valid partial URL. For example, the following are valid URLs:
675 # - https://www.googleapis.com/compute/beta/projects/project/global/httpHealthChecks/health-check
676 # - projects/project/global/httpHealthChecks/health-check
677 # - global/httpHealthChecks/health-check
678 { # A full or valid partial URL to a health check. For example, the following are valid URLs:
679 # - https://www.googleapis.com/compute/beta/projects/project-id/global/httpHealthChecks/health-check
680 # - projects/project-id/global/httpHealthChecks/health-check
681 # - global/httpHealthChecks/health-check
John Asmuth614db982014-04-24 15:46:26 -0400682 "healthCheck": "A String",
683 },
684 ],
685 }
686
687
688Returns:
689 An object of the form:
690
Takashi Matsuo06694102015-09-11 13:55:40 -0700691 { # An Operation resource, used to manage asynchronous API requests.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800692 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
693 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000694 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800695 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
696 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
697 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
698 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000699 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800700 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses.
701 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
Craig Citroe633be12015-03-02 13:40:36 -0800702 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800703 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
704 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000705 "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 -0400706 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800707 "message": "A String", # [Output Only] A human-readable description of the warning code.
708 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
709 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
710 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
John Asmuth614db982014-04-24 15:46:26 -0400711 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000712 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700713 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
John Asmuth614db982014-04-24 15:46:26 -0400714 },
715 ],
716 },
717 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000718 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800719 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
720 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000721 "name": "A String", # [Output Only] Name of the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800722 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000723 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800724 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400725 {
Craig Citroe633be12015-03-02 13:40:36 -0800726 "message": "A String", # [Output Only] An optional, human-readable error message.
727 "code": "A String", # [Output Only] The error type identifier for this error.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700728 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
John Asmuth614db982014-04-24 15:46:26 -0400729 },
730 ],
731 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800732 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -0700733 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700734 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. If creating a persistent disk snapshot, this points to the persistent disk that the snapshot was created from.
John Asmuth614db982014-04-24 15:46:26 -0400735 }</pre>
736</div>
737
738<div class="method">
739 <code class="details" id="removeInstance">removeInstance(project, region, targetPool, body)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800740 <pre>Removes instance URL from a target pool.
John Asmuth614db982014-04-24 15:46:26 -0400741
742Args:
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800743 project: string, Project ID for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -0400744 region: string, Name of the region scoping this request. (required)
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800745 targetPool: string, Name of the TargetPool resource to remove instances from. (required)
John Asmuth614db982014-04-24 15:46:26 -0400746 body: object, The request body. (required)
747 The object takes the form of:
748
749{
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800750 "instances": [ # URLs of the instances to be removed from target pool.
John Asmuth614db982014-04-24 15:46:26 -0400751 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800752 "instance": "A String", # The URL for a specific instance.
John Asmuth614db982014-04-24 15:46:26 -0400753 },
754 ],
755 }
756
757
758Returns:
759 An object of the form:
760
Takashi Matsuo06694102015-09-11 13:55:40 -0700761 { # An Operation resource, used to manage asynchronous API requests.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800762 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
763 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000764 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800765 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
766 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
767 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
768 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000769 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800770 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses.
771 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
Craig Citroe633be12015-03-02 13:40:36 -0800772 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800773 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
774 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000775 "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 -0400776 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800777 "message": "A String", # [Output Only] A human-readable description of the warning code.
778 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
779 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
780 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
John Asmuth614db982014-04-24 15:46:26 -0400781 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000782 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700783 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
John Asmuth614db982014-04-24 15:46:26 -0400784 },
785 ],
786 },
787 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000788 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800789 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
790 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000791 "name": "A String", # [Output Only] Name of the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800792 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000793 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800794 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400795 {
Craig Citroe633be12015-03-02 13:40:36 -0800796 "message": "A String", # [Output Only] An optional, human-readable error message.
797 "code": "A String", # [Output Only] The error type identifier for this error.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700798 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
John Asmuth614db982014-04-24 15:46:26 -0400799 },
800 ],
801 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800802 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -0700803 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700804 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. If creating a persistent disk snapshot, this points to the persistent disk that the snapshot was created from.
John Asmuth614db982014-04-24 15:46:26 -0400805 }</pre>
806</div>
807
808<div class="method">
809 <code class="details" id="setBackup">setBackup(project, region, targetPool, body, failoverRatio=None)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800810 <pre>Changes a backup target pool's configurations.
John Asmuth614db982014-04-24 15:46:26 -0400811
812Args:
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800813 project: string, Project ID for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -0400814 region: string, Name of the region scoping this request. (required)
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800815 targetPool: string, Name of the TargetPool resource to set a backup pool for. (required)
John Asmuth614db982014-04-24 15:46:26 -0400816 body: object, The request body. (required)
817 The object takes the form of:
818
819{
820 "target": "A String",
821 }
822
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800823 failoverRatio: number, New failoverRatio value for the target pool.
John Asmuth614db982014-04-24 15:46:26 -0400824
825Returns:
826 An object of the form:
827
Takashi Matsuo06694102015-09-11 13:55:40 -0700828 { # An Operation resource, used to manage asynchronous API requests.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800829 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
830 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000831 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800832 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
833 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
834 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
835 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000836 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800837 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses.
838 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
Craig Citroe633be12015-03-02 13:40:36 -0800839 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800840 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
841 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000842 "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 -0400843 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800844 "message": "A String", # [Output Only] A human-readable description of the warning code.
845 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
846 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
847 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
John Asmuth614db982014-04-24 15:46:26 -0400848 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000849 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700850 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
John Asmuth614db982014-04-24 15:46:26 -0400851 },
852 ],
853 },
854 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000855 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800856 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
857 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000858 "name": "A String", # [Output Only] Name of the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800859 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000860 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800861 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400862 {
Craig Citroe633be12015-03-02 13:40:36 -0800863 "message": "A String", # [Output Only] An optional, human-readable error message.
864 "code": "A String", # [Output Only] The error type identifier for this error.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700865 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
John Asmuth614db982014-04-24 15:46:26 -0400866 },
867 ],
868 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800869 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -0700870 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700871 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. If creating a persistent disk snapshot, this points to the persistent disk that the snapshot was created from.
John Asmuth614db982014-04-24 15:46:26 -0400872 }</pre>
873</div>
874
875</body></html>