Struct google_api_proto::google::cloud::migrationcenter::v1::VmwareEnginePreferences
source · pub struct VmwareEnginePreferences {
pub cpu_overcommit_ratio: f64,
pub memory_overcommit_ratio: f64,
pub storage_deduplication_compression_ratio: f64,
pub commitment_plan: i32,
}
Expand description
The user preferences relating to Google Cloud VMware Engine target platform.
Fields§
§cpu_overcommit_ratio: f64
CPU overcommit ratio. Acceptable values are between 1.0 and 8.0, with 0.1 increment.
memory_overcommit_ratio: f64
Memory overcommit ratio. Acceptable values are 1.0, 1.25, 1.5, 1.75 and 2.0.
storage_deduplication_compression_ratio: f64
The Deduplication and Compression ratio is based on the logical (Used Before) space required to store data before applying deduplication and compression, in relation to the physical (Used After) space required after applying deduplication and compression. Specifically, the ratio is the Used Before space divided by the Used After space. For example, if the Used Before space is 3 GB, but the physical Used After space is 1 GB, the deduplication and compression ratio is 3x. Acceptable values are between 1.0 and 4.0.
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.
Implementations§
source§impl VmwareEnginePreferences
impl VmwareEnginePreferences
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 VmwareEnginePreferences
impl Clone for VmwareEnginePreferences
source§fn clone(&self) -> VmwareEnginePreferences
fn clone(&self) -> VmwareEnginePreferences
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VmwareEnginePreferences
impl Debug for VmwareEnginePreferences
source§impl Default for VmwareEnginePreferences
impl Default for VmwareEnginePreferences
source§impl Message for VmwareEnginePreferences
impl Message for VmwareEnginePreferences
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 VmwareEnginePreferences
impl PartialEq for VmwareEnginePreferences
source§fn eq(&self, other: &VmwareEnginePreferences) -> bool
fn eq(&self, other: &VmwareEnginePreferences) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for VmwareEnginePreferences
impl StructuralPartialEq for VmwareEnginePreferences
Auto Trait Implementations§
impl Freeze for VmwareEnginePreferences
impl RefUnwindSafe for VmwareEnginePreferences
impl Send for VmwareEnginePreferences
impl Sync for VmwareEnginePreferences
impl Unpin for VmwareEnginePreferences
impl UnwindSafe for VmwareEnginePreferences
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