Struct google_api_proto::google::cloud::migrationcenter::v1::VirtualMachinePreferences
source · pub struct VirtualMachinePreferences {
pub target_product: i32,
pub region_preferences: Option<RegionPreferences>,
pub commitment_plan: i32,
pub sizing_optimization_strategy: i32,
pub compute_engine_preferences: Option<ComputeEnginePreferences>,
pub vmware_engine_preferences: Option<VmwareEnginePreferences>,
pub sole_tenancy_preferences: Option<SoleTenancyPreferences>,
}
Expand description
VirtualMachinePreferences enables you to create sets of assumptions, for example, a geographical location and pricing track, for your migrated virtual machines. The set of preferences influence recommendations for migrating virtual machine assets.
Fields§
§target_product: i32
Target product for assets using this preference set. Specify either target product or business goal, but not both.
region_preferences: Option<RegionPreferences>
Region preferences for assets using this preference set. If you are unsure which value to set, the migration service API region is often a good value to start with.
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.
sizing_optimization_strategy: i32
Sizing optimization strategy specifies the preferred strategy used when extrapolating usage data to calculate insights and recommendations for a virtual machine. If you are unsure which value to set, a moderate sizing optimization strategy is often a good value to start with.
compute_engine_preferences: Option<ComputeEnginePreferences>
Compute Engine preferences concern insights and recommendations for Compute Engine target.
vmware_engine_preferences: Option<VmwareEnginePreferences>
Preferences concerning insights and recommendations for Google Cloud VMware Engine.
sole_tenancy_preferences: Option<SoleTenancyPreferences>
Preferences concerning Sole Tenant nodes and virtual machines.
Implementations§
source§impl VirtualMachinePreferences
impl VirtualMachinePreferences
sourcepub fn target_product(&self) -> ComputeMigrationTargetProduct
pub fn target_product(&self) -> ComputeMigrationTargetProduct
Returns the enum value of target_product
, or the default if the field is set to an invalid enum value.
sourcepub fn set_target_product(&mut self, value: ComputeMigrationTargetProduct)
pub fn set_target_product(&mut self, value: ComputeMigrationTargetProduct)
Sets target_product
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.
sourcepub fn sizing_optimization_strategy(&self) -> SizingOptimizationStrategy
pub fn sizing_optimization_strategy(&self) -> SizingOptimizationStrategy
Returns the enum value of sizing_optimization_strategy
, or the default if the field is set to an invalid enum value.
sourcepub fn set_sizing_optimization_strategy(
&mut self,
value: SizingOptimizationStrategy,
)
pub fn set_sizing_optimization_strategy( &mut self, value: SizingOptimizationStrategy, )
Sets sizing_optimization_strategy
to the provided enum value.
Trait Implementations§
source§impl Clone for VirtualMachinePreferences
impl Clone for VirtualMachinePreferences
source§fn clone(&self) -> VirtualMachinePreferences
fn clone(&self) -> VirtualMachinePreferences
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VirtualMachinePreferences
impl Debug for VirtualMachinePreferences
source§impl Default for VirtualMachinePreferences
impl Default for VirtualMachinePreferences
source§impl Message for VirtualMachinePreferences
impl Message for VirtualMachinePreferences
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 VirtualMachinePreferences
impl PartialEq for VirtualMachinePreferences
source§fn eq(&self, other: &VirtualMachinePreferences) -> bool
fn eq(&self, other: &VirtualMachinePreferences) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VirtualMachinePreferences
Auto Trait Implementations§
impl Freeze for VirtualMachinePreferences
impl RefUnwindSafe for VirtualMachinePreferences
impl Send for VirtualMachinePreferences
impl Sync for VirtualMachinePreferences
impl Unpin for VirtualMachinePreferences
impl UnwindSafe for VirtualMachinePreferences
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