Class: Google::Apis::MigrationcenterV1::MachinePreferences

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 type of machines to consider when calculating virtual machine migration insights and recommendations. Not all machine types are available in all zones and regions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MachinePreferences

Returns a new instance of MachinePreferences.



2872
2873
2874
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2872

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

Instance Attribute Details

#allowed_machine_seriesArray<Google::Apis::MigrationcenterV1::MachineSeries>

Compute Engine machine series to consider for insights and recommendations. If empty, no restriction is applied on the machine series. Corresponds to the JSON property allowedMachineSeries



2870
2871
2872
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2870

def allowed_machine_series
  @allowed_machine_series
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2877
2878
2879
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2877

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