Controls the use of preemptible instances within the group.
Working with unknown values
This enum is defined as #[non_exhaustive] because Google Cloud may add
additional enum variants at any time. Adding new variants is not considered
a breaking change. Applications should write their code in anticipation of:
- New values appearing in future releases of the client library, and
- New values received dynamically, without application changes.
Please consult the Working with enums section in the user guide for some guidelines.
Enum Variants |
|
|---|---|
| Name | Description |
Unspecified |
Preemptibility is unspecified, the system will choose the appropriate setting for each instance group. |
NonPreemptible |
Instances are non-preemptible. This option is allowed for all instance groups and is the only valid value for Master and Worker instance groups. |
Preemptible |
Instances are preemptible. This option is allowed only for secondary worker groups. |
Spot |
Instances are Spot VMs. This option is allowed only for secondary worker groups. Spot VMs are the latest version of preemptible VMs, and provide additional features. |
UnknownValue |
If set, the enum was initialized with an unknown value. Applications can examine the value using [Preemptibility::value] or [Preemptibility::name]. |
Implementations |
|
|---|---|
| Name | Description |
value |
Gets the enum value. Returns |
name |
Gets the enum value as a string. Returns |