Google Cloud Dataproc V1 Client - Class GkeNodeConfig (3.4.0)

Reference documentation and code samples for the Google Cloud Dataproc V1 Client class GkeNodeConfig.

Parameters that describe cluster nodes.

Generated from protobuf message google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ machine_type string

Optional. The name of a Compute Engine machine type.

↳ preemptible bool

Optional. Whether the nodes are created as preemptible VM instances.

↳ local_ssd_count int

Optional. The number of local SSD disks to attach to the node, which is limited by the maximum number of disks allowable per zone (see Adding Local SSDs).

↳ accelerators array<Google\Cloud\Dataproc\V1\GkeNodePoolConfig\GkeNodePoolAcceleratorConfig>

Optional. A list of hardware accelerators to attach to each node.

↳ min_cpu_platform string

Optional. Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or a newer CPU platform. Specify the friendly names of CPU platforms, such as "Intel Haswell"` or Intel Sandy Bridge".

getMachineType

Optional. The name of a Compute Engine machine type.

Returns
TypeDescription
string

setMachineType

Optional. The name of a Compute Engine machine type.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPreemptible

Optional. Whether the nodes are created as preemptible VM instances.

Returns
TypeDescription
bool

setPreemptible

Optional. Whether the nodes are created as preemptible VM instances.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getLocalSsdCount

Optional. The number of local SSD disks to attach to the node, which is limited by the maximum number of disks allowable per zone (see Adding Local SSDs).

Returns
TypeDescription
int

setLocalSsdCount

Optional. The number of local SSD disks to attach to the node, which is limited by the maximum number of disks allowable per zone (see Adding Local SSDs).

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getAccelerators

Optional. A list of hardware accelerators to attach to each node.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAccelerators

Optional. A list of hardware accelerators to attach to each node.

Parameter
NameDescription
var array<Google\Cloud\Dataproc\V1\GkeNodePoolConfig\GkeNodePoolAcceleratorConfig>
Returns
TypeDescription
$this

getMinCpuPlatform

Optional. Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or a newer CPU platform. Specify the friendly names of CPU platforms, such as "Intel Haswell"` or Intel Sandy Bridge".

Returns
TypeDescription
string

setMinCpuPlatform

Optional. Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or a newer CPU platform. Specify the friendly names of CPU platforms, such as "Intel Haswell"` or Intel Sandy Bridge".

Parameter
NameDescription
var string
Returns
TypeDescription
$this