Class: Google::Apis::VmmigrationV1::MachineImageParametersOverrides

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

Overview

Parameters overriding decisions based on the source machine image configurations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MachineImageParametersOverrides

Returns a new instance of MachineImageParametersOverrides.



3006
3007
3008
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3006

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

Instance Attribute Details

#machine_typeString

Optional. The machine type to create the MachineImage with. If empty, the service will choose a relevant machine type based on the information from the source image. For more information about machine types, please refer to https:/ /cloud.google.com/compute/docs/machine-resource. Corresponds to the JSON property machineType

Returns:

  • (String)


3004
3005
3006
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3004

def machine_type
  @machine_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3011
3012
3013
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3011

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