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.



2988
2989
2990
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2988

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)


2986
2987
2988
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2986

def machine_type
  @machine_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2993
2994
2995
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2993

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