pub struct ComputeScheduling {
pub min_node_cpus: Option<i32>,
pub node_affinities: Option<Vec<SchedulingNodeAffinity>>,
pub on_host_maintenance: Option<String>,
pub restart_type: Option<String>,
}Expand description
Scheduling information for VM on maintenance/restart behaviour and node allocation in sole tenant nodes.
This type is not used in any activity, and only used as part of another schema.
Fields§
§min_node_cpus: Option<i32>The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. Ignored if no node_affinites are configured.
node_affinities: Option<Vec<SchedulingNodeAffinity>>A set of node affinity and anti-affinity configurations for sole tenant nodes.
on_host_maintenance: Option<String>How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.
restart_type: Option<String>Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user). This configuration is identical to automaticRestart field in Compute Engine create instance under scheduling. It was changed to an enum (instead of a boolean) to match the default value in Compute Engine which is automatic restart.
Trait Implementations§
Source§impl Clone for ComputeScheduling
impl Clone for ComputeScheduling
Source§fn clone(&self) -> ComputeScheduling
fn clone(&self) -> ComputeScheduling
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ComputeScheduling
impl Debug for ComputeScheduling
Source§impl Default for ComputeScheduling
impl Default for ComputeScheduling
Source§fn default() -> ComputeScheduling
fn default() -> ComputeScheduling
Source§impl<'de> Deserialize<'de> for ComputeScheduling
impl<'de> Deserialize<'de> for ComputeScheduling
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for ComputeScheduling
impl Serialize for ComputeScheduling
impl Part for ComputeScheduling
Auto Trait Implementations§
impl Freeze for ComputeScheduling
impl RefUnwindSafe for ComputeScheduling
impl Send for ComputeScheduling
impl Sync for ComputeScheduling
impl Unpin for ComputeScheduling
impl UnwindSafe for ComputeScheduling
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more