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="tpu_v1alpha1.html">Cloud TPU API</a> . <a href="tpu_v1alpha1.projects.html">projects</a> . <a href="tpu_v1alpha1.projects.locations.html">locations</a> . <a href="tpu_v1alpha1.projects.locations.nodes.html">nodes</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#close">close()</a></code></p> 79<p class="firstline">Close httplib2 connections.</p> 80<p class="toc_element"> 81 <code><a href="#create">create(parent, body=None, nodeId=None, requestId=None, x__xgafv=None)</a></code></p> 82<p class="firstline">Creates a node.</p> 83<p class="toc_element"> 84 <code><a href="#delete">delete(name, requestId=None, x__xgafv=None)</a></code></p> 85<p class="firstline">Deletes a node.</p> 86<p class="toc_element"> 87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p> 88<p class="firstline">Gets the details of a node.</p> 89<p class="toc_element"> 90 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> 91<p class="firstline">Lists nodes.</p> 92<p class="toc_element"> 93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 94<p class="firstline">Retrieves the next page of results.</p> 95<p class="toc_element"> 96 <code><a href="#reimage">reimage(name, body=None, x__xgafv=None)</a></code></p> 97<p class="firstline">Reimages a node's OS.</p> 98<p class="toc_element"> 99 <code><a href="#start">start(name, body=None, x__xgafv=None)</a></code></p> 100<p class="firstline">Starts a node.</p> 101<p class="toc_element"> 102 <code><a href="#stop">stop(name, body=None, x__xgafv=None)</a></code></p> 103<p class="firstline">Stops a node. This operation is only available with single TPU nodes.</p> 104<h3>Method Details</h3> 105<div class="method"> 106 <code class="details" id="close">close()</code> 107 <pre>Close httplib2 connections.</pre> 108</div> 109 110<div class="method"> 111 <code class="details" id="create">create(parent, body=None, nodeId=None, requestId=None, x__xgafv=None)</code> 112 <pre>Creates a node. 113 114Args: 115 parent: string, Required. The parent resource name. (required) 116 body: object, The request body. 117 The object takes the form of: 118 119{ # A TPU instance. 120 "acceleratorType": "A String", # Required. The type of hardware accelerators associated with this node. 121 "apiVersion": "A String", # Output only. The API version that created this Node. 122 "cidrBlock": "A String", # The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user's provided network, or the provided network is peered with another network that is using that CIDR block. 123 "createTime": "A String", # Output only. The time when the node was created. 124 "description": "A String", # The user-supplied description of the TPU. Maximum of 512 characters. 125 "health": "A String", # The health status of the TPU node. 126 "healthDescription": "A String", # Output only. If this field is populated, it contains a description of why the TPU Node is unhealthy. 127 "ipAddress": "A String", # Output only. DEPRECATED! Use network_endpoints instead. The network address for the TPU Node as visible to Compute Engine instances. 128 "labels": { # Resource labels to represent user-provided metadata. 129 "a_key": "A String", 130 }, 131 "name": "A String", # Output only. Immutable. The name of the TPU 132 "network": "A String", # The name of a network they wish to peer the TPU node to. It must be a preexisting Compute Engine network inside of the project on which this API has been activated. If none is provided, "default" will be used. 133 "networkEndpoints": [ # Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that Tensorflow clients of the node reach out to the 0th entry in this map first. 134 { # A network endpoint over which a TPU worker can be reached. 135 "ipAddress": "A String", # The IP address of this network endpoint. 136 "port": 42, # The port of this network endpoint. 137 }, 138 ], 139 "port": "A String", # Output only. DEPRECATED! Use network_endpoints instead. The network port for the TPU Node as visible to Compute Engine instances. 140 "schedulingConfig": { # Sets the scheduling options for this node. # The scheduling options for this node. 141 "preemptible": True or False, # Defines whether the node is preemptible. 142 "reserved": True or False, # Whether the node is created under a reservation. 143 }, 144 "serviceAccount": "A String", # Output only. The service account used to run the tensor flow services within the node. To share resources, including Google Cloud Storage data, with the Tensorflow job running in the Node, this account must have permissions to that data. 145 "state": "A String", # Output only. The current state for the TPU Node. 146 "symptoms": [ # Output only. The Symptoms that have occurred to the TPU Node. 147 { # A Symptom instance. 148 "createTime": "A String", # Timestamp when the Symptom is created. 149 "details": "A String", # Detailed information of the current Symptom. 150 "symptomType": "A String", # Type of the Symptom. 151 "workerId": "A String", # A string used to uniquely distinguish a worker within a TPU node. 152 }, 153 ], 154 "tensorflowVersion": "A String", # Required. The version of Tensorflow running in the Node. 155 "useServiceNetworking": True or False, # Whether the VPC peering for the node is set up through Service Networking API. The VPC Peering should be set up before provisioning the node. If this field is set, cidr_block field should not be specified. If the network, that you want to peer the TPU Node to, is Shared VPC networks, the node must be created with this this field enabled. 156} 157 158 nodeId: string, The unqualified resource name. 159 requestId: string, Idempotent request UUID. 160 x__xgafv: string, V1 error format. 161 Allowed values 162 1 - v1 error format 163 2 - v2 error format 164 165Returns: 166 An object of the form: 167 168 { # This resource represents a long-running operation that is the result of a network API call. 169 "done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. 170 "error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. 171 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 172 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 173 { 174 "a_key": "", # Properties of the object. Contains field @type with type URL. 175 }, 176 ], 177 "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. 178 }, 179 "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. 180 "a_key": "", # Properties of the object. Contains field @type with type URL. 181 }, 182 "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. 183 "response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. 184 "a_key": "", # Properties of the object. Contains field @type with type URL. 185 }, 186}</pre> 187</div> 188 189<div class="method"> 190 <code class="details" id="delete">delete(name, requestId=None, x__xgafv=None)</code> 191 <pre>Deletes a node. 192 193Args: 194 name: string, Required. The resource name. (required) 195 requestId: string, Idempotent request UUID. 196 x__xgafv: string, V1 error format. 197 Allowed values 198 1 - v1 error format 199 2 - v2 error format 200 201Returns: 202 An object of the form: 203 204 { # This resource represents a long-running operation that is the result of a network API call. 205 "done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. 206 "error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. 207 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 208 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 209 { 210 "a_key": "", # Properties of the object. Contains field @type with type URL. 211 }, 212 ], 213 "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. 214 }, 215 "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. 216 "a_key": "", # Properties of the object. Contains field @type with type URL. 217 }, 218 "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. 219 "response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. 220 "a_key": "", # Properties of the object. Contains field @type with type URL. 221 }, 222}</pre> 223</div> 224 225<div class="method"> 226 <code class="details" id="get">get(name, x__xgafv=None)</code> 227 <pre>Gets the details of a node. 228 229Args: 230 name: string, Required. The resource name. (required) 231 x__xgafv: string, V1 error format. 232 Allowed values 233 1 - v1 error format 234 2 - v2 error format 235 236Returns: 237 An object of the form: 238 239 { # A TPU instance. 240 "acceleratorType": "A String", # Required. The type of hardware accelerators associated with this node. 241 "apiVersion": "A String", # Output only. The API version that created this Node. 242 "cidrBlock": "A String", # The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user's provided network, or the provided network is peered with another network that is using that CIDR block. 243 "createTime": "A String", # Output only. The time when the node was created. 244 "description": "A String", # The user-supplied description of the TPU. Maximum of 512 characters. 245 "health": "A String", # The health status of the TPU node. 246 "healthDescription": "A String", # Output only. If this field is populated, it contains a description of why the TPU Node is unhealthy. 247 "ipAddress": "A String", # Output only. DEPRECATED! Use network_endpoints instead. The network address for the TPU Node as visible to Compute Engine instances. 248 "labels": { # Resource labels to represent user-provided metadata. 249 "a_key": "A String", 250 }, 251 "name": "A String", # Output only. Immutable. The name of the TPU 252 "network": "A String", # The name of a network they wish to peer the TPU node to. It must be a preexisting Compute Engine network inside of the project on which this API has been activated. If none is provided, "default" will be used. 253 "networkEndpoints": [ # Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that Tensorflow clients of the node reach out to the 0th entry in this map first. 254 { # A network endpoint over which a TPU worker can be reached. 255 "ipAddress": "A String", # The IP address of this network endpoint. 256 "port": 42, # The port of this network endpoint. 257 }, 258 ], 259 "port": "A String", # Output only. DEPRECATED! Use network_endpoints instead. The network port for the TPU Node as visible to Compute Engine instances. 260 "schedulingConfig": { # Sets the scheduling options for this node. # The scheduling options for this node. 261 "preemptible": True or False, # Defines whether the node is preemptible. 262 "reserved": True or False, # Whether the node is created under a reservation. 263 }, 264 "serviceAccount": "A String", # Output only. The service account used to run the tensor flow services within the node. To share resources, including Google Cloud Storage data, with the Tensorflow job running in the Node, this account must have permissions to that data. 265 "state": "A String", # Output only. The current state for the TPU Node. 266 "symptoms": [ # Output only. The Symptoms that have occurred to the TPU Node. 267 { # A Symptom instance. 268 "createTime": "A String", # Timestamp when the Symptom is created. 269 "details": "A String", # Detailed information of the current Symptom. 270 "symptomType": "A String", # Type of the Symptom. 271 "workerId": "A String", # A string used to uniquely distinguish a worker within a TPU node. 272 }, 273 ], 274 "tensorflowVersion": "A String", # Required. The version of Tensorflow running in the Node. 275 "useServiceNetworking": True or False, # Whether the VPC peering for the node is set up through Service Networking API. The VPC Peering should be set up before provisioning the node. If this field is set, cidr_block field should not be specified. If the network, that you want to peer the TPU Node to, is Shared VPC networks, the node must be created with this this field enabled. 276}</pre> 277</div> 278 279<div class="method"> 280 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code> 281 <pre>Lists nodes. 282 283Args: 284 parent: string, Required. The parent resource name. (required) 285 pageSize: integer, The maximum number of items to return. 286 pageToken: string, The next_page_token value returned from a previous List request, if any. 287 x__xgafv: string, V1 error format. 288 Allowed values 289 1 - v1 error format 290 2 - v2 error format 291 292Returns: 293 An object of the form: 294 295 { # Response for ListNodes. 296 "nextPageToken": "A String", # The next page token or empty if none. 297 "nodes": [ # The listed nodes. 298 { # A TPU instance. 299 "acceleratorType": "A String", # Required. The type of hardware accelerators associated with this node. 300 "apiVersion": "A String", # Output only. The API version that created this Node. 301 "cidrBlock": "A String", # The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user's provided network, or the provided network is peered with another network that is using that CIDR block. 302 "createTime": "A String", # Output only. The time when the node was created. 303 "description": "A String", # The user-supplied description of the TPU. Maximum of 512 characters. 304 "health": "A String", # The health status of the TPU node. 305 "healthDescription": "A String", # Output only. If this field is populated, it contains a description of why the TPU Node is unhealthy. 306 "ipAddress": "A String", # Output only. DEPRECATED! Use network_endpoints instead. The network address for the TPU Node as visible to Compute Engine instances. 307 "labels": { # Resource labels to represent user-provided metadata. 308 "a_key": "A String", 309 }, 310 "name": "A String", # Output only. Immutable. The name of the TPU 311 "network": "A String", # The name of a network they wish to peer the TPU node to. It must be a preexisting Compute Engine network inside of the project on which this API has been activated. If none is provided, "default" will be used. 312 "networkEndpoints": [ # Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that Tensorflow clients of the node reach out to the 0th entry in this map first. 313 { # A network endpoint over which a TPU worker can be reached. 314 "ipAddress": "A String", # The IP address of this network endpoint. 315 "port": 42, # The port of this network endpoint. 316 }, 317 ], 318 "port": "A String", # Output only. DEPRECATED! Use network_endpoints instead. The network port for the TPU Node as visible to Compute Engine instances. 319 "schedulingConfig": { # Sets the scheduling options for this node. # The scheduling options for this node. 320 "preemptible": True or False, # Defines whether the node is preemptible. 321 "reserved": True or False, # Whether the node is created under a reservation. 322 }, 323 "serviceAccount": "A String", # Output only. The service account used to run the tensor flow services within the node. To share resources, including Google Cloud Storage data, with the Tensorflow job running in the Node, this account must have permissions to that data. 324 "state": "A String", # Output only. The current state for the TPU Node. 325 "symptoms": [ # Output only. The Symptoms that have occurred to the TPU Node. 326 { # A Symptom instance. 327 "createTime": "A String", # Timestamp when the Symptom is created. 328 "details": "A String", # Detailed information of the current Symptom. 329 "symptomType": "A String", # Type of the Symptom. 330 "workerId": "A String", # A string used to uniquely distinguish a worker within a TPU node. 331 }, 332 ], 333 "tensorflowVersion": "A String", # Required. The version of Tensorflow running in the Node. 334 "useServiceNetworking": True or False, # Whether the VPC peering for the node is set up through Service Networking API. The VPC Peering should be set up before provisioning the node. If this field is set, cidr_block field should not be specified. If the network, that you want to peer the TPU Node to, is Shared VPC networks, the node must be created with this this field enabled. 335 }, 336 ], 337 "unreachable": [ # Locations that could not be reached. 338 "A String", 339 ], 340}</pre> 341</div> 342 343<div class="method"> 344 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 345 <pre>Retrieves the next page of results. 346 347Args: 348 previous_request: The request for the previous page. (required) 349 previous_response: The response from the request for the previous page. (required) 350 351Returns: 352 A request object that you can call 'execute()' on to request the next 353 page. Returns None if there are no more items in the collection. 354 </pre> 355</div> 356 357<div class="method"> 358 <code class="details" id="reimage">reimage(name, body=None, x__xgafv=None)</code> 359 <pre>Reimages a node's OS. 360 361Args: 362 name: string, The resource name. (required) 363 body: object, The request body. 364 The object takes the form of: 365 366{ # Request for ReimageNode. 367 "tensorflowVersion": "A String", # The version for reimage to create. 368} 369 370 x__xgafv: string, V1 error format. 371 Allowed values 372 1 - v1 error format 373 2 - v2 error format 374 375Returns: 376 An object of the form: 377 378 { # This resource represents a long-running operation that is the result of a network API call. 379 "done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. 380 "error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. 381 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 382 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 383 { 384 "a_key": "", # Properties of the object. Contains field @type with type URL. 385 }, 386 ], 387 "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. 388 }, 389 "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. 390 "a_key": "", # Properties of the object. Contains field @type with type URL. 391 }, 392 "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. 393 "response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. 394 "a_key": "", # Properties of the object. Contains field @type with type URL. 395 }, 396}</pre> 397</div> 398 399<div class="method"> 400 <code class="details" id="start">start(name, body=None, x__xgafv=None)</code> 401 <pre>Starts a node. 402 403Args: 404 name: string, The resource name. (required) 405 body: object, The request body. 406 The object takes the form of: 407 408{ # Request for StartNode. 409} 410 411 x__xgafv: string, V1 error format. 412 Allowed values 413 1 - v1 error format 414 2 - v2 error format 415 416Returns: 417 An object of the form: 418 419 { # This resource represents a long-running operation that is the result of a network API call. 420 "done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. 421 "error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. 422 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 423 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 424 { 425 "a_key": "", # Properties of the object. Contains field @type with type URL. 426 }, 427 ], 428 "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. 429 }, 430 "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. 431 "a_key": "", # Properties of the object. Contains field @type with type URL. 432 }, 433 "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. 434 "response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. 435 "a_key": "", # Properties of the object. Contains field @type with type URL. 436 }, 437}</pre> 438</div> 439 440<div class="method"> 441 <code class="details" id="stop">stop(name, body=None, x__xgafv=None)</code> 442 <pre>Stops a node. This operation is only available with single TPU nodes. 443 444Args: 445 name: string, The resource name. (required) 446 body: object, The request body. 447 The object takes the form of: 448 449{ # Request for StopNode. 450} 451 452 x__xgafv: string, V1 error format. 453 Allowed values 454 1 - v1 error format 455 2 - v2 error format 456 457Returns: 458 An object of the form: 459 460 { # This resource represents a long-running operation that is the result of a network API call. 461 "done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. 462 "error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. 463 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 464 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 465 { 466 "a_key": "", # Properties of the object. Contains field @type with type URL. 467 }, 468 ], 469 "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. 470 }, 471 "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. 472 "a_key": "", # Properties of the object. Contains field @type with type URL. 473 }, 474 "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. 475 "response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. 476 "a_key": "", # Properties of the object. Contains field @type with type URL. 477 }, 478}</pre> 479</div> 480 481</body></html>