Google Cloud Dataproc V1 Client - Class GkeNodeConfig (3.2.2)

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
Name
Description
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
↳ 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 .

Generated from protobuf field string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description
string

setMachineType

Optional. The name of a Compute Engine machine type .

Generated from protobuf field string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getPreemptible

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

Generated from protobuf field bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description
bool

setPreemptible

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

Generated from protobuf field bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name
Description
var
bool
Returns
Type
Description
$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 ).

Generated from protobuf field int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description
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 ).

Generated from protobuf field int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getAccelerators

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

Generated from protobuf field repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description
Google\Protobuf\Internal\RepeatedField

setAccelerators

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

Generated from protobuf field repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description
$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".

Generated from protobuf field string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description
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".

Generated from protobuf field string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name
Description
var
string
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: