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 \ InstanceFlexibilityPolicyMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
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 |