Class: Google::Apis::MigrationcenterV1::ComputeEnginePreferences

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/migrationcenter_v1/classes.rb,
lib/google/apis/migrationcenter_v1/representations.rb,
lib/google/apis/migrationcenter_v1/representations.rb

Overview

The user preferences relating to Compute Engine target platform.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ComputeEnginePreferences

Returns a new instance of ComputeEnginePreferences.



773
774
775
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 773

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#license_typeString

License type to consider when calculating costs for virtual machine insights and recommendations. If unspecified, costs are calculated based on the default licensing plan. Corresponds to the JSON property licenseType

Returns:

  • (String)


764
765
766
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 764

def license_type
  @license_type
end

#machine_preferencesGoogle::Apis::MigrationcenterV1::MachinePreferences

The type of machines to consider when calculating virtual machine migration insights and recommendations. Not all machine types are available in all zones and regions. Corresponds to the JSON property machinePreferences



771
772
773
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 771

def machine_preferences
  @machine_preferences
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



778
779
780
781
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 778

def update!(**args)
  @license_type = args[:license_type] if args.key?(:license_type)
  @machine_preferences = args[:machine_preferences] if args.key?(:machine_preferences)
end