Google Cloud Dataproc V1 Client - Class InstanceSelection (3.12.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
NameDescription
data array

Optional. Data for populating the Message object.

↳ machine_types array

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.

getMachineTypes

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setMachineTypes

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

Parameter
NameDescription
var string[]
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var int
Returns
TypeDescription
$this