Class: Google::Apis::MigrationcenterV1::ComputeEnginePreferences
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1::ComputeEnginePreferences
- 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
-
#license_type ⇒ String
License type to consider when calculating costs for virtual machine insights and recommendations.
-
#machine_preferences ⇒ Google::Apis::MigrationcenterV1::MachinePreferences
The type of machines to consider when calculating virtual machine migration insights and recommendations.
-
#persistent_disk_type ⇒ String
Persistent disk type to use.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ComputeEnginePreferences
constructor
A new instance of ComputeEnginePreferences.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ComputeEnginePreferences
Returns a new instance of ComputeEnginePreferences.
799 800 801 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 799 def initialize(**args) update!(**args) end |
Instance Attribute Details
#license_type ⇒ String
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
784 785 786 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 784 def license_type @license_type end |
#machine_preferences ⇒ Google::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
791 792 793 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 791 def machine_preferences @machine_preferences end |
#persistent_disk_type ⇒ String
Persistent disk type to use. If unspecified (default), all types are
considered, based on available usage data.
Corresponds to the JSON property persistentDiskType
797 798 799 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 797 def persistent_disk_type @persistent_disk_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
804 805 806 807 808 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 804 def update!(**args) @license_type = args[:license_type] if args.key?(:license_type) @machine_preferences = args[:machine_preferences] if args.key?(:machine_preferences) @persistent_disk_type = args[:persistent_disk_type] if args.key?(:persistent_disk_type) end |