Google Cloud Hypercompute Cluster V1beta Client - Class Node (0.6.0)

Reference documentation and code samples for the Google Cloud Hypercompute Cluster V1beta Client class Node.

A resource representing a compute node managed by Cluster Director.

Generated from protobuf message google.cloud.hypercomputecluster.v1beta.Node

Namespace

Google \ Cloud \ HypercomputeCluster \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Identifier. Relative resource name of the node, in the format projects/{project}/locations/{location}/clusters/{cluster}/nodes/{node}.

↳ zone string

Output only. Name of the zone in which the node is running, e.g. us-central1-a.

↳ state int

Output only. High-level lifecycle state of the node.

↳ state_message string

Output only. Human-readable message providing extra information about the current state.

↳ running_jobs bool

Output only. Indicates whether the node is currently executing workloads.

↳ accepting_jobs bool

Output only. Indicates whether the node is available for new job allocations.

↳ provisioning_model int

Output only. Provisioning model of the node.

↳ slurm_details SlurmNodeDetails

Output only. Slurm-specific details for the node.

↳ compute_engine_details ComputeEngineNodeDetails

Output only. Compute Engine-specific details for the node.

↳ create_time Google\Protobuf\Timestamp

Output only. Time that the node was originally created.

↳ update_time Google\Protobuf\Timestamp

Output only. Time that the node was most recently updated.

getName

Identifier. Relative resource name of the node, in the format projects/{project}/locations/{location}/clusters/{cluster}/nodes/{node}.

Returns
Type Description
string

setName

Identifier. Relative resource name of the node, in the format projects/{project}/locations/{location}/clusters/{cluster}/nodes/{node}.

Parameter
Name Description
var string
Returns
Type Description
$this

getZone

Output only. Name of the zone in which the node is running, e.g.

us-central1-a.

Returns
Type Description
string

setZone

Output only. Name of the zone in which the node is running, e.g.

us-central1-a.

Parameter
Name Description
var string
Returns
Type Description
$this

getState

Output only. High-level lifecycle state of the node.

Returns
Type Description
int Enum of type State.

setState

Output only. High-level lifecycle state of the node.

Parameter
Name Description
var int

Enum of type State.

Returns
Type Description
$this

getStateMessage

Output only. Human-readable message providing extra information about the current state.

Returns
Type Description
string

setStateMessage

Output only. Human-readable message providing extra information about the current state.

Parameter
Name Description
var string
Returns
Type Description
$this

getRunningJobs

Output only. Indicates whether the node is currently executing workloads.

Returns
Type Description
bool

setRunningJobs

Output only. Indicates whether the node is currently executing workloads.

Parameter
Name Description
var bool
Returns
Type Description
$this

getAcceptingJobs

Output only. Indicates whether the node is available for new job allocations.

Returns
Type Description
bool

setAcceptingJobs

Output only. Indicates whether the node is available for new job allocations.

Parameter
Name Description
var bool
Returns
Type Description
$this

getProvisioningModel

Output only. Provisioning model of the node.

Returns
Type Description
int Enum of type ProvisioningModel.

setProvisioningModel

Output only. Provisioning model of the node.

Parameter
Name Description
var int

Enum of type ProvisioningModel.

Returns
Type Description
$this

getSlurmDetails

Output only. Slurm-specific details for the node.

Returns
Type Description
SlurmNodeDetails|null

hasSlurmDetails

clearSlurmDetails

setSlurmDetails

Output only. Slurm-specific details for the node.

Parameter
Name Description
var SlurmNodeDetails
Returns
Type Description
$this

getComputeEngineDetails

Output only. Compute Engine-specific details for the node.

Returns
Type Description
ComputeEngineNodeDetails|null

hasComputeEngineDetails

clearComputeEngineDetails

setComputeEngineDetails

Output only. Compute Engine-specific details for the node.

Parameter
Name Description
var ComputeEngineNodeDetails
Returns
Type Description
$this

getCreateTime

Output only. Time that the node was originally created.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Time that the node was originally created.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getUpdateTime

Output only. Time that the node was most recently updated.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. Time that the node was most recently updated.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this