Class: Google::Apis::MigrationcenterV1alpha1::ComputeEnginePreferences

Inherits:
Object
  • Object
show all
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

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.



1364
1365
1366
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1364

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

Instance Attribute Details

#license_typeString

License type to consider when calculating costs for operating systems. If unspecified, costs are calculated based on the default licensing plan. If os_pricing_preferences is specified, it overrides this field. Corresponds to the JSON property licenseType

Returns:

  • (String)


1339
1340
1341
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1339

def license_type
  @license_type
end

#machine_preferencesGoogle::Apis::MigrationcenterV1alpha1::MachinePreferences

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



1346
1347
1348
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1346

def machine_preferences
  @machine_preferences
end

#multithreadingString

Optional. Preferences for multithreading support on Windows Server. Corresponds to the JSON property multithreading

Returns:

  • (String)


1351
1352
1353
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1351

def multithreading
  @multithreading
end

#os_pricing_preferencesGoogle::Apis::MigrationcenterV1alpha1::OperatingSystemPricingPreferences

Pricing options for OS images. Corresponds to the JSON property osPricingPreferences



1356
1357
1358
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1356

def os_pricing_preferences
  @os_pricing_preferences
end

#persistent_disk_typeString

Persistent disk type to use. If unspecified (default), all types are considered, based on available usage data. Corresponds to the JSON property persistentDiskType

Returns:

  • (String)


1362
1363
1364
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1362

def persistent_disk_type
  @persistent_disk_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1369
1370
1371
1372
1373
1374
1375
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1369

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