Creates a new instance of the {VmBase} class.
@param opts [Hash] A hash containing the attributes of the object. The keys of the hash
should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.
@option opts [Bios, Hash] :bios The value of attribute `bios`.
@option opts [Cluster, Hash] :cluster The value of attribute `cluster`.
@option opts [String] :comment The value of attribute `comment`.
@option opts [Console, Hash] :console The value of attribute `console`.
@option opts [Cpu, Hash] :cpu The value of attribute `cpu`.
@option opts [CpuProfile, Hash] :cpu_profile The value of attribute `cpu_profile`.
@option opts [Integer] :cpu_shares The value of attribute `cpu_shares`.
@option opts [DateTime] :creation_time The value of attribute `creation_time`.
@option opts [Version, Hash] :custom_compatibility_version The value of attribute `custom_compatibility_version`.
@option opts [String] :custom_cpu_model The value of attribute `custom_cpu_model`.
@option opts [String] :custom_emulated_machine The value of attribute `custom_emulated_machine`.
@option opts [Array<CustomProperty>, Array<Hash>] :custom_properties The values of attribute `custom_properties`.
@option opts [Boolean] :delete_protected The value of attribute `delete_protected`.
@option opts [String] :description The value of attribute `description`.
@option opts [Display, Hash] :display The value of attribute `display`.
@option opts [Domain, Hash] :domain The value of attribute `domain`.
@option opts [HighAvailability, Hash] :high_availability The value of attribute `high_availability`.
@option opts [String] :id The value of attribute `id`.
@option opts [Initialization, Hash] :initialization The value of attribute `initialization`.
@option opts [Io, Hash] :io The value of attribute `io`.
@option opts [Icon, Hash] :large_icon The value of attribute `large_icon`.
@option opts [Integer] :memory The value of attribute `memory`.
@option opts [MemoryPolicy, Hash] :memory_policy The value of attribute `memory_policy`.
@option opts [MigrationOptions, Hash] :migration The value of attribute `migration`.
@option opts [Integer] :migration_downtime The value of attribute `migration_downtime`.
@option opts [String] :name The value of attribute `name`.
@option opts [String] :origin The value of attribute `origin`.
@option opts [OperatingSystem, Hash] :os The value of attribute `os`.
@option opts [Quota, Hash] :quota The value of attribute `quota`.
@option opts [RngDevice, Hash] :rng_device The value of attribute `rng_device`.
@option opts [SerialNumber, Hash] :serial_number The value of attribute `serial_number`.
@option opts [Icon, Hash] :small_icon The value of attribute `small_icon`.
@option opts [Boolean] :soundcard_enabled The value of attribute `soundcard_enabled`.
@option opts [Sso, Hash] :sso The value of attribute `sso`.
@option opts [Boolean] :start_paused The value of attribute `start_paused`.
@option opts [Boolean] :stateless The value of attribute `stateless`.
@option opts [StorageDomain, Hash] :storage_domain The value of attribute `storage_domain`.
@option opts [TimeZone, Hash] :time_zone The value of attribute `time_zone`.
@option opts [Boolean] :tunnel_migration The value of attribute `tunnel_migration`.
@option opts [VmType] :type The value of attribute `type`.
@option opts [Usb, Hash] :usb The value of attribute `usb`.
@option opts [VirtioScsi, Hash] :virtio_scsi The value of attribute `virtio_scsi`.
# File lib/ovirtsdk4/types.rb, line 23386 def initialize(opts = {}) super(opts) self.bios = opts[:bios] self.cluster = opts[:cluster] self.console = opts[:console] self.cpu = opts[:cpu] self.cpu_profile = opts[:cpu_profile] self.cpu_shares = opts[:cpu_shares] self.creation_time = opts[:creation_time] self.custom_compatibility_version = opts[:custom_compatibility_version] self.custom_cpu_model = opts[:custom_cpu_model] self.custom_emulated_machine = opts[:custom_emulated_machine] self.custom_properties = opts[:custom_properties] self.delete_protected = opts[:delete_protected] self.display = opts[:display] self.domain = opts[:domain] self.high_availability = opts[:high_availability] self.initialization = opts[:initialization] self.io = opts[:io] self.large_icon = opts[:large_icon] self.memory = opts[:memory] self.memory_policy = opts[:memory_policy] self.migration = opts[:migration] self.migration_downtime = opts[:migration_downtime] self.origin = opts[:origin] self.os = opts[:os] self.quota = opts[:quota] self.rng_device = opts[:rng_device] self.serial_number = opts[:serial_number] self.small_icon = opts[:small_icon] self.soundcard_enabled = opts[:soundcard_enabled] self.sso = opts[:sso] self.start_paused = opts[:start_paused] self.stateless = opts[:stateless] self.storage_domain = opts[:storage_domain] self.time_zone = opts[:time_zone] self.tunnel_migration = opts[:tunnel_migration] self.type = opts[:type] self.usb = opts[:usb] self.virtio_scsi = opts[:virtio_scsi] end
Returns `true` if `self` and `other` have the same attributes and values.
# File lib/ovirtsdk4/types.rb, line 23431 def ==(other) super && @bios == other.bios && @cluster == other.cluster && @console == other.console && @cpu == other.cpu && @cpu_profile == other.cpu_profile && @cpu_shares == other.cpu_shares && @creation_time == other.creation_time && @custom_compatibility_version == other.custom_compatibility_version && @custom_cpu_model == other.custom_cpu_model && @custom_emulated_machine == other.custom_emulated_machine && @custom_properties == other.custom_properties && @delete_protected == other.delete_protected && @display == other.display && @domain == other.domain && @high_availability == other.high_availability && @initialization == other.initialization && @io == other.io && @large_icon == other.large_icon && @memory == other.memory && @memory_policy == other.memory_policy && @migration == other.migration && @migration_downtime == other.migration_downtime && @origin == other.origin && @os == other.os && @quota == other.quota && @rng_device == other.rng_device && @serial_number == other.serial_number && @small_icon == other.small_icon && @soundcard_enabled == other.soundcard_enabled && @sso == other.sso && @start_paused == other.start_paused && @stateless == other.stateless && @storage_domain == other.storage_domain && @time_zone == other.time_zone && @tunnel_migration == other.tunnel_migration && @type == other.type && @usb == other.usb && @virtio_scsi == other.virtio_scsi end
Returns the value of the `bios` attribute.
@return [Bios]
# File lib/ovirtsdk4/types.rb, line 22367 def bios @bios end
Sets the value of the `bios` attribute.
@param value [Bios, Hash]
The `value` parameter can be an instance of {OvirtSDK4::Bios} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.
# File lib/ovirtsdk4/types.rb, line 22380 def bios=(value) if value.is_a?(Hash) value = Bios.new(value) end @bios = value end
Returns the value of the `cluster` attribute.
@return [Cluster]
# File lib/ovirtsdk4/types.rb, line 22392 def cluster @cluster end
Sets the value of the `cluster` attribute.
@param value [Cluster, Hash]
The `value` parameter can be an instance of {OvirtSDK4::Cluster} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.
# File lib/ovirtsdk4/types.rb, line 22405 def cluster=(value) if value.is_a?(Hash) value = Cluster.new(value) end @cluster = value end
Returns the value of the `comment` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 22417 def comment @comment end
Sets the value of the `comment` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 22426 def comment=(value) @comment = value end
Returns the value of the `console` attribute.
@return [Console]
# File lib/ovirtsdk4/types.rb, line 22435 def console @console end
Sets the value of the `console` attribute.
@param value [Console, Hash]
The `value` parameter can be an instance of {OvirtSDK4::Console} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.
# File lib/ovirtsdk4/types.rb, line 22448 def console=(value) if value.is_a?(Hash) value = Console.new(value) end @console = value end
Returns the value of the `cpu` attribute.
@return [Cpu]
# File lib/ovirtsdk4/types.rb, line 22460 def cpu @cpu end
Sets the value of the `cpu` attribute.
@param value [Cpu, Hash]
The `value` parameter can be an instance of {OvirtSDK4::Cpu} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.
# File lib/ovirtsdk4/types.rb, line 22473 def cpu=(value) if value.is_a?(Hash) value = Cpu.new(value) end @cpu = value end
Returns the value of the `cpu_profile` attribute.
@return [CpuProfile]
# File lib/ovirtsdk4/types.rb, line 22485 def cpu_profile @cpu_profile end
Sets the value of the `cpu_profile` attribute.
@param value [CpuProfile, Hash]
The `value` parameter can be an instance of {OvirtSDK4::CpuProfile} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.
# File lib/ovirtsdk4/types.rb, line 22498 def cpu_profile=(value) if value.is_a?(Hash) value = CpuProfile.new(value) end @cpu_profile = value end
Returns the value of the `creation_time` attribute.
@return [DateTime]
# File lib/ovirtsdk4/types.rb, line 22528 def creation_time @creation_time end
Sets the value of the `creation_time` attribute.
@param value [DateTime]
# File lib/ovirtsdk4/types.rb, line 22537 def creation_time=(value) @creation_time = value end
Returns the value of the `custom_compatibility_version` attribute.
@return [Version]
# File lib/ovirtsdk4/types.rb, line 22546 def custom_compatibility_version @custom_compatibility_version end
Sets the value of the `custom_compatibility_version` attribute.
@param value [Version, Hash]
The `value` parameter can be an instance of {OvirtSDK4::Version} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.
# File lib/ovirtsdk4/types.rb, line 22559 def custom_compatibility_version=(value) if value.is_a?(Hash) value = Version.new(value) end @custom_compatibility_version = value end
Returns the value of the `custom_cpu_model` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 22571 def custom_cpu_model @custom_cpu_model end
Sets the value of the `custom_cpu_model` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 22580 def custom_cpu_model=(value) @custom_cpu_model = value end
Returns the value of the `custom_emulated_machine` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 22589 def custom_emulated_machine @custom_emulated_machine end
Sets the value of the `custom_emulated_machine` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 22598 def custom_emulated_machine=(value) @custom_emulated_machine = value end
Returns the value of the `custom_properties` attribute.
@return [Array<CustomProperty>]
# File lib/ovirtsdk4/types.rb, line 22607 def custom_properties @custom_properties end
Sets the value of the `custom_properties` attribute.
@param list [Array<CustomProperty>]
# File lib/ovirtsdk4/types.rb, line 22616 def custom_properties=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = CustomProperty.new(value) end end end @custom_properties = list end
Returns the value of the `delete_protected` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 22633 def delete_protected @delete_protected end
Sets the value of the `delete_protected` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 22642 def delete_protected=(value) @delete_protected = value end
Returns the value of the `description` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 22651 def description @description end
Sets the value of the `description` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 22660 def description=(value) @description = value end
Returns the value of the `display` attribute.
@return [Display]
# File lib/ovirtsdk4/types.rb, line 22669 def display @display end
Sets the value of the `display` attribute.
@param value [Display, Hash]
The `value` parameter can be an instance of {OvirtSDK4::Display} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.
# File lib/ovirtsdk4/types.rb, line 22682 def display=(value) if value.is_a?(Hash) value = Display.new(value) end @display = value end
Returns the value of the `domain` attribute.
@return [Domain]
# File lib/ovirtsdk4/types.rb, line 22694 def domain @domain end
Sets the value of the `domain` attribute.
@param value [Domain, Hash]
The `value` parameter can be an instance of {OvirtSDK4::Domain} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.
# File lib/ovirtsdk4/types.rb, line 22707 def domain=(value) if value.is_a?(Hash) value = Domain.new(value) end @domain = value end
Generates a hash value for this object.
# File lib/ovirtsdk4/types.rb, line 23476 def hash super + @bios.hash + @cluster.hash + @console.hash + @cpu.hash + @cpu_profile.hash + @cpu_shares.hash + @creation_time.hash + @custom_compatibility_version.hash + @custom_cpu_model.hash + @custom_emulated_machine.hash + @custom_properties.hash + @delete_protected.hash + @display.hash + @domain.hash + @high_availability.hash + @initialization.hash + @io.hash + @large_icon.hash + @memory.hash + @memory_policy.hash + @migration.hash + @migration_downtime.hash + @origin.hash + @os.hash + @quota.hash + @rng_device.hash + @serial_number.hash + @small_icon.hash + @soundcard_enabled.hash + @sso.hash + @start_paused.hash + @stateless.hash + @storage_domain.hash + @time_zone.hash + @tunnel_migration.hash + @type.hash + @usb.hash + @virtio_scsi.hash end
Returns the value of the `high_availability` attribute.
@return [HighAvailability]
# File lib/ovirtsdk4/types.rb, line 22719 def high_availability @high_availability end
Sets the value of the `high_availability` attribute.
@param value [HighAvailability, Hash]
The `value` parameter can be an instance of {OvirtSDK4::HighAvailability} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.
# File lib/ovirtsdk4/types.rb, line 22732 def high_availability=(value) if value.is_a?(Hash) value = HighAvailability.new(value) end @high_availability = value end
Returns the value of the `id` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 22744 def id @id end
Sets the value of the `id` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 22753 def id=(value) @id = value end
Returns the value of the `initialization` attribute.
@return [Initialization]
# File lib/ovirtsdk4/types.rb, line 22762 def initialization @initialization end
Sets the value of the `initialization` attribute.
@param value [Initialization, Hash]
The `value` parameter can be an instance of {OvirtSDK4::Initialization} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.
# File lib/ovirtsdk4/types.rb, line 22775 def initialization=(value) if value.is_a?(Hash) value = Initialization.new(value) end @initialization = value end
Returns the value of the `io` attribute.
@return [Io]
# File lib/ovirtsdk4/types.rb, line 22787 def io @io end
Sets the value of the `io` attribute.
@param value [Io, Hash]
The `value` parameter can be an instance of {OvirtSDK4::Io} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.
# File lib/ovirtsdk4/types.rb, line 22800 def io=(value) if value.is_a?(Hash) value = Io.new(value) end @io = value end
Returns the value of the `large_icon` attribute.
@return [Icon]
# File lib/ovirtsdk4/types.rb, line 22812 def large_icon @large_icon end
Sets the value of the `large_icon` attribute.
@param value [Icon, Hash]
The `value` parameter can be an instance of {OvirtSDK4::Icon} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.
# File lib/ovirtsdk4/types.rb, line 22825 def large_icon=(value) if value.is_a?(Hash) value = Icon.new(value) end @large_icon = value end
Returns the value of the `memory` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 22837 def memory @memory end
Sets the value of the `memory` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 22846 def memory=(value) @memory = value end
Returns the value of the `memory_policy` attribute.
@return [MemoryPolicy]
# File lib/ovirtsdk4/types.rb, line 22855 def memory_policy @memory_policy end
Sets the value of the `memory_policy` attribute.
@param value [MemoryPolicy, Hash]
The `value` parameter can be an instance of {OvirtSDK4::MemoryPolicy} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.
# File lib/ovirtsdk4/types.rb, line 22868 def memory_policy=(value) if value.is_a?(Hash) value = MemoryPolicy.new(value) end @memory_policy = value end
Returns the value of the `migration` attribute.
@return [MigrationOptions]
# File lib/ovirtsdk4/types.rb, line 22880 def migration @migration end
Sets the value of the `migration` attribute.
@param value [MigrationOptions, Hash]
The `value` parameter can be an instance of {OvirtSDK4::MigrationOptions} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.
# File lib/ovirtsdk4/types.rb, line 22893 def migration=(value) if value.is_a?(Hash) value = MigrationOptions.new(value) end @migration = value end
Returns the value of the `migration_downtime` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 22905 def migration_downtime @migration_downtime end
Sets the value of the `migration_downtime` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 22914 def migration_downtime=(value) @migration_downtime = value end
Returns the value of the `name` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 22923 def name @name end
Sets the value of the `name` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 22932 def name=(value) @name = value end
Returns the value of the `origin` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 22941 def origin @origin end
Sets the value of the `origin` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 22950 def origin=(value) @origin = value end
Returns the value of the `os` attribute.
@return [OperatingSystem]
# File lib/ovirtsdk4/types.rb, line 22959 def os @os end
Sets the value of the `os` attribute.
@param value [OperatingSystem, Hash]
The `value` parameter can be an instance of {OvirtSDK4::OperatingSystem} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.
# File lib/ovirtsdk4/types.rb, line 22972 def os=(value) if value.is_a?(Hash) value = OperatingSystem.new(value) end @os = value end
Returns the value of the `quota` attribute.
@return [Quota]
# File lib/ovirtsdk4/types.rb, line 22984 def quota @quota end
Sets the value of the `quota` attribute.
@param value [Quota, Hash]
The `value` parameter can be an instance of {OvirtSDK4::Quota} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.
# File lib/ovirtsdk4/types.rb, line 22997 def quota=(value) if value.is_a?(Hash) value = Quota.new(value) end @quota = value end
Returns the value of the `rng_device` attribute.
@return [RngDevice]
# File lib/ovirtsdk4/types.rb, line 23009 def rng_device @rng_device end
Sets the value of the `rng_device` attribute.
@param value [RngDevice, Hash]
The `value` parameter can be an instance of {OvirtSDK4::RngDevice} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.
# File lib/ovirtsdk4/types.rb, line 23022 def rng_device=(value) if value.is_a?(Hash) value = RngDevice.new(value) end @rng_device = value end
Returns the value of the `serial_number` attribute.
@return [SerialNumber]
# File lib/ovirtsdk4/types.rb, line 23034 def serial_number @serial_number end
Sets the value of the `serial_number` attribute.
@param value [SerialNumber, Hash]
The `value` parameter can be an instance of {OvirtSDK4::SerialNumber} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.
# File lib/ovirtsdk4/types.rb, line 23047 def serial_number=(value) if value.is_a?(Hash) value = SerialNumber.new(value) end @serial_number = value end
Returns the value of the `small_icon` attribute.
@return [Icon]
# File lib/ovirtsdk4/types.rb, line 23059 def small_icon @small_icon end
Sets the value of the `small_icon` attribute.
@param value [Icon, Hash]
The `value` parameter can be an instance of {OvirtSDK4::Icon} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.
# File lib/ovirtsdk4/types.rb, line 23072 def small_icon=(value) if value.is_a?(Hash) value = Icon.new(value) end @small_icon = value end
Returns the value of the `soundcard_enabled` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 23084 def soundcard_enabled @soundcard_enabled end
Sets the value of the `soundcard_enabled` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 23093 def soundcard_enabled=(value) @soundcard_enabled = value end
Returns the value of the `sso` attribute.
@return [Sso]
# File lib/ovirtsdk4/types.rb, line 23102 def sso @sso end
Sets the value of the `sso` attribute.
@param value [Sso, Hash]
The `value` parameter can be an instance of {OvirtSDK4::Sso} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.
# File lib/ovirtsdk4/types.rb, line 23115 def sso=(value) if value.is_a?(Hash) value = Sso.new(value) end @sso = value end
Returns the value of the `start_paused` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 23127 def start_paused @start_paused end
Sets the value of the `start_paused` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 23136 def start_paused=(value) @start_paused = value end
Returns the value of the `stateless` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 23145 def stateless @stateless end
Sets the value of the `stateless` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 23154 def stateless=(value) @stateless = value end
Returns the value of the `storage_domain` attribute.
@return [StorageDomain]
# File lib/ovirtsdk4/types.rb, line 23163 def storage_domain @storage_domain end
Sets the value of the `storage_domain` attribute.
@param value [StorageDomain, Hash]
The `value` parameter can be an instance of {OvirtSDK4::StorageDomain} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.
# File lib/ovirtsdk4/types.rb, line 23176 def storage_domain=(value) if value.is_a?(Hash) value = StorageDomain.new(value) end @storage_domain = value end
Returns the value of the `time_zone` attribute.
@return [TimeZone]
# File lib/ovirtsdk4/types.rb, line 23188 def time_zone @time_zone end
Sets the value of the `time_zone` attribute.
@param value [TimeZone, Hash]
The `value` parameter can be an instance of {OvirtSDK4::TimeZone} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.
# File lib/ovirtsdk4/types.rb, line 23201 def time_zone=(value) if value.is_a?(Hash) value = TimeZone.new(value) end @time_zone = value end
Returns the value of the `tunnel_migration` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 23213 def tunnel_migration @tunnel_migration end
Sets the value of the `tunnel_migration` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 23222 def tunnel_migration=(value) @tunnel_migration = value end
Returns the value of the `type` attribute.
@return [VmType]
# File lib/ovirtsdk4/types.rb, line 23231 def type @type end
Sets the value of the `type` attribute.
@param value [VmType]
# File lib/ovirtsdk4/types.rb, line 23240 def type=(value) @type = value end
Returns the value of the `usb` attribute.
@return [Usb]
# File lib/ovirtsdk4/types.rb, line 23249 def usb @usb end
Sets the value of the `usb` attribute.
@param value [Usb, Hash]
The `value` parameter can be an instance of {OvirtSDK4::Usb} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.
# File lib/ovirtsdk4/types.rb, line 23262 def usb=(value) if value.is_a?(Hash) value = Usb.new(value) end @usb = value end
Returns the value of the `virtio_scsi` attribute.
@return [VirtioScsi]
# File lib/ovirtsdk4/types.rb, line 23274 def virtio_scsi @virtio_scsi end
Sets the value of the `virtio_scsi` attribute.
@param value [VirtioScsi, Hash]
The `value` parameter can be an instance of {OvirtSDK4::VirtioScsi} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.
# File lib/ovirtsdk4/types.rb, line 23287 def virtio_scsi=(value) if value.is_a?(Hash) value = VirtioScsi.new(value) end @virtio_scsi = value end