class OvirtSDK4::Vm
Public Class Methods
Creates a new instance of the {Vm} 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 [Array<AffinityLabel>, Array<Hash>] :affinity_labels The values of attribute `affinity_labels`.
@option opts [Array<Application>, Array<Hash>] :applications The values of attribute `applications`.
@option opts [AutoPinningPolicy] :auto_pinning_policy The value of attribute `auto_pinning_policy`.
@option opts [Bios, Hash] :bios The value of attribute `bios`.
@option opts [Array<Cdrom>, Array<Hash>] :cdroms The values of attribute `cdroms`.
@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 [CpuPinningPolicy] :cpu_pinning_policy The value of attribute `cpu_pinning_policy`.
@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 [Array<DiskAttachment>, Array<Hash>] :disk_attachments The values of attribute `disk_attachments`.
@option opts [Display, Hash] :display The value of attribute `display`.
@option opts [Domain, Hash] :domain The value of attribute `domain`.
@option opts [DynamicCpu, Hash] :dynamic_cpu The value of attribute `dynamic_cpu`.
@option opts [ExternalHostProvider, Hash] :external_host_provider The value of attribute `external_host_provider`.
@option opts [Array<Floppy>, Array<Hash>] :floppies The values of attribute `floppies`.
@option opts [String] :fqdn The value of attribute `fqdn`.
@option opts [Array<GraphicsConsole>, Array<Hash>] :graphics_consoles The values of attribute `graphics_consoles`.
@option opts [GuestOperatingSystem, Hash] :guest_operating_system The value of attribute `guest_operating_system`.
@option opts [TimeZone, Hash] :guest_time_zone The value of attribute `guest_time_zone`.
@option opts [Boolean] :has_illegal_images The value of attribute `has_illegal_images`.
@option opts [HighAvailability, Hash] :high_availability The value of attribute `high_availability`.
@option opts [Host, Hash] :host The value of attribute `host`.
@option opts [Array<HostDevice>, Array<Hash>] :host_devices The values of attribute `host_devices`.
@option opts [String] :id The value of attribute `id`.
@option opts [Initialization, Hash] :initialization The value of attribute `initialization`.
@option opts [InstanceType, Hash] :instance_type The value of attribute `instance_type`.
@option opts [Io, Hash] :io The value of attribute `io`.
@option opts [Array<KatelloErratum>, Array<Hash>] :katello_errata The values of attribute `katello_errata`.
@option opts [Icon, Hash] :large_icon The value of attribute `large_icon`.
@option opts [StorageDomainLease, Hash] :lease The value of attribute `lease`.
@option opts [Array<VmMediatedDevice>, Array<Hash>] :mediated_devices The values of attribute `mediated_devices`.
@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 [Boolean] :multi_queues_enabled The value of attribute `multi_queues_enabled`.
@option opts [String] :name The value of attribute `name`.
@option opts [Boolean] :next_run_configuration_exists The value of attribute `next_run_configuration_exists`.
@option opts [Array<Nic>, Array<Hash>] :nics The values of attribute `nics`.
@option opts [Array<NumaNode>, Array<Hash>] :numa_nodes The values of attribute `numa_nodes`.
@option opts [NumaTuneMode] :numa_tune_mode The value of attribute `numa_tune_mode`.
@option opts [String] :origin The value of attribute `origin`.
@option opts [Template, Hash] :original_template The value of attribute `original_template`.
@option opts [OperatingSystem, Hash] :os The value of attribute `os`.
@option opts [Array<Payload>, Array<Hash>] :payloads The values of attribute `payloads`.
@option opts [Array<Permission>, Array<Hash>] :permissions The values of attribute `permissions`.
@option opts [VmPlacementPolicy, Hash] :placement_policy The value of attribute `placement_policy`.
@option opts [Quota, Hash] :quota The value of attribute `quota`.
@option opts [Array<ReportedDevice>, Array<Hash>] :reported_devices The values of attribute `reported_devices`.
@option opts [RngDevice, Hash] :rng_device The value of attribute `rng_device`.
@option opts [Boolean] :run_once The value of attribute `run_once`.
@option opts [SerialNumber, Hash] :serial_number The value of attribute `serial_number`.
@option opts [Array<Session>, Array<Hash>] :sessions The values of attribute `sessions`.
@option opts [Icon, Hash] :small_icon The value of attribute `small_icon`.
@option opts [Array<Snapshot>, Array<Hash>] :snapshots The values of attribute `snapshots`.
@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 [DateTime] :start_time The value of attribute `start_time`.
@option opts [Boolean] :stateless The value of attribute `stateless`.
@option opts [Array<Statistic>, Array<Hash>] :statistics The values of attribute `statistics`.
@option opts [VmStatus] :status The value of attribute `status`.
@option opts [String] :status_detail The value of attribute `status_detail`.
@option opts [String] :stop_reason The value of attribute `stop_reason`.
@option opts [DateTime] :stop_time The value of attribute `stop_time`.
@option opts [StorageDomain, Hash] :storage_domain The value of attribute `storage_domain`.
@option opts [VmStorageErrorResumeBehaviour] :storage_error_resume_behaviour The value of attribute `storage_error_resume_behaviour`.
@option opts [Array<Tag>, Array<Hash>] :tags The values of attribute `tags`.
@option opts [Template, Hash] :template The value of attribute `template`.
@option opts [TimeZone, Hash] :time_zone The value of attribute `time_zone`.
@option opts [Boolean] :tpm_enabled The value of attribute `tpm_enabled`.
@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 [Boolean] :use_latest_template_version The value of attribute `use_latest_template_version`.
@option opts [VirtioScsi, Hash] :virtio_scsi The value of attribute `virtio_scsi`.
@option opts [Integer] :virtio_scsi_multi_queues The value of attribute `virtio_scsi_multi_queues`.
@option opts [Boolean] :virtio_scsi_multi_queues_enabled The value of attribute `virtio_scsi_multi_queues_enabled`.
@option opts [VmPool, Hash] :vm_pool The value of attribute `vm_pool`.
@option opts [Array<Watchdog>, Array<Hash>] :watchdogs The values of attribute `watchdogs`.
OvirtSDK4::VmBase::new
# File lib/ovirtsdk4/types.rb, line 53057 def initialize(opts = {}) super(opts) self.affinity_labels = opts[:affinity_labels] self.applications = opts[:applications] self.cdroms = opts[:cdroms] self.disk_attachments = opts[:disk_attachments] self.dynamic_cpu = opts[:dynamic_cpu] self.external_host_provider = opts[:external_host_provider] self.floppies = opts[:floppies] self.fqdn = opts[:fqdn] self.graphics_consoles = opts[:graphics_consoles] self.guest_operating_system = opts[:guest_operating_system] self.guest_time_zone = opts[:guest_time_zone] self.has_illegal_images = opts[:has_illegal_images] self.host = opts[:host] self.host_devices = opts[:host_devices] self.instance_type = opts[:instance_type] self.katello_errata = opts[:katello_errata] self.mediated_devices = opts[:mediated_devices] self.next_run_configuration_exists = opts[:next_run_configuration_exists] self.nics = opts[:nics] self.numa_nodes = opts[:numa_nodes] self.numa_tune_mode = opts[:numa_tune_mode] self.original_template = opts[:original_template] self.payloads = opts[:payloads] self.permissions = opts[:permissions] self.reported_devices = opts[:reported_devices] self.run_once = opts[:run_once] self.sessions = opts[:sessions] self.snapshots = opts[:snapshots] self.start_time = opts[:start_time] self.statistics = opts[:statistics] self.status = opts[:status] self.status_detail = opts[:status_detail] self.stop_reason = opts[:stop_reason] self.stop_time = opts[:stop_time] self.tags = opts[:tags] self.template = opts[:template] self.use_latest_template_version = opts[:use_latest_template_version] self.vm_pool = opts[:vm_pool] self.watchdogs = opts[:watchdogs] end
Public Instance Methods
Returns `true` if `self` and `other` have the same attributes and values.
# File lib/ovirtsdk4/types.rb, line 53103 def ==(other) super && @affinity_labels == other.affinity_labels && @applications == other.applications && @cdroms == other.cdroms && @disk_attachments == other.disk_attachments && @dynamic_cpu == other.dynamic_cpu && @external_host_provider == other.external_host_provider && @floppies == other.floppies && @fqdn == other.fqdn && @graphics_consoles == other.graphics_consoles && @guest_operating_system == other.guest_operating_system && @guest_time_zone == other.guest_time_zone && @has_illegal_images == other.has_illegal_images && @host == other.host && @host_devices == other.host_devices && @instance_type == other.instance_type && @katello_errata == other.katello_errata && @mediated_devices == other.mediated_devices && @next_run_configuration_exists == other.next_run_configuration_exists && @nics == other.nics && @numa_nodes == other.numa_nodes && @numa_tune_mode == other.numa_tune_mode && @original_template == other.original_template && @payloads == other.payloads && @permissions == other.permissions && @reported_devices == other.reported_devices && @run_once == other.run_once && @sessions == other.sessions && @snapshots == other.snapshots && @start_time == other.start_time && @statistics == other.statistics && @status == other.status && @status_detail == other.status_detail && @stop_reason == other.stop_reason && @stop_time == other.stop_time && @tags == other.tags && @template == other.template && @use_latest_template_version == other.use_latest_template_version && @vm_pool == other.vm_pool && @watchdogs == other.watchdogs end
Returns the value of the `affinity_labels` attribute.
@return [Array<AffinityLabel>]
# File lib/ovirtsdk4/types.rb, line 50849 def affinity_labels @affinity_labels end
Sets the value of the `affinity_labels` attribute.
@param list [Array<AffinityLabel>]
# File lib/ovirtsdk4/types.rb, line 50858 def affinity_labels=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = AffinityLabel.new(value) end end end @affinity_labels = list end
Returns the value of the `applications` attribute.
@return [Array<Application>]
# File lib/ovirtsdk4/types.rb, line 50875 def applications @applications end
Sets the value of the `applications` attribute.
@param list [Array<Application>]
# File lib/ovirtsdk4/types.rb, line 50884 def applications=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Application.new(value) end end end @applications = list end
Returns the value of the `auto_pinning_policy` attribute.
@return [AutoPinningPolicy]
# File lib/ovirtsdk4/types.rb, line 50901 def auto_pinning_policy @auto_pinning_policy end
Sets the value of the `auto_pinning_policy` attribute.
@param value [AutoPinningPolicy]
# File lib/ovirtsdk4/types.rb, line 50910 def auto_pinning_policy=(value) @auto_pinning_policy = value end
Returns the value of the `bios` attribute.
@return [Bios]
# File lib/ovirtsdk4/types.rb, line 50919 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 50932 def bios=(value) if value.is_a?(Hash) value = Bios.new(value) end @bios = value end
Returns the value of the `cdroms` attribute.
@return [Array<Cdrom>]
# File lib/ovirtsdk4/types.rb, line 50944 def cdroms @cdroms end
Sets the value of the `cdroms` attribute.
@param list [Array<Cdrom>]
# File lib/ovirtsdk4/types.rb, line 50953 def cdroms=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Cdrom.new(value) end end end @cdroms = list end
Returns the value of the `cluster` attribute.
@return [Cluster]
# File lib/ovirtsdk4/types.rb, line 50970 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 50983 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 50995 def comment @comment end
Sets the value of the `comment` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 51004 def comment=(value) @comment = value end
Returns the value of the `console` attribute.
@return [Console]
# File lib/ovirtsdk4/types.rb, line 51013 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 51026 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 51038 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 51051 def cpu=(value) if value.is_a?(Hash) value = Cpu.new(value) end @cpu = value end
Returns the value of the `cpu_pinning_policy` attribute.
@return [CpuPinningPolicy]
# File lib/ovirtsdk4/types.rb, line 51063 def cpu_pinning_policy @cpu_pinning_policy end
Sets the value of the `cpu_pinning_policy` attribute.
@param value [CpuPinningPolicy]
# File lib/ovirtsdk4/types.rb, line 51072 def cpu_pinning_policy=(value) @cpu_pinning_policy = value end
Returns the value of the `cpu_profile` attribute.
@return [CpuProfile]
# File lib/ovirtsdk4/types.rb, line 51081 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 51094 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 51124 def creation_time @creation_time end
Sets the value of the `creation_time` attribute.
@param value [DateTime]
# File lib/ovirtsdk4/types.rb, line 51133 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 51142 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 51155 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 51167 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 51176 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 51185 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 51194 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 51203 def custom_properties @custom_properties end
Sets the value of the `custom_properties` attribute.
@param list [Array<CustomProperty>]
# File lib/ovirtsdk4/types.rb, line 51212 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 51229 def delete_protected @delete_protected end
Sets the value of the `delete_protected` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 51238 def delete_protected=(value) @delete_protected = value end
Returns the value of the `description` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 51247 def description @description end
Sets the value of the `description` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 51256 def description=(value) @description = value end
Returns the value of the `disk_attachments` attribute.
@return [Array<DiskAttachment>]
# File lib/ovirtsdk4/types.rb, line 51265 def disk_attachments @disk_attachments end
Sets the value of the `disk_attachments` attribute.
@param list [Array<DiskAttachment>]
# File lib/ovirtsdk4/types.rb, line 51274 def disk_attachments=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = DiskAttachment.new(value) end end end @disk_attachments = list end
Returns the value of the `display` attribute.
@return [Display]
# File lib/ovirtsdk4/types.rb, line 51291 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 51304 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 51316 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 51329 def domain=(value) if value.is_a?(Hash) value = Domain.new(value) end @domain = value end
Returns the value of the `dynamic_cpu` attribute.
@return [DynamicCpu]
# File lib/ovirtsdk4/types.rb, line 51341 def dynamic_cpu @dynamic_cpu end
Sets the value of the `dynamic_cpu` attribute.
@param value [DynamicCpu, Hash]
The `value` parameter can be an instance of {OvirtSDK4::DynamicCpu} 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 51354 def dynamic_cpu=(value) if value.is_a?(Hash) value = DynamicCpu.new(value) end @dynamic_cpu = value end
Returns the value of the `external_host_provider` attribute.
@return [ExternalHostProvider]
# File lib/ovirtsdk4/types.rb, line 51366 def external_host_provider @external_host_provider end
Sets the value of the `external_host_provider` attribute.
@param value [ExternalHostProvider, Hash]
The `value` parameter can be an instance of {OvirtSDK4::ExternalHostProvider} 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 51379 def external_host_provider=(value) if value.is_a?(Hash) value = ExternalHostProvider.new(value) end @external_host_provider = value end
Returns the value of the `floppies` attribute.
@return [Array<Floppy>]
# File lib/ovirtsdk4/types.rb, line 51391 def floppies @floppies end
Sets the value of the `floppies` attribute.
@param list [Array<Floppy>]
# File lib/ovirtsdk4/types.rb, line 51400 def floppies=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Floppy.new(value) end end end @floppies = list end
Returns the value of the `fqdn` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 51417 def fqdn @fqdn end
Sets the value of the `fqdn` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 51426 def fqdn=(value) @fqdn = value end
Returns the value of the `graphics_consoles` attribute.
@return [Array<GraphicsConsole>]
# File lib/ovirtsdk4/types.rb, line 51435 def graphics_consoles @graphics_consoles end
Sets the value of the `graphics_consoles` attribute.
@param list [Array<GraphicsConsole>]
# File lib/ovirtsdk4/types.rb, line 51444 def graphics_consoles=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = GraphicsConsole.new(value) end end end @graphics_consoles = list end
Returns the value of the `guest_operating_system` attribute.
@return [GuestOperatingSystem]
# File lib/ovirtsdk4/types.rb, line 51461 def guest_operating_system @guest_operating_system end
Sets the value of the `guest_operating_system` attribute.
@param value [GuestOperatingSystem, Hash]
The `value` parameter can be an instance of {OvirtSDK4::GuestOperatingSystem} 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 51474 def guest_operating_system=(value) if value.is_a?(Hash) value = GuestOperatingSystem.new(value) end @guest_operating_system = value end
Returns the value of the `guest_time_zone` attribute.
@return [TimeZone]
# File lib/ovirtsdk4/types.rb, line 51486 def guest_time_zone @guest_time_zone end
Sets the value of the `guest_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 51499 def guest_time_zone=(value) if value.is_a?(Hash) value = TimeZone.new(value) end @guest_time_zone = value end
Returns the value of the `has_illegal_images` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 51511 def has_illegal_images @has_illegal_images end
Sets the value of the `has_illegal_images` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 51520 def has_illegal_images=(value) @has_illegal_images = value end
Generates a hash value for this object.
OvirtSDK4::VmBase#hash
# File lib/ovirtsdk4/types.rb, line 53149 def hash super + @affinity_labels.hash + @applications.hash + @cdroms.hash + @disk_attachments.hash + @dynamic_cpu.hash + @external_host_provider.hash + @floppies.hash + @fqdn.hash + @graphics_consoles.hash + @guest_operating_system.hash + @guest_time_zone.hash + @has_illegal_images.hash + @host.hash + @host_devices.hash + @instance_type.hash + @katello_errata.hash + @mediated_devices.hash + @next_run_configuration_exists.hash + @nics.hash + @numa_nodes.hash + @numa_tune_mode.hash + @original_template.hash + @payloads.hash + @permissions.hash + @reported_devices.hash + @run_once.hash + @sessions.hash + @snapshots.hash + @start_time.hash + @statistics.hash + @status.hash + @status_detail.hash + @stop_reason.hash + @stop_time.hash + @tags.hash + @template.hash + @use_latest_template_version.hash + @vm_pool.hash + @watchdogs.hash end
Returns the value of the `high_availability` attribute.
@return [HighAvailability]
# File lib/ovirtsdk4/types.rb, line 51529 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 51542 def high_availability=(value) if value.is_a?(Hash) value = HighAvailability.new(value) end @high_availability = value end
Returns the value of the `host` attribute.
@return [Host]
# File lib/ovirtsdk4/types.rb, line 51554 def host @host end
Sets the value of the `host` attribute.
@param value [Host, Hash]
The `value` parameter can be an instance of {OvirtSDK4::Host} 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 51567 def host=(value) if value.is_a?(Hash) value = Host.new(value) end @host = value end
Returns the value of the `host_devices` attribute.
@return [Array<HostDevice>]
# File lib/ovirtsdk4/types.rb, line 51579 def host_devices @host_devices end
Sets the value of the `host_devices` attribute.
@param list [Array<HostDevice>]
# File lib/ovirtsdk4/types.rb, line 51588 def host_devices=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = HostDevice.new(value) end end end @host_devices = list end
Returns the value of the `id` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 51605 def id @id end
Sets the value of the `id` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 51614 def id=(value) @id = value end
Returns the value of the `initialization` attribute.
@return [Initialization]
# File lib/ovirtsdk4/types.rb, line 51623 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 51636 def initialization=(value) if value.is_a?(Hash) value = Initialization.new(value) end @initialization = value end
Returns the value of the `instance_type` attribute.
@return [InstanceType]
# File lib/ovirtsdk4/types.rb, line 51648 def instance_type @instance_type end
Sets the value of the `instance_type` attribute.
@param value [InstanceType, Hash]
The `value` parameter can be an instance of {OvirtSDK4::InstanceType} 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 51661 def instance_type=(value) if value.is_a?(Hash) value = InstanceType.new(value) end @instance_type = value end
Returns the value of the `io` attribute.
@return [Io]
# File lib/ovirtsdk4/types.rb, line 51673 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 51686 def io=(value) if value.is_a?(Hash) value = Io.new(value) end @io = value end
Returns the value of the `katello_errata` attribute.
@return [Array<KatelloErratum>]
# File lib/ovirtsdk4/types.rb, line 51698 def katello_errata @katello_errata end
Sets the value of the `katello_errata` attribute.
@param list [Array<KatelloErratum>]
# File lib/ovirtsdk4/types.rb, line 51707 def katello_errata=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = KatelloErratum.new(value) end end end @katello_errata = list end
Returns the value of the `large_icon` attribute.
@return [Icon]
# File lib/ovirtsdk4/types.rb, line 51724 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 51737 def large_icon=(value) if value.is_a?(Hash) value = Icon.new(value) end @large_icon = value end
Returns the value of the `lease` attribute.
@return [StorageDomainLease]
# File lib/ovirtsdk4/types.rb, line 51749 def lease @lease end
Sets the value of the `lease` attribute.
@param value [StorageDomainLease, Hash]
The `value` parameter can be an instance of {OvirtSDK4::StorageDomainLease} 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 51762 def lease=(value) if value.is_a?(Hash) value = StorageDomainLease.new(value) end @lease = value end
Returns the value of the `mediated_devices` attribute.
@return [Array<VmMediatedDevice>]
# File lib/ovirtsdk4/types.rb, line 51774 def mediated_devices @mediated_devices end
Sets the value of the `mediated_devices` attribute.
@param list [Array<VmMediatedDevice>]
# File lib/ovirtsdk4/types.rb, line 51783 def mediated_devices=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = VmMediatedDevice.new(value) end end end @mediated_devices = list end
Returns the value of the `memory` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 51800 def memory @memory end
Sets the value of the `memory` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 51809 def memory=(value) @memory = value end
Returns the value of the `memory_policy` attribute.
@return [MemoryPolicy]
# File lib/ovirtsdk4/types.rb, line 51818 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 51831 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 51843 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 51856 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 51868 def migration_downtime @migration_downtime end
Sets the value of the `migration_downtime` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 51877 def migration_downtime=(value) @migration_downtime = value end
Returns the value of the `multi_queues_enabled` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 51886 def multi_queues_enabled @multi_queues_enabled end
Sets the value of the `multi_queues_enabled` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 51895 def multi_queues_enabled=(value) @multi_queues_enabled = value end
Returns the value of the `name` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 51904 def name @name end
Sets the value of the `name` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 51913 def name=(value) @name = value end
Returns the value of the `next_run_configuration_exists` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 51922 def next_run_configuration_exists @next_run_configuration_exists end
Sets the value of the `next_run_configuration_exists` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 51931 def next_run_configuration_exists=(value) @next_run_configuration_exists = value end
Returns the value of the `nics` attribute.
@return [Array<Nic>]
# File lib/ovirtsdk4/types.rb, line 51940 def nics @nics end
Sets the value of the `nics` attribute.
@param list [Array<Nic>]
# File lib/ovirtsdk4/types.rb, line 51949 def nics=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Nic.new(value) end end end @nics = list end
Returns the value of the `numa_nodes` attribute.
@return [Array<NumaNode>]
# File lib/ovirtsdk4/types.rb, line 51966 def numa_nodes @numa_nodes end
Sets the value of the `numa_nodes` attribute.
@param list [Array<NumaNode>]
# File lib/ovirtsdk4/types.rb, line 51975 def numa_nodes=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = NumaNode.new(value) end end end @numa_nodes = list end
Returns the value of the `numa_tune_mode` attribute.
@return [NumaTuneMode]
# File lib/ovirtsdk4/types.rb, line 51992 def numa_tune_mode @numa_tune_mode end
Sets the value of the `numa_tune_mode` attribute.
@param value [NumaTuneMode]
# File lib/ovirtsdk4/types.rb, line 52001 def numa_tune_mode=(value) @numa_tune_mode = value end
Returns the value of the `origin` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 52010 def origin @origin end
Sets the value of the `origin` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 52019 def origin=(value) @origin = value end
Returns the value of the `original_template` attribute.
@return [Template]
# File lib/ovirtsdk4/types.rb, line 52028 def original_template @original_template end
Sets the value of the `original_template` attribute.
@param value [Template, Hash]
The `value` parameter can be an instance of {OvirtSDK4::Template} 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 52041 def original_template=(value) if value.is_a?(Hash) value = Template.new(value) end @original_template = value end
Returns the value of the `os` attribute.
@return [OperatingSystem]
# File lib/ovirtsdk4/types.rb, line 52053 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 52066 def os=(value) if value.is_a?(Hash) value = OperatingSystem.new(value) end @os = value end
Returns the value of the `payloads` attribute.
@return [Array<Payload>]
# File lib/ovirtsdk4/types.rb, line 52078 def payloads @payloads end
Sets the value of the `payloads` attribute.
@param list [Array<Payload>]
# File lib/ovirtsdk4/types.rb, line 52087 def payloads=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Payload.new(value) end end end @payloads = list end
Returns the value of the `permissions` attribute.
@return [Array<Permission>]
# File lib/ovirtsdk4/types.rb, line 52104 def permissions @permissions end
Sets the value of the `permissions` attribute.
@param list [Array<Permission>]
# File lib/ovirtsdk4/types.rb, line 52113 def permissions=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Permission.new(value) end end end @permissions = list end
Returns the value of the `placement_policy` attribute.
@return [VmPlacementPolicy]
# File lib/ovirtsdk4/types.rb, line 52130 def placement_policy @placement_policy end
Sets the value of the `placement_policy` attribute.
@param value [VmPlacementPolicy, Hash]
The `value` parameter can be an instance of {OvirtSDK4::VmPlacementPolicy} 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 52143 def placement_policy=(value) if value.is_a?(Hash) value = VmPlacementPolicy.new(value) end @placement_policy = value end
Returns the value of the `quota` attribute.
@return [Quota]
# File lib/ovirtsdk4/types.rb, line 52155 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 52168 def quota=(value) if value.is_a?(Hash) value = Quota.new(value) end @quota = value end
Returns the value of the `reported_devices` attribute.
@return [Array<ReportedDevice>]
# File lib/ovirtsdk4/types.rb, line 52180 def reported_devices @reported_devices end
Sets the value of the `reported_devices` attribute.
@param list [Array<ReportedDevice>]
# File lib/ovirtsdk4/types.rb, line 52189 def reported_devices=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = ReportedDevice.new(value) end end end @reported_devices = list end
Returns the value of the `rng_device` attribute.
@return [RngDevice]
# File lib/ovirtsdk4/types.rb, line 52206 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 52219 def rng_device=(value) if value.is_a?(Hash) value = RngDevice.new(value) end @rng_device = value end
Returns the value of the `run_once` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 52231 def run_once @run_once end
Sets the value of the `run_once` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 52240 def run_once=(value) @run_once = value end
Returns the value of the `serial_number` attribute.
@return [SerialNumber]
# File lib/ovirtsdk4/types.rb, line 52249 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 52262 def serial_number=(value) if value.is_a?(Hash) value = SerialNumber.new(value) end @serial_number = value end
Returns the value of the `sessions` attribute.
@return [Array<Session>]
# File lib/ovirtsdk4/types.rb, line 52274 def sessions @sessions end
Sets the value of the `sessions` attribute.
@param list [Array<Session>]
# File lib/ovirtsdk4/types.rb, line 52283 def sessions=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Session.new(value) end end end @sessions = list end
Returns the value of the `small_icon` attribute.
@return [Icon]
# File lib/ovirtsdk4/types.rb, line 52300 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 52313 def small_icon=(value) if value.is_a?(Hash) value = Icon.new(value) end @small_icon = value end
Returns the value of the `snapshots` attribute.
@return [Array<Snapshot>]
# File lib/ovirtsdk4/types.rb, line 52325 def snapshots @snapshots end
Sets the value of the `snapshots` attribute.
@param list [Array<Snapshot>]
# File lib/ovirtsdk4/types.rb, line 52334 def snapshots=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Snapshot.new(value) end end end @snapshots = list end
Returns the value of the `soundcard_enabled` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 52351 def soundcard_enabled @soundcard_enabled end
Sets the value of the `soundcard_enabled` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 52360 def soundcard_enabled=(value) @soundcard_enabled = value end
Returns the value of the `sso` attribute.
@return [Sso]
# File lib/ovirtsdk4/types.rb, line 52369 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 52382 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 52394 def start_paused @start_paused end
Sets the value of the `start_paused` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 52403 def start_paused=(value) @start_paused = value end
Returns the value of the `start_time` attribute.
@return [DateTime]
# File lib/ovirtsdk4/types.rb, line 52412 def start_time @start_time end
Sets the value of the `start_time` attribute.
@param value [DateTime]
# File lib/ovirtsdk4/types.rb, line 52421 def start_time=(value) @start_time = value end
Returns the value of the `stateless` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 52430 def stateless @stateless end
Sets the value of the `stateless` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 52439 def stateless=(value) @stateless = value end
Returns the value of the `statistics` attribute.
@return [Array<Statistic>]
# File lib/ovirtsdk4/types.rb, line 52448 def statistics @statistics end
Sets the value of the `statistics` attribute.
@param list [Array<Statistic>]
# File lib/ovirtsdk4/types.rb, line 52457 def statistics=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Statistic.new(value) end end end @statistics = list end
Returns the value of the `status` attribute.
@return [VmStatus]
# File lib/ovirtsdk4/types.rb, line 52474 def status @status end
Sets the value of the `status` attribute.
@param value [VmStatus]
# File lib/ovirtsdk4/types.rb, line 52483 def status=(value) @status = value end
Returns the value of the `status_detail` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 52492 def status_detail @status_detail end
Sets the value of the `status_detail` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 52501 def status_detail=(value) @status_detail = value end
Returns the value of the `stop_reason` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 52510 def stop_reason @stop_reason end
Sets the value of the `stop_reason` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 52519 def stop_reason=(value) @stop_reason = value end
Returns the value of the `stop_time` attribute.
@return [DateTime]
# File lib/ovirtsdk4/types.rb, line 52528 def stop_time @stop_time end
Sets the value of the `stop_time` attribute.
@param value [DateTime]
# File lib/ovirtsdk4/types.rb, line 52537 def stop_time=(value) @stop_time = value end
Returns the value of the `storage_domain` attribute.
@return [StorageDomain]
# File lib/ovirtsdk4/types.rb, line 52546 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 52559 def storage_domain=(value) if value.is_a?(Hash) value = StorageDomain.new(value) end @storage_domain = value end
Returns the value of the `storage_error_resume_behaviour` attribute.
@return [VmStorageErrorResumeBehaviour]
# File lib/ovirtsdk4/types.rb, line 52571 def storage_error_resume_behaviour @storage_error_resume_behaviour end
Sets the value of the `storage_error_resume_behaviour` attribute.
@param value [VmStorageErrorResumeBehaviour]
# File lib/ovirtsdk4/types.rb, line 52580 def storage_error_resume_behaviour=(value) @storage_error_resume_behaviour = value end
Returns the value of the `template` attribute.
@return [Template]
# File lib/ovirtsdk4/types.rb, line 52615 def template @template end
Sets the value of the `template` attribute.
@param value [Template, Hash]
The `value` parameter can be an instance of {OvirtSDK4::Template} 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 52628 def template=(value) if value.is_a?(Hash) value = Template.new(value) end @template = value end
Returns the value of the `time_zone` attribute.
@return [TimeZone]
# File lib/ovirtsdk4/types.rb, line 52640 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 52653 def time_zone=(value) if value.is_a?(Hash) value = TimeZone.new(value) end @time_zone = value end
Returns the value of the `tpm_enabled` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 52665 def tpm_enabled @tpm_enabled end
Sets the value of the `tpm_enabled` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 52674 def tpm_enabled=(value) @tpm_enabled = value end
Returns the value of the `tunnel_migration` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 52683 def tunnel_migration @tunnel_migration end
Sets the value of the `tunnel_migration` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 52692 def tunnel_migration=(value) @tunnel_migration = value end
Returns the value of the `type` attribute.
@return [VmType]
# File lib/ovirtsdk4/types.rb, line 52701 def type @type end
Sets the value of the `type` attribute.
@param value [VmType]
# File lib/ovirtsdk4/types.rb, line 52710 def type=(value) @type = value end
Returns the value of the `usb` attribute.
@return [Usb]
# File lib/ovirtsdk4/types.rb, line 52719 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 52732 def usb=(value) if value.is_a?(Hash) value = Usb.new(value) end @usb = value end
Returns the value of the `use_latest_template_version` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 52744 def use_latest_template_version @use_latest_template_version end
Sets the value of the `use_latest_template_version` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 52753 def use_latest_template_version=(value) @use_latest_template_version = value end
Returns the value of the `virtio_scsi` attribute.
@return [VirtioScsi]
# File lib/ovirtsdk4/types.rb, line 52762 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 52775 def virtio_scsi=(value) if value.is_a?(Hash) value = VirtioScsi.new(value) end @virtio_scsi = value end
Returns the value of the `virtio_scsi_multi_queues` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 52787 def virtio_scsi_multi_queues @virtio_scsi_multi_queues end
Sets the value of the `virtio_scsi_multi_queues` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 52796 def virtio_scsi_multi_queues=(value) @virtio_scsi_multi_queues = value end
Returns the value of the `virtio_scsi_multi_queues_enabled` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 52805 def virtio_scsi_multi_queues_enabled @virtio_scsi_multi_queues_enabled end
Sets the value of the `virtio_scsi_multi_queues_enabled` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 52814 def virtio_scsi_multi_queues_enabled=(value) @virtio_scsi_multi_queues_enabled = value end
Returns the value of the `vm_pool` attribute.
@return [VmPool]
# File lib/ovirtsdk4/types.rb, line 52823 def vm_pool @vm_pool end
Sets the value of the `vm_pool` attribute.
@param value [VmPool, Hash]
The `value` parameter can be an instance of {OvirtSDK4::VmPool} 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 52836 def vm_pool=(value) if value.is_a?(Hash) value = VmPool.new(value) end @vm_pool = value end
Returns the value of the `watchdogs` attribute.
@return [Array<Watchdog>]
# File lib/ovirtsdk4/types.rb, line 52848 def watchdogs @watchdogs end
Sets the value of the `watchdogs` attribute.
@param list [Array<Watchdog>]
# File lib/ovirtsdk4/types.rb, line 52857 def watchdogs=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Watchdog.new(value) end end end @watchdogs = list end