Compute V1 Client - Class InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection (2.16.0)

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 \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ disks array<AttachedDisk>

List of disks to be attached to the instances created from this selection.

↳ machine_types string[]

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

↳ min_cpu_platform string

Name of the minimum CPU platform to be used by this instance selection. e.g. 'Intel Ice Lake'.

↳ 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.

getDisks

List of disks to be attached to the instances created from this selection.

Returns
Type Description
Google\Protobuf\RepeatedField<AttachedDisk>

setDisks

List of disks to be attached to the instances created from this selection.

Parameter
Name Description
var array<AttachedDisk>
Returns
Type Description
$this

getMachineTypes

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

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setMachineTypes

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

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

getMinCpuPlatform

Name of the minimum CPU platform to be used by this instance selection.

e.g. 'Intel Ice Lake'.

Returns
Type Description
string

hasMinCpuPlatform

clearMinCpuPlatform

setMinCpuPlatform

Name of the minimum CPU platform to be used by this instance selection.

e.g. 'Intel Ice Lake'.

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