Reference documentation and code samples for the Compute V1 Client class CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection.
Machine specification.
Generated from protobuf message google.cloud.compute.v1.CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection
Namespace
Google \ Cloud \ Compute \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ disks |
array<CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk>
Local SSDs. |
↳ guest_accelerators |
array<AcceleratorConfig>
Accelerators configuration. |
↳ machine_types |
string[]
Full machine-type names, e.g. "n1-standard-16". |
↳ rank |
int|string
Optional. Rank when prioritizing the shape flexibilities. The instance selections are considered in the ascending order of the rank. If not set, defaults to 0. |
getDisks
Local SSDs.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk> |
|
setDisks
Local SSDs.
| Parameter | |
|---|---|
| Name | Description |
var |
array<CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getGuestAccelerators
Accelerators configuration.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<AcceleratorConfig> |
|
setGuestAccelerators
Accelerators configuration.
| Parameter | |
|---|---|
| Name | Description |
var |
array<AcceleratorConfig>
|
| 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 |
|
getRank
Optional. Rank when prioritizing the shape flexibilities.
The instance selections are considered in the ascending order of the rank. If not set, defaults to 0.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
hasRank
clearRank
setRank
Optional. Rank when prioritizing the shape flexibilities.
The instance selections are considered in the ascending order of the rank. If not set, defaults to 0.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|