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 preferences, 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.
-
#network_cost_parameters ⇒ Google::Apis::MigrationcenterV1alpha1::VirtualMachinePreferencesNetworkCostParameters
Parameters that affect network cost estimations.
-
#region_preferences ⇒ Google::Apis::MigrationcenterV1alpha1::RegionPreferences
The user preferences relating to target regions.
-
#sizing_optimization_custom_parameters ⇒ Google::Apis::MigrationcenterV1alpha1::VirtualMachinePreferencesSizingOptimizationCustomParameters
Custom data to use for sizing optimizations.
-
#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.
-
#sole_tenancy_preferences ⇒ Google::Apis::MigrationcenterV1alpha1::SoleTenancyPreferences
Preferences concerning Sole Tenancy nodes and VMs.
-
#target_product ⇒ String
Target product for assets using this preference set.
-
#vmware_engine_preferences ⇒ Google::Apis::MigrationcenterV1alpha1::VmwareEnginePreferences
The user preferences relating to Google Cloud VMware Engine target platform.
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.
7366 7367 7368 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7366 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
7320 7321 7322 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7320 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
7325 7326 7327 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7325 def compute_engine_preferences @compute_engine_preferences end |
#network_cost_parameters ⇒ Google::Apis::MigrationcenterV1alpha1::VirtualMachinePreferencesNetworkCostParameters
Parameters that affect network cost estimations.
Corresponds to the JSON property networkCostParameters
7330 7331 7332 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7330 def network_cost_parameters @network_cost_parameters end |
#region_preferences ⇒ Google::Apis::MigrationcenterV1alpha1::RegionPreferences
The user preferences relating to target regions.
Corresponds to the JSON property regionPreferences
7335 7336 7337 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7335 def region_preferences @region_preferences end |
#sizing_optimization_custom_parameters ⇒ Google::Apis::MigrationcenterV1alpha1::VirtualMachinePreferencesSizingOptimizationCustomParameters
Custom data to use for sizing optimizations.
Corresponds to the JSON property sizingOptimizationCustomParameters
7340 7341 7342 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7340 def sizing_optimization_custom_parameters @sizing_optimization_custom_parameters 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
7348 7349 7350 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7348 def sizing_optimization_strategy @sizing_optimization_strategy end |
#sole_tenancy_preferences ⇒ Google::Apis::MigrationcenterV1alpha1::SoleTenancyPreferences
Preferences concerning Sole Tenancy nodes and VMs.
Corresponds to the JSON property soleTenancyPreferences
7353 7354 7355 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7353 def sole_tenancy_preferences @sole_tenancy_preferences end |
#target_product ⇒ String
Target product for assets using this preference set. Specify either target
product or business goal, but not both.
Corresponds to the JSON property targetProduct
7359 7360 7361 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7359 def target_product @target_product end |
#vmware_engine_preferences ⇒ Google::Apis::MigrationcenterV1alpha1::VmwareEnginePreferences
The user preferences relating to Google Cloud VMware Engine target platform.
Corresponds to the JSON property vmwareEnginePreferences
7364 7365 7366 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7364 def vmware_engine_preferences @vmware_engine_preferences end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7371 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) @network_cost_parameters = args[:network_cost_parameters] if args.key?(:network_cost_parameters) @region_preferences = args[:region_preferences] if args.key?(:region_preferences) @sizing_optimization_custom_parameters = args[:sizing_optimization_custom_parameters] if args.key?(:sizing_optimization_custom_parameters) @sizing_optimization_strategy = args[:sizing_optimization_strategy] if args.key?(:sizing_optimization_strategy) @sole_tenancy_preferences = args[:sole_tenancy_preferences] if args.key?(:sole_tenancy_preferences) @target_product = args[:target_product] if args.key?(:target_product) @vmware_engine_preferences = args[:vmware_engine_preferences] if args.key?(:vmware_engine_preferences) end |