Google Cloud Dataproc V1 Client - Class InstanceSelection (4.0.0)

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

Defines machines types and a rank to which the machines types belong.

Generated from protobuf message google.cloud.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelection

Namespace

Google \ Cloud \ Dataproc \ V1 \ InstanceFlexibilityPolicy

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ machine_types string[]

Optional. Full machine-type names, e.g. "n1-standard-16".

↳ rank int

Optional. Preference of this instance selection. Lower number means higher preference. Dataproc will first try to create a VM based on the machine-type with priority rank and fallback to next rank based on availability. Machine types and instance selections with the same priority have the same preference.

↳ disk_config Google\Cloud\Dataproc\V1\DiskConfig

Optional. Disk configuration to apply to the instances in this instance selection. If specified on any entry in instanceSelectionList, then it must be specified on every entry in instanceSelectionList and the instanceGroupConfig must not specify any diskConfig.

getMachineTypes

Optional. Full machine-type names, e.g. "n1-standard-16".

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setMachineTypes

Optional. Full machine-type names, e.g. "n1-standard-16".

Parameter
Name Description
var string[]
Returns
Type Description
$this

getRank

Optional. Preference of this instance selection. Lower number means higher preference. Dataproc will first try to create a VM based on the machine-type with priority rank and fallback to next rank based on availability. Machine types and instance selections with the same priority have the same preference.

Returns
Type Description
int

setRank

Optional. Preference of this instance selection. Lower number means higher preference. Dataproc will first try to create a VM based on the machine-type with priority rank and fallback to next rank based on availability. Machine types and instance selections with the same priority have the same preference.

Parameter
Name Description
var int
Returns
Type Description
$this

getDiskConfig

Optional. Disk configuration to apply to the instances in this instance selection. If specified on any entry in instanceSelectionList, then it must be specified on every entry in instanceSelectionList and the instanceGroupConfig must not specify any diskConfig.

Returns
Type Description
Google\Cloud\Dataproc\V1\DiskConfig|null

hasDiskConfig

clearDiskConfig

setDiskConfig

Optional. Disk configuration to apply to the instances in this instance selection. If specified on any entry in instanceSelectionList, then it must be specified on every entry in instanceSelectionList and the instanceGroupConfig must not specify any diskConfig.

Parameter
Name Description
var Google\Cloud\Dataproc\V1\DiskConfig
Returns
Type Description
$this