Reference documentation and code samples for the Compute V1 Client class ManagedInstancePropertiesFromFlexibilityPolicy.
Generated from protobuf message google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy
Namespace
Google \ Cloud \ Compute \ V1Methods
__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 instance. |
↳ machine_type |
string
Output only. The machine type to be used for this instance. |
↳ min_cpu_platform |
string
Name of the minimum CPU platform to be used by this instance. e.g. 'Intel Ice Lake'. |
getDisks
List of disks to be attached to the instance.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<AttachedDisk> |
|
setDisks
List of disks to be attached to the instance.
| Parameter | |
|---|---|
| Name | Description |
var |
array<AttachedDisk>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMachineType
Output only. The machine type to be used for this instance.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasMachineType
clearMachineType
setMachineType
Output only. The machine type to be used for this instance.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMinCpuPlatform
Name of the minimum CPU platform to be used by this instance.
e.g. 'Intel Ice Lake'.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasMinCpuPlatform
clearMinCpuPlatform
setMinCpuPlatform
Name of the minimum CPU platform to be used by this instance.
e.g. 'Intel Ice Lake'.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|