Struct google_api_proto::google::cloud::migrationcenter::v1::SoleTenancyPreferences
source · pub struct SoleTenancyPreferences {
pub cpu_overcommit_ratio: f64,
pub host_maintenance_policy: i32,
pub commitment_plan: i32,
pub node_types: Vec<SoleTenantNodeType>,
}
Expand description
Preferences concerning Sole Tenancy nodes and VMs.
Fields§
§cpu_overcommit_ratio: f64
CPU overcommit ratio. Acceptable values are between 1.0 and 2.0 inclusive.
host_maintenance_policy: i32
Sole Tenancy nodes maintenance policy.
commitment_plan: i32
Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with.
node_types: Vec<SoleTenantNodeType>
A list of sole tenant node types. An empty list means that all possible node types will be considered.
Implementations§
source§impl SoleTenancyPreferences
impl SoleTenancyPreferences
sourcepub fn host_maintenance_policy(&self) -> HostMaintenancePolicy
pub fn host_maintenance_policy(&self) -> HostMaintenancePolicy
Returns the enum value of host_maintenance_policy
, or the default if the field is set to an invalid enum value.
sourcepub fn set_host_maintenance_policy(&mut self, value: HostMaintenancePolicy)
pub fn set_host_maintenance_policy(&mut self, value: HostMaintenancePolicy)
Sets host_maintenance_policy
to the provided enum value.
sourcepub fn commitment_plan(&self) -> CommitmentPlan
pub fn commitment_plan(&self) -> CommitmentPlan
Returns the enum value of commitment_plan
, or the default if the field is set to an invalid enum value.
sourcepub fn set_commitment_plan(&mut self, value: CommitmentPlan)
pub fn set_commitment_plan(&mut self, value: CommitmentPlan)
Sets commitment_plan
to the provided enum value.
Trait Implementations§
source§impl Clone for SoleTenancyPreferences
impl Clone for SoleTenancyPreferences
source§fn clone(&self) -> SoleTenancyPreferences
fn clone(&self) -> SoleTenancyPreferences
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SoleTenancyPreferences
impl Debug for SoleTenancyPreferences
source§impl Default for SoleTenancyPreferences
impl Default for SoleTenancyPreferences
source§impl Message for SoleTenancyPreferences
impl Message for SoleTenancyPreferences
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 SoleTenancyPreferences
impl PartialEq for SoleTenancyPreferences
source§fn eq(&self, other: &SoleTenancyPreferences) -> bool
fn eq(&self, other: &SoleTenancyPreferences) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SoleTenancyPreferences
Auto Trait Implementations§
impl Freeze for SoleTenancyPreferences
impl RefUnwindSafe for SoleTenancyPreferences
impl Send for SoleTenancyPreferences
impl Sync for SoleTenancyPreferences
impl Unpin for SoleTenancyPreferences
impl UnwindSafe for SoleTenancyPreferences
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