# Class Node (1.27.0)

1.27.0 (latest) 1.26.0 1.25.0 1.24.0 1.23.2 1.22.0 1.21.0 1.20.0 1.19.1 1.18.5 1.17.0 1.16.0 1.15.0 1.14.0 1.13.0 1.12.0 1.11.2 1.10.1 1.9.0 1.8.0 1.7.2 1.6.0 1.5.2 1.4.1 1.3.4 1.2.1 1.1.0 1.0.2 0.2.2 0.1.0

    Node(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A TPU instance.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Output only. Immutable. The name of the TPU. |
| `description` | `str` The user-supplied description of the TPU. Maximum of 512 characters. |
| `accelerator_type` | `str` The type of hardware accelerators associated with this node. |
| `state` | `https://docs.cloud.google.com/python/docs/reference/tpu/latest/google.cloud.tpu_v2alpha1.types.Node.State` Output only. The current state for the TPU Node. |
| `health_description` | `str` Output only. If this field is populated, it contains a description of why the TPU Node is unhealthy. |
| `runtime_version` | `str` Required. The runtime version running in the Node. |
| `network_config` | `https://docs.cloud.google.com/python/docs/reference/tpu/latest/google.cloud.tpu_v2alpha1.types.NetworkConfig` Network configurations for the TPU node. network_config and network_configs are mutually exclusive, you can only specify one of them. If both are specified, an error will be returned. |
| `network_configs` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/tpu/latest/google.cloud.tpu_v2alpha1.types.NetworkConfig]` Optional. Repeated network configurations for the TPU node. This field is used to specify multiple networks configs for the TPU node. network_config and network_configs are mutually exclusive, you can only specify one of them. If both are specified, an error will be returned. |
| `cidr_block` | `str` 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. |
| `service_account` | `https://docs.cloud.google.com/python/docs/reference/tpu/latest/google.cloud.tpu_v2alpha1.types.ServiceAccount` 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. |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The time when the node was created. |
| `scheduling_config` | `https://docs.cloud.google.com/python/docs/reference/tpu/latest/google.cloud.tpu_v2alpha1.types.SchedulingConfig` The scheduling options for this node. |
| `network_endpoints` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/tpu/latest/google.cloud.tpu_v2alpha1.types.NetworkEndpoint]` 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. |
| `health` | `https://docs.cloud.google.com/python/docs/reference/tpu/latest/google.cloud.tpu_v2alpha1.types.Node.Health` The health status of the TPU node. |
| `labels` | `MutableMapping[str, str]` Resource labels to represent user-provided metadata. |
| `metadata` | `MutableMapping[str, str]` Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script |
| `tags` | `MutableSequence[str]` Tags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls. |
| `id` | `int` Output only. The unique identifier for the TPU Node. |
| `data_disks` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/tpu/latest/google.cloud.tpu_v2alpha1.types.AttachedDisk]` The additional data disks for the Node. |
| `api_version` | `https://docs.cloud.google.com/python/docs/reference/tpu/latest/google.cloud.tpu_v2alpha1.types.Node.ApiVersion` Output only. The API version that created this Node. |
| `symptoms` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/tpu/latest/google.cloud.tpu_v2alpha1.types.Symptom]` Output only. The Symptoms that have occurred to the TPU Node. |
| `queued_resource` | `str` Output only. The qualified name of the QueuedResource that requested this Node. |
| `accelerator_config` | `https://docs.cloud.google.com/python/docs/reference/tpu/latest/google.cloud.tpu_v2alpha1.types.AcceleratorConfig` The AccleratorConfig for the TPU Node. |
| `shielded_instance_config` | `https://docs.cloud.google.com/python/docs/reference/tpu/latest/google.cloud.tpu_v2alpha1.types.ShieldedInstanceConfig` Shielded Instance options. |
| `multislice_node` | `bool` Output only. Whether the Node belongs to a Multislice group. |
| `autocheckpoint_enabled` | `bool` Optional. Whether Autocheckpoint is enabled. |
| `boot_disk_config` | `https://docs.cloud.google.com/python/docs/reference/tpu/latest/google.cloud.tpu_v2alpha1.types.BootDiskConfig` Optional. Boot disk configuration. |
| `upcoming_maintenance` | `https://docs.cloud.google.com/python/docs/reference/tpu/latest/google.cloud.tpu_v2alpha1.types.UpcomingMaintenance` Output only. Upcoming maintenance on this TPU node. |

## Classes

### ApiVersion

    ApiVersion(value)

TPU API Version.

### Health

    Health(value)

Health defines the status of a TPU node as reported by
Health Monitor.

### LabelsEntry

    LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `kwargs` | `dict` Keys and values corresponding to the fields of the message. |
| `mapping` | ``Union[dict, `.Message`]`` A dictionary or message to be used to determine the values for this message. |
| `ignore_unknown_fields` | `Optional(bool)` If True, do not raise errors for unknown fields. Only applied if `mapping` is a mapping type or there are keyword parameters. |

### MetadataEntry

    MetadataEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `kwargs` | `dict` Keys and values corresponding to the fields of the message. |
| `mapping` | ``Union[dict, `.Message`]`` A dictionary or message to be used to determine the values for this message. |
| `ignore_unknown_fields` | `Optional(bool)` If True, do not raise errors for unknown fields. Only applied if `mapping` is a mapping type or there are keyword parameters. |

### State

    State(value)

Represents the different states of a TPU node during its
lifecycle.