Reference documentation and code samples for the Compute V1 Client class InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection.
Generated from protobuf message google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection
Namespace
Google \ Cloud \ Compute \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ machine_types |
array
Full machine-type names, e.g. "n1-standard-16". |
↳ rank |
int
Preference of this instance selection. Lower number means higher preference. MIG will first try to create a VM based on the machine-type with lowest rank and fallback to next rank based on availability. Machine types and instance selections with the same rank have the same preference. |
getMachineTypes
Full machine-type names, e.g. "n1-standard-16".
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setMachineTypes
Full machine-type names, e.g. "n1-standard-16".
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |
getRank
Preference of this instance selection. Lower number means higher preference. MIG will first try to create a VM based on the machine-type with lowest rank and fallback to next rank based on availability. Machine types and instance selections with the same rank have the same preference.
Returns | |
---|---|
Type | Description |
int |
hasRank
clearRank
setRank
Preference of this instance selection. Lower number means higher preference. MIG will first try to create a VM based on the machine-type with lowest rank and fallback to next rank based on availability. Machine types and instance selections with the same rank have the same preference.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |