Class: OvirtSDK4::Snapshot
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
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. -
#date ⇒ DateTime
Returns the value of the
date
attribute. -
#date=(value) ⇒ Object
Sets the value of the
date
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. -
#disks ⇒ Array<Disk>
Returns the value of the
disks
attribute. -
#disks=(list) ⇒ Object
Sets the value of the
disks
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. -
#has_illegal_images ⇒ Boolean
Returns the value of the
has_illegal_images
attribute. -
#has_illegal_images=(value) ⇒ Object
Sets the value of the
has_illegal_images
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 = {}) ⇒ Snapshot
constructor
Creates a new instance of the Snapshot 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. -
#multi_queues_enabled ⇒ Boolean
Returns the value of the
multi_queues_enabled
attribute. -
#multi_queues_enabled=(value) ⇒ Object
Sets the value of the
multi_queues_enabled
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. -
#persist_memorystate ⇒ Boolean
Returns the value of the
persist_memorystate
attribute. -
#persist_memorystate=(value) ⇒ Object
Sets the value of the
persist_memorystate
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. -
#snapshot_status ⇒ SnapshotStatus
Returns the value of the
snapshot_status
attribute. -
#snapshot_status=(value) ⇒ Object
Sets the value of the
snapshot_status
attribute. -
#snapshot_type ⇒ SnapshotType
Returns the value of the
snapshot_type
attribute. -
#snapshot_type=(value) ⇒ Object
Sets the value of the
snapshot_type
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. -
#storage_error_resume_behaviour ⇒ VmStorageErrorResumeBehaviour
Returns the value of the
storage_error_resume_behaviour
attribute. -
#storage_error_resume_behaviour=(value) ⇒ Object
Sets the value of the
storage_error_resume_behaviour
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. -
#virtio_scsi_multi_queues_enabled ⇒ Boolean
Returns the value of the
virtio_scsi_multi_queues_enabled
attribute. -
#virtio_scsi_multi_queues_enabled=(value) ⇒ Object
Sets the value of the
virtio_scsi_multi_queues_enabled
attribute. -
#vm ⇒ Vm
Returns the value of the
vm
attribute. -
#vm=(value) ⇒ Object
Sets the value of the
vm
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 = {}) ⇒ Snapshot
Creates a new instance of the OvirtSDK4::Snapshot class.
57728 57729 57730 57731 57732 57733 57734 57735 57736 |
# File 'lib/ovirtsdk4/types.rb', line 57728 def initialize(opts = {}) super(opts) self.date = opts[:date] self.disks = opts[:disks] self.persist_memorystate = opts[:persist_memorystate] self.snapshot_status = opts[:snapshot_status] self.snapshot_type = opts[:snapshot_type] self.vm = opts[:vm] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
57741 57742 57743 57744 57745 57746 57747 57748 57749 |
# File 'lib/ovirtsdk4/types.rb', line 57741 def ==(other) super && @date == other.date && @disks == other.disks && @persist_memorystate == other.persist_memorystate && @snapshot_status == other.snapshot_status && @snapshot_type == other.snapshot_type && @vm == other.vm end |
#affinity_labels ⇒ Array<AffinityLabel>
Returns the value of the affinity_labels
attribute.
55520 55521 55522 |
# File 'lib/ovirtsdk4/types.rb', line 55520 def affinity_labels @affinity_labels end |
#affinity_labels=(list) ⇒ Object
Sets the value of the affinity_labels
attribute.
55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 |
# File 'lib/ovirtsdk4/types.rb', line 55529 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.
55546 55547 55548 |
# File 'lib/ovirtsdk4/types.rb', line 55546 def applications @applications end |
#applications=(list) ⇒ Object
Sets the value of the applications
attribute.
55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 |
# File 'lib/ovirtsdk4/types.rb', line 55555 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.
55572 55573 55574 |
# File 'lib/ovirtsdk4/types.rb', line 55572 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.
55585 55586 55587 55588 55589 55590 |
# File 'lib/ovirtsdk4/types.rb', line 55585 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.
55597 55598 55599 |
# File 'lib/ovirtsdk4/types.rb', line 55597 def cdroms @cdroms end |
#cdroms=(list) ⇒ Object
Sets the value of the cdroms
attribute.
55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 |
# File 'lib/ovirtsdk4/types.rb', line 55606 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.
55623 55624 55625 |
# File 'lib/ovirtsdk4/types.rb', line 55623 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.
55636 55637 55638 55639 55640 55641 |
# File 'lib/ovirtsdk4/types.rb', line 55636 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.
55648 55649 55650 |
# File 'lib/ovirtsdk4/types.rb', line 55648 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
55657 55658 55659 |
# File 'lib/ovirtsdk4/types.rb', line 55657 def comment=(value) @comment = value end |
#console ⇒ Console
Returns the value of the console
attribute.
55666 55667 55668 |
# File 'lib/ovirtsdk4/types.rb', line 55666 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.
55679 55680 55681 55682 55683 55684 |
# File 'lib/ovirtsdk4/types.rb', line 55679 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.
55691 55692 55693 |
# File 'lib/ovirtsdk4/types.rb', line 55691 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.
55704 55705 55706 55707 55708 55709 |
# File 'lib/ovirtsdk4/types.rb', line 55704 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.
55716 55717 55718 |
# File 'lib/ovirtsdk4/types.rb', line 55716 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.
55729 55730 55731 55732 55733 55734 |
# File 'lib/ovirtsdk4/types.rb', line 55729 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.
55741 55742 55743 |
# File 'lib/ovirtsdk4/types.rb', line 55741 def cpu_shares @cpu_shares end |
#cpu_shares=(value) ⇒ Object
Sets the value of the cpu_shares
attribute.
55750 55751 55752 |
# File 'lib/ovirtsdk4/types.rb', line 55750 def cpu_shares=(value) @cpu_shares = value end |
#creation_time ⇒ DateTime
Returns the value of the creation_time
attribute.
55759 55760 55761 |
# File 'lib/ovirtsdk4/types.rb', line 55759 def creation_time @creation_time end |
#creation_time=(value) ⇒ Object
Sets the value of the creation_time
attribute.
55768 55769 55770 |
# File 'lib/ovirtsdk4/types.rb', line 55768 def creation_time=(value) @creation_time = value end |
#custom_compatibility_version ⇒ Version
Returns the value of the custom_compatibility_version
attribute.
55777 55778 55779 |
# File 'lib/ovirtsdk4/types.rb', line 55777 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 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.
55790 55791 55792 55793 55794 55795 |
# File 'lib/ovirtsdk4/types.rb', line 55790 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.
55802 55803 55804 |
# File 'lib/ovirtsdk4/types.rb', line 55802 def custom_cpu_model @custom_cpu_model end |
#custom_cpu_model=(value) ⇒ Object
Sets the value of the custom_cpu_model
attribute.
55811 55812 55813 |
# File 'lib/ovirtsdk4/types.rb', line 55811 def custom_cpu_model=(value) @custom_cpu_model = value end |
#custom_emulated_machine ⇒ String
Returns the value of the custom_emulated_machine
attribute.
55820 55821 55822 |
# File 'lib/ovirtsdk4/types.rb', line 55820 def custom_emulated_machine @custom_emulated_machine end |
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the custom_emulated_machine
attribute.
55829 55830 55831 |
# File 'lib/ovirtsdk4/types.rb', line 55829 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the custom_properties
attribute.
55838 55839 55840 |
# File 'lib/ovirtsdk4/types.rb', line 55838 def custom_properties @custom_properties end |
#custom_properties=(list) ⇒ Object
Sets the value of the custom_properties
attribute.
55847 55848 55849 55850 55851 55852 55853 55854 55855 55856 55857 |
# File 'lib/ovirtsdk4/types.rb', line 55847 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 |
#date ⇒ DateTime
Returns the value of the date
attribute.
55864 55865 55866 |
# File 'lib/ovirtsdk4/types.rb', line 55864 def date @date end |
#date=(value) ⇒ Object
Sets the value of the date
attribute.
55873 55874 55875 |
# File 'lib/ovirtsdk4/types.rb', line 55873 def date=(value) @date = value end |
#delete_protected ⇒ Boolean
Returns the value of the delete_protected
attribute.
55882 55883 55884 |
# File 'lib/ovirtsdk4/types.rb', line 55882 def delete_protected @delete_protected end |
#delete_protected=(value) ⇒ Object
Sets the value of the delete_protected
attribute.
55891 55892 55893 |
# File 'lib/ovirtsdk4/types.rb', line 55891 def delete_protected=(value) @delete_protected = value end |
#description ⇒ String
Returns the value of the description
attribute.
55900 55901 55902 |
# File 'lib/ovirtsdk4/types.rb', line 55900 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
55909 55910 55911 |
# File 'lib/ovirtsdk4/types.rb', line 55909 def description=(value) @description = value end |
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the disk_attachments
attribute.
55918 55919 55920 |
# File 'lib/ovirtsdk4/types.rb', line 55918 def @disk_attachments end |
#disk_attachments=(list) ⇒ Object
Sets the value of the disk_attachments
attribute.
55927 55928 55929 55930 55931 55932 55933 55934 55935 55936 55937 |
# File 'lib/ovirtsdk4/types.rb', line 55927 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 |
#disks ⇒ Array<Disk>
Returns the value of the disks
attribute.
55944 55945 55946 |
# File 'lib/ovirtsdk4/types.rb', line 55944 def disks @disks end |
#disks=(list) ⇒ Object
Sets the value of the disks
attribute.
55953 55954 55955 55956 55957 55958 55959 55960 55961 55962 55963 |
# File 'lib/ovirtsdk4/types.rb', line 55953 def disks=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Disk.new(value) end end end @disks = list end |
#display ⇒ Display
Returns the value of the display
attribute.
55970 55971 55972 |
# File 'lib/ovirtsdk4/types.rb', line 55970 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.
55983 55984 55985 55986 55987 55988 |
# File 'lib/ovirtsdk4/types.rb', line 55983 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.
55995 55996 55997 |
# File 'lib/ovirtsdk4/types.rb', line 55995 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.
56008 56009 56010 56011 56012 56013 |
# File 'lib/ovirtsdk4/types.rb', line 56008 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.
56020 56021 56022 |
# File 'lib/ovirtsdk4/types.rb', line 56020 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.
56033 56034 56035 56036 56037 56038 |
# File 'lib/ovirtsdk4/types.rb', line 56033 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.
56045 56046 56047 |
# File 'lib/ovirtsdk4/types.rb', line 56045 def floppies @floppies end |
#floppies=(list) ⇒ Object
Sets the value of the floppies
attribute.
56054 56055 56056 56057 56058 56059 56060 56061 56062 56063 56064 |
# File 'lib/ovirtsdk4/types.rb', line 56054 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.
56071 56072 56073 |
# File 'lib/ovirtsdk4/types.rb', line 56071 def fqdn @fqdn end |
#fqdn=(value) ⇒ Object
Sets the value of the fqdn
attribute.
56080 56081 56082 |
# File 'lib/ovirtsdk4/types.rb', line 56080 def fqdn=(value) @fqdn = value end |
#graphics_consoles ⇒ Array<GraphicsConsole>
Returns the value of the graphics_consoles
attribute.
56089 56090 56091 |
# File 'lib/ovirtsdk4/types.rb', line 56089 def graphics_consoles @graphics_consoles end |
#graphics_consoles=(list) ⇒ Object
Sets the value of the graphics_consoles
attribute.
56098 56099 56100 56101 56102 56103 56104 56105 56106 56107 56108 |
# File 'lib/ovirtsdk4/types.rb', line 56098 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.
56115 56116 56117 |
# File 'lib/ovirtsdk4/types.rb', line 56115 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.
56128 56129 56130 56131 56132 56133 |
# File 'lib/ovirtsdk4/types.rb', line 56128 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.
56140 56141 56142 |
# File 'lib/ovirtsdk4/types.rb', line 56140 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.
56153 56154 56155 56156 56157 56158 |
# File 'lib/ovirtsdk4/types.rb', line 56153 def guest_time_zone=(value) if value.is_a?(Hash) value = TimeZone.new(value) end @guest_time_zone = value end |
#has_illegal_images ⇒ Boolean
Returns the value of the has_illegal_images
attribute.
56165 56166 56167 |
# File 'lib/ovirtsdk4/types.rb', line 56165 def has_illegal_images @has_illegal_images end |
#has_illegal_images=(value) ⇒ Object
Sets the value of the has_illegal_images
attribute.
56174 56175 56176 |
# File 'lib/ovirtsdk4/types.rb', line 56174 def has_illegal_images=(value) @has_illegal_images = value end |
#hash ⇒ Object
Generates a hash value for this object.
57754 57755 57756 57757 57758 57759 57760 57761 57762 |
# File 'lib/ovirtsdk4/types.rb', line 57754 def hash super + @date.hash + @disks.hash + @persist_memorystate.hash + @snapshot_status.hash + @snapshot_type.hash + @vm.hash end |
#high_availability ⇒ HighAvailability
Returns the value of the high_availability
attribute.
56183 56184 56185 |
# File 'lib/ovirtsdk4/types.rb', line 56183 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.
56196 56197 56198 56199 56200 56201 |
# File 'lib/ovirtsdk4/types.rb', line 56196 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.
56208 56209 56210 |
# File 'lib/ovirtsdk4/types.rb', line 56208 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.
56221 56222 56223 56224 56225 56226 |
# File 'lib/ovirtsdk4/types.rb', line 56221 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.
56233 56234 56235 |
# File 'lib/ovirtsdk4/types.rb', line 56233 def host_devices @host_devices end |
#host_devices=(list) ⇒ Object
Sets the value of the host_devices
attribute.
56242 56243 56244 56245 56246 56247 56248 56249 56250 56251 56252 |
# File 'lib/ovirtsdk4/types.rb', line 56242 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.
56259 56260 56261 |
# File 'lib/ovirtsdk4/types.rb', line 56259 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
56268 56269 56270 |
# File 'lib/ovirtsdk4/types.rb', line 56268 def id=(value) @id = value end |
#initialization ⇒ Initialization
Returns the value of the initialization
attribute.
56277 56278 56279 |
# File 'lib/ovirtsdk4/types.rb', line 56277 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.
56290 56291 56292 56293 56294 56295 |
# File 'lib/ovirtsdk4/types.rb', line 56290 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.
56302 56303 56304 |
# File 'lib/ovirtsdk4/types.rb', line 56302 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.
56315 56316 56317 56318 56319 56320 |
# File 'lib/ovirtsdk4/types.rb', line 56315 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.
56327 56328 56329 |
# File 'lib/ovirtsdk4/types.rb', line 56327 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.
56340 56341 56342 56343 56344 56345 |
# File 'lib/ovirtsdk4/types.rb', line 56340 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.
56352 56353 56354 |
# File 'lib/ovirtsdk4/types.rb', line 56352 def katello_errata @katello_errata end |
#katello_errata=(list) ⇒ Object
Sets the value of the katello_errata
attribute.
56361 56362 56363 56364 56365 56366 56367 56368 56369 56370 56371 |
# File 'lib/ovirtsdk4/types.rb', line 56361 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.
56378 56379 56380 |
# File 'lib/ovirtsdk4/types.rb', line 56378 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.
56391 56392 56393 56394 56395 56396 |
# File 'lib/ovirtsdk4/types.rb', line 56391 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.
56403 56404 56405 |
# File 'lib/ovirtsdk4/types.rb', line 56403 def lease @lease end |
#lease=(value) ⇒ Object
Sets the value of the lease
attribute.
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.
56416 56417 56418 56419 56420 56421 |
# File 'lib/ovirtsdk4/types.rb', line 56416 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.
56428 56429 56430 |
# File 'lib/ovirtsdk4/types.rb', line 56428 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory
attribute.
56437 56438 56439 |
# File 'lib/ovirtsdk4/types.rb', line 56437 def memory=(value) @memory = value end |
#memory_policy ⇒ MemoryPolicy
Returns the value of the memory_policy
attribute.
56446 56447 56448 |
# File 'lib/ovirtsdk4/types.rb', line 56446 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.
56459 56460 56461 56462 56463 56464 |
# File 'lib/ovirtsdk4/types.rb', line 56459 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.
56471 56472 56473 |
# File 'lib/ovirtsdk4/types.rb', line 56471 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.
56484 56485 56486 56487 56488 56489 |
# File 'lib/ovirtsdk4/types.rb', line 56484 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.
56496 56497 56498 |
# File 'lib/ovirtsdk4/types.rb', line 56496 def migration_downtime @migration_downtime end |
#migration_downtime=(value) ⇒ Object
Sets the value of the migration_downtime
attribute.
56505 56506 56507 |
# File 'lib/ovirtsdk4/types.rb', line 56505 def migration_downtime=(value) @migration_downtime = value end |
#multi_queues_enabled ⇒ Boolean
Returns the value of the multi_queues_enabled
attribute.
56514 56515 56516 |
# File 'lib/ovirtsdk4/types.rb', line 56514 def multi_queues_enabled @multi_queues_enabled end |
#multi_queues_enabled=(value) ⇒ Object
Sets the value of the multi_queues_enabled
attribute.
56523 56524 56525 |
# File 'lib/ovirtsdk4/types.rb', line 56523 def multi_queues_enabled=(value) @multi_queues_enabled = value end |
#name ⇒ String
Returns the value of the name
attribute.
56532 56533 56534 |
# File 'lib/ovirtsdk4/types.rb', line 56532 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
56541 56542 56543 |
# File 'lib/ovirtsdk4/types.rb', line 56541 def name=(value) @name = value end |
#next_run_configuration_exists ⇒ Boolean
Returns the value of the next_run_configuration_exists
attribute.
56550 56551 56552 |
# File 'lib/ovirtsdk4/types.rb', line 56550 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.
56559 56560 56561 |
# File 'lib/ovirtsdk4/types.rb', line 56559 def next_run_configuration_exists=(value) @next_run_configuration_exists = value end |
#nics ⇒ Array<Nic>
Returns the value of the nics
attribute.
56568 56569 56570 |
# File 'lib/ovirtsdk4/types.rb', line 56568 def nics @nics end |
#nics=(list) ⇒ Object
Sets the value of the nics
attribute.
56577 56578 56579 56580 56581 56582 56583 56584 56585 56586 56587 |
# File 'lib/ovirtsdk4/types.rb', line 56577 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.
56594 56595 56596 |
# File 'lib/ovirtsdk4/types.rb', line 56594 def numa_nodes @numa_nodes end |
#numa_nodes=(list) ⇒ Object
Sets the value of the numa_nodes
attribute.
56603 56604 56605 56606 56607 56608 56609 56610 56611 56612 56613 |
# File 'lib/ovirtsdk4/types.rb', line 56603 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.
56620 56621 56622 |
# File 'lib/ovirtsdk4/types.rb', line 56620 def numa_tune_mode @numa_tune_mode end |
#numa_tune_mode=(value) ⇒ Object
Sets the value of the numa_tune_mode
attribute.
56629 56630 56631 |
# File 'lib/ovirtsdk4/types.rb', line 56629 def numa_tune_mode=(value) @numa_tune_mode = value end |
#origin ⇒ String
Returns the value of the origin
attribute.
56638 56639 56640 |
# File 'lib/ovirtsdk4/types.rb', line 56638 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin
attribute.
56647 56648 56649 |
# File 'lib/ovirtsdk4/types.rb', line 56647 def origin=(value) @origin = value end |
#original_template ⇒ Template
Returns the value of the original_template
attribute.
56656 56657 56658 |
# File 'lib/ovirtsdk4/types.rb', line 56656 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.
56669 56670 56671 56672 56673 56674 |
# File 'lib/ovirtsdk4/types.rb', line 56669 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.
56681 56682 56683 |
# File 'lib/ovirtsdk4/types.rb', line 56681 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.
56694 56695 56696 56697 56698 56699 |
# File 'lib/ovirtsdk4/types.rb', line 56694 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.
56706 56707 56708 |
# File 'lib/ovirtsdk4/types.rb', line 56706 def payloads @payloads end |
#payloads=(list) ⇒ Object
Sets the value of the payloads
attribute.
56715 56716 56717 56718 56719 56720 56721 56722 56723 56724 56725 |
# File 'lib/ovirtsdk4/types.rb', line 56715 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.
56732 56733 56734 |
# File 'lib/ovirtsdk4/types.rb', line 56732 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
56741 56742 56743 56744 56745 56746 56747 56748 56749 56750 56751 |
# File 'lib/ovirtsdk4/types.rb', line 56741 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 |
#persist_memorystate ⇒ Boolean
Returns the value of the persist_memorystate
attribute.
56758 56759 56760 |
# File 'lib/ovirtsdk4/types.rb', line 56758 def persist_memorystate @persist_memorystate end |
#persist_memorystate=(value) ⇒ Object
Sets the value of the persist_memorystate
attribute.
56767 56768 56769 |
# File 'lib/ovirtsdk4/types.rb', line 56767 def persist_memorystate=(value) @persist_memorystate = value end |
#placement_policy ⇒ VmPlacementPolicy
Returns the value of the placement_policy
attribute.
56776 56777 56778 |
# File 'lib/ovirtsdk4/types.rb', line 56776 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 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.
56789 56790 56791 56792 56793 56794 |
# File 'lib/ovirtsdk4/types.rb', line 56789 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.
56801 56802 56803 |
# File 'lib/ovirtsdk4/types.rb', line 56801 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.
56814 56815 56816 56817 56818 56819 |
# File 'lib/ovirtsdk4/types.rb', line 56814 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.
56826 56827 56828 |
# File 'lib/ovirtsdk4/types.rb', line 56826 def reported_devices @reported_devices end |
#reported_devices=(list) ⇒ Object
Sets the value of the reported_devices
attribute.
56835 56836 56837 56838 56839 56840 56841 56842 56843 56844 56845 |
# File 'lib/ovirtsdk4/types.rb', line 56835 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.
56852 56853 56854 |
# File 'lib/ovirtsdk4/types.rb', line 56852 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.
56865 56866 56867 56868 56869 56870 |
# File 'lib/ovirtsdk4/types.rb', line 56865 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.
56877 56878 56879 |
# File 'lib/ovirtsdk4/types.rb', line 56877 def run_once @run_once end |
#run_once=(value) ⇒ Object
Sets the value of the run_once
attribute.
56886 56887 56888 |
# File 'lib/ovirtsdk4/types.rb', line 56886 def run_once=(value) @run_once = value end |
#serial_number ⇒ SerialNumber
Returns the value of the serial_number
attribute.
56895 56896 56897 |
# File 'lib/ovirtsdk4/types.rb', line 56895 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 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.
56908 56909 56910 56911 56912 56913 |
# File 'lib/ovirtsdk4/types.rb', line 56908 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.
56920 56921 56922 |
# File 'lib/ovirtsdk4/types.rb', line 56920 def sessions @sessions end |
#sessions=(list) ⇒ Object
Sets the value of the sessions
attribute.
56929 56930 56931 56932 56933 56934 56935 56936 56937 56938 56939 |
# File 'lib/ovirtsdk4/types.rb', line 56929 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.
56946 56947 56948 |
# File 'lib/ovirtsdk4/types.rb', line 56946 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.
56959 56960 56961 56962 56963 56964 |
# File 'lib/ovirtsdk4/types.rb', line 56959 def small_icon=(value) if value.is_a?(Hash) value = Icon.new(value) end @small_icon = value end |
#snapshot_status ⇒ SnapshotStatus
Returns the value of the snapshot_status
attribute.
56971 56972 56973 |
# File 'lib/ovirtsdk4/types.rb', line 56971 def snapshot_status @snapshot_status end |
#snapshot_status=(value) ⇒ Object
Sets the value of the snapshot_status
attribute.
56980 56981 56982 |
# File 'lib/ovirtsdk4/types.rb', line 56980 def snapshot_status=(value) @snapshot_status = value end |
#snapshot_type ⇒ SnapshotType
Returns the value of the snapshot_type
attribute.
56989 56990 56991 |
# File 'lib/ovirtsdk4/types.rb', line 56989 def snapshot_type @snapshot_type end |
#snapshot_type=(value) ⇒ Object
Sets the value of the snapshot_type
attribute.
56998 56999 57000 |
# File 'lib/ovirtsdk4/types.rb', line 56998 def snapshot_type=(value) @snapshot_type = value end |
#snapshots ⇒ Array<Snapshot>
Returns the value of the snapshots
attribute.
57007 57008 57009 |
# File 'lib/ovirtsdk4/types.rb', line 57007 def snapshots @snapshots end |
#snapshots=(list) ⇒ Object
Sets the value of the snapshots
attribute.
57016 57017 57018 57019 57020 57021 57022 57023 57024 57025 57026 |
# File 'lib/ovirtsdk4/types.rb', line 57016 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.
57033 57034 57035 |
# File 'lib/ovirtsdk4/types.rb', line 57033 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled
attribute.
57042 57043 57044 |
# File 'lib/ovirtsdk4/types.rb', line 57042 def soundcard_enabled=(value) @soundcard_enabled = value end |
#sso ⇒ Sso
Returns the value of the sso
attribute.
57051 57052 57053 |
# File 'lib/ovirtsdk4/types.rb', line 57051 def sso @sso end |
#sso=(value) ⇒ Object
Sets the value of the sso
attribute.
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.
57064 57065 57066 57067 57068 57069 |
# File 'lib/ovirtsdk4/types.rb', line 57064 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.
57076 57077 57078 |
# File 'lib/ovirtsdk4/types.rb', line 57076 def start_paused @start_paused end |
#start_paused=(value) ⇒ Object
Sets the value of the start_paused
attribute.
57085 57086 57087 |
# File 'lib/ovirtsdk4/types.rb', line 57085 def start_paused=(value) @start_paused = value end |
#start_time ⇒ DateTime
Returns the value of the start_time
attribute.
57094 57095 57096 |
# File 'lib/ovirtsdk4/types.rb', line 57094 def start_time @start_time end |
#start_time=(value) ⇒ Object
Sets the value of the start_time
attribute.
57103 57104 57105 |
# File 'lib/ovirtsdk4/types.rb', line 57103 def start_time=(value) @start_time = value end |
#stateless ⇒ Boolean
Returns the value of the stateless
attribute.
57112 57113 57114 |
# File 'lib/ovirtsdk4/types.rb', line 57112 def stateless @stateless end |
#stateless=(value) ⇒ Object
Sets the value of the stateless
attribute.
57121 57122 57123 |
# File 'lib/ovirtsdk4/types.rb', line 57121 def stateless=(value) @stateless = value end |
#statistics ⇒ Array<Statistic>
Returns the value of the statistics
attribute.
57130 57131 57132 |
# File 'lib/ovirtsdk4/types.rb', line 57130 def statistics @statistics end |
#statistics=(list) ⇒ Object
Sets the value of the statistics
attribute.
57139 57140 57141 57142 57143 57144 57145 57146 57147 57148 57149 |
# File 'lib/ovirtsdk4/types.rb', line 57139 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.
57156 57157 57158 |
# File 'lib/ovirtsdk4/types.rb', line 57156 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
57165 57166 57167 |
# File 'lib/ovirtsdk4/types.rb', line 57165 def status=(value) @status = value end |
#status_detail ⇒ String
Returns the value of the status_detail
attribute.
57174 57175 57176 |
# File 'lib/ovirtsdk4/types.rb', line 57174 def status_detail @status_detail end |
#status_detail=(value) ⇒ Object
Sets the value of the status_detail
attribute.
57183 57184 57185 |
# File 'lib/ovirtsdk4/types.rb', line 57183 def status_detail=(value) @status_detail = value end |
#stop_reason ⇒ String
Returns the value of the stop_reason
attribute.
57192 57193 57194 |
# File 'lib/ovirtsdk4/types.rb', line 57192 def stop_reason @stop_reason end |
#stop_reason=(value) ⇒ Object
Sets the value of the stop_reason
attribute.
57201 57202 57203 |
# File 'lib/ovirtsdk4/types.rb', line 57201 def stop_reason=(value) @stop_reason = value end |
#stop_time ⇒ DateTime
Returns the value of the stop_time
attribute.
57210 57211 57212 |
# File 'lib/ovirtsdk4/types.rb', line 57210 def stop_time @stop_time end |
#stop_time=(value) ⇒ Object
Sets the value of the stop_time
attribute.
57219 57220 57221 |
# File 'lib/ovirtsdk4/types.rb', line 57219 def stop_time=(value) @stop_time = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
57228 57229 57230 |
# File 'lib/ovirtsdk4/types.rb', line 57228 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 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.
57241 57242 57243 57244 57245 57246 |
# File 'lib/ovirtsdk4/types.rb', line 57241 def storage_domain=(value) if value.is_a?(Hash) value = StorageDomain.new(value) end @storage_domain = value end |
#storage_error_resume_behaviour ⇒ VmStorageErrorResumeBehaviour
Returns the value of the storage_error_resume_behaviour
attribute.
57253 57254 57255 |
# File 'lib/ovirtsdk4/types.rb', line 57253 def storage_error_resume_behaviour @storage_error_resume_behaviour end |
#storage_error_resume_behaviour=(value) ⇒ Object
Sets the value of the storage_error_resume_behaviour
attribute.
57262 57263 57264 |
# File 'lib/ovirtsdk4/types.rb', line 57262 def storage_error_resume_behaviour=(value) @storage_error_resume_behaviour = value end |
#tags ⇒ Array<Tag>
Returns the value of the tags
attribute.
57271 57272 57273 |
# File 'lib/ovirtsdk4/types.rb', line 57271 def @tags end |
#tags=(list) ⇒ Object
Sets the value of the tags
attribute.
57280 57281 57282 57283 57284 57285 57286 57287 57288 57289 57290 |
# File 'lib/ovirtsdk4/types.rb', line 57280 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.
57297 57298 57299 |
# File 'lib/ovirtsdk4/types.rb', line 57297 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.
57310 57311 57312 57313 57314 57315 |
# File 'lib/ovirtsdk4/types.rb', line 57310 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.
57322 57323 57324 |
# File 'lib/ovirtsdk4/types.rb', line 57322 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.
57335 57336 57337 57338 57339 57340 |
# File 'lib/ovirtsdk4/types.rb', line 57335 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.
57347 57348 57349 |
# File 'lib/ovirtsdk4/types.rb', line 57347 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration
attribute.
57356 57357 57358 |
# File 'lib/ovirtsdk4/types.rb', line 57356 def tunnel_migration=(value) @tunnel_migration = value end |
#type ⇒ VmType
Returns the value of the type
attribute.
57365 57366 57367 |
# File 'lib/ovirtsdk4/types.rb', line 57365 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
57374 57375 57376 |
# File 'lib/ovirtsdk4/types.rb', line 57374 def type=(value) @type = value end |
#usb ⇒ Usb
Returns the value of the usb
attribute.
57383 57384 57385 |
# File 'lib/ovirtsdk4/types.rb', line 57383 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.
57396 57397 57398 57399 57400 57401 |
# File 'lib/ovirtsdk4/types.rb', line 57396 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.
57408 57409 57410 |
# File 'lib/ovirtsdk4/types.rb', line 57408 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.
57417 57418 57419 |
# File 'lib/ovirtsdk4/types.rb', line 57417 def use_latest_template_version=(value) @use_latest_template_version = value end |
#virtio_scsi ⇒ VirtioScsi
Returns the value of the virtio_scsi
attribute.
57426 57427 57428 |
# File 'lib/ovirtsdk4/types.rb', line 57426 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 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.
57439 57440 57441 57442 57443 57444 |
# File 'lib/ovirtsdk4/types.rb', line 57439 def virtio_scsi=(value) if value.is_a?(Hash) value = VirtioScsi.new(value) end @virtio_scsi = value end |
#virtio_scsi_multi_queues_enabled ⇒ Boolean
Returns the value of the virtio_scsi_multi_queues_enabled
attribute.
57451 57452 57453 |
# File 'lib/ovirtsdk4/types.rb', line 57451 def virtio_scsi_multi_queues_enabled @virtio_scsi_multi_queues_enabled end |
#virtio_scsi_multi_queues_enabled=(value) ⇒ Object
Sets the value of the virtio_scsi_multi_queues_enabled
attribute.
57460 57461 57462 |
# File 'lib/ovirtsdk4/types.rb', line 57460 def virtio_scsi_multi_queues_enabled=(value) @virtio_scsi_multi_queues_enabled = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
57469 57470 57471 |
# File 'lib/ovirtsdk4/types.rb', line 57469 def vm @vm end |
#vm=(value) ⇒ Object
Sets the value of the vm
attribute.
The value
parameter can be an instance of Vm 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.
57482 57483 57484 57485 57486 57487 |
# File 'lib/ovirtsdk4/types.rb', line 57482 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |
#vm_pool ⇒ VmPool
Returns the value of the vm_pool
attribute.
57494 57495 57496 |
# File 'lib/ovirtsdk4/types.rb', line 57494 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 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.
57507 57508 57509 57510 57511 57512 |
# File 'lib/ovirtsdk4/types.rb', line 57507 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.
57519 57520 57521 |
# File 'lib/ovirtsdk4/types.rb', line 57519 def watchdogs @watchdogs end |
#watchdogs=(list) ⇒ Object
Sets the value of the watchdogs
attribute.
57528 57529 57530 57531 57532 57533 57534 57535 57536 57537 57538 |
# File 'lib/ovirtsdk4/types.rb', line 57528 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 |