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_v2alpha1.html">Cloud TPU API</a> . <a href="tpu_v2alpha1.projects.html">projects</a> . <a href="tpu_v2alpha1.projects.locations.html">locations</a> . <a href="tpu_v2alpha1.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, 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, 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="#getGuestAttributes">getGuestAttributes(name, body=None, x__xgafv=None)</a></code></p> 91<p class="firstline">Retrieves the guest attributes for the node.</p> 92<p class="toc_element"> 93 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> 94<p class="firstline">Lists nodes.</p> 95<p class="toc_element"> 96 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 97<p class="firstline">Retrieves the next page of results.</p> 98<p class="toc_element"> 99 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p> 100<p class="firstline">Updates the configurations of a node.</p> 101<p class="toc_element"> 102 <code><a href="#start">start(name, body=None, x__xgafv=None)</a></code></p> 103<p class="firstline">Starts a node.</p> 104<p class="toc_element"> 105 <code><a href="#stop">stop(name, body=None, x__xgafv=None)</a></code></p> 106<p class="firstline">Stops a node. This operation is only available with single TPU nodes.</p> 107<h3>Method Details</h3> 108<div class="method"> 109 <code class="details" id="close">close()</code> 110 <pre>Close httplib2 connections.</pre> 111</div> 112 113<div class="method"> 114 <code class="details" id="create">create(parent, body=None, nodeId=None, x__xgafv=None)</code> 115 <pre>Creates a node. 116 117Args: 118 parent: string, Required. The parent resource name. (required) 119 body: object, The request body. 120 The object takes the form of: 121 122{ # A TPU instance. 123 "acceleratorType": "A String", # Required. The type of hardware accelerators associated with this node. 124 "apiVersion": "A String", # Output only. The API version that created this Node. 125 "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. 126 "createTime": "A String", # Output only. The time when the node was created. 127 "dataDisks": [ # The additional data disks for the Node. 128 { # A node-attached disk resource. Next ID: 8; 129 "mode": "A String", # The mode in which to attach this disk. If not specified, the default is READ_WRITE mode. Only applicable to data_disks. 130 "sourceDisk": "A String", # Specifies the full path to an existing disk. For example: "projects/my-project/zones/us-central1-c/disks/my-disk". 131 }, 132 ], 133 "description": "A String", # The user-supplied description of the TPU. Maximum of 512 characters. 134 "health": "A String", # The health status of the TPU node. 135 "healthDescription": "A String", # Output only. If this field is populated, it contains a description of why the TPU Node is unhealthy. 136 "id": "A String", # Output only. The unique identifier for the TPU Node. 137 "labels": { # Resource labels to represent user-provided metadata. 138 "a_key": "A String", 139 }, 140 "metadata": { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script 141 "a_key": "A String", 142 }, 143 "name": "A String", # Output only. Immutable. The name of the TPU. 144 "networkConfig": { # Network related configurations. # Network configurations for the TPU node. 145 "canIpForward": True or False, # Allows the TPU node to send and receive packets with non-matching destination or source IPs. This is required if you plan to use the TPU workers to forward routes. 146 "enableExternalIps": True or False, # Indicates that external IP addresses would be associated with the TPU workers. If set to false, the specified subnetwork or network should have Private Google Access enabled. 147 "network": "A String", # The name of the network for the TPU node. It must be a preexisting Google Compute Engine network. If none is provided, "default" will be used. 148 "subnetwork": "A String", # The name of the subnetwork for the TPU node. It must be a preexisting Google Compute Engine subnetwork. If none is provided, "default" will be used. 149 }, 150 "networkEndpoints": [ # Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that runtime clients of the node reach out to the 0th entry in this map first. 151 { # A network endpoint over which a TPU worker can be reached. 152 "accessConfig": { # An access config attached to the TPU worker. # The access config for the TPU worker. 153 "externalIp": "A String", # Output only. An external IP address associated with the TPU worker. 154 }, 155 "ipAddress": "A String", # The internal IP address of this network endpoint. 156 "port": 42, # The port of this network endpoint. 157 }, 158 ], 159 "runtimeVersion": "A String", # Required. The runtime version running in the Node. 160 "schedulingConfig": { # Sets the scheduling options for this node. # The scheduling options for this node. 161 "preemptible": True or False, # Defines whether the node is preemptible. 162 "reserved": True or False, # Whether the node is created under a reservation. 163 }, 164 "serviceAccount": { # A service account. # The Google Cloud Platform Service Account to be used by the TPU node VMs. If None is specified, the default compute service account will be used. 165 "email": "A String", # Email address of the service account. If empty, default Compute service account will be used. 166 "scope": [ # The list of scopes to be made available for this service account. If empty, access to all Cloud APIs will be allowed. 167 "A String", 168 ], 169 }, 170 "state": "A String", # Output only. The current state for the TPU Node. 171 "symptoms": [ # Output only. The Symptoms that have occurred to the TPU Node. 172 { # A Symptom instance. 173 "createTime": "A String", # Timestamp when the Symptom is created. 174 "details": "A String", # Detailed information of the current Symptom. 175 "symptomType": "A String", # Type of the Symptom. 176 "workerId": "A String", # A string used to uniquely distinguish a worker within a TPU node. 177 }, 178 ], 179 "tags": [ # Tags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls. 180 "A String", 181 ], 182} 183 184 nodeId: string, The unqualified resource name. 185 x__xgafv: string, V1 error format. 186 Allowed values 187 1 - v1 error format 188 2 - v2 error format 189 190Returns: 191 An object of the form: 192 193 { # This resource represents a long-running operation that is the result of a network API call. 194 "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. 195 "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. 196 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 197 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 198 { 199 "a_key": "", # Properties of the object. Contains field @type with type URL. 200 }, 201 ], 202 "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. 203 }, 204 "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. 205 "a_key": "", # Properties of the object. Contains field @type with type URL. 206 }, 207 "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}`. 208 "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`. 209 "a_key": "", # Properties of the object. Contains field @type with type URL. 210 }, 211}</pre> 212</div> 213 214<div class="method"> 215 <code class="details" id="delete">delete(name, x__xgafv=None)</code> 216 <pre>Deletes a node. 217 218Args: 219 name: string, Required. The resource name. (required) 220 x__xgafv: string, V1 error format. 221 Allowed values 222 1 - v1 error format 223 2 - v2 error format 224 225Returns: 226 An object of the form: 227 228 { # This resource represents a long-running operation that is the result of a network API call. 229 "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. 230 "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. 231 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 232 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 233 { 234 "a_key": "", # Properties of the object. Contains field @type with type URL. 235 }, 236 ], 237 "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. 238 }, 239 "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. 240 "a_key": "", # Properties of the object. Contains field @type with type URL. 241 }, 242 "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}`. 243 "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`. 244 "a_key": "", # Properties of the object. Contains field @type with type URL. 245 }, 246}</pre> 247</div> 248 249<div class="method"> 250 <code class="details" id="get">get(name, x__xgafv=None)</code> 251 <pre>Gets the details of a node. 252 253Args: 254 name: string, Required. The resource name. (required) 255 x__xgafv: string, V1 error format. 256 Allowed values 257 1 - v1 error format 258 2 - v2 error format 259 260Returns: 261 An object of the form: 262 263 { # A TPU instance. 264 "acceleratorType": "A String", # Required. The type of hardware accelerators associated with this node. 265 "apiVersion": "A String", # Output only. The API version that created this Node. 266 "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. 267 "createTime": "A String", # Output only. The time when the node was created. 268 "dataDisks": [ # The additional data disks for the Node. 269 { # A node-attached disk resource. Next ID: 8; 270 "mode": "A String", # The mode in which to attach this disk. If not specified, the default is READ_WRITE mode. Only applicable to data_disks. 271 "sourceDisk": "A String", # Specifies the full path to an existing disk. For example: "projects/my-project/zones/us-central1-c/disks/my-disk". 272 }, 273 ], 274 "description": "A String", # The user-supplied description of the TPU. Maximum of 512 characters. 275 "health": "A String", # The health status of the TPU node. 276 "healthDescription": "A String", # Output only. If this field is populated, it contains a description of why the TPU Node is unhealthy. 277 "id": "A String", # Output only. The unique identifier for the TPU Node. 278 "labels": { # Resource labels to represent user-provided metadata. 279 "a_key": "A String", 280 }, 281 "metadata": { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script 282 "a_key": "A String", 283 }, 284 "name": "A String", # Output only. Immutable. The name of the TPU. 285 "networkConfig": { # Network related configurations. # Network configurations for the TPU node. 286 "canIpForward": True or False, # Allows the TPU node to send and receive packets with non-matching destination or source IPs. This is required if you plan to use the TPU workers to forward routes. 287 "enableExternalIps": True or False, # Indicates that external IP addresses would be associated with the TPU workers. If set to false, the specified subnetwork or network should have Private Google Access enabled. 288 "network": "A String", # The name of the network for the TPU node. It must be a preexisting Google Compute Engine network. If none is provided, "default" will be used. 289 "subnetwork": "A String", # The name of the subnetwork for the TPU node. It must be a preexisting Google Compute Engine subnetwork. If none is provided, "default" will be used. 290 }, 291 "networkEndpoints": [ # Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that runtime clients of the node reach out to the 0th entry in this map first. 292 { # A network endpoint over which a TPU worker can be reached. 293 "accessConfig": { # An access config attached to the TPU worker. # The access config for the TPU worker. 294 "externalIp": "A String", # Output only. An external IP address associated with the TPU worker. 295 }, 296 "ipAddress": "A String", # The internal IP address of this network endpoint. 297 "port": 42, # The port of this network endpoint. 298 }, 299 ], 300 "runtimeVersion": "A String", # Required. The runtime version running in the Node. 301 "schedulingConfig": { # Sets the scheduling options for this node. # The scheduling options for this node. 302 "preemptible": True or False, # Defines whether the node is preemptible. 303 "reserved": True or False, # Whether the node is created under a reservation. 304 }, 305 "serviceAccount": { # A service account. # The Google Cloud Platform Service Account to be used by the TPU node VMs. If None is specified, the default compute service account will be used. 306 "email": "A String", # Email address of the service account. If empty, default Compute service account will be used. 307 "scope": [ # The list of scopes to be made available for this service account. If empty, access to all Cloud APIs will be allowed. 308 "A String", 309 ], 310 }, 311 "state": "A String", # Output only. The current state for the TPU Node. 312 "symptoms": [ # Output only. The Symptoms that have occurred to the TPU Node. 313 { # A Symptom instance. 314 "createTime": "A String", # Timestamp when the Symptom is created. 315 "details": "A String", # Detailed information of the current Symptom. 316 "symptomType": "A String", # Type of the Symptom. 317 "workerId": "A String", # A string used to uniquely distinguish a worker within a TPU node. 318 }, 319 ], 320 "tags": [ # Tags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls. 321 "A String", 322 ], 323}</pre> 324</div> 325 326<div class="method"> 327 <code class="details" id="getGuestAttributes">getGuestAttributes(name, body=None, x__xgafv=None)</code> 328 <pre>Retrieves the guest attributes for the node. 329 330Args: 331 name: string, Required. The resource name. (required) 332 body: object, The request body. 333 The object takes the form of: 334 335{ # Request for GetGuestAttributes. 336 "queryPath": "A String", # The guest attributes path to be queried. 337 "workerIds": [ # The 0-based worker ID. If it is empty, all workers' GuestAttributes will be returned. 338 "A String", 339 ], 340} 341 342 x__xgafv: string, V1 error format. 343 Allowed values 344 1 - v1 error format 345 2 - v2 error format 346 347Returns: 348 An object of the form: 349 350 { # Response for GetGuestAttributes. 351 "guestAttributes": [ # The guest attributes for the TPU workers. 352 { # A guest attributes. 353 "queryPath": "A String", # The path to be queried. This can be the default namespace ('/') or a nested namespace ('/\/') or a specified key ('/\/\') 354 "queryValue": { # Array of guest attribute namespace/key/value tuples. # The value of the requested queried path. 355 "items": [ # The list of guest attributes entries. 356 { # A guest attributes namespace/key/value entry. 357 "key": "A String", # Key for the guest attribute entry. 358 "namespace": "A String", # Namespace for the guest attribute entry. 359 "value": "A String", # Value for the guest attribute entry. 360 }, 361 ], 362 }, 363 }, 364 ], 365}</pre> 366</div> 367 368<div class="method"> 369 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code> 370 <pre>Lists nodes. 371 372Args: 373 parent: string, Required. The parent resource name. (required) 374 pageSize: integer, The maximum number of items to return. 375 pageToken: string, The next_page_token value returned from a previous List request, if any. 376 x__xgafv: string, V1 error format. 377 Allowed values 378 1 - v1 error format 379 2 - v2 error format 380 381Returns: 382 An object of the form: 383 384 { # Response for ListNodes. 385 "nextPageToken": "A String", # The next page token or empty if none. 386 "nodes": [ # The listed nodes. 387 { # A TPU instance. 388 "acceleratorType": "A String", # Required. The type of hardware accelerators associated with this node. 389 "apiVersion": "A String", # Output only. The API version that created this Node. 390 "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. 391 "createTime": "A String", # Output only. The time when the node was created. 392 "dataDisks": [ # The additional data disks for the Node. 393 { # A node-attached disk resource. Next ID: 8; 394 "mode": "A String", # The mode in which to attach this disk. If not specified, the default is READ_WRITE mode. Only applicable to data_disks. 395 "sourceDisk": "A String", # Specifies the full path to an existing disk. For example: "projects/my-project/zones/us-central1-c/disks/my-disk". 396 }, 397 ], 398 "description": "A String", # The user-supplied description of the TPU. Maximum of 512 characters. 399 "health": "A String", # The health status of the TPU node. 400 "healthDescription": "A String", # Output only. If this field is populated, it contains a description of why the TPU Node is unhealthy. 401 "id": "A String", # Output only. The unique identifier for the TPU Node. 402 "labels": { # Resource labels to represent user-provided metadata. 403 "a_key": "A String", 404 }, 405 "metadata": { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script 406 "a_key": "A String", 407 }, 408 "name": "A String", # Output only. Immutable. The name of the TPU. 409 "networkConfig": { # Network related configurations. # Network configurations for the TPU node. 410 "canIpForward": True or False, # Allows the TPU node to send and receive packets with non-matching destination or source IPs. This is required if you plan to use the TPU workers to forward routes. 411 "enableExternalIps": True or False, # Indicates that external IP addresses would be associated with the TPU workers. If set to false, the specified subnetwork or network should have Private Google Access enabled. 412 "network": "A String", # The name of the network for the TPU node. It must be a preexisting Google Compute Engine network. If none is provided, "default" will be used. 413 "subnetwork": "A String", # The name of the subnetwork for the TPU node. It must be a preexisting Google Compute Engine subnetwork. If none is provided, "default" will be used. 414 }, 415 "networkEndpoints": [ # Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that runtime clients of the node reach out to the 0th entry in this map first. 416 { # A network endpoint over which a TPU worker can be reached. 417 "accessConfig": { # An access config attached to the TPU worker. # The access config for the TPU worker. 418 "externalIp": "A String", # Output only. An external IP address associated with the TPU worker. 419 }, 420 "ipAddress": "A String", # The internal IP address of this network endpoint. 421 "port": 42, # The port of this network endpoint. 422 }, 423 ], 424 "runtimeVersion": "A String", # Required. The runtime version running in the Node. 425 "schedulingConfig": { # Sets the scheduling options for this node. # The scheduling options for this node. 426 "preemptible": True or False, # Defines whether the node is preemptible. 427 "reserved": True or False, # Whether the node is created under a reservation. 428 }, 429 "serviceAccount": { # A service account. # The Google Cloud Platform Service Account to be used by the TPU node VMs. If None is specified, the default compute service account will be used. 430 "email": "A String", # Email address of the service account. If empty, default Compute service account will be used. 431 "scope": [ # The list of scopes to be made available for this service account. If empty, access to all Cloud APIs will be allowed. 432 "A String", 433 ], 434 }, 435 "state": "A String", # Output only. The current state for the TPU Node. 436 "symptoms": [ # Output only. The Symptoms that have occurred to the TPU Node. 437 { # A Symptom instance. 438 "createTime": "A String", # Timestamp when the Symptom is created. 439 "details": "A String", # Detailed information of the current Symptom. 440 "symptomType": "A String", # Type of the Symptom. 441 "workerId": "A String", # A string used to uniquely distinguish a worker within a TPU node. 442 }, 443 ], 444 "tags": [ # Tags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls. 445 "A String", 446 ], 447 }, 448 ], 449 "unreachable": [ # Locations that could not be reached. 450 "A String", 451 ], 452}</pre> 453</div> 454 455<div class="method"> 456 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 457 <pre>Retrieves the next page of results. 458 459Args: 460 previous_request: The request for the previous page. (required) 461 previous_response: The response from the request for the previous page. (required) 462 463Returns: 464 A request object that you can call 'execute()' on to request the next 465 page. Returns None if there are no more items in the collection. 466 </pre> 467</div> 468 469<div class="method"> 470 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code> 471 <pre>Updates the configurations of a node. 472 473Args: 474 name: string, Output only. Immutable. The name of the TPU. (required) 475 body: object, The request body. 476 The object takes the form of: 477 478{ # A TPU instance. 479 "acceleratorType": "A String", # Required. The type of hardware accelerators associated with this node. 480 "apiVersion": "A String", # Output only. The API version that created this Node. 481 "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. 482 "createTime": "A String", # Output only. The time when the node was created. 483 "dataDisks": [ # The additional data disks for the Node. 484 { # A node-attached disk resource. Next ID: 8; 485 "mode": "A String", # The mode in which to attach this disk. If not specified, the default is READ_WRITE mode. Only applicable to data_disks. 486 "sourceDisk": "A String", # Specifies the full path to an existing disk. For example: "projects/my-project/zones/us-central1-c/disks/my-disk". 487 }, 488 ], 489 "description": "A String", # The user-supplied description of the TPU. Maximum of 512 characters. 490 "health": "A String", # The health status of the TPU node. 491 "healthDescription": "A String", # Output only. If this field is populated, it contains a description of why the TPU Node is unhealthy. 492 "id": "A String", # Output only. The unique identifier for the TPU Node. 493 "labels": { # Resource labels to represent user-provided metadata. 494 "a_key": "A String", 495 }, 496 "metadata": { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script 497 "a_key": "A String", 498 }, 499 "name": "A String", # Output only. Immutable. The name of the TPU. 500 "networkConfig": { # Network related configurations. # Network configurations for the TPU node. 501 "canIpForward": True or False, # Allows the TPU node to send and receive packets with non-matching destination or source IPs. This is required if you plan to use the TPU workers to forward routes. 502 "enableExternalIps": True or False, # Indicates that external IP addresses would be associated with the TPU workers. If set to false, the specified subnetwork or network should have Private Google Access enabled. 503 "network": "A String", # The name of the network for the TPU node. It must be a preexisting Google Compute Engine network. If none is provided, "default" will be used. 504 "subnetwork": "A String", # The name of the subnetwork for the TPU node. It must be a preexisting Google Compute Engine subnetwork. If none is provided, "default" will be used. 505 }, 506 "networkEndpoints": [ # Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that runtime clients of the node reach out to the 0th entry in this map first. 507 { # A network endpoint over which a TPU worker can be reached. 508 "accessConfig": { # An access config attached to the TPU worker. # The access config for the TPU worker. 509 "externalIp": "A String", # Output only. An external IP address associated with the TPU worker. 510 }, 511 "ipAddress": "A String", # The internal IP address of this network endpoint. 512 "port": 42, # The port of this network endpoint. 513 }, 514 ], 515 "runtimeVersion": "A String", # Required. The runtime version running in the Node. 516 "schedulingConfig": { # Sets the scheduling options for this node. # The scheduling options for this node. 517 "preemptible": True or False, # Defines whether the node is preemptible. 518 "reserved": True or False, # Whether the node is created under a reservation. 519 }, 520 "serviceAccount": { # A service account. # The Google Cloud Platform Service Account to be used by the TPU node VMs. If None is specified, the default compute service account will be used. 521 "email": "A String", # Email address of the service account. If empty, default Compute service account will be used. 522 "scope": [ # The list of scopes to be made available for this service account. If empty, access to all Cloud APIs will be allowed. 523 "A String", 524 ], 525 }, 526 "state": "A String", # Output only. The current state for the TPU Node. 527 "symptoms": [ # Output only. The Symptoms that have occurred to the TPU Node. 528 { # A Symptom instance. 529 "createTime": "A String", # Timestamp when the Symptom is created. 530 "details": "A String", # Detailed information of the current Symptom. 531 "symptomType": "A String", # Type of the Symptom. 532 "workerId": "A String", # A string used to uniquely distinguish a worker within a TPU node. 533 }, 534 ], 535 "tags": [ # Tags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls. 536 "A String", 537 ], 538} 539 540 updateMask: string, Required. Mask of fields from Node to update. Supported fields: [description, tags, labels, metadata, network_config.enable_external_ips]. 541 x__xgafv: string, V1 error format. 542 Allowed values 543 1 - v1 error format 544 2 - v2 error format 545 546Returns: 547 An object of the form: 548 549 { # This resource represents a long-running operation that is the result of a network API call. 550 "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. 551 "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. 552 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 553 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 554 { 555 "a_key": "", # Properties of the object. Contains field @type with type URL. 556 }, 557 ], 558 "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. 559 }, 560 "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. 561 "a_key": "", # Properties of the object. Contains field @type with type URL. 562 }, 563 "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}`. 564 "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`. 565 "a_key": "", # Properties of the object. Contains field @type with type URL. 566 }, 567}</pre> 568</div> 569 570<div class="method"> 571 <code class="details" id="start">start(name, body=None, x__xgafv=None)</code> 572 <pre>Starts a node. 573 574Args: 575 name: string, The resource name. (required) 576 body: object, The request body. 577 The object takes the form of: 578 579{ # Request for StartNode. 580} 581 582 x__xgafv: string, V1 error format. 583 Allowed values 584 1 - v1 error format 585 2 - v2 error format 586 587Returns: 588 An object of the form: 589 590 { # This resource represents a long-running operation that is the result of a network API call. 591 "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. 592 "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. 593 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 594 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 595 { 596 "a_key": "", # Properties of the object. Contains field @type with type URL. 597 }, 598 ], 599 "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. 600 }, 601 "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. 602 "a_key": "", # Properties of the object. Contains field @type with type URL. 603 }, 604 "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}`. 605 "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`. 606 "a_key": "", # Properties of the object. Contains field @type with type URL. 607 }, 608}</pre> 609</div> 610 611<div class="method"> 612 <code class="details" id="stop">stop(name, body=None, x__xgafv=None)</code> 613 <pre>Stops a node. This operation is only available with single TPU nodes. 614 615Args: 616 name: string, The resource name. (required) 617 body: object, The request body. 618 The object takes the form of: 619 620{ # Request for StopNode. 621} 622 623 x__xgafv: string, V1 error format. 624 Allowed values 625 1 - v1 error format 626 2 - v2 error format 627 628Returns: 629 An object of the form: 630 631 { # This resource represents a long-running operation that is the result of a network API call. 632 "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. 633 "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. 634 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 635 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 636 { 637 "a_key": "", # Properties of the object. Contains field @type with type URL. 638 }, 639 ], 640 "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. 641 }, 642 "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. 643 "a_key": "", # Properties of the object. Contains field @type with type URL. 644 }, 645 "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}`. 646 "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`. 647 "a_key": "", # Properties of the object. Contains field @type with type URL. 648 }, 649}</pre> 650</div> 651 652</body></html>