# Class NodeSpec (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

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

Details of the TPU node(s) being requested. Users can request
either a single node or multiple nodes.
NodeSpec provides the specification for node(s) to be created.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `parent` | `str` Required. The parent resource name. |
| `node_id` | `str` Optional. The unqualified resource name. Should follow the `^[A-Za-z0-9_.`+%-\]+$\` regex format. This is only specified when requesting a single node. In case of multislice requests, multislice_params must be populated instead. This field is a member of `oneof`_ `name_strategy`. |
| `multislice_params` | `https://docs.cloud.google.com/python/docs/reference/tpu/latest/google.cloud.tpu_v2.types.QueuedResource.Tpu.NodeSpec.MultisliceParams` Optional. Fields to specify in case of multislice request. This field is a member of `oneof`_ `name_strategy`. |
| `node` | `https://docs.cloud.google.com/python/docs/reference/tpu/latest/google.cloud.tpu_v2.types.Node` Required. The node. |

## Classes

### MultisliceParams

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

Parameters to specify for multislice QueuedResource requests. This
message must be populated in case of multislice requests instead of
node_id.