Reference documentation and code samples for the Google Cloud Tpu V2 Client class MultisliceParams.
Parameters to specify for multislice QueuedResource requests. This message must be populated in case of multislice requests instead of node_id.
Generated from protobuf message google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams
Namespace
Google \ Cloud \ Tpu \ V2 \ QueuedResource \ Tpu \ NodeSpecMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ node_count |
int
Required. Number of nodes with this spec. The system will attempt to provision "node_count" nodes as part of the request. This needs to be > 1. |
↳ node_id_prefix |
string
Optional. Prefix of node_ids in case of multislice request. Should follow the |
getNodeCount
Required. Number of nodes with this spec. The system will attempt to provision "node_count" nodes as part of the request.
This needs to be > 1.
Returns | |
---|---|
Type | Description |
int |
setNodeCount
Required. Number of nodes with this spec. The system will attempt to provision "node_count" nodes as part of the request.
This needs to be > 1.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getNodeIdPrefix
Optional. Prefix of node_ids in case of multislice request.
Should follow the ^[A-Za-z0-9_.~+%-]+$
regex format.
If node_count = 3 and node_id_prefix = "np", node ids of nodes
created will be "np-0", "np-1", "np-2". If this field is not
provided we use queued_resource_id as the node_id_prefix.
Returns | |
---|---|
Type | Description |
string |
setNodeIdPrefix
Optional. Prefix of node_ids in case of multislice request.
Should follow the ^[A-Za-z0-9_.~+%-]+$
regex format.
If node_count = 3 and node_id_prefix = "np", node ids of nodes
created will be "np-0", "np-1", "np-2". If this field is not
provided we use queued_resource_id as the node_id_prefix.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |