1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="compute_alpha.html">Compute Engine API</a> . <a href="compute_alpha.targetInstances.html">targetInstances</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</a></code></p> 79<p class="firstline">Retrieves an aggregated list of target instances.</p> 80<p class="toc_element"> 81 <code><a href="#aggregatedList_next">aggregatedList_next(previous_request, previous_response)</a></code></p> 82<p class="firstline">Retrieves the next page of results.</p> 83<p class="toc_element"> 84 <code><a href="#close">close()</a></code></p> 85<p class="firstline">Close httplib2 connections.</p> 86<p class="toc_element"> 87 <code><a href="#delete">delete(project, zone, targetInstance, requestId=None, x__xgafv=None)</a></code></p> 88<p class="firstline">Deletes the specified TargetInstance resource.</p> 89<p class="toc_element"> 90 <code><a href="#get">get(project, zone, targetInstance, x__xgafv=None)</a></code></p> 91<p class="firstline">Returns the specified TargetInstance resource. Gets a list of available target instances by making a list() request.</p> 92<p class="toc_element"> 93 <code><a href="#insert">insert(project, zone, body=None, requestId=None, x__xgafv=None)</a></code></p> 94<p class="firstline">Creates a TargetInstance resource in the specified project and zone using the data included in the request.</p> 95<p class="toc_element"> 96 <code><a href="#list">list(project, zone, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</a></code></p> 97<p class="firstline">Retrieves a list of TargetInstance resources available to the specified project and zone.</p> 98<p class="toc_element"> 99 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 100<p class="firstline">Retrieves the next page of results.</p> 101<p class="toc_element"> 102 <code><a href="#testIamPermissions">testIamPermissions(project, zone, resource, body=None, x__xgafv=None)</a></code></p> 103<p class="firstline">Returns permissions that a caller has on the specified resource.</p> 104<h3>Method Details</h3> 105<div class="method"> 106 <code class="details" id="aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code> 107 <pre>Retrieves an aggregated list of target instances. 108 109Args: 110 project: string, Project ID for this request. (required) 111 filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` 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. 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) ``` 112 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. 113 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`) 114 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. 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. Currently, only sorting by `name` or `creationTimestamp desc` is supported. 115 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. 116 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. 117 x__xgafv: string, V1 error format. 118 Allowed values 119 1 - v1 error format 120 2 - v2 error format 121 122Returns: 123 An object of the form: 124 125 { 126 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 127 "items": { # A list of TargetInstance resources. 128 "a_key": { # Name of the scope containing this set of target instances. 129 "targetInstances": [ # A list of target instances contained in this scope. 130 { # Represents a Target Instance resource. You can use a target instance to handle traffic for one or more forwarding rules, which is ideal for forwarding protocol traffic that is managed by a single source. For example, ESP, AH, TCP, or UDP. For more information, read Target instances. 131 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 132 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 133 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 134 "instance": "A String", # A URL to the virtual machine instance that handles traffic for this target instance. When creating a target instance, you can provide the fully-qualified URL or a valid partial URL to the desired virtual machine. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance - zones/zone/instances/instance 135 "kind": "compute#targetInstance", # [Output Only] The type of the resource. Always compute#targetInstance for target instances. 136 "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. 137 "natPolicy": "A String", # NAT option controlling how IPs are NAT'ed to the instance. Currently only NO_NAT (default value) is supported. 138 "network": "A String", # The URL of the network this target instance uses to forward traffic. If not specified, the traffic will be forwarded to the network that the default network interface belongs to. 139 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 140 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 141 "zone": "A String", # [Output Only] URL of the zone where the target instance resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. 142 }, 143 ], 144 "warning": { # Informational warning which replaces the list of addresses when the list is empty. 145 "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. 146 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 147 { 148 "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). 149 "value": "A String", # [Output Only] A warning data value corresponding to the key. 150 }, 151 ], 152 "message": "A String", # [Output Only] A human-readable description of the warning code. 153 }, 154 }, 155 }, 156 "kind": "compute#targetInstanceAggregatedList", # Type of resource. 157 "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. 158 "selfLink": "A String", # [Output Only] Server-defined URL for this resource. 159 "unreachables": [ # [Output Only] Unreachable resources. 160 "A String", 161 ], 162 "warning": { # [Output Only] Informational warning message. 163 "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. 164 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 165 { 166 "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). 167 "value": "A String", # [Output Only] A warning data value corresponding to the key. 168 }, 169 ], 170 "message": "A String", # [Output Only] A human-readable description of the warning code. 171 }, 172}</pre> 173</div> 174 175<div class="method"> 176 <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code> 177 <pre>Retrieves the next page of results. 178 179Args: 180 previous_request: The request for the previous page. (required) 181 previous_response: The response from the request for the previous page. (required) 182 183Returns: 184 A request object that you can call 'execute()' on to request the next 185 page. Returns None if there are no more items in the collection. 186 </pre> 187</div> 188 189<div class="method"> 190 <code class="details" id="close">close()</code> 191 <pre>Close httplib2 connections.</pre> 192</div> 193 194<div class="method"> 195 <code class="details" id="delete">delete(project, zone, targetInstance, requestId=None, x__xgafv=None)</code> 196 <pre>Deletes the specified TargetInstance resource. 197 198Args: 199 project: string, Project ID for this request. (required) 200 zone: string, Name of the zone scoping this request. (required) 201 targetInstance: string, Name of the TargetInstance resource to delete. (required) 202 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. 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. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). 203 x__xgafv: string, V1 error format. 204 Allowed values 205 1 - v1 error format 206 2 - v2 error format 207 208Returns: 209 An object of the form: 210 211 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/alpha/globalOperations) * [Regional](/compute/docs/reference/rest/alpha/regionOperations) * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. 212 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 213 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 214 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 215 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 216 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 217 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 218 { 219 "code": "A String", # [Output Only] The error type identifier for this error. 220 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 221 "message": "A String", # [Output Only] An optional, human-readable error message. 222 }, 223 ], 224 }, 225 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 226 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a `404` means the resource was not found. 227 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 228 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 229 "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 230 "metadata": { # [Output Only] Service-specific metadata attached to this operation. 231 "a_key": "", # Properties of the object. Contains field @type with type URL. 232 }, 233 "name": "A String", # [Output Only] Name of the operation. 234 "operationGroupId": "A String", # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 235 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 236 "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. 237 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 238 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 239 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 240 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 241 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 242 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 243 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 244 "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. 245 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 246 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 247 { 248 "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. 249 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 250 { 251 "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). 252 "value": "A String", # [Output Only] A warning data value corresponding to the key. 253 }, 254 ], 255 "message": "A String", # [Output Only] A human-readable description of the warning code. 256 }, 257 ], 258 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 259}</pre> 260</div> 261 262<div class="method"> 263 <code class="details" id="get">get(project, zone, targetInstance, x__xgafv=None)</code> 264 <pre>Returns the specified TargetInstance resource. Gets a list of available target instances by making a list() request. 265 266Args: 267 project: string, Project ID for this request. (required) 268 zone: string, Name of the zone scoping this request. (required) 269 targetInstance: string, Name of the TargetInstance resource to return. (required) 270 x__xgafv: string, V1 error format. 271 Allowed values 272 1 - v1 error format 273 2 - v2 error format 274 275Returns: 276 An object of the form: 277 278 { # Represents a Target Instance resource. You can use a target instance to handle traffic for one or more forwarding rules, which is ideal for forwarding protocol traffic that is managed by a single source. For example, ESP, AH, TCP, or UDP. For more information, read Target instances. 279 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 280 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 281 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 282 "instance": "A String", # A URL to the virtual machine instance that handles traffic for this target instance. When creating a target instance, you can provide the fully-qualified URL or a valid partial URL to the desired virtual machine. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance - zones/zone/instances/instance 283 "kind": "compute#targetInstance", # [Output Only] The type of the resource. Always compute#targetInstance for target instances. 284 "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. 285 "natPolicy": "A String", # NAT option controlling how IPs are NAT'ed to the instance. Currently only NO_NAT (default value) is supported. 286 "network": "A String", # The URL of the network this target instance uses to forward traffic. If not specified, the traffic will be forwarded to the network that the default network interface belongs to. 287 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 288 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 289 "zone": "A String", # [Output Only] URL of the zone where the target instance resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. 290}</pre> 291</div> 292 293<div class="method"> 294 <code class="details" id="insert">insert(project, zone, body=None, requestId=None, x__xgafv=None)</code> 295 <pre>Creates a TargetInstance resource in the specified project and zone using the data included in the request. 296 297Args: 298 project: string, Project ID for this request. (required) 299 zone: string, Name of the zone scoping this request. (required) 300 body: object, The request body. 301 The object takes the form of: 302 303{ # Represents a Target Instance resource. You can use a target instance to handle traffic for one or more forwarding rules, which is ideal for forwarding protocol traffic that is managed by a single source. For example, ESP, AH, TCP, or UDP. For more information, read Target instances. 304 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 305 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 306 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 307 "instance": "A String", # A URL to the virtual machine instance that handles traffic for this target instance. When creating a target instance, you can provide the fully-qualified URL or a valid partial URL to the desired virtual machine. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance - zones/zone/instances/instance 308 "kind": "compute#targetInstance", # [Output Only] The type of the resource. Always compute#targetInstance for target instances. 309 "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. 310 "natPolicy": "A String", # NAT option controlling how IPs are NAT'ed to the instance. Currently only NO_NAT (default value) is supported. 311 "network": "A String", # The URL of the network this target instance uses to forward traffic. If not specified, the traffic will be forwarded to the network that the default network interface belongs to. 312 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 313 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 314 "zone": "A String", # [Output Only] URL of the zone where the target instance resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. 315} 316 317 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. 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. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). 318 x__xgafv: string, V1 error format. 319 Allowed values 320 1 - v1 error format 321 2 - v2 error format 322 323Returns: 324 An object of the form: 325 326 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/alpha/globalOperations) * [Regional](/compute/docs/reference/rest/alpha/regionOperations) * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. 327 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 328 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 329 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 330 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 331 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 332 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 333 { 334 "code": "A String", # [Output Only] The error type identifier for this error. 335 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 336 "message": "A String", # [Output Only] An optional, human-readable error message. 337 }, 338 ], 339 }, 340 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 341 "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. 342 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 343 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 344 "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 345 "metadata": { # [Output Only] Service-specific metadata attached to this operation. 346 "a_key": "", # Properties of the object. Contains field @type with type URL. 347 }, 348 "name": "A String", # [Output Only] Name of the operation. 349 "operationGroupId": "A String", # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 350 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 351 "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. 352 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 353 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 354 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 355 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 356 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 357 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 358 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 359 "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. 360 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 361 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 362 { 363 "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. 364 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 365 { 366 "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). 367 "value": "A String", # [Output Only] A warning data value corresponding to the key. 368 }, 369 ], 370 "message": "A String", # [Output Only] A human-readable description of the warning code. 371 }, 372 ], 373 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 374}</pre> 375</div> 376 377<div class="method"> 378 <code class="details" id="list">list(project, zone, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code> 379 <pre>Retrieves a list of TargetInstance resources available to the specified project and zone. 380 381Args: 382 project: string, Project ID for this request. (required) 383 zone: string, Name of the zone scoping this request. (required) 384 filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` 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. 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) ``` 385 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`) 386 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. 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. Currently, only sorting by `name` or `creationTimestamp desc` is supported. 387 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. 388 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. 389 x__xgafv: string, V1 error format. 390 Allowed values 391 1 - v1 error format 392 2 - v2 error format 393 394Returns: 395 An object of the form: 396 397 { # Contains a list of TargetInstance resources. 398 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 399 "items": [ # A list of TargetInstance resources. 400 { # Represents a Target Instance resource. You can use a target instance to handle traffic for one or more forwarding rules, which is ideal for forwarding protocol traffic that is managed by a single source. For example, ESP, AH, TCP, or UDP. For more information, read Target instances. 401 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 402 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 403 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 404 "instance": "A String", # A URL to the virtual machine instance that handles traffic for this target instance. When creating a target instance, you can provide the fully-qualified URL or a valid partial URL to the desired virtual machine. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance - zones/zone/instances/instance 405 "kind": "compute#targetInstance", # [Output Only] The type of the resource. Always compute#targetInstance for target instances. 406 "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. 407 "natPolicy": "A String", # NAT option controlling how IPs are NAT'ed to the instance. Currently only NO_NAT (default value) is supported. 408 "network": "A String", # The URL of the network this target instance uses to forward traffic. If not specified, the traffic will be forwarded to the network that the default network interface belongs to. 409 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 410 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 411 "zone": "A String", # [Output Only] URL of the zone where the target instance resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. 412 }, 413 ], 414 "kind": "compute#targetInstanceList", # Type of resource. 415 "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. 416 "selfLink": "A String", # [Output Only] Server-defined URL for this resource. 417 "warning": { # [Output Only] Informational warning message. 418 "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. 419 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 420 { 421 "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). 422 "value": "A String", # [Output Only] A warning data value corresponding to the key. 423 }, 424 ], 425 "message": "A String", # [Output Only] A human-readable description of the warning code. 426 }, 427}</pre> 428</div> 429 430<div class="method"> 431 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 432 <pre>Retrieves the next page of results. 433 434Args: 435 previous_request: The request for the previous page. (required) 436 previous_response: The response from the request for the previous page. (required) 437 438Returns: 439 A request object that you can call 'execute()' on to request the next 440 page. Returns None if there are no more items in the collection. 441 </pre> 442</div> 443 444<div class="method"> 445 <code class="details" id="testIamPermissions">testIamPermissions(project, zone, resource, body=None, x__xgafv=None)</code> 446 <pre>Returns permissions that a caller has on the specified resource. 447 448Args: 449 project: string, Project ID for this request. (required) 450 zone: string, The name of the zone for this request. (required) 451 resource: string, Name or id of the resource for this request. (required) 452 body: object, The request body. 453 The object takes the form of: 454 455{ 456 "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. 457 "A String", 458 ], 459} 460 461 x__xgafv: string, V1 error format. 462 Allowed values 463 1 - v1 error format 464 2 - v2 error format 465 466Returns: 467 An object of the form: 468 469 { 470 "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. 471 "A String", 472 ], 473}</pre> 474</div> 475 476</body></html>