Reference documentation and code samples for the Compute V1 Client class InstanceGroupManagerInstanceLifecyclePolicyOnRepair.
Configuration for VM repairs in the MIG.
Generated from protobuf message google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicyOnRepair
Namespace
Google \ Cloud \ Compute \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ allow_changing_zone |
string
Specifies whether the MIG can change a VM's zone during a repair. Valid values are: - NO (default): MIG cannot change a VM's zone during a repair. - YES: MIG can select a different zone for the VM during a repair. Check the AllowChangingZone enum for the list of possible values. |
getAllowChangingZone
Specifies whether the MIG can change a VM's zone during a repair.
Valid values are:
- NO (default): MIG cannot change a VM's zone during a repair.
- YES: MIG can select a different zone for the VM during a repair. Check the AllowChangingZone enum for the list of possible values.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasAllowChangingZone
clearAllowChangingZone
setAllowChangingZone
Specifies whether the MIG can change a VM's zone during a repair.
Valid values are:
- NO (default): MIG cannot change a VM's zone during a repair.
- YES: MIG can select a different zone for the VM during a repair. Check the AllowChangingZone enum for the list of possible values.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|