pub struct Preemptibility(/* private fields */);Expand description
Controls the use of preemptible instances within the group.
Implementations§
Source§impl Preemptibility
impl Preemptibility
Sourcepub const PREEMPTIBILITY_UNSPECIFIED: Preemptibility
pub const PREEMPTIBILITY_UNSPECIFIED: Preemptibility
Preemptibility is unspecified, the system will choose the appropriate setting for each instance group.
Sourcepub const NON_PREEMPTIBLE: Preemptibility
pub const NON_PREEMPTIBLE: Preemptibility
Instances are non-preemptible.
This option is allowed for all instance groups and is the only valid value for Master and Worker instance groups.
Sourcepub const PREEMPTIBLE: Preemptibility
pub const PREEMPTIBLE: Preemptibility
Instances are [preemptible] (https://cloud.google.com/compute/docs/instances/preemptible).
This option is allowed only for [secondary worker] (https://cloud.google.com/dataproc/docs/concepts/compute/secondary-vms) groups.
Sourcepub const SPOT: Preemptibility
pub const SPOT: Preemptibility
Instances are [Spot VMs] (https://cloud.google.com/compute/docs/instances/spot).
This option is allowed only for [secondary worker] (https://cloud.google.com/dataproc/docs/concepts/compute/secondary-vms) groups. Spot VMs are the latest version of [preemptible VMs] (https://cloud.google.com/compute/docs/instances/preemptible), and provide additional features.
Sourcepub fn as_str_name(&self) -> Cow<'static, str>
pub fn as_str_name(&self) -> Cow<'static, str>
Gets the enum value as a string.
Sourcepub fn from_str_name(name: &str) -> Option<Self>
pub fn from_str_name(name: &str) -> Option<Self>
Creates an enum value from the value name.
Trait Implementations§
Source§impl Clone for Preemptibility
impl Clone for Preemptibility
Source§fn clone(&self) -> Preemptibility
fn clone(&self) -> Preemptibility
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more