Class: OvirtSDK4::Vm
- Inherits:
-
VmBase
- Object
- Struct
- Identified
- VmBase
- OvirtSDK4::Vm
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#affinity_labels ⇒ Array<AffinityLabel>
Returns the value of the
affinity_labels
attribute. -
#affinity_labels=(list) ⇒ Object
Sets the value of the
affinity_labels
attribute. -
#applications ⇒ Array<Application>
Returns the value of the
applications
attribute. -
#applications=(list) ⇒ Object
Sets the value of the
applications
attribute. -
#bios ⇒ Bios
Returns the value of the
bios
attribute. -
#bios=(value) ⇒ Object
Sets the value of the
bios
attribute. -
#cdroms ⇒ Array<Cdrom>
Returns the value of the
cdroms
attribute. -
#cdroms=(list) ⇒ Object
Sets the value of the
cdroms
attribute. -
#cluster ⇒ Cluster
Returns the value of the
cluster
attribute. -
#cluster=(value) ⇒ Object
Sets the value of the
cluster
attribute. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#console ⇒ Console
Returns the value of the
console
attribute. -
#console=(value) ⇒ Object
Sets the value of the
console
attribute. -
#cpu ⇒ Cpu
Returns the value of the
cpu
attribute. -
#cpu=(value) ⇒ Object
Sets the value of the
cpu
attribute. -
#cpu_profile ⇒ CpuProfile
Returns the value of the
cpu_profile
attribute. -
#cpu_profile=(value) ⇒ Object
Sets the value of the
cpu_profile
attribute. -
#cpu_shares ⇒ Integer
Returns the value of the
cpu_shares
attribute. -
#cpu_shares=(value) ⇒ Object
Sets the value of the
cpu_shares
attribute. -
#creation_time ⇒ DateTime
Returns the value of the
creation_time
attribute. -
#creation_time=(value) ⇒ Object
Sets the value of the
creation_time
attribute. -
#custom_compatibility_version ⇒ Version
Returns the value of the
custom_compatibility_version
attribute. -
#custom_compatibility_version=(value) ⇒ Object
Sets the value of the
custom_compatibility_version
attribute. -
#custom_cpu_model ⇒ String
Returns the value of the
custom_cpu_model
attribute. -
#custom_cpu_model=(value) ⇒ Object
Sets the value of the
custom_cpu_model
attribute. -
#custom_emulated_machine ⇒ String
Returns the value of the
custom_emulated_machine
attribute. -
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the
custom_emulated_machine
attribute. -
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the
custom_properties
attribute. -
#custom_properties=(list) ⇒ Object
Sets the value of the
custom_properties
attribute. -
#delete_protected ⇒ Boolean
Returns the value of the
delete_protected
attribute. -
#delete_protected=(value) ⇒ Object
Sets the value of the
delete_protected
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the
disk_attachments
attribute. -
#disk_attachments=(list) ⇒ Object
Sets the value of the
disk_attachments
attribute. -
#display ⇒ Display
Returns the value of the
display
attribute. -
#display=(value) ⇒ Object
Sets the value of the
display
attribute. -
#domain ⇒ Domain
Returns the value of the
domain
attribute. -
#domain=(value) ⇒ Object
Sets the value of the
domain
attribute. -
#external_host_provider ⇒ ExternalHostProvider
Returns the value of the
external_host_provider
attribute. -
#external_host_provider=(value) ⇒ Object
Sets the value of the
external_host_provider
attribute. -
#floppies ⇒ Array<Floppy>
Returns the value of the
floppies
attribute. -
#floppies=(list) ⇒ Object
Sets the value of the
floppies
attribute. -
#fqdn ⇒ String
Returns the value of the
fqdn
attribute. -
#fqdn=(value) ⇒ Object
Sets the value of the
fqdn
attribute. -
#graphics_consoles ⇒ Array<GraphicsConsole>
Returns the value of the
graphics_consoles
attribute. -
#graphics_consoles=(list) ⇒ Object
Sets the value of the
graphics_consoles
attribute. -
#guest_operating_system ⇒ GuestOperatingSystem
Returns the value of the
guest_operating_system
attribute. -
#guest_operating_system=(value) ⇒ Object
Sets the value of the
guest_operating_system
attribute. -
#guest_time_zone ⇒ TimeZone
Returns the value of the
guest_time_zone
attribute. -
#guest_time_zone=(value) ⇒ Object
Sets the value of the
guest_time_zone
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#high_availability ⇒ HighAvailability
Returns the value of the
high_availability
attribute. -
#high_availability=(value) ⇒ Object
Sets the value of the
high_availability
attribute. -
#host ⇒ Host
Returns the value of the
host
attribute. -
#host=(value) ⇒ Object
Sets the value of the
host
attribute. -
#host_devices ⇒ Array<HostDevice>
Returns the value of the
host_devices
attribute. -
#host_devices=(list) ⇒ Object
Sets the value of the
host_devices
attribute. -
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialization ⇒ Initialization
Returns the value of the
initialization
attribute. -
#initialization=(value) ⇒ Object
Sets the value of the
initialization
attribute. -
#initialize(opts = {}) ⇒ Vm
constructor
Creates a new instance of the Vm class.
-
#instance_type ⇒ InstanceType
Returns the value of the
instance_type
attribute. -
#instance_type=(value) ⇒ Object
Sets the value of the
instance_type
attribute. -
#io ⇒ Io
Returns the value of the
io
attribute. -
#io=(value) ⇒ Object
Sets the value of the
io
attribute. -
#katello_errata ⇒ Array<KatelloErratum>
Returns the value of the
katello_errata
attribute. -
#katello_errata=(list) ⇒ Object
Sets the value of the
katello_errata
attribute. -
#large_icon ⇒ Icon
Returns the value of the
large_icon
attribute. -
#large_icon=(value) ⇒ Object
Sets the value of the
large_icon
attribute. -
#lease ⇒ StorageDomainLease
Returns the value of the
lease
attribute. -
#lease=(value) ⇒ Object
Sets the value of the
lease
attribute. -
#memory ⇒ Integer
Returns the value of the
memory
attribute. -
#memory=(value) ⇒ Object
Sets the value of the
memory
attribute. -
#memory_policy ⇒ MemoryPolicy
Returns the value of the
memory_policy
attribute. -
#memory_policy=(value) ⇒ Object
Sets the value of the
memory_policy
attribute. -
#migration ⇒ MigrationOptions
Returns the value of the
migration
attribute. -
#migration=(value) ⇒ Object
Sets the value of the
migration
attribute. -
#migration_downtime ⇒ Integer
Returns the value of the
migration_downtime
attribute. -
#migration_downtime=(value) ⇒ Object
Sets the value of the
migration_downtime
attribute. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#next_run_configuration_exists ⇒ Boolean
Returns the value of the
next_run_configuration_exists
attribute. -
#next_run_configuration_exists=(value) ⇒ Object
Sets the value of the
next_run_configuration_exists
attribute. -
#nics ⇒ Array<Nic>
Returns the value of the
nics
attribute. -
#nics=(list) ⇒ Object
Sets the value of the
nics
attribute. -
#numa_nodes ⇒ Array<NumaNode>
Returns the value of the
numa_nodes
attribute. -
#numa_nodes=(list) ⇒ Object
Sets the value of the
numa_nodes
attribute. -
#numa_tune_mode ⇒ NumaTuneMode
Returns the value of the
numa_tune_mode
attribute. -
#numa_tune_mode=(value) ⇒ Object
Sets the value of the
numa_tune_mode
attribute. -
#origin ⇒ String
Returns the value of the
origin
attribute. -
#origin=(value) ⇒ Object
Sets the value of the
origin
attribute. -
#original_template ⇒ Template
Returns the value of the
original_template
attribute. -
#original_template=(value) ⇒ Object
Sets the value of the
original_template
attribute. -
#os ⇒ OperatingSystem
Returns the value of the
os
attribute. -
#os=(value) ⇒ Object
Sets the value of the
os
attribute. -
#payloads ⇒ Array<Payload>
Returns the value of the
payloads
attribute. -
#payloads=(list) ⇒ Object
Sets the value of the
payloads
attribute. -
#permissions ⇒ Array<Permission>
Returns the value of the
permissions
attribute. -
#permissions=(list) ⇒ Object
Sets the value of the
permissions
attribute. -
#placement_policy ⇒ VmPlacementPolicy
Returns the value of the
placement_policy
attribute. -
#placement_policy=(value) ⇒ Object
Sets the value of the
placement_policy
attribute. -
#quota ⇒ Quota
Returns the value of the
quota
attribute. -
#quota=(value) ⇒ Object
Sets the value of the
quota
attribute. -
#reported_devices ⇒ Array<ReportedDevice>
Returns the value of the
reported_devices
attribute. -
#reported_devices=(list) ⇒ Object
Sets the value of the
reported_devices
attribute. -
#rng_device ⇒ RngDevice
Returns the value of the
rng_device
attribute. -
#rng_device=(value) ⇒ Object
Sets the value of the
rng_device
attribute. -
#run_once ⇒ Boolean
Returns the value of the
run_once
attribute. -
#run_once=(value) ⇒ Object
Sets the value of the
run_once
attribute. -
#serial_number ⇒ SerialNumber
Returns the value of the
serial_number
attribute. -
#serial_number=(value) ⇒ Object
Sets the value of the
serial_number
attribute. -
#sessions ⇒ Array<Session>
Returns the value of the
sessions
attribute. -
#sessions=(list) ⇒ Object
Sets the value of the
sessions
attribute. -
#small_icon ⇒ Icon
Returns the value of the
small_icon
attribute. -
#small_icon=(value) ⇒ Object
Sets the value of the
small_icon
attribute. -
#snapshots ⇒ Array<Snapshot>
Returns the value of the
snapshots
attribute. -
#snapshots=(list) ⇒ Object
Sets the value of the
snapshots
attribute. -
#soundcard_enabled ⇒ Boolean
Returns the value of the
soundcard_enabled
attribute. -
#soundcard_enabled=(value) ⇒ Object
Sets the value of the
soundcard_enabled
attribute. -
#sso ⇒ Sso
Returns the value of the
sso
attribute. -
#sso=(value) ⇒ Object
Sets the value of the
sso
attribute. -
#start_paused ⇒ Boolean
Returns the value of the
start_paused
attribute. -
#start_paused=(value) ⇒ Object
Sets the value of the
start_paused
attribute. -
#start_time ⇒ DateTime
Returns the value of the
start_time
attribute. -
#start_time=(value) ⇒ Object
Sets the value of the
start_time
attribute. -
#stateless ⇒ Boolean
Returns the value of the
stateless
attribute. -
#stateless=(value) ⇒ Object
Sets the value of the
stateless
attribute. -
#statistics ⇒ Array<Statistic>
Returns the value of the
statistics
attribute. -
#statistics=(list) ⇒ Object
Sets the value of the
statistics
attribute. -
#status ⇒ VmStatus
Returns the value of the
status
attribute. -
#status=(value) ⇒ Object
Sets the value of the
status
attribute. -
#status_detail ⇒ String
Returns the value of the
status_detail
attribute. -
#status_detail=(value) ⇒ Object
Sets the value of the
status_detail
attribute. -
#stop_reason ⇒ String
Returns the value of the
stop_reason
attribute. -
#stop_reason=(value) ⇒ Object
Sets the value of the
stop_reason
attribute. -
#stop_time ⇒ DateTime
Returns the value of the
stop_time
attribute. -
#stop_time=(value) ⇒ Object
Sets the value of the
stop_time
attribute. -
#storage_domain ⇒ StorageDomain
Returns the value of the
storage_domain
attribute. -
#storage_domain=(value) ⇒ Object
Sets the value of the
storage_domain
attribute. -
#tags ⇒ Array<Tag>
Returns the value of the
tags
attribute. -
#tags=(list) ⇒ Object
Sets the value of the
tags
attribute. -
#template ⇒ Template
Returns the value of the
template
attribute. -
#template=(value) ⇒ Object
Sets the value of the
template
attribute. -
#time_zone ⇒ TimeZone
Returns the value of the
time_zone
attribute. -
#time_zone=(value) ⇒ Object
Sets the value of the
time_zone
attribute. -
#tunnel_migration ⇒ Boolean
Returns the value of the
tunnel_migration
attribute. -
#tunnel_migration=(value) ⇒ Object
Sets the value of the
tunnel_migration
attribute. -
#type ⇒ VmType
Returns the value of the
type
attribute. -
#type=(value) ⇒ Object
Sets the value of the
type
attribute. -
#usb ⇒ Usb
Returns the value of the
usb
attribute. -
#usb=(value) ⇒ Object
Sets the value of the
usb
attribute. -
#use_latest_template_version ⇒ Boolean
Returns the value of the
use_latest_template_version
attribute. -
#use_latest_template_version=(value) ⇒ Object
Sets the value of the
use_latest_template_version
attribute. -
#virtio_scsi ⇒ VirtioScsi
Returns the value of the
virtio_scsi
attribute. -
#virtio_scsi=(value) ⇒ Object
Sets the value of the
virtio_scsi
attribute. -
#vm_pool ⇒ VmPool
Returns the value of the
vm_pool
attribute. -
#vm_pool=(value) ⇒ Object
Sets the value of the
vm_pool
attribute. -
#watchdogs ⇒ Array<Watchdog>
Returns the value of the
watchdogs
attribute. -
#watchdogs=(list) ⇒ Object
Sets the value of the
watchdogs
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Vm
Creates a new instance of the OvirtSDK4::Vm class.
46571 46572 46573 46574 46575 46576 46577 46578 46579 46580 46581 46582 46583 46584 46585 46586 46587 46588 46589 46590 46591 46592 46593 46594 46595 46596 46597 46598 46599 46600 46601 46602 46603 46604 46605 46606 46607 46608 46609 46610 |
# File 'lib/ovirtsdk4/types.rb', line 46571 def initialize(opts = {}) super(opts) self.affinity_labels = opts[:affinity_labels] self.applications = opts[:applications] self.cdroms = opts[:cdroms] self. = opts[:disk_attachments] self.external_host_provider = opts[:external_host_provider] self.floppies = opts[:floppies] self.fqdn = opts[:fqdn] self.graphics_consoles = opts[:graphics_consoles] self. = opts[:guest_operating_system] self.guest_time_zone = opts[:guest_time_zone] self.host = opts[:host] self.host_devices = opts[:host_devices] self.instance_type = opts[:instance_type] self.katello_errata = opts[:katello_errata] 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. = opts[:permissions] self.placement_policy = opts[:placement_policy] 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. = 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 |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
46615 46616 46617 46618 46619 46620 46621 46622 46623 46624 46625 46626 46627 46628 46629 46630 46631 46632 46633 46634 46635 46636 46637 46638 46639 46640 46641 46642 46643 46644 46645 46646 46647 46648 46649 46650 46651 46652 46653 46654 |
# File 'lib/ovirtsdk4/types.rb', line 46615 def ==(other) super && @affinity_labels == other.affinity_labels && @applications == other.applications && @cdroms == other.cdroms && @disk_attachments == other. && @external_host_provider == other.external_host_provider && @floppies == other.floppies && @fqdn == other.fqdn && @graphics_consoles == other.graphics_consoles && @guest_operating_system == other. && @guest_time_zone == other.guest_time_zone && @host == other.host && @host_devices == other.host_devices && @instance_type == other.instance_type && @katello_errata == other.katello_errata && @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. && @placement_policy == other.placement_policy && @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. && @template == other.template && @use_latest_template_version == other.use_latest_template_version && @vm_pool == other.vm_pool && @watchdogs == other.watchdogs end |
#affinity_labels ⇒ Array<AffinityLabel>
Returns the value of the affinity_labels
attribute.
44578 44579 44580 |
# File 'lib/ovirtsdk4/types.rb', line 44578 def affinity_labels @affinity_labels end |
#affinity_labels=(list) ⇒ Object
Sets the value of the affinity_labels
attribute.
44587 44588 44589 44590 44591 44592 44593 44594 44595 44596 44597 |
# File 'lib/ovirtsdk4/types.rb', line 44587 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 |
#applications ⇒ Array<Application>
Returns the value of the applications
attribute.
44604 44605 44606 |
# File 'lib/ovirtsdk4/types.rb', line 44604 def applications @applications end |
#applications=(list) ⇒ Object
Sets the value of the applications
attribute.
44613 44614 44615 44616 44617 44618 44619 44620 44621 44622 44623 |
# File 'lib/ovirtsdk4/types.rb', line 44613 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 |
#bios ⇒ Bios
Returns the value of the bios
attribute.
44630 44631 44632 |
# File 'lib/ovirtsdk4/types.rb', line 44630 def bios @bios end |
#bios=(value) ⇒ Object
Sets the value of the bios
attribute.
The value
parameter can be an instance of 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.
44643 44644 44645 44646 44647 44648 |
# File 'lib/ovirtsdk4/types.rb', line 44643 def bios=(value) if value.is_a?(Hash) value = Bios.new(value) end @bios = value end |
#cdroms ⇒ Array<Cdrom>
Returns the value of the cdroms
attribute.
44655 44656 44657 |
# File 'lib/ovirtsdk4/types.rb', line 44655 def cdroms @cdroms end |
#cdroms=(list) ⇒ Object
Sets the value of the cdroms
attribute.
44664 44665 44666 44667 44668 44669 44670 44671 44672 44673 44674 |
# File 'lib/ovirtsdk4/types.rb', line 44664 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 |
#cluster ⇒ Cluster
Returns the value of the cluster
attribute.
44681 44682 44683 |
# File 'lib/ovirtsdk4/types.rb', line 44681 def cluster @cluster end |
#cluster=(value) ⇒ Object
Sets the value of the cluster
attribute.
The value
parameter can be an instance of 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.
44694 44695 44696 44697 44698 44699 |
# File 'lib/ovirtsdk4/types.rb', line 44694 def cluster=(value) if value.is_a?(Hash) value = Cluster.new(value) end @cluster = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
44706 44707 44708 |
# File 'lib/ovirtsdk4/types.rb', line 44706 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
44715 44716 44717 |
# File 'lib/ovirtsdk4/types.rb', line 44715 def comment=(value) @comment = value end |
#console ⇒ Console
Returns the value of the console
attribute.
44724 44725 44726 |
# File 'lib/ovirtsdk4/types.rb', line 44724 def console @console end |
#console=(value) ⇒ Object
Sets the value of the console
attribute.
The value
parameter can be an instance of 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.
44737 44738 44739 44740 44741 44742 |
# File 'lib/ovirtsdk4/types.rb', line 44737 def console=(value) if value.is_a?(Hash) value = Console.new(value) end @console = value end |
#cpu ⇒ Cpu
Returns the value of the cpu
attribute.
44749 44750 44751 |
# File 'lib/ovirtsdk4/types.rb', line 44749 def cpu @cpu end |
#cpu=(value) ⇒ Object
Sets the value of the cpu
attribute.
The value
parameter can be an instance of 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.
44762 44763 44764 44765 44766 44767 |
# File 'lib/ovirtsdk4/types.rb', line 44762 def cpu=(value) if value.is_a?(Hash) value = Cpu.new(value) end @cpu = value end |
#cpu_profile ⇒ CpuProfile
Returns the value of the cpu_profile
attribute.
44774 44775 44776 |
# File 'lib/ovirtsdk4/types.rb', line 44774 def cpu_profile @cpu_profile end |
#cpu_profile=(value) ⇒ Object
Sets the value of the cpu_profile
attribute.
The value
parameter can be an instance of 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.
44787 44788 44789 44790 44791 44792 |
# File 'lib/ovirtsdk4/types.rb', line 44787 def cpu_profile=(value) if value.is_a?(Hash) value = CpuProfile.new(value) end @cpu_profile = value end |
#cpu_shares ⇒ Integer
Returns the value of the cpu_shares
attribute.
44799 44800 44801 |
# File 'lib/ovirtsdk4/types.rb', line 44799 def cpu_shares @cpu_shares end |
#cpu_shares=(value) ⇒ Object
Sets the value of the cpu_shares
attribute.
44808 44809 44810 |
# File 'lib/ovirtsdk4/types.rb', line 44808 def cpu_shares=(value) @cpu_shares = value end |
#creation_time ⇒ DateTime
Returns the value of the creation_time
attribute.
44817 44818 44819 |
# File 'lib/ovirtsdk4/types.rb', line 44817 def creation_time @creation_time end |
#creation_time=(value) ⇒ Object
Sets the value of the creation_time
attribute.
44826 44827 44828 |
# File 'lib/ovirtsdk4/types.rb', line 44826 def creation_time=(value) @creation_time = value end |
#custom_compatibility_version ⇒ Version
Returns the value of the custom_compatibility_version
attribute.
44835 44836 44837 |
# File 'lib/ovirtsdk4/types.rb', line 44835 def custom_compatibility_version @custom_compatibility_version end |
#custom_compatibility_version=(value) ⇒ Object
Sets the value of the custom_compatibility_version
attribute.
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.
44848 44849 44850 44851 44852 44853 |
# File 'lib/ovirtsdk4/types.rb', line 44848 def custom_compatibility_version=(value) if value.is_a?(Hash) value = Version.new(value) end @custom_compatibility_version = value end |
#custom_cpu_model ⇒ String
Returns the value of the custom_cpu_model
attribute.
44860 44861 44862 |
# File 'lib/ovirtsdk4/types.rb', line 44860 def custom_cpu_model @custom_cpu_model end |
#custom_cpu_model=(value) ⇒ Object
Sets the value of the custom_cpu_model
attribute.
44869 44870 44871 |
# File 'lib/ovirtsdk4/types.rb', line 44869 def custom_cpu_model=(value) @custom_cpu_model = value end |
#custom_emulated_machine ⇒ String
Returns the value of the custom_emulated_machine
attribute.
44878 44879 44880 |
# File 'lib/ovirtsdk4/types.rb', line 44878 def custom_emulated_machine @custom_emulated_machine end |
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the custom_emulated_machine
attribute.
44887 44888 44889 |
# File 'lib/ovirtsdk4/types.rb', line 44887 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the custom_properties
attribute.
44896 44897 44898 |
# File 'lib/ovirtsdk4/types.rb', line 44896 def custom_properties @custom_properties end |
#custom_properties=(list) ⇒ Object
Sets the value of the custom_properties
attribute.
44905 44906 44907 44908 44909 44910 44911 44912 44913 44914 44915 |
# File 'lib/ovirtsdk4/types.rb', line 44905 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 |
#delete_protected ⇒ Boolean
Returns the value of the delete_protected
attribute.
44922 44923 44924 |
# File 'lib/ovirtsdk4/types.rb', line 44922 def delete_protected @delete_protected end |
#delete_protected=(value) ⇒ Object
Sets the value of the delete_protected
attribute.
44931 44932 44933 |
# File 'lib/ovirtsdk4/types.rb', line 44931 def delete_protected=(value) @delete_protected = value end |
#description ⇒ String
Returns the value of the description
attribute.
44940 44941 44942 |
# File 'lib/ovirtsdk4/types.rb', line 44940 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
44949 44950 44951 |
# File 'lib/ovirtsdk4/types.rb', line 44949 def description=(value) @description = value end |
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the disk_attachments
attribute.
44958 44959 44960 |
# File 'lib/ovirtsdk4/types.rb', line 44958 def @disk_attachments end |
#disk_attachments=(list) ⇒ Object
Sets the value of the disk_attachments
attribute.
44967 44968 44969 44970 44971 44972 44973 44974 44975 44976 44977 |
# File 'lib/ovirtsdk4/types.rb', line 44967 def (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 |
#display ⇒ Display
Returns the value of the display
attribute.
44984 44985 44986 |
# File 'lib/ovirtsdk4/types.rb', line 44984 def display @display end |
#display=(value) ⇒ Object
Sets the value of the display
attribute.
The value
parameter can be an instance of 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.
44997 44998 44999 45000 45001 45002 |
# File 'lib/ovirtsdk4/types.rb', line 44997 def display=(value) if value.is_a?(Hash) value = Display.new(value) end @display = value end |
#domain ⇒ Domain
Returns the value of the domain
attribute.
45009 45010 45011 |
# File 'lib/ovirtsdk4/types.rb', line 45009 def domain @domain end |
#domain=(value) ⇒ Object
Sets the value of the domain
attribute.
The value
parameter can be an instance of 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.
45022 45023 45024 45025 45026 45027 |
# File 'lib/ovirtsdk4/types.rb', line 45022 def domain=(value) if value.is_a?(Hash) value = Domain.new(value) end @domain = value end |
#external_host_provider ⇒ ExternalHostProvider
Returns the value of the external_host_provider
attribute.
45034 45035 45036 |
# File 'lib/ovirtsdk4/types.rb', line 45034 def external_host_provider @external_host_provider end |
#external_host_provider=(value) ⇒ Object
Sets the value of the external_host_provider
attribute.
The value
parameter can be an instance of 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.
45047 45048 45049 45050 45051 45052 |
# File 'lib/ovirtsdk4/types.rb', line 45047 def external_host_provider=(value) if value.is_a?(Hash) value = ExternalHostProvider.new(value) end @external_host_provider = value end |
#floppies ⇒ Array<Floppy>
Returns the value of the floppies
attribute.
45059 45060 45061 |
# File 'lib/ovirtsdk4/types.rb', line 45059 def floppies @floppies end |
#floppies=(list) ⇒ Object
Sets the value of the floppies
attribute.
45068 45069 45070 45071 45072 45073 45074 45075 45076 45077 45078 |
# File 'lib/ovirtsdk4/types.rb', line 45068 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 |
#fqdn ⇒ String
Returns the value of the fqdn
attribute.
45085 45086 45087 |
# File 'lib/ovirtsdk4/types.rb', line 45085 def fqdn @fqdn end |
#fqdn=(value) ⇒ Object
Sets the value of the fqdn
attribute.
45094 45095 45096 |
# File 'lib/ovirtsdk4/types.rb', line 45094 def fqdn=(value) @fqdn = value end |
#graphics_consoles ⇒ Array<GraphicsConsole>
Returns the value of the graphics_consoles
attribute.
45103 45104 45105 |
# File 'lib/ovirtsdk4/types.rb', line 45103 def graphics_consoles @graphics_consoles end |
#graphics_consoles=(list) ⇒ Object
Sets the value of the graphics_consoles
attribute.
45112 45113 45114 45115 45116 45117 45118 45119 45120 45121 45122 |
# File 'lib/ovirtsdk4/types.rb', line 45112 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 |
#guest_operating_system ⇒ GuestOperatingSystem
Returns the value of the guest_operating_system
attribute.
45129 45130 45131 |
# File 'lib/ovirtsdk4/types.rb', line 45129 def @guest_operating_system end |
#guest_operating_system=(value) ⇒ Object
Sets the value of the guest_operating_system
attribute.
The value
parameter can be an instance of 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.
45142 45143 45144 45145 45146 45147 |
# File 'lib/ovirtsdk4/types.rb', line 45142 def (value) if value.is_a?(Hash) value = GuestOperatingSystem.new(value) end @guest_operating_system = value end |
#guest_time_zone ⇒ TimeZone
Returns the value of the guest_time_zone
attribute.
45154 45155 45156 |
# File 'lib/ovirtsdk4/types.rb', line 45154 def guest_time_zone @guest_time_zone end |
#guest_time_zone=(value) ⇒ Object
Sets the value of the guest_time_zone
attribute.
The value
parameter can be an instance of 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.
45167 45168 45169 45170 45171 45172 |
# File 'lib/ovirtsdk4/types.rb', line 45167 def guest_time_zone=(value) if value.is_a?(Hash) value = TimeZone.new(value) end @guest_time_zone = value end |
#hash ⇒ Object
Generates a hash value for this object.
46659 46660 46661 46662 46663 46664 46665 46666 46667 46668 46669 46670 46671 46672 46673 46674 46675 46676 46677 46678 46679 46680 46681 46682 46683 46684 46685 46686 46687 46688 46689 46690 46691 46692 46693 46694 46695 46696 46697 46698 |
# File 'lib/ovirtsdk4/types.rb', line 46659 def hash super + @affinity_labels.hash + @applications.hash + @cdroms.hash + @disk_attachments.hash + @external_host_provider.hash + @floppies.hash + @fqdn.hash + @graphics_consoles.hash + @guest_operating_system.hash + @guest_time_zone.hash + @host.hash + @host_devices.hash + @instance_type.hash + @katello_errata.hash + @next_run_configuration_exists.hash + @nics.hash + @numa_nodes.hash + @numa_tune_mode.hash + @original_template.hash + @payloads.hash + @permissions.hash + @placement_policy.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 |
#high_availability ⇒ HighAvailability
Returns the value of the high_availability
attribute.
45179 45180 45181 |
# File 'lib/ovirtsdk4/types.rb', line 45179 def high_availability @high_availability end |
#high_availability=(value) ⇒ Object
Sets the value of the high_availability
attribute.
The value
parameter can be an instance of 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.
45192 45193 45194 45195 45196 45197 |
# File 'lib/ovirtsdk4/types.rb', line 45192 def high_availability=(value) if value.is_a?(Hash) value = HighAvailability.new(value) end @high_availability = value end |
#host ⇒ Host
Returns the value of the host
attribute.
45204 45205 45206 |
# File 'lib/ovirtsdk4/types.rb', line 45204 def host @host end |
#host=(value) ⇒ Object
Sets the value of the host
attribute.
The value
parameter can be an instance of 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.
45217 45218 45219 45220 45221 45222 |
# File 'lib/ovirtsdk4/types.rb', line 45217 def host=(value) if value.is_a?(Hash) value = Host.new(value) end @host = value end |
#host_devices ⇒ Array<HostDevice>
Returns the value of the host_devices
attribute.
45229 45230 45231 |
# File 'lib/ovirtsdk4/types.rb', line 45229 def host_devices @host_devices end |
#host_devices=(list) ⇒ Object
Sets the value of the host_devices
attribute.
45238 45239 45240 45241 45242 45243 45244 45245 45246 45247 45248 |
# File 'lib/ovirtsdk4/types.rb', line 45238 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 |
#id ⇒ String
Returns the value of the id
attribute.
45255 45256 45257 |
# File 'lib/ovirtsdk4/types.rb', line 45255 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
45264 45265 45266 |
# File 'lib/ovirtsdk4/types.rb', line 45264 def id=(value) @id = value end |
#initialization ⇒ Initialization
Returns the value of the initialization
attribute.
45273 45274 45275 |
# File 'lib/ovirtsdk4/types.rb', line 45273 def initialization @initialization end |
#initialization=(value) ⇒ Object
Sets the value of the initialization
attribute.
The value
parameter can be an instance of 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.
45286 45287 45288 45289 45290 45291 |
# File 'lib/ovirtsdk4/types.rb', line 45286 def initialization=(value) if value.is_a?(Hash) value = Initialization.new(value) end @initialization = value end |
#instance_type ⇒ InstanceType
Returns the value of the instance_type
attribute.
45298 45299 45300 |
# File 'lib/ovirtsdk4/types.rb', line 45298 def instance_type @instance_type end |
#instance_type=(value) ⇒ Object
Sets the value of the instance_type
attribute.
The value
parameter can be an instance of 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.
45311 45312 45313 45314 45315 45316 |
# File 'lib/ovirtsdk4/types.rb', line 45311 def instance_type=(value) if value.is_a?(Hash) value = InstanceType.new(value) end @instance_type = value end |
#io ⇒ Io
Returns the value of the io
attribute.
45323 45324 45325 |
# File 'lib/ovirtsdk4/types.rb', line 45323 def io @io end |
#io=(value) ⇒ Object
Sets the value of the io
attribute.
The value
parameter can be an instance of 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.
45336 45337 45338 45339 45340 45341 |
# File 'lib/ovirtsdk4/types.rb', line 45336 def io=(value) if value.is_a?(Hash) value = Io.new(value) end @io = value end |
#katello_errata ⇒ Array<KatelloErratum>
Returns the value of the katello_errata
attribute.
45348 45349 45350 |
# File 'lib/ovirtsdk4/types.rb', line 45348 def katello_errata @katello_errata end |
#katello_errata=(list) ⇒ Object
Sets the value of the katello_errata
attribute.
45357 45358 45359 45360 45361 45362 45363 45364 45365 45366 45367 |
# File 'lib/ovirtsdk4/types.rb', line 45357 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 |
#large_icon ⇒ Icon
Returns the value of the large_icon
attribute.
45374 45375 45376 |
# File 'lib/ovirtsdk4/types.rb', line 45374 def large_icon @large_icon end |
#large_icon=(value) ⇒ Object
Sets the value of the large_icon
attribute.
The value
parameter can be an instance of 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.
45387 45388 45389 45390 45391 45392 |
# File 'lib/ovirtsdk4/types.rb', line 45387 def large_icon=(value) if value.is_a?(Hash) value = Icon.new(value) end @large_icon = value end |
#lease ⇒ StorageDomainLease
Returns the value of the lease
attribute.
45399 45400 45401 |
# File 'lib/ovirtsdk4/types.rb', line 45399 def lease @lease end |
#lease=(value) ⇒ Object
Sets the value of the lease
attribute.
The value
parameter can be an instance of 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.
45412 45413 45414 45415 45416 45417 |
# File 'lib/ovirtsdk4/types.rb', line 45412 def lease=(value) if value.is_a?(Hash) value = StorageDomainLease.new(value) end @lease = value end |
#memory ⇒ Integer
Returns the value of the memory
attribute.
45424 45425 45426 |
# File 'lib/ovirtsdk4/types.rb', line 45424 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory
attribute.
45433 45434 45435 |
# File 'lib/ovirtsdk4/types.rb', line 45433 def memory=(value) @memory = value end |
#memory_policy ⇒ MemoryPolicy
Returns the value of the memory_policy
attribute.
45442 45443 45444 |
# File 'lib/ovirtsdk4/types.rb', line 45442 def memory_policy @memory_policy end |
#memory_policy=(value) ⇒ Object
Sets the value of the memory_policy
attribute.
The value
parameter can be an instance of 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.
45455 45456 45457 45458 45459 45460 |
# File 'lib/ovirtsdk4/types.rb', line 45455 def memory_policy=(value) if value.is_a?(Hash) value = MemoryPolicy.new(value) end @memory_policy = value end |
#migration ⇒ MigrationOptions
Returns the value of the migration
attribute.
45467 45468 45469 |
# File 'lib/ovirtsdk4/types.rb', line 45467 def migration @migration end |
#migration=(value) ⇒ Object
Sets the value of the migration
attribute.
The value
parameter can be an instance of 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.
45480 45481 45482 45483 45484 45485 |
# File 'lib/ovirtsdk4/types.rb', line 45480 def migration=(value) if value.is_a?(Hash) value = MigrationOptions.new(value) end @migration = value end |
#migration_downtime ⇒ Integer
Returns the value of the migration_downtime
attribute.
45492 45493 45494 |
# File 'lib/ovirtsdk4/types.rb', line 45492 def migration_downtime @migration_downtime end |
#migration_downtime=(value) ⇒ Object
Sets the value of the migration_downtime
attribute.
45501 45502 45503 |
# File 'lib/ovirtsdk4/types.rb', line 45501 def migration_downtime=(value) @migration_downtime = value end |
#name ⇒ String
Returns the value of the name
attribute.
45510 45511 45512 |
# File 'lib/ovirtsdk4/types.rb', line 45510 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
45519 45520 45521 |
# File 'lib/ovirtsdk4/types.rb', line 45519 def name=(value) @name = value end |
#next_run_configuration_exists ⇒ Boolean
Returns the value of the next_run_configuration_exists
attribute.
45528 45529 45530 |
# File 'lib/ovirtsdk4/types.rb', line 45528 def next_run_configuration_exists @next_run_configuration_exists end |
#next_run_configuration_exists=(value) ⇒ Object
Sets the value of the next_run_configuration_exists
attribute.
45537 45538 45539 |
# File 'lib/ovirtsdk4/types.rb', line 45537 def next_run_configuration_exists=(value) @next_run_configuration_exists = value end |
#nics ⇒ Array<Nic>
Returns the value of the nics
attribute.
45546 45547 45548 |
# File 'lib/ovirtsdk4/types.rb', line 45546 def nics @nics end |
#nics=(list) ⇒ Object
Sets the value of the nics
attribute.
45555 45556 45557 45558 45559 45560 45561 45562 45563 45564 45565 |
# File 'lib/ovirtsdk4/types.rb', line 45555 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 |
#numa_nodes ⇒ Array<NumaNode>
Returns the value of the numa_nodes
attribute.
45572 45573 45574 |
# File 'lib/ovirtsdk4/types.rb', line 45572 def numa_nodes @numa_nodes end |
#numa_nodes=(list) ⇒ Object
Sets the value of the numa_nodes
attribute.
45581 45582 45583 45584 45585 45586 45587 45588 45589 45590 45591 |
# File 'lib/ovirtsdk4/types.rb', line 45581 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 |
#numa_tune_mode ⇒ NumaTuneMode
Returns the value of the numa_tune_mode
attribute.
45598 45599 45600 |
# File 'lib/ovirtsdk4/types.rb', line 45598 def numa_tune_mode @numa_tune_mode end |
#numa_tune_mode=(value) ⇒ Object
Sets the value of the numa_tune_mode
attribute.
45607 45608 45609 |
# File 'lib/ovirtsdk4/types.rb', line 45607 def numa_tune_mode=(value) @numa_tune_mode = value end |
#origin ⇒ String
Returns the value of the origin
attribute.
45616 45617 45618 |
# File 'lib/ovirtsdk4/types.rb', line 45616 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin
attribute.
45625 45626 45627 |
# File 'lib/ovirtsdk4/types.rb', line 45625 def origin=(value) @origin = value end |
#original_template ⇒ Template
Returns the value of the original_template
attribute.
45634 45635 45636 |
# File 'lib/ovirtsdk4/types.rb', line 45634 def original_template @original_template end |
#original_template=(value) ⇒ Object
Sets the value of the original_template
attribute.
The value
parameter can be an instance of 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.
45647 45648 45649 45650 45651 45652 |
# File 'lib/ovirtsdk4/types.rb', line 45647 def original_template=(value) if value.is_a?(Hash) value = Template.new(value) end @original_template = value end |
#os ⇒ OperatingSystem
Returns the value of the os
attribute.
45659 45660 45661 |
# File 'lib/ovirtsdk4/types.rb', line 45659 def os @os end |
#os=(value) ⇒ Object
Sets the value of the os
attribute.
The value
parameter can be an instance of 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.
45672 45673 45674 45675 45676 45677 |
# File 'lib/ovirtsdk4/types.rb', line 45672 def os=(value) if value.is_a?(Hash) value = OperatingSystem.new(value) end @os = value end |
#payloads ⇒ Array<Payload>
Returns the value of the payloads
attribute.
45684 45685 45686 |
# File 'lib/ovirtsdk4/types.rb', line 45684 def payloads @payloads end |
#payloads=(list) ⇒ Object
Sets the value of the payloads
attribute.
45693 45694 45695 45696 45697 45698 45699 45700 45701 45702 45703 |
# File 'lib/ovirtsdk4/types.rb', line 45693 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 |
#permissions ⇒ Array<Permission>
Returns the value of the permissions
attribute.
45710 45711 45712 |
# File 'lib/ovirtsdk4/types.rb', line 45710 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
45719 45720 45721 45722 45723 45724 45725 45726 45727 45728 45729 |
# File 'lib/ovirtsdk4/types.rb', line 45719 def (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 |
#placement_policy ⇒ VmPlacementPolicy
Returns the value of the placement_policy
attribute.
45736 45737 45738 |
# File 'lib/ovirtsdk4/types.rb', line 45736 def placement_policy @placement_policy end |
#placement_policy=(value) ⇒ Object
Sets the value of the placement_policy
attribute.
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.
45749 45750 45751 45752 45753 45754 |
# File 'lib/ovirtsdk4/types.rb', line 45749 def placement_policy=(value) if value.is_a?(Hash) value = VmPlacementPolicy.new(value) end @placement_policy = value end |
#quota ⇒ Quota
Returns the value of the quota
attribute.
45761 45762 45763 |
# File 'lib/ovirtsdk4/types.rb', line 45761 def quota @quota end |
#quota=(value) ⇒ Object
Sets the value of the quota
attribute.
The value
parameter can be an instance of 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.
45774 45775 45776 45777 45778 45779 |
# File 'lib/ovirtsdk4/types.rb', line 45774 def quota=(value) if value.is_a?(Hash) value = Quota.new(value) end @quota = value end |
#reported_devices ⇒ Array<ReportedDevice>
Returns the value of the reported_devices
attribute.
45786 45787 45788 |
# File 'lib/ovirtsdk4/types.rb', line 45786 def reported_devices @reported_devices end |
#reported_devices=(list) ⇒ Object
Sets the value of the reported_devices
attribute.
45795 45796 45797 45798 45799 45800 45801 45802 45803 45804 45805 |
# File 'lib/ovirtsdk4/types.rb', line 45795 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 |
#rng_device ⇒ RngDevice
Returns the value of the rng_device
attribute.
45812 45813 45814 |
# File 'lib/ovirtsdk4/types.rb', line 45812 def rng_device @rng_device end |
#rng_device=(value) ⇒ Object
Sets the value of the rng_device
attribute.
The value
parameter can be an instance of 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.
45825 45826 45827 45828 45829 45830 |
# File 'lib/ovirtsdk4/types.rb', line 45825 def rng_device=(value) if value.is_a?(Hash) value = RngDevice.new(value) end @rng_device = value end |
#run_once ⇒ Boolean
Returns the value of the run_once
attribute.
45837 45838 45839 |
# File 'lib/ovirtsdk4/types.rb', line 45837 def run_once @run_once end |
#run_once=(value) ⇒ Object
Sets the value of the run_once
attribute.
45846 45847 45848 |
# File 'lib/ovirtsdk4/types.rb', line 45846 def run_once=(value) @run_once = value end |
#serial_number ⇒ SerialNumber
Returns the value of the serial_number
attribute.
45855 45856 45857 |
# File 'lib/ovirtsdk4/types.rb', line 45855 def serial_number @serial_number end |
#serial_number=(value) ⇒ Object
Sets the value of the serial_number
attribute.
The value
parameter can be an instance of 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.
45868 45869 45870 45871 45872 45873 |
# File 'lib/ovirtsdk4/types.rb', line 45868 def serial_number=(value) if value.is_a?(Hash) value = SerialNumber.new(value) end @serial_number = value end |
#sessions ⇒ Array<Session>
Returns the value of the sessions
attribute.
45880 45881 45882 |
# File 'lib/ovirtsdk4/types.rb', line 45880 def sessions @sessions end |
#sessions=(list) ⇒ Object
Sets the value of the sessions
attribute.
45889 45890 45891 45892 45893 45894 45895 45896 45897 45898 45899 |
# File 'lib/ovirtsdk4/types.rb', line 45889 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 |
#small_icon ⇒ Icon
Returns the value of the small_icon
attribute.
45906 45907 45908 |
# File 'lib/ovirtsdk4/types.rb', line 45906 def small_icon @small_icon end |
#small_icon=(value) ⇒ Object
Sets the value of the small_icon
attribute.
The value
parameter can be an instance of 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.
45919 45920 45921 45922 45923 45924 |
# File 'lib/ovirtsdk4/types.rb', line 45919 def small_icon=(value) if value.is_a?(Hash) value = Icon.new(value) end @small_icon = value end |
#snapshots ⇒ Array<Snapshot>
Returns the value of the snapshots
attribute.
45931 45932 45933 |
# File 'lib/ovirtsdk4/types.rb', line 45931 def snapshots @snapshots end |
#snapshots=(list) ⇒ Object
Sets the value of the snapshots
attribute.
45940 45941 45942 45943 45944 45945 45946 45947 45948 45949 45950 |
# File 'lib/ovirtsdk4/types.rb', line 45940 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 |
#soundcard_enabled ⇒ Boolean
Returns the value of the soundcard_enabled
attribute.
45957 45958 45959 |
# File 'lib/ovirtsdk4/types.rb', line 45957 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled
attribute.
45966 45967 45968 |
# File 'lib/ovirtsdk4/types.rb', line 45966 def soundcard_enabled=(value) @soundcard_enabled = value end |
#sso ⇒ Sso
Returns the value of the sso
attribute.
45975 45976 45977 |
# File 'lib/ovirtsdk4/types.rb', line 45975 def sso @sso end |
#sso=(value) ⇒ Object
Sets the value of the sso
attribute.
The value
parameter can be an instance of 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.
45988 45989 45990 45991 45992 45993 |
# File 'lib/ovirtsdk4/types.rb', line 45988 def sso=(value) if value.is_a?(Hash) value = Sso.new(value) end @sso = value end |
#start_paused ⇒ Boolean
Returns the value of the start_paused
attribute.
46000 46001 46002 |
# File 'lib/ovirtsdk4/types.rb', line 46000 def start_paused @start_paused end |
#start_paused=(value) ⇒ Object
Sets the value of the start_paused
attribute.
46009 46010 46011 |
# File 'lib/ovirtsdk4/types.rb', line 46009 def start_paused=(value) @start_paused = value end |
#start_time ⇒ DateTime
Returns the value of the start_time
attribute.
46018 46019 46020 |
# File 'lib/ovirtsdk4/types.rb', line 46018 def start_time @start_time end |
#start_time=(value) ⇒ Object
Sets the value of the start_time
attribute.
46027 46028 46029 |
# File 'lib/ovirtsdk4/types.rb', line 46027 def start_time=(value) @start_time = value end |
#stateless ⇒ Boolean
Returns the value of the stateless
attribute.
46036 46037 46038 |
# File 'lib/ovirtsdk4/types.rb', line 46036 def stateless @stateless end |
#stateless=(value) ⇒ Object
Sets the value of the stateless
attribute.
46045 46046 46047 |
# File 'lib/ovirtsdk4/types.rb', line 46045 def stateless=(value) @stateless = value end |
#statistics ⇒ Array<Statistic>
Returns the value of the statistics
attribute.
46054 46055 46056 |
# File 'lib/ovirtsdk4/types.rb', line 46054 def statistics @statistics end |
#statistics=(list) ⇒ Object
Sets the value of the statistics
attribute.
46063 46064 46065 46066 46067 46068 46069 46070 46071 46072 46073 |
# File 'lib/ovirtsdk4/types.rb', line 46063 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 |
#status ⇒ VmStatus
Returns the value of the status
attribute.
46080 46081 46082 |
# File 'lib/ovirtsdk4/types.rb', line 46080 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
46089 46090 46091 |
# File 'lib/ovirtsdk4/types.rb', line 46089 def status=(value) @status = value end |
#status_detail ⇒ String
Returns the value of the status_detail
attribute.
46098 46099 46100 |
# File 'lib/ovirtsdk4/types.rb', line 46098 def status_detail @status_detail end |
#status_detail=(value) ⇒ Object
Sets the value of the status_detail
attribute.
46107 46108 46109 |
# File 'lib/ovirtsdk4/types.rb', line 46107 def status_detail=(value) @status_detail = value end |
#stop_reason ⇒ String
Returns the value of the stop_reason
attribute.
46116 46117 46118 |
# File 'lib/ovirtsdk4/types.rb', line 46116 def stop_reason @stop_reason end |
#stop_reason=(value) ⇒ Object
Sets the value of the stop_reason
attribute.
46125 46126 46127 |
# File 'lib/ovirtsdk4/types.rb', line 46125 def stop_reason=(value) @stop_reason = value end |
#stop_time ⇒ DateTime
Returns the value of the stop_time
attribute.
46134 46135 46136 |
# File 'lib/ovirtsdk4/types.rb', line 46134 def stop_time @stop_time end |
#stop_time=(value) ⇒ Object
Sets the value of the stop_time
attribute.
46143 46144 46145 |
# File 'lib/ovirtsdk4/types.rb', line 46143 def stop_time=(value) @stop_time = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
46152 46153 46154 |
# File 'lib/ovirtsdk4/types.rb', line 46152 def storage_domain @storage_domain end |
#storage_domain=(value) ⇒ Object
Sets the value of the storage_domain
attribute.
The value
parameter can be an instance of 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.
46165 46166 46167 46168 46169 46170 |
# File 'lib/ovirtsdk4/types.rb', line 46165 def storage_domain=(value) if value.is_a?(Hash) value = StorageDomain.new(value) end @storage_domain = value end |
#tags ⇒ Array<Tag>
Returns the value of the tags
attribute.
46177 46178 46179 |
# File 'lib/ovirtsdk4/types.rb', line 46177 def @tags end |
#tags=(list) ⇒ Object
Sets the value of the tags
attribute.
46186 46187 46188 46189 46190 46191 46192 46193 46194 46195 46196 |
# File 'lib/ovirtsdk4/types.rb', line 46186 def (list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Tag.new(value) end end end @tags = list end |
#template ⇒ Template
Returns the value of the template
attribute.
46203 46204 46205 |
# File 'lib/ovirtsdk4/types.rb', line 46203 def template @template end |
#template=(value) ⇒ Object
Sets the value of the template
attribute.
The value
parameter can be an instance of 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.
46216 46217 46218 46219 46220 46221 |
# File 'lib/ovirtsdk4/types.rb', line 46216 def template=(value) if value.is_a?(Hash) value = Template.new(value) end @template = value end |
#time_zone ⇒ TimeZone
Returns the value of the time_zone
attribute.
46228 46229 46230 |
# File 'lib/ovirtsdk4/types.rb', line 46228 def time_zone @time_zone end |
#time_zone=(value) ⇒ Object
Sets the value of the time_zone
attribute.
The value
parameter can be an instance of 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.
46241 46242 46243 46244 46245 46246 |
# File 'lib/ovirtsdk4/types.rb', line 46241 def time_zone=(value) if value.is_a?(Hash) value = TimeZone.new(value) end @time_zone = value end |
#tunnel_migration ⇒ Boolean
Returns the value of the tunnel_migration
attribute.
46253 46254 46255 |
# File 'lib/ovirtsdk4/types.rb', line 46253 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration
attribute.
46262 46263 46264 |
# File 'lib/ovirtsdk4/types.rb', line 46262 def tunnel_migration=(value) @tunnel_migration = value end |
#type ⇒ VmType
Returns the value of the type
attribute.
46271 46272 46273 |
# File 'lib/ovirtsdk4/types.rb', line 46271 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
46280 46281 46282 |
# File 'lib/ovirtsdk4/types.rb', line 46280 def type=(value) @type = value end |
#usb ⇒ Usb
Returns the value of the usb
attribute.
46289 46290 46291 |
# File 'lib/ovirtsdk4/types.rb', line 46289 def usb @usb end |
#usb=(value) ⇒ Object
Sets the value of the usb
attribute.
The value
parameter can be an instance of 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.
46302 46303 46304 46305 46306 46307 |
# File 'lib/ovirtsdk4/types.rb', line 46302 def usb=(value) if value.is_a?(Hash) value = Usb.new(value) end @usb = value end |
#use_latest_template_version ⇒ Boolean
Returns the value of the use_latest_template_version
attribute.
46314 46315 46316 |
# File 'lib/ovirtsdk4/types.rb', line 46314 def use_latest_template_version @use_latest_template_version end |
#use_latest_template_version=(value) ⇒ Object
Sets the value of the use_latest_template_version
attribute.
46323 46324 46325 |
# File 'lib/ovirtsdk4/types.rb', line 46323 def use_latest_template_version=(value) @use_latest_template_version = value end |
#virtio_scsi ⇒ VirtioScsi
Returns the value of the virtio_scsi
attribute.
46332 46333 46334 |
# File 'lib/ovirtsdk4/types.rb', line 46332 def virtio_scsi @virtio_scsi end |
#virtio_scsi=(value) ⇒ Object
Sets the value of the virtio_scsi
attribute.
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.
46345 46346 46347 46348 46349 46350 |
# File 'lib/ovirtsdk4/types.rb', line 46345 def virtio_scsi=(value) if value.is_a?(Hash) value = VirtioScsi.new(value) end @virtio_scsi = value end |
#vm_pool ⇒ VmPool
Returns the value of the vm_pool
attribute.
46357 46358 46359 |
# File 'lib/ovirtsdk4/types.rb', line 46357 def vm_pool @vm_pool end |
#vm_pool=(value) ⇒ Object
Sets the value of the vm_pool
attribute.
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.
46370 46371 46372 46373 46374 46375 |
# File 'lib/ovirtsdk4/types.rb', line 46370 def vm_pool=(value) if value.is_a?(Hash) value = VmPool.new(value) end @vm_pool = value end |
#watchdogs ⇒ Array<Watchdog>
Returns the value of the watchdogs
attribute.
46382 46383 46384 |
# File 'lib/ovirtsdk4/types.rb', line 46382 def watchdogs @watchdogs end |
#watchdogs=(list) ⇒ Object
Sets the value of the watchdogs
attribute.
46391 46392 46393 46394 46395 46396 46397 46398 46399 46400 46401 |
# File 'lib/ovirtsdk4/types.rb', line 46391 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 |