Google Cloud Dataproc V1 Client - Class FlexibleInstanceGroupConfig (4.2.0)

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

The configuration for High Obtainability (HO) flexible instance groups.

Flexible instance group configs serve as the single source of truth for desired state.

Generated from protobuf message google.cloud.dataproc.v1.FlexibleInstanceGroupConfig

Namespace

Google \ Cloud \ Dataproc \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ num_instances int

Optional. The number of VM instances requested. For master instances, this must be 1. For worker and secondary worker instances, this represents the desired capacity of the group and is mutable via cluster update operations and autoscaling.

↳ core_count int

Optional. The number of vCPUs per instance. Must be a power of 2 (2, 4, 8, 16, 32). This is a create-time specification and is not currently mutable via update masks.

↳ boot_disk_size_gb int

Optional. The boot disk size in GB. This is a create-time specification and is not currently mutable via update masks.

↳ hardware_class int

Optional. The hardware class of the instances. This is a create-time specification and is not currently mutable via update masks.

getNumInstances

Optional. The number of VM instances requested.

For master instances, this must be 1. For worker and secondary worker instances, this represents the desired capacity of the group and is mutable via cluster update operations and autoscaling.

Returns
Type Description
int

setNumInstances

Optional. The number of VM instances requested.

For master instances, this must be 1. For worker and secondary worker instances, this represents the desired capacity of the group and is mutable via cluster update operations and autoscaling.

Parameter
Name Description
var int
Returns
Type Description
$this

getCoreCount

Optional. The number of vCPUs per instance. Must be a power of 2 (2, 4, 8, 16, 32). This is a create-time specification and is not currently mutable via update masks.

Returns
Type Description
int

setCoreCount

Optional. The number of vCPUs per instance. Must be a power of 2 (2, 4, 8, 16, 32). This is a create-time specification and is not currently mutable via update masks.

Parameter
Name Description
var int
Returns
Type Description
$this

getBootDiskSizeGb

Optional. The boot disk size in GB. This is a create-time specification and is not currently mutable via update masks.

Returns
Type Description
int

setBootDiskSizeGb

Optional. The boot disk size in GB. This is a create-time specification and is not currently mutable via update masks.

Parameter
Name Description
var int
Returns
Type Description
$this

getHardwareClass

Optional. The hardware class of the instances. This is a create-time specification and is not currently mutable via update masks.

Returns
Type Description
int Enum of type HardwareClass.

setHardwareClass

Optional. The hardware class of the instances. This is a create-time specification and is not currently mutable via update masks.

Parameter
Name Description
var int

Enum of type HardwareClass.

Returns
Type Description
$this