Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, 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 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, 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_beta.html">Compute Engine API</a> . <a href="compute_beta.targetPools.html">targetPools</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 78 | <code><a href="#addHealthCheck">addHealthCheck(project, region, targetPool, body=None, requestId=None)</a></code></p> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 79 | <p class="firstline">Adds health check URLs to a target pool.</p> |
| 80 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 81 | <code><a href="#addInstance">addInstance(project, region, targetPool, body=None, requestId=None)</a></code></p> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 82 | <p class="firstline">Adds an instance to a target pool.</p> |
| 83 | <p class="toc_element"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 84 | <code><a href="#aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None)</a></code></p> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 85 | <p class="firstline">Retrieves an aggregated list of target pools.</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"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 90 | <code><a href="#close">close()</a></code></p> |
| 91 | <p class="firstline">Close httplib2 connections.</p> |
| 92 | <p class="toc_element"> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 93 | <code><a href="#delete">delete(project, region, targetPool, requestId=None)</a></code></p> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 94 | <p class="firstline">Deletes the specified target pool.</p> |
| 95 | <p class="toc_element"> |
| 96 | <code><a href="#get">get(project, region, targetPool)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 97 | <p class="firstline">Returns the specified target pool. Gets a list of available target pools by making a list() request.</p> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 98 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 99 | <code><a href="#getHealth">getHealth(project, region, targetPool, body=None)</a></code></p> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 100 | <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> |
| 101 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 102 | <code><a href="#insert">insert(project, region, body=None, requestId=None)</a></code></p> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 103 | <p class="firstline">Creates a target pool in the specified project and region using the data included in the request.</p> |
| 104 | <p class="toc_element"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 105 | <code><a href="#list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None)</a></code></p> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 106 | <p class="firstline">Retrieves a list of target pools available to the specified project and region.</p> |
| 107 | <p class="toc_element"> |
| 108 | <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> |
| 109 | <p class="firstline">Retrieves the next page of results.</p> |
| 110 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 111 | <code><a href="#removeHealthCheck">removeHealthCheck(project, region, targetPool, body=None, requestId=None)</a></code></p> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 112 | <p class="firstline">Removes health check URL from a target pool.</p> |
| 113 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 114 | <code><a href="#removeInstance">removeInstance(project, region, targetPool, body=None, requestId=None)</a></code></p> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 115 | <p class="firstline">Removes instance URL from a target pool.</p> |
| 116 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 117 | <code><a href="#setBackup">setBackup(project, region, targetPool, body=None, failoverRatio=None, requestId=None)</a></code></p> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 118 | <p class="firstline">Changes a backup target pool's configurations.</p> |
| 119 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 120 | <code><a href="#testIamPermissions">testIamPermissions(project, region, resource, body=None)</a></code></p> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 121 | <p class="firstline">Returns permissions that a caller has on the specified resource.</p> |
| 122 | <h3>Method Details</h3> |
| 123 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 124 | <code class="details" id="addHealthCheck">addHealthCheck(project, region, targetPool, body=None, requestId=None)</code> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 125 | <pre>Adds health check URLs to a target pool. |
| 126 | |
| 127 | Args: |
| 128 | project: string, Project ID for this request. (required) |
| 129 | region: string, Name of the region scoping this request. (required) |
| 130 | targetPool: string, Name of the target pool to add a health check to. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 131 | body: object, The request body. |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 132 | The object takes the form of: |
| 133 | |
| 134 | { |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 135 | "healthChecks": [ # The HttpHealthCheck to add to the target pool. |
| 136 | { # A full or valid partial URL to a health check. For example, the following are valid URLs: |
| 137 | # - https://www.googleapis.com/compute/beta/projects/project-id/global/httpHealthChecks/health-check |
| 138 | # - projects/project-id/global/httpHealthChecks/health-check |
| 139 | # - global/httpHealthChecks/health-check |
| 140 | "healthCheck": "A String", |
| 141 | }, |
| 142 | ], |
| 143 | } |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 144 | |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 145 | requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. |
| 146 | |
| 147 | For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. |
| 148 | |
| 149 | The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 150 | |
| 151 | Returns: |
| 152 | An object of the form: |
| 153 | |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 154 | { # Represents an Operation resource. |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 155 | # |
| 156 | # Google Compute Engine has three Operation resources: |
| 157 | # |
| 158 | # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) |
| 159 | # |
| 160 | # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. |
| 161 | # |
| 162 | # Operations can be global, regional or zonal. |
| 163 | # - For global operations, use the `globalOperations` resource. |
| 164 | # - For regional operations, use the `regionOperations` resource. |
| 165 | # - For zonal operations, use the `zonalOperations` resource. |
| 166 | # |
| 167 | # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==) |
| 168 | "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. |
| 169 | "creationTimestamp": "A String", # [Deprecated] This field is deprecated. |
| 170 | "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. |
| 171 | "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. |
| 172 | "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. |
| 173 | "errors": [ # [Output Only] The array of errors encountered while processing this operation. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 174 | { |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 175 | "code": "A String", # [Output Only] The error type identifier for this error. |
| 176 | "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. |
| 177 | "message": "A String", # [Output Only] An optional, human-readable error message. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 178 | }, |
| 179 | ], |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 180 | }, |
| 181 | "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. |
| 182 | "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. |
| 183 | "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. |
| 184 | "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. |
| 185 | "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. |
| 186 | "name": "A String", # [Output Only] Name of the operation. |
| 187 | "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. |
| 188 | "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. |
| 189 | "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. |
| 190 | "selfLink": "A String", # [Output Only] Server-defined URL for the resource. |
| 191 | "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. |
| 192 | "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. |
| 193 | "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. |
| 194 | "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. |
| 195 | "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
| 196 | "user": "A String", # [Output Only] User who requested the operation, for example: `user@example.com`. |
| 197 | "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. |
| 198 | { |
| 199 | "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. |
| 200 | "data": [ # [Output Only] Metadata about this warning in key: value format. For example: |
| 201 | # "data": [ { "key": "scope", "value": "zones/us-east1-d" } |
| 202 | { |
| 203 | "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). |
| 204 | "value": "A String", # [Output Only] A warning data value corresponding to the key. |
| 205 | }, |
| 206 | ], |
| 207 | "message": "A String", # [Output Only] A human-readable description of the warning code. |
| 208 | }, |
| 209 | ], |
| 210 | "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. |
| 211 | }</pre> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 212 | </div> |
| 213 | |
| 214 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 215 | <code class="details" id="addInstance">addInstance(project, region, targetPool, body=None, requestId=None)</code> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 216 | <pre>Adds an instance to a target pool. |
| 217 | |
| 218 | Args: |
| 219 | project: string, Project ID for this request. (required) |
| 220 | region: string, Name of the region scoping this request. (required) |
| 221 | targetPool: string, Name of the TargetPool resource to add instances to. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 222 | body: object, The request body. |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 223 | The object takes the form of: |
| 224 | |
| 225 | { |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 226 | "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: |
| 227 | # - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/instances/instance-name |
| 228 | # - projects/project-id/zones/zone/instances/instance-name |
| 229 | # - zones/zone/instances/instance-name |
| 230 | { |
| 231 | "instance": "A String", # The URL for a specific instance. |
| 232 | }, |
| 233 | ], |
| 234 | } |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 235 | |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 236 | requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. |
| 237 | |
| 238 | For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. |
| 239 | |
| 240 | The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 241 | |
| 242 | Returns: |
| 243 | An object of the form: |
| 244 | |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 245 | { # Represents an Operation resource. |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 246 | # |
| 247 | # Google Compute Engine has three Operation resources: |
| 248 | # |
| 249 | # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) |
| 250 | # |
| 251 | # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. |
| 252 | # |
| 253 | # Operations can be global, regional or zonal. |
| 254 | # - For global operations, use the `globalOperations` resource. |
| 255 | # - For regional operations, use the `regionOperations` resource. |
| 256 | # - For zonal operations, use the `zonalOperations` resource. |
| 257 | # |
| 258 | # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==) |
| 259 | "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. |
| 260 | "creationTimestamp": "A String", # [Deprecated] This field is deprecated. |
| 261 | "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. |
| 262 | "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. |
| 263 | "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. |
| 264 | "errors": [ # [Output Only] The array of errors encountered while processing this operation. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 265 | { |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 266 | "code": "A String", # [Output Only] The error type identifier for this error. |
| 267 | "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. |
| 268 | "message": "A String", # [Output Only] An optional, human-readable error message. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 269 | }, |
| 270 | ], |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 271 | }, |
| 272 | "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. |
| 273 | "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. |
| 274 | "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. |
| 275 | "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. |
| 276 | "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. |
| 277 | "name": "A String", # [Output Only] Name of the operation. |
| 278 | "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. |
| 279 | "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. |
| 280 | "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. |
| 281 | "selfLink": "A String", # [Output Only] Server-defined URL for the resource. |
| 282 | "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. |
| 283 | "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. |
| 284 | "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. |
| 285 | "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. |
| 286 | "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
| 287 | "user": "A String", # [Output Only] User who requested the operation, for example: `user@example.com`. |
| 288 | "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. |
| 289 | { |
| 290 | "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. |
| 291 | "data": [ # [Output Only] Metadata about this warning in key: value format. For example: |
| 292 | # "data": [ { "key": "scope", "value": "zones/us-east1-d" } |
| 293 | { |
| 294 | "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). |
| 295 | "value": "A String", # [Output Only] A warning data value corresponding to the key. |
| 296 | }, |
| 297 | ], |
| 298 | "message": "A String", # [Output Only] A human-readable description of the warning code. |
| 299 | }, |
| 300 | ], |
| 301 | "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. |
| 302 | }</pre> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 303 | </div> |
| 304 | |
| 305 | <div class="method"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 306 | <code class="details" id="aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None)</code> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 307 | <pre>Retrieves an aggregated list of target pools. |
| 308 | |
| 309 | Args: |
| 310 | project: string, Project ID for this request. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 311 | filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 312 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 313 | For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 314 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 315 | You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 316 | |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 317 | To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 318 | includeAllScopes: boolean, Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 319 | maxResults: integer, The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) |
| 320 | orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. |
| 321 | |
| 322 | You 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. |
| 323 | |
| 324 | Currently, only sorting by `name` or `creationTimestamp desc` is supported. |
| 325 | pageToken: string, Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 326 | returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today. |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 327 | |
| 328 | Returns: |
| 329 | An object of the form: |
| 330 | |
| 331 | { |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 332 | "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. |
| 333 | "items": { # A list of TargetPool resources. |
| 334 | "a_key": { # Name of the scope containing this set of target pools. |
| 335 | "targetPools": [ # A list of target pools contained in this scope. |
| 336 | { # Represents a Target Pool resource. |
| 337 | # |
| 338 | # Target pools are used for network TCP/UDP load balancing. A target pool references member instances, an associated legacy HttpHealthCheck resource, and, optionally, a backup target pool. For more information, read Using target pools. (== resource_for {$api_version}.targetPools ==) |
| 339 | "backupPool": "A String", # The server-defined URL for the resource. 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]. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 340 | # |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 341 | # 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. |
| 342 | # |
| 343 | # 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. |
| 344 | "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. |
| 345 | "description": "A String", # An optional description of this resource. Provide this property when you create the resource. |
| 346 | "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]. |
| 347 | # |
| 348 | # 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. |
| 349 | # |
| 350 | # 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. |
| 351 | "healthChecks": [ # The URL of the HttpHealthCheck resource. A member instance in this pool is considered healthy if and only if the health checks pass. An empty list means all member instances will be considered healthy at all times. Only legacy HttpHealthChecks are supported. Only one health check may be specified. |
| 352 | "A String", |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 353 | ], |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 354 | "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. |
| 355 | "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. |
| 356 | "A String", |
| 357 | ], |
| 358 | "kind": "compute#targetPool", # [Output Only] Type of the resource. Always compute#targetPool for target pools. |
| 359 | "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. |
| 360 | "region": "A String", # [Output Only] URL of the region where the target pool resides. |
| 361 | "selfLink": "A String", # [Output Only] Server-defined URL for the resource. |
| 362 | "sessionAffinity": "A String", # Session affinity option, must be one of the following values: |
| 363 | # NONE: Connections from the same client IP may go to any instance in the pool. |
| 364 | # CLIENT_IP: Connections from the same client IP will go to the same instance in the pool while that instance remains healthy. |
| 365 | # 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. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 366 | }, |
| 367 | ], |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 368 | "warning": { # Informational warning which replaces the list of addresses when the list is empty. |
| 369 | "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. |
| 370 | "data": [ # [Output Only] Metadata about this warning in key: value format. For example: |
| 371 | # "data": [ { "key": "scope", "value": "zones/us-east1-d" } |
| 372 | { |
| 373 | "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). |
| 374 | "value": "A String", # [Output Only] A warning data value corresponding to the key. |
| 375 | }, |
| 376 | ], |
| 377 | "message": "A String", # [Output Only] A human-readable description of the warning code. |
| 378 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 379 | }, |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 380 | }, |
| 381 | "kind": "compute#targetPoolAggregatedList", # [Output Only] Type of resource. Always compute#targetPoolAggregatedList for aggregated lists of target pools. |
| 382 | "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. |
| 383 | "selfLink": "A String", # [Output Only] Server-defined URL for this resource. |
| 384 | "unreachables": [ # [Output Only] Unreachable resources. |
| 385 | "A String", |
| 386 | ], |
| 387 | "warning": { # [Output Only] Informational warning message. |
| 388 | "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. |
| 389 | "data": [ # [Output Only] Metadata about this warning in key: value format. For example: |
| 390 | # "data": [ { "key": "scope", "value": "zones/us-east1-d" } |
| 391 | { |
| 392 | "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). |
| 393 | "value": "A String", # [Output Only] A warning data value corresponding to the key. |
| 394 | }, |
| 395 | ], |
| 396 | "message": "A String", # [Output Only] A human-readable description of the warning code. |
| 397 | }, |
| 398 | }</pre> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 399 | </div> |
| 400 | |
| 401 | <div class="method"> |
| 402 | <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code> |
| 403 | <pre>Retrieves the next page of results. |
| 404 | |
| 405 | Args: |
| 406 | previous_request: The request for the previous page. (required) |
| 407 | previous_response: The response from the request for the previous page. (required) |
| 408 | |
| 409 | Returns: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 410 | A request object that you can call 'execute()' on to request the next |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 411 | page. Returns None if there are no more items in the collection. |
| 412 | </pre> |
| 413 | </div> |
| 414 | |
| 415 | <div class="method"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 416 | <code class="details" id="close">close()</code> |
| 417 | <pre>Close httplib2 connections.</pre> |
| 418 | </div> |
| 419 | |
| 420 | <div class="method"> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 421 | <code class="details" id="delete">delete(project, region, targetPool, requestId=None)</code> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 422 | <pre>Deletes the specified target pool. |
| 423 | |
| 424 | Args: |
| 425 | project: string, Project ID for this request. (required) |
| 426 | region: string, Name of the region scoping this request. (required) |
| 427 | targetPool: string, Name of the TargetPool resource to delete. (required) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 428 | requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. |
| 429 | |
| 430 | For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. |
| 431 | |
| 432 | The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 433 | |
| 434 | Returns: |
| 435 | An object of the form: |
| 436 | |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 437 | { # Represents an Operation resource. |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 438 | # |
| 439 | # Google Compute Engine has three Operation resources: |
| 440 | # |
| 441 | # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) |
| 442 | # |
| 443 | # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. |
| 444 | # |
| 445 | # Operations can be global, regional or zonal. |
| 446 | # - For global operations, use the `globalOperations` resource. |
| 447 | # - For regional operations, use the `regionOperations` resource. |
| 448 | # - For zonal operations, use the `zonalOperations` resource. |
| 449 | # |
| 450 | # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==) |
| 451 | "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. |
| 452 | "creationTimestamp": "A String", # [Deprecated] This field is deprecated. |
| 453 | "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. |
| 454 | "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. |
| 455 | "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. |
| 456 | "errors": [ # [Output Only] The array of errors encountered while processing this operation. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 457 | { |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 458 | "code": "A String", # [Output Only] The error type identifier for this error. |
| 459 | "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. |
| 460 | "message": "A String", # [Output Only] An optional, human-readable error message. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 461 | }, |
| 462 | ], |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 463 | }, |
| 464 | "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. |
| 465 | "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. |
| 466 | "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. |
| 467 | "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. |
| 468 | "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. |
| 469 | "name": "A String", # [Output Only] Name of the operation. |
| 470 | "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. |
| 471 | "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. |
| 472 | "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. |
| 473 | "selfLink": "A String", # [Output Only] Server-defined URL for the resource. |
| 474 | "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. |
| 475 | "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. |
| 476 | "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. |
| 477 | "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. |
| 478 | "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
| 479 | "user": "A String", # [Output Only] User who requested the operation, for example: `user@example.com`. |
| 480 | "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. |
| 481 | { |
| 482 | "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. |
| 483 | "data": [ # [Output Only] Metadata about this warning in key: value format. For example: |
| 484 | # "data": [ { "key": "scope", "value": "zones/us-east1-d" } |
| 485 | { |
| 486 | "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). |
| 487 | "value": "A String", # [Output Only] A warning data value corresponding to the key. |
| 488 | }, |
| 489 | ], |
| 490 | "message": "A String", # [Output Only] A human-readable description of the warning code. |
| 491 | }, |
| 492 | ], |
| 493 | "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. |
| 494 | }</pre> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 495 | </div> |
| 496 | |
| 497 | <div class="method"> |
| 498 | <code class="details" id="get">get(project, region, targetPool)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 499 | <pre>Returns the specified target pool. Gets a list of available target pools by making a list() request. |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 500 | |
| 501 | Args: |
| 502 | project: string, Project ID for this request. (required) |
| 503 | region: string, Name of the region scoping this request. (required) |
| 504 | targetPool: string, Name of the TargetPool resource to return. (required) |
| 505 | |
| 506 | Returns: |
| 507 | An object of the form: |
| 508 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 509 | { # Represents a Target Pool resource. |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 510 | # |
| 511 | # Target pools are used for network TCP/UDP load balancing. A target pool references member instances, an associated legacy HttpHealthCheck resource, and, optionally, a backup target pool. For more information, read Using target pools. (== resource_for {$api_version}.targetPools ==) |
| 512 | "backupPool": "A String", # The server-defined URL for the resource. 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]. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 513 | # |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 514 | # 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. |
| 515 | # |
| 516 | # 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. |
| 517 | "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. |
| 518 | "description": "A String", # An optional description of this resource. Provide this property when you create the resource. |
| 519 | "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]. |
| 520 | # |
| 521 | # 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. |
| 522 | # |
| 523 | # 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. |
| 524 | "healthChecks": [ # The URL of the HttpHealthCheck resource. A member instance in this pool is considered healthy if and only if the health checks pass. An empty list means all member instances will be considered healthy at all times. Only legacy HttpHealthChecks are supported. Only one health check may be specified. |
| 525 | "A String", |
| 526 | ], |
| 527 | "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. |
| 528 | "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. |
| 529 | "A String", |
| 530 | ], |
| 531 | "kind": "compute#targetPool", # [Output Only] Type of the resource. Always compute#targetPool for target pools. |
| 532 | "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. |
| 533 | "region": "A String", # [Output Only] URL of the region where the target pool resides. |
| 534 | "selfLink": "A String", # [Output Only] Server-defined URL for the resource. |
| 535 | "sessionAffinity": "A String", # Session affinity option, must be one of the following values: |
| 536 | # NONE: Connections from the same client IP may go to any instance in the pool. |
| 537 | # CLIENT_IP: Connections from the same client IP will go to the same instance in the pool while that instance remains healthy. |
| 538 | # 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. |
| 539 | }</pre> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 540 | </div> |
| 541 | |
| 542 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 543 | <code class="details" id="getHealth">getHealth(project, region, targetPool, body=None)</code> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 544 | <pre>Gets the most recent health check results for each IP for the instance that is referenced by the given target pool. |
| 545 | |
| 546 | Args: |
| 547 | project: string, Project ID for this request. (required) |
| 548 | region: string, Name of the region scoping this request. (required) |
| 549 | targetPool: string, Name of the TargetPool resource to which the queried instance belongs. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 550 | body: object, The request body. |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 551 | The object takes the form of: |
| 552 | |
| 553 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 554 | "instance": "A String", # The URL for a specific instance. |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 555 | } |
| 556 | |
| 557 | |
| 558 | Returns: |
| 559 | An object of the form: |
| 560 | |
| 561 | { |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 562 | "healthStatus": [ |
| 563 | { |
| 564 | "annotations": { # Metadata defined as annotations for network endpoint. |
| 565 | "a_key": "A String", |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 566 | }, |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 567 | "healthState": "A String", # Health state of the instance. |
| 568 | "instance": "A String", # URL of the instance resource. |
| 569 | "ipAddress": "A String", # A forwarding rule IP address assigned to this instance. |
| 570 | "port": 42, # The named port of the instance group, not necessarily the port that is health-checked. |
| 571 | }, |
| 572 | ], |
| 573 | "kind": "compute#targetPoolInstanceHealth", # [Output Only] Type of resource. Always compute#targetPoolInstanceHealth when checking the health of an instance. |
| 574 | }</pre> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 575 | </div> |
| 576 | |
| 577 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 578 | <code class="details" id="insert">insert(project, region, body=None, requestId=None)</code> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 579 | <pre>Creates a target pool in the specified project and region using the data included in the request. |
| 580 | |
| 581 | Args: |
| 582 | project: string, Project ID for this request. (required) |
| 583 | region: string, Name of the region scoping this request. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 584 | body: object, The request body. |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 585 | The object takes the form of: |
| 586 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 587 | { # Represents a Target Pool resource. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 588 | # |
| 589 | # Target pools are used for network TCP/UDP load balancing. A target pool references member instances, an associated legacy HttpHealthCheck resource, and, optionally, a backup target pool. For more information, read Using target pools. (== resource_for {$api_version}.targetPools ==) |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 590 | "backupPool": "A String", # The server-defined URL for the resource. 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]. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 591 | # |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 592 | # 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. |
| 593 | # |
| 594 | # 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. |
| 595 | "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. |
| 596 | "description": "A String", # An optional description of this resource. Provide this property when you create the resource. |
| 597 | "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]. |
| 598 | # |
| 599 | # 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. |
| 600 | # |
| 601 | # 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 602 | "healthChecks": [ # The URL of the HttpHealthCheck resource. A member instance in this pool is considered healthy if and only if the health checks pass. An empty list means all member instances will be considered healthy at all times. Only legacy HttpHealthChecks are supported. Only one health check may be specified. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 603 | "A String", |
| 604 | ], |
| 605 | "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. |
| 606 | "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. |
| 607 | "A String", |
| 608 | ], |
| 609 | "kind": "compute#targetPool", # [Output Only] Type of the resource. Always compute#targetPool for target pools. |
| 610 | "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. |
| 611 | "region": "A String", # [Output Only] URL of the region where the target pool resides. |
| 612 | "selfLink": "A String", # [Output Only] Server-defined URL for the resource. |
| 613 | "sessionAffinity": "A String", # Session affinity option, must be one of the following values: |
| 614 | # NONE: Connections from the same client IP may go to any instance in the pool. |
| 615 | # CLIENT_IP: Connections from the same client IP will go to the same instance in the pool while that instance remains healthy. |
| 616 | # 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. |
| 617 | } |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 618 | |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 619 | requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. |
| 620 | |
| 621 | For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. |
| 622 | |
| 623 | The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 624 | |
| 625 | Returns: |
| 626 | An object of the form: |
| 627 | |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 628 | { # Represents an Operation resource. |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 629 | # |
| 630 | # Google Compute Engine has three Operation resources: |
| 631 | # |
| 632 | # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) |
| 633 | # |
| 634 | # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. |
| 635 | # |
| 636 | # Operations can be global, regional or zonal. |
| 637 | # - For global operations, use the `globalOperations` resource. |
| 638 | # - For regional operations, use the `regionOperations` resource. |
| 639 | # - For zonal operations, use the `zonalOperations` resource. |
| 640 | # |
| 641 | # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==) |
| 642 | "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. |
| 643 | "creationTimestamp": "A String", # [Deprecated] This field is deprecated. |
| 644 | "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. |
| 645 | "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. |
| 646 | "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. |
| 647 | "errors": [ # [Output Only] The array of errors encountered while processing this operation. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 648 | { |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 649 | "code": "A String", # [Output Only] The error type identifier for this error. |
| 650 | "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. |
| 651 | "message": "A String", # [Output Only] An optional, human-readable error message. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 652 | }, |
| 653 | ], |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 654 | }, |
| 655 | "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. |
| 656 | "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. |
| 657 | "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. |
| 658 | "insertTime": "A String", # [Output Only] The time that this operation was requested. This value 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 operation. |
| 661 | "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. |
| 662 | "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. |
| 663 | "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. |
| 664 | "selfLink": "A String", # [Output Only] Server-defined URL for the resource. |
| 665 | "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. |
| 666 | "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. |
| 667 | "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. |
| 668 | "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. |
| 669 | "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
| 670 | "user": "A String", # [Output Only] User who requested the operation, for example: `user@example.com`. |
| 671 | "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. |
| 672 | { |
| 673 | "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. |
| 674 | "data": [ # [Output Only] Metadata about this warning in key: value format. For example: |
| 675 | # "data": [ { "key": "scope", "value": "zones/us-east1-d" } |
| 676 | { |
| 677 | "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). |
| 678 | "value": "A String", # [Output Only] A warning data value corresponding to the key. |
| 679 | }, |
| 680 | ], |
| 681 | "message": "A String", # [Output Only] A human-readable description of the warning code. |
| 682 | }, |
| 683 | ], |
| 684 | "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. |
| 685 | }</pre> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 686 | </div> |
| 687 | |
| 688 | <div class="method"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 689 | <code class="details" id="list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None)</code> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 690 | <pre>Retrieves a list of target pools available to the specified project and region. |
| 691 | |
| 692 | Args: |
| 693 | project: string, Project ID for this request. (required) |
| 694 | region: string, Name of the region scoping this request. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 695 | filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 696 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 697 | For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 698 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 699 | You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 700 | |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 701 | To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` |
| 702 | maxResults: integer, The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) |
| 703 | orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. |
| 704 | |
| 705 | You 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. |
| 706 | |
| 707 | Currently, only sorting by `name` or `creationTimestamp desc` is supported. |
| 708 | 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 709 | returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today. |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 710 | |
| 711 | Returns: |
| 712 | An object of the form: |
| 713 | |
| 714 | { # Contains a list of TargetPool resources. |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 715 | "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. |
| 716 | "items": [ # A list of TargetPool resources. |
| 717 | { # Represents a Target Pool resource. |
| 718 | # |
| 719 | # Target pools are used for network TCP/UDP load balancing. A target pool references member instances, an associated legacy HttpHealthCheck resource, and, optionally, a backup target pool. For more information, read Using target pools. (== resource_for {$api_version}.targetPools ==) |
| 720 | "backupPool": "A String", # The server-defined URL for the resource. 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]. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 721 | # |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 722 | # 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. |
| 723 | # |
| 724 | # 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. |
| 725 | "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. |
| 726 | "description": "A String", # An optional description of this resource. Provide this property when you create the resource. |
| 727 | "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]. |
| 728 | # |
| 729 | # 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. |
| 730 | # |
| 731 | # 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. |
| 732 | "healthChecks": [ # The URL of the HttpHealthCheck resource. A member instance in this pool is considered healthy if and only if the health checks pass. An empty list means all member instances will be considered healthy at all times. Only legacy HttpHealthChecks are supported. Only one health check may be specified. |
| 733 | "A String", |
| 734 | ], |
| 735 | "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. |
| 736 | "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. |
| 737 | "A String", |
| 738 | ], |
| 739 | "kind": "compute#targetPool", # [Output Only] Type of the resource. Always compute#targetPool for target pools. |
| 740 | "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. |
| 741 | "region": "A String", # [Output Only] URL of the region where the target pool resides. |
| 742 | "selfLink": "A String", # [Output Only] Server-defined URL for the resource. |
| 743 | "sessionAffinity": "A String", # Session affinity option, must be one of the following values: |
| 744 | # NONE: Connections from the same client IP may go to any instance in the pool. |
| 745 | # CLIENT_IP: Connections from the same client IP will go to the same instance in the pool while that instance remains healthy. |
| 746 | # 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. |
| 747 | }, |
| 748 | ], |
| 749 | "kind": "compute#targetPoolList", # [Output Only] Type of resource. Always compute#targetPoolList for lists of target pools. |
| 750 | "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. |
| 751 | "selfLink": "A String", # [Output Only] Server-defined URL for this resource. |
| 752 | "warning": { # [Output Only] Informational warning message. |
| 753 | "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. |
| 754 | "data": [ # [Output Only] Metadata about this warning in key: value format. For example: |
| 755 | # "data": [ { "key": "scope", "value": "zones/us-east1-d" } |
| 756 | { |
| 757 | "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). |
| 758 | "value": "A String", # [Output Only] A warning data value corresponding to the key. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 759 | }, |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 760 | ], |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 761 | "message": "A String", # [Output Only] A human-readable description of the warning code. |
| 762 | }, |
| 763 | }</pre> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 764 | </div> |
| 765 | |
| 766 | <div class="method"> |
| 767 | <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| 768 | <pre>Retrieves the next page of results. |
| 769 | |
| 770 | Args: |
| 771 | previous_request: The request for the previous page. (required) |
| 772 | previous_response: The response from the request for the previous page. (required) |
| 773 | |
| 774 | Returns: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 775 | A request object that you can call 'execute()' on to request the next |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 776 | page. Returns None if there are no more items in the collection. |
| 777 | </pre> |
| 778 | </div> |
| 779 | |
| 780 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 781 | <code class="details" id="removeHealthCheck">removeHealthCheck(project, region, targetPool, body=None, requestId=None)</code> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 782 | <pre>Removes health check URL from a target pool. |
| 783 | |
| 784 | Args: |
| 785 | project: string, Project ID for this request. (required) |
| 786 | region: string, Name of the region for this request. (required) |
| 787 | targetPool: string, Name of the target pool to remove health checks from. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 788 | body: object, The request body. |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 789 | The object takes the form of: |
| 790 | |
| 791 | { |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 792 | "healthChecks": [ # Health check URL to be removed. This can be a full or valid partial URL. For example, the following are valid URLs: |
| 793 | # - https://www.googleapis.com/compute/beta/projects/project/global/httpHealthChecks/health-check |
| 794 | # - projects/project/global/httpHealthChecks/health-check |
| 795 | # - global/httpHealthChecks/health-check |
| 796 | { # A full or valid partial URL to a health check. For example, the following are valid URLs: |
| 797 | # - https://www.googleapis.com/compute/beta/projects/project-id/global/httpHealthChecks/health-check |
| 798 | # - projects/project-id/global/httpHealthChecks/health-check |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 799 | # - global/httpHealthChecks/health-check |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 800 | "healthCheck": "A String", |
| 801 | }, |
| 802 | ], |
| 803 | } |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 804 | |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 805 | requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. |
| 806 | |
| 807 | For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. |
| 808 | |
| 809 | The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 810 | |
| 811 | Returns: |
| 812 | An object of the form: |
| 813 | |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 814 | { # Represents an Operation resource. |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 815 | # |
| 816 | # Google Compute Engine has three Operation resources: |
| 817 | # |
| 818 | # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) |
| 819 | # |
| 820 | # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. |
| 821 | # |
| 822 | # Operations can be global, regional or zonal. |
| 823 | # - For global operations, use the `globalOperations` resource. |
| 824 | # - For regional operations, use the `regionOperations` resource. |
| 825 | # - For zonal operations, use the `zonalOperations` resource. |
| 826 | # |
| 827 | # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==) |
| 828 | "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. |
| 829 | "creationTimestamp": "A String", # [Deprecated] This field is deprecated. |
| 830 | "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. |
| 831 | "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. |
| 832 | "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. |
| 833 | "errors": [ # [Output Only] The array of errors encountered while processing this operation. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 834 | { |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 835 | "code": "A String", # [Output Only] The error type identifier for this error. |
| 836 | "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. |
| 837 | "message": "A String", # [Output Only] An optional, human-readable error message. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 838 | }, |
| 839 | ], |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 840 | }, |
| 841 | "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. |
| 842 | "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. |
| 843 | "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. |
| 844 | "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. |
| 845 | "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. |
| 846 | "name": "A String", # [Output Only] Name of the operation. |
| 847 | "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. |
| 848 | "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. |
| 849 | "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. |
| 850 | "selfLink": "A String", # [Output Only] Server-defined URL for the resource. |
| 851 | "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. |
| 852 | "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. |
| 853 | "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. |
| 854 | "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. |
| 855 | "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
| 856 | "user": "A String", # [Output Only] User who requested the operation, for example: `user@example.com`. |
| 857 | "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. |
| 858 | { |
| 859 | "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. |
| 860 | "data": [ # [Output Only] Metadata about this warning in key: value format. For example: |
| 861 | # "data": [ { "key": "scope", "value": "zones/us-east1-d" } |
| 862 | { |
| 863 | "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). |
| 864 | "value": "A String", # [Output Only] A warning data value corresponding to the key. |
| 865 | }, |
| 866 | ], |
| 867 | "message": "A String", # [Output Only] A human-readable description of the warning code. |
| 868 | }, |
| 869 | ], |
| 870 | "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. |
| 871 | }</pre> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 872 | </div> |
| 873 | |
| 874 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 875 | <code class="details" id="removeInstance">removeInstance(project, region, targetPool, body=None, requestId=None)</code> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 876 | <pre>Removes instance URL from a target pool. |
| 877 | |
| 878 | Args: |
| 879 | project: string, Project ID for this request. (required) |
| 880 | region: string, Name of the region scoping this request. (required) |
| 881 | targetPool: string, Name of the TargetPool resource to remove instances from. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 882 | body: object, The request body. |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 883 | The object takes the form of: |
| 884 | |
| 885 | { |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 886 | "instances": [ # URLs of the instances to be removed from target pool. |
| 887 | { |
| 888 | "instance": "A String", # The URL for a specific instance. |
| 889 | }, |
| 890 | ], |
| 891 | } |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 892 | |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 893 | requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. |
| 894 | |
| 895 | For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. |
| 896 | |
| 897 | The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 898 | |
| 899 | Returns: |
| 900 | An object of the form: |
| 901 | |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 902 | { # Represents an Operation resource. |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 903 | # |
| 904 | # Google Compute Engine has three Operation resources: |
| 905 | # |
| 906 | # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) |
| 907 | # |
| 908 | # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. |
| 909 | # |
| 910 | # Operations can be global, regional or zonal. |
| 911 | # - For global operations, use the `globalOperations` resource. |
| 912 | # - For regional operations, use the `regionOperations` resource. |
| 913 | # - For zonal operations, use the `zonalOperations` resource. |
| 914 | # |
| 915 | # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==) |
| 916 | "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. |
| 917 | "creationTimestamp": "A String", # [Deprecated] This field is deprecated. |
| 918 | "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. |
| 919 | "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. |
| 920 | "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. |
| 921 | "errors": [ # [Output Only] The array of errors encountered while processing this operation. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 922 | { |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 923 | "code": "A String", # [Output Only] The error type identifier for this error. |
| 924 | "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. |
| 925 | "message": "A String", # [Output Only] An optional, human-readable error message. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 926 | }, |
| 927 | ], |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 928 | }, |
| 929 | "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. |
| 930 | "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. |
| 931 | "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. |
| 932 | "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. |
| 933 | "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. |
| 934 | "name": "A String", # [Output Only] Name of the operation. |
| 935 | "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. |
| 936 | "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. |
| 937 | "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. |
| 938 | "selfLink": "A String", # [Output Only] Server-defined URL for the resource. |
| 939 | "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. |
| 940 | "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. |
| 941 | "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. |
| 942 | "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. |
| 943 | "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
| 944 | "user": "A String", # [Output Only] User who requested the operation, for example: `user@example.com`. |
| 945 | "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. |
| 946 | { |
| 947 | "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. |
| 948 | "data": [ # [Output Only] Metadata about this warning in key: value format. For example: |
| 949 | # "data": [ { "key": "scope", "value": "zones/us-east1-d" } |
| 950 | { |
| 951 | "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). |
| 952 | "value": "A String", # [Output Only] A warning data value corresponding to the key. |
| 953 | }, |
| 954 | ], |
| 955 | "message": "A String", # [Output Only] A human-readable description of the warning code. |
| 956 | }, |
| 957 | ], |
| 958 | "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. |
| 959 | }</pre> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 960 | </div> |
| 961 | |
| 962 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 963 | <code class="details" id="setBackup">setBackup(project, region, targetPool, body=None, failoverRatio=None, requestId=None)</code> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 964 | <pre>Changes a backup target pool's configurations. |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 965 | |
| 966 | Args: |
| 967 | project: string, Project ID for this request. (required) |
| 968 | region: string, Name of the region scoping this request. (required) |
| 969 | targetPool: string, Name of the TargetPool resource to set a backup pool for. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 970 | body: object, The request body. |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 971 | The object takes the form of: |
| 972 | |
| 973 | { |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 974 | "target": "A String", |
| 975 | } |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 976 | |
| 977 | failoverRatio: number, New failoverRatio value for the target pool. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 978 | requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. |
| 979 | |
| 980 | For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. |
| 981 | |
| 982 | The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 983 | |
| 984 | Returns: |
| 985 | An object of the form: |
| 986 | |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 987 | { # Represents an Operation resource. |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 988 | # |
| 989 | # Google Compute Engine has three Operation resources: |
| 990 | # |
| 991 | # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) |
| 992 | # |
| 993 | # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. |
| 994 | # |
| 995 | # Operations can be global, regional or zonal. |
| 996 | # - For global operations, use the `globalOperations` resource. |
| 997 | # - For regional operations, use the `regionOperations` resource. |
| 998 | # - For zonal operations, use the `zonalOperations` resource. |
| 999 | # |
| 1000 | # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==) |
| 1001 | "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. |
| 1002 | "creationTimestamp": "A String", # [Deprecated] This field is deprecated. |
| 1003 | "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. |
| 1004 | "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. |
| 1005 | "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. |
| 1006 | "errors": [ # [Output Only] The array of errors encountered while processing this operation. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1007 | { |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 1008 | "code": "A String", # [Output Only] The error type identifier for this error. |
| 1009 | "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. |
| 1010 | "message": "A String", # [Output Only] An optional, human-readable error message. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1011 | }, |
| 1012 | ], |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 1013 | }, |
| 1014 | "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. |
| 1015 | "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. |
| 1016 | "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. |
| 1017 | "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. |
| 1018 | "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. |
| 1019 | "name": "A String", # [Output Only] Name of the operation. |
| 1020 | "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. |
| 1021 | "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. |
| 1022 | "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. |
| 1023 | "selfLink": "A String", # [Output Only] Server-defined URL for the resource. |
| 1024 | "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. |
| 1025 | "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. |
| 1026 | "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. |
| 1027 | "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. |
| 1028 | "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. |
| 1029 | "user": "A String", # [Output Only] User who requested the operation, for example: `user@example.com`. |
| 1030 | "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. |
| 1031 | { |
| 1032 | "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. |
| 1033 | "data": [ # [Output Only] Metadata about this warning in key: value format. For example: |
| 1034 | # "data": [ { "key": "scope", "value": "zones/us-east1-d" } |
| 1035 | { |
| 1036 | "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). |
| 1037 | "value": "A String", # [Output Only] A warning data value corresponding to the key. |
| 1038 | }, |
| 1039 | ], |
| 1040 | "message": "A String", # [Output Only] A human-readable description of the warning code. |
| 1041 | }, |
| 1042 | ], |
| 1043 | "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. |
| 1044 | }</pre> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 1045 | </div> |
| 1046 | |
| 1047 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1048 | <code class="details" id="testIamPermissions">testIamPermissions(project, region, resource, body=None)</code> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 1049 | <pre>Returns permissions that a caller has on the specified resource. |
| 1050 | |
| 1051 | Args: |
| 1052 | project: string, Project ID for this request. (required) |
| 1053 | region: string, The name of the region for this request. (required) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1054 | resource: string, Name or id of the resource for this request. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1055 | body: object, The request body. |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 1056 | The object takes the form of: |
| 1057 | |
| 1058 | { |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 1059 | "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. |
| 1060 | "A String", |
| 1061 | ], |
| 1062 | } |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 1063 | |
| 1064 | |
| 1065 | Returns: |
| 1066 | An object of the form: |
| 1067 | |
| 1068 | { |
Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame^] | 1069 | "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. |
| 1070 | "A String", |
| 1071 | ], |
| 1072 | }</pre> |
Sai Cheemalapati | df61397 | 2016-10-21 13:59:49 -0700 | [diff] [blame] | 1073 | </div> |
| 1074 | |
| 1075 | </body></html> |