Struct google_api_proto::google::cloud::vmmigration::v1::ComputeScheduling
source · pub struct ComputeScheduling {
pub on_host_maintenance: i32,
pub restart_type: i32,
pub node_affinities: Vec<SchedulingNodeAffinity>,
pub min_node_cpus: i32,
}
Expand description
Scheduling information for VM on maintenance/restart behaviour and node allocation in sole tenant nodes.
Fields§
§on_host_maintenance: i32
How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.
restart_type: i32
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.
node_affinities: Vec<SchedulingNodeAffinity>
A set of node affinity and anti-affinity configurations for sole tenant nodes.
min_node_cpus: 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.
Implementations§
source§impl ComputeScheduling
impl ComputeScheduling
sourcepub fn on_host_maintenance(&self) -> OnHostMaintenance
pub fn on_host_maintenance(&self) -> OnHostMaintenance
Returns the enum value of on_host_maintenance
, or the default if the field is set to an invalid enum value.
sourcepub fn set_on_host_maintenance(&mut self, value: OnHostMaintenance)
pub fn set_on_host_maintenance(&mut self, value: OnHostMaintenance)
Sets on_host_maintenance
to the provided enum value.
sourcepub fn restart_type(&self) -> RestartType
pub fn restart_type(&self) -> RestartType
Returns the enum value of restart_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_restart_type(&mut self, value: RestartType)
pub fn set_restart_type(&mut self, value: RestartType)
Sets restart_type
to the provided enum value.
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§impl Message for ComputeScheduling
impl Message for ComputeScheduling
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ComputeScheduling
impl PartialEq for ComputeScheduling
source§fn eq(&self, other: &ComputeScheduling) -> bool
fn eq(&self, other: &ComputeScheduling) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request