Reference documentation and code samples for the Google Cloud Tpu V2 Client class NodeSpec.
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.
Generated from protobuf message google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec
Namespace
Google \ Cloud \ Tpu \ V2 \ QueuedResource \ TpuMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. The parent resource name. |
↳ node_id |
string
Optional. The unqualified resource name. Should follow the |
↳ multislice_params |
NodeSpec\MultisliceParams
Optional. Fields to specify in case of multislice request. |
↳ node |
Google\Cloud\Tpu\V2\Node
Required. The node. |
getParent
Required. The parent resource name.
| Returns | |
|---|---|
| Type | Description |
string |
|
setParent
Required. The parent resource name.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getNodeId
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.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasNodeId
setNodeId
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.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMultisliceParams
Optional. Fields to specify in case of multislice request.
| Returns | |
|---|---|
| Type | Description |
NodeSpec\MultisliceParams|null |
|
hasMultisliceParams
setMultisliceParams
Optional. Fields to specify in case of multislice request.
| Parameter | |
|---|---|
| Name | Description |
var |
NodeSpec\MultisliceParams
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getNode
Required. The node.
| Returns | |
|---|---|
| Type | Description |
Google\Cloud\Tpu\V2\Node|null |
|
hasNode
clearNode
setNode
Required. The node.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Cloud\Tpu\V2\Node
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getNameStrategy
| Returns | |
|---|---|
| Type | Description |
string |
|