Class: Google::Apis::MigrationcenterV1alpha1::VirtualMachinePreferences
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::VirtualMachinePreferences
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/migrationcenter_v1alpha1/classes.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#commitment_plan ⇒ String
Commitment plan to consider when calculating costs for virtual machine insights and recommendations.
-
#compute_engine_preferences ⇒ Google::Apis::MigrationcenterV1alpha1::ComputeEnginePreferences
The user preferences relating to Compute Engine target platform.
-
#region_preferences ⇒ Google::Apis::MigrationcenterV1alpha1::RegionPreferences
The user preferences relating to target regions.
-
#sizing_optimization_strategy ⇒ String
Sizing optimization strategy specifies the preferred strategy used when extrapolating usage data to calculate insights and recommendations for a virtual machine.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VirtualMachinePreferences
constructor
A new instance of VirtualMachinePreferences.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VirtualMachinePreferences
Returns a new instance of VirtualMachinePreferences.
4728 4729 4730 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4728 def initialize(**args) update!(**args) end |
Instance Attribute Details
#commitment_plan ⇒ String
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.
Corresponds to the JSON property commitmentPlan
4708 4709 4710 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4708 def commitment_plan @commitment_plan end |
#compute_engine_preferences ⇒ Google::Apis::MigrationcenterV1alpha1::ComputeEnginePreferences
The user preferences relating to Compute Engine target platform.
Corresponds to the JSON property computeEnginePreferences
4713 4714 4715 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4713 def compute_engine_preferences @compute_engine_preferences end |
#region_preferences ⇒ Google::Apis::MigrationcenterV1alpha1::RegionPreferences
The user preferences relating to target regions.
Corresponds to the JSON property regionPreferences
4718 4719 4720 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4718 def region_preferences @region_preferences end |
#sizing_optimization_strategy ⇒ String
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.
Corresponds to the JSON property sizingOptimizationStrategy
4726 4727 4728 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4726 def sizing_optimization_strategy @sizing_optimization_strategy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4733 4734 4735 4736 4737 4738 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4733 def update!(**args) @commitment_plan = args[:commitment_plan] if args.key?(:commitment_plan) @compute_engine_preferences = args[:compute_engine_preferences] if args.key?(:compute_engine_preferences) @region_preferences = args[:region_preferences] if args.key?(:region_preferences) @sizing_optimization_strategy = args[:sizing_optimization_strategy] if args.key?(:sizing_optimization_strategy) end |