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. -
#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.
55998 55999 56000 56001 56002 56003 56004 56005 56006 |
# File 'lib/ovirtsdk4/types.rb', line 55998 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.
56011 56012 56013 56014 56015 56016 56017 56018 56019 |
# File 'lib/ovirtsdk4/types.rb', line 56011 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.
53810 53811 53812 |
# File 'lib/ovirtsdk4/types.rb', line 53810 def affinity_labels @affinity_labels end |
#affinity_labels=(list) ⇒ Object
Sets the value of the affinity_labels
attribute.
53819 53820 53821 53822 53823 53824 53825 53826 53827 53828 53829 |
# File 'lib/ovirtsdk4/types.rb', line 53819 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.
53836 53837 53838 |
# File 'lib/ovirtsdk4/types.rb', line 53836 def applications @applications end |
#applications=(list) ⇒ Object
Sets the value of the applications
attribute.
53845 53846 53847 53848 53849 53850 53851 53852 53853 53854 53855 |
# File 'lib/ovirtsdk4/types.rb', line 53845 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.
53862 53863 53864 |
# File 'lib/ovirtsdk4/types.rb', line 53862 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.
53875 53876 53877 53878 53879 53880 |
# File 'lib/ovirtsdk4/types.rb', line 53875 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.
53887 53888 53889 |
# File 'lib/ovirtsdk4/types.rb', line 53887 def cdroms @cdroms end |
#cdroms=(list) ⇒ Object
Sets the value of the cdroms
attribute.
53896 53897 53898 53899 53900 53901 53902 53903 53904 53905 53906 |
# File 'lib/ovirtsdk4/types.rb', line 53896 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.
53913 53914 53915 |
# File 'lib/ovirtsdk4/types.rb', line 53913 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.
53926 53927 53928 53929 53930 53931 |
# File 'lib/ovirtsdk4/types.rb', line 53926 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.
53938 53939 53940 |
# File 'lib/ovirtsdk4/types.rb', line 53938 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
53947 53948 53949 |
# File 'lib/ovirtsdk4/types.rb', line 53947 def comment=(value) @comment = value end |
#console ⇒ Console
Returns the value of the console
attribute.
53956 53957 53958 |
# File 'lib/ovirtsdk4/types.rb', line 53956 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.
53969 53970 53971 53972 53973 53974 |
# File 'lib/ovirtsdk4/types.rb', line 53969 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.
53981 53982 53983 |
# File 'lib/ovirtsdk4/types.rb', line 53981 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.
53994 53995 53996 53997 53998 53999 |
# File 'lib/ovirtsdk4/types.rb', line 53994 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.
54006 54007 54008 |
# File 'lib/ovirtsdk4/types.rb', line 54006 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.
54019 54020 54021 54022 54023 54024 |
# File 'lib/ovirtsdk4/types.rb', line 54019 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.
54031 54032 54033 |
# File 'lib/ovirtsdk4/types.rb', line 54031 def cpu_shares @cpu_shares end |
#cpu_shares=(value) ⇒ Object
Sets the value of the cpu_shares
attribute.
54040 54041 54042 |
# File 'lib/ovirtsdk4/types.rb', line 54040 def cpu_shares=(value) @cpu_shares = value end |
#creation_time ⇒ DateTime
Returns the value of the creation_time
attribute.
54049 54050 54051 |
# File 'lib/ovirtsdk4/types.rb', line 54049 def creation_time @creation_time end |
#creation_time=(value) ⇒ Object
Sets the value of the creation_time
attribute.
54058 54059 54060 |
# File 'lib/ovirtsdk4/types.rb', line 54058 def creation_time=(value) @creation_time = value end |
#custom_compatibility_version ⇒ Version
Returns the value of the custom_compatibility_version
attribute.
54067 54068 54069 |
# File 'lib/ovirtsdk4/types.rb', line 54067 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.
54080 54081 54082 54083 54084 54085 |
# File 'lib/ovirtsdk4/types.rb', line 54080 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.
54092 54093 54094 |
# File 'lib/ovirtsdk4/types.rb', line 54092 def custom_cpu_model @custom_cpu_model end |
#custom_cpu_model=(value) ⇒ Object
Sets the value of the custom_cpu_model
attribute.
54101 54102 54103 |
# File 'lib/ovirtsdk4/types.rb', line 54101 def custom_cpu_model=(value) @custom_cpu_model = value end |
#custom_emulated_machine ⇒ String
Returns the value of the custom_emulated_machine
attribute.
54110 54111 54112 |
# File 'lib/ovirtsdk4/types.rb', line 54110 def custom_emulated_machine @custom_emulated_machine end |
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the custom_emulated_machine
attribute.
54119 54120 54121 |
# File 'lib/ovirtsdk4/types.rb', line 54119 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the custom_properties
attribute.
54128 54129 54130 |
# File 'lib/ovirtsdk4/types.rb', line 54128 def custom_properties @custom_properties end |
#custom_properties=(list) ⇒ Object
Sets the value of the custom_properties
attribute.
54137 54138 54139 54140 54141 54142 54143 54144 54145 54146 54147 |
# File 'lib/ovirtsdk4/types.rb', line 54137 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.
54154 54155 54156 |
# File 'lib/ovirtsdk4/types.rb', line 54154 def date @date end |
#date=(value) ⇒ Object
Sets the value of the date
attribute.
54163 54164 54165 |
# File 'lib/ovirtsdk4/types.rb', line 54163 def date=(value) @date = value end |
#delete_protected ⇒ Boolean
Returns the value of the delete_protected
attribute.
54172 54173 54174 |
# File 'lib/ovirtsdk4/types.rb', line 54172 def delete_protected @delete_protected end |
#delete_protected=(value) ⇒ Object
Sets the value of the delete_protected
attribute.
54181 54182 54183 |
# File 'lib/ovirtsdk4/types.rb', line 54181 def delete_protected=(value) @delete_protected = value end |
#description ⇒ String
Returns the value of the description
attribute.
54190 54191 54192 |
# File 'lib/ovirtsdk4/types.rb', line 54190 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
54199 54200 54201 |
# File 'lib/ovirtsdk4/types.rb', line 54199 def description=(value) @description = value end |
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the disk_attachments
attribute.
54208 54209 54210 |
# File 'lib/ovirtsdk4/types.rb', line 54208 def @disk_attachments end |
#disk_attachments=(list) ⇒ Object
Sets the value of the disk_attachments
attribute.
54217 54218 54219 54220 54221 54222 54223 54224 54225 54226 54227 |
# File 'lib/ovirtsdk4/types.rb', line 54217 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.
54234 54235 54236 |
# File 'lib/ovirtsdk4/types.rb', line 54234 def disks @disks end |
#disks=(list) ⇒ Object
Sets the value of the disks
attribute.
54243 54244 54245 54246 54247 54248 54249 54250 54251 54252 54253 |
# File 'lib/ovirtsdk4/types.rb', line 54243 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.
54260 54261 54262 |
# File 'lib/ovirtsdk4/types.rb', line 54260 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.
54273 54274 54275 54276 54277 54278 |
# File 'lib/ovirtsdk4/types.rb', line 54273 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.
54285 54286 54287 |
# File 'lib/ovirtsdk4/types.rb', line 54285 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.
54298 54299 54300 54301 54302 54303 |
# File 'lib/ovirtsdk4/types.rb', line 54298 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.
54310 54311 54312 |
# File 'lib/ovirtsdk4/types.rb', line 54310 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.
54323 54324 54325 54326 54327 54328 |
# File 'lib/ovirtsdk4/types.rb', line 54323 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.
54335 54336 54337 |
# File 'lib/ovirtsdk4/types.rb', line 54335 def floppies @floppies end |
#floppies=(list) ⇒ Object
Sets the value of the floppies
attribute.
54344 54345 54346 54347 54348 54349 54350 54351 54352 54353 54354 |
# File 'lib/ovirtsdk4/types.rb', line 54344 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.
54361 54362 54363 |
# File 'lib/ovirtsdk4/types.rb', line 54361 def fqdn @fqdn end |
#fqdn=(value) ⇒ Object
Sets the value of the fqdn
attribute.
54370 54371 54372 |
# File 'lib/ovirtsdk4/types.rb', line 54370 def fqdn=(value) @fqdn = value end |
#graphics_consoles ⇒ Array<GraphicsConsole>
Returns the value of the graphics_consoles
attribute.
54379 54380 54381 |
# File 'lib/ovirtsdk4/types.rb', line 54379 def graphics_consoles @graphics_consoles end |
#graphics_consoles=(list) ⇒ Object
Sets the value of the graphics_consoles
attribute.
54388 54389 54390 54391 54392 54393 54394 54395 54396 54397 54398 |
# File 'lib/ovirtsdk4/types.rb', line 54388 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.
54405 54406 54407 |
# File 'lib/ovirtsdk4/types.rb', line 54405 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.
54418 54419 54420 54421 54422 54423 |
# File 'lib/ovirtsdk4/types.rb', line 54418 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.
54430 54431 54432 |
# File 'lib/ovirtsdk4/types.rb', line 54430 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.
54443 54444 54445 54446 54447 54448 |
# File 'lib/ovirtsdk4/types.rb', line 54443 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.
54455 54456 54457 |
# File 'lib/ovirtsdk4/types.rb', line 54455 def has_illegal_images @has_illegal_images end |
#has_illegal_images=(value) ⇒ Object
Sets the value of the has_illegal_images
attribute.
54464 54465 54466 |
# File 'lib/ovirtsdk4/types.rb', line 54464 def has_illegal_images=(value) @has_illegal_images = value end |
#hash ⇒ Object
Generates a hash value for this object.
56024 56025 56026 56027 56028 56029 56030 56031 56032 |
# File 'lib/ovirtsdk4/types.rb', line 56024 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.
54473 54474 54475 |
# File 'lib/ovirtsdk4/types.rb', line 54473 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.
54486 54487 54488 54489 54490 54491 |
# File 'lib/ovirtsdk4/types.rb', line 54486 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.
54498 54499 54500 |
# File 'lib/ovirtsdk4/types.rb', line 54498 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.
54511 54512 54513 54514 54515 54516 |
# File 'lib/ovirtsdk4/types.rb', line 54511 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.
54523 54524 54525 |
# File 'lib/ovirtsdk4/types.rb', line 54523 def host_devices @host_devices end |
#host_devices=(list) ⇒ Object
Sets the value of the host_devices
attribute.
54532 54533 54534 54535 54536 54537 54538 54539 54540 54541 54542 |
# File 'lib/ovirtsdk4/types.rb', line 54532 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.
54549 54550 54551 |
# File 'lib/ovirtsdk4/types.rb', line 54549 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
54558 54559 54560 |
# File 'lib/ovirtsdk4/types.rb', line 54558 def id=(value) @id = value end |
#initialization ⇒ Initialization
Returns the value of the initialization
attribute.
54567 54568 54569 |
# File 'lib/ovirtsdk4/types.rb', line 54567 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.
54580 54581 54582 54583 54584 54585 |
# File 'lib/ovirtsdk4/types.rb', line 54580 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.
54592 54593 54594 |
# File 'lib/ovirtsdk4/types.rb', line 54592 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.
54605 54606 54607 54608 54609 54610 |
# File 'lib/ovirtsdk4/types.rb', line 54605 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.
54617 54618 54619 |
# File 'lib/ovirtsdk4/types.rb', line 54617 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.
54630 54631 54632 54633 54634 54635 |
# File 'lib/ovirtsdk4/types.rb', line 54630 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.
54642 54643 54644 |
# File 'lib/ovirtsdk4/types.rb', line 54642 def katello_errata @katello_errata end |
#katello_errata=(list) ⇒ Object
Sets the value of the katello_errata
attribute.
54651 54652 54653 54654 54655 54656 54657 54658 54659 54660 54661 |
# File 'lib/ovirtsdk4/types.rb', line 54651 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.
54668 54669 54670 |
# File 'lib/ovirtsdk4/types.rb', line 54668 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.
54681 54682 54683 54684 54685 54686 |
# File 'lib/ovirtsdk4/types.rb', line 54681 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.
54693 54694 54695 |
# File 'lib/ovirtsdk4/types.rb', line 54693 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.
54706 54707 54708 54709 54710 54711 |
# File 'lib/ovirtsdk4/types.rb', line 54706 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.
54718 54719 54720 |
# File 'lib/ovirtsdk4/types.rb', line 54718 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory
attribute.
54727 54728 54729 |
# File 'lib/ovirtsdk4/types.rb', line 54727 def memory=(value) @memory = value end |
#memory_policy ⇒ MemoryPolicy
Returns the value of the memory_policy
attribute.
54736 54737 54738 |
# File 'lib/ovirtsdk4/types.rb', line 54736 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.
54749 54750 54751 54752 54753 54754 |
# File 'lib/ovirtsdk4/types.rb', line 54749 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.
54761 54762 54763 |
# File 'lib/ovirtsdk4/types.rb', line 54761 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.
54774 54775 54776 54777 54778 54779 |
# File 'lib/ovirtsdk4/types.rb', line 54774 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.
54786 54787 54788 |
# File 'lib/ovirtsdk4/types.rb', line 54786 def migration_downtime @migration_downtime end |
#migration_downtime=(value) ⇒ Object
Sets the value of the migration_downtime
attribute.
54795 54796 54797 |
# File 'lib/ovirtsdk4/types.rb', line 54795 def migration_downtime=(value) @migration_downtime = value end |
#multi_queues_enabled ⇒ Boolean
Returns the value of the multi_queues_enabled
attribute.
54804 54805 54806 |
# File 'lib/ovirtsdk4/types.rb', line 54804 def multi_queues_enabled @multi_queues_enabled end |
#multi_queues_enabled=(value) ⇒ Object
Sets the value of the multi_queues_enabled
attribute.
54813 54814 54815 |
# File 'lib/ovirtsdk4/types.rb', line 54813 def multi_queues_enabled=(value) @multi_queues_enabled = value end |
#name ⇒ String
Returns the value of the name
attribute.
54822 54823 54824 |
# File 'lib/ovirtsdk4/types.rb', line 54822 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
54831 54832 54833 |
# File 'lib/ovirtsdk4/types.rb', line 54831 def name=(value) @name = value end |
#next_run_configuration_exists ⇒ Boolean
Returns the value of the next_run_configuration_exists
attribute.
54840 54841 54842 |
# File 'lib/ovirtsdk4/types.rb', line 54840 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.
54849 54850 54851 |
# File 'lib/ovirtsdk4/types.rb', line 54849 def next_run_configuration_exists=(value) @next_run_configuration_exists = value end |
#nics ⇒ Array<Nic>
Returns the value of the nics
attribute.
54858 54859 54860 |
# File 'lib/ovirtsdk4/types.rb', line 54858 def nics @nics end |
#nics=(list) ⇒ Object
Sets the value of the nics
attribute.
54867 54868 54869 54870 54871 54872 54873 54874 54875 54876 54877 |
# File 'lib/ovirtsdk4/types.rb', line 54867 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.
54884 54885 54886 |
# File 'lib/ovirtsdk4/types.rb', line 54884 def numa_nodes @numa_nodes end |
#numa_nodes=(list) ⇒ Object
Sets the value of the numa_nodes
attribute.
54893 54894 54895 54896 54897 54898 54899 54900 54901 54902 54903 |
# File 'lib/ovirtsdk4/types.rb', line 54893 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.
54910 54911 54912 |
# File 'lib/ovirtsdk4/types.rb', line 54910 def numa_tune_mode @numa_tune_mode end |
#numa_tune_mode=(value) ⇒ Object
Sets the value of the numa_tune_mode
attribute.
54919 54920 54921 |
# File 'lib/ovirtsdk4/types.rb', line 54919 def numa_tune_mode=(value) @numa_tune_mode = value end |
#origin ⇒ String
Returns the value of the origin
attribute.
54928 54929 54930 |
# File 'lib/ovirtsdk4/types.rb', line 54928 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin
attribute.
54937 54938 54939 |
# File 'lib/ovirtsdk4/types.rb', line 54937 def origin=(value) @origin = value end |
#original_template ⇒ Template
Returns the value of the original_template
attribute.
54946 54947 54948 |
# File 'lib/ovirtsdk4/types.rb', line 54946 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.
54959 54960 54961 54962 54963 54964 |
# File 'lib/ovirtsdk4/types.rb', line 54959 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.
54971 54972 54973 |
# File 'lib/ovirtsdk4/types.rb', line 54971 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.
54984 54985 54986 54987 54988 54989 |
# File 'lib/ovirtsdk4/types.rb', line 54984 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.
54996 54997 54998 |
# File 'lib/ovirtsdk4/types.rb', line 54996 def payloads @payloads end |
#payloads=(list) ⇒ Object
Sets the value of the payloads
attribute.
55005 55006 55007 55008 55009 55010 55011 55012 55013 55014 55015 |
# File 'lib/ovirtsdk4/types.rb', line 55005 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.
55022 55023 55024 |
# File 'lib/ovirtsdk4/types.rb', line 55022 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
55031 55032 55033 55034 55035 55036 55037 55038 55039 55040 55041 |
# File 'lib/ovirtsdk4/types.rb', line 55031 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.
55048 55049 55050 |
# File 'lib/ovirtsdk4/types.rb', line 55048 def persist_memorystate @persist_memorystate end |
#persist_memorystate=(value) ⇒ Object
Sets the value of the persist_memorystate
attribute.
55057 55058 55059 |
# File 'lib/ovirtsdk4/types.rb', line 55057 def persist_memorystate=(value) @persist_memorystate = value end |
#placement_policy ⇒ VmPlacementPolicy
Returns the value of the placement_policy
attribute.
55066 55067 55068 |
# File 'lib/ovirtsdk4/types.rb', line 55066 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.
55079 55080 55081 55082 55083 55084 |
# File 'lib/ovirtsdk4/types.rb', line 55079 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.
55091 55092 55093 |
# File 'lib/ovirtsdk4/types.rb', line 55091 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.
55104 55105 55106 55107 55108 55109 |
# File 'lib/ovirtsdk4/types.rb', line 55104 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.
55116 55117 55118 |
# File 'lib/ovirtsdk4/types.rb', line 55116 def reported_devices @reported_devices end |
#reported_devices=(list) ⇒ Object
Sets the value of the reported_devices
attribute.
55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 |
# File 'lib/ovirtsdk4/types.rb', line 55125 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.
55142 55143 55144 |
# File 'lib/ovirtsdk4/types.rb', line 55142 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.
55155 55156 55157 55158 55159 55160 |
# File 'lib/ovirtsdk4/types.rb', line 55155 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.
55167 55168 55169 |
# File 'lib/ovirtsdk4/types.rb', line 55167 def run_once @run_once end |
#run_once=(value) ⇒ Object
Sets the value of the run_once
attribute.
55176 55177 55178 |
# File 'lib/ovirtsdk4/types.rb', line 55176 def run_once=(value) @run_once = value end |
#serial_number ⇒ SerialNumber
Returns the value of the serial_number
attribute.
55185 55186 55187 |
# File 'lib/ovirtsdk4/types.rb', line 55185 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.
55198 55199 55200 55201 55202 55203 |
# File 'lib/ovirtsdk4/types.rb', line 55198 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.
55210 55211 55212 |
# File 'lib/ovirtsdk4/types.rb', line 55210 def sessions @sessions end |
#sessions=(list) ⇒ Object
Sets the value of the sessions
attribute.
55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 |
# File 'lib/ovirtsdk4/types.rb', line 55219 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.
55236 55237 55238 |
# File 'lib/ovirtsdk4/types.rb', line 55236 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.
55249 55250 55251 55252 55253 55254 |
# File 'lib/ovirtsdk4/types.rb', line 55249 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.
55261 55262 55263 |
# File 'lib/ovirtsdk4/types.rb', line 55261 def snapshot_status @snapshot_status end |
#snapshot_status=(value) ⇒ Object
Sets the value of the snapshot_status
attribute.
55270 55271 55272 |
# File 'lib/ovirtsdk4/types.rb', line 55270 def snapshot_status=(value) @snapshot_status = value end |
#snapshot_type ⇒ SnapshotType
Returns the value of the snapshot_type
attribute.
55279 55280 55281 |
# File 'lib/ovirtsdk4/types.rb', line 55279 def snapshot_type @snapshot_type end |
#snapshot_type=(value) ⇒ Object
Sets the value of the snapshot_type
attribute.
55288 55289 55290 |
# File 'lib/ovirtsdk4/types.rb', line 55288 def snapshot_type=(value) @snapshot_type = value end |
#snapshots ⇒ Array<Snapshot>
Returns the value of the snapshots
attribute.
55297 55298 55299 |
# File 'lib/ovirtsdk4/types.rb', line 55297 def snapshots @snapshots end |
#snapshots=(list) ⇒ Object
Sets the value of the snapshots
attribute.
55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 |
# File 'lib/ovirtsdk4/types.rb', line 55306 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.
55323 55324 55325 |
# File 'lib/ovirtsdk4/types.rb', line 55323 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled
attribute.
55332 55333 55334 |
# File 'lib/ovirtsdk4/types.rb', line 55332 def soundcard_enabled=(value) @soundcard_enabled = value end |
#sso ⇒ Sso
Returns the value of the sso
attribute.
55341 55342 55343 |
# File 'lib/ovirtsdk4/types.rb', line 55341 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.
55354 55355 55356 55357 55358 55359 |
# File 'lib/ovirtsdk4/types.rb', line 55354 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.
55366 55367 55368 |
# File 'lib/ovirtsdk4/types.rb', line 55366 def start_paused @start_paused end |
#start_paused=(value) ⇒ Object
Sets the value of the start_paused
attribute.
55375 55376 55377 |
# File 'lib/ovirtsdk4/types.rb', line 55375 def start_paused=(value) @start_paused = value end |
#start_time ⇒ DateTime
Returns the value of the start_time
attribute.
55384 55385 55386 |
# File 'lib/ovirtsdk4/types.rb', line 55384 def start_time @start_time end |
#start_time=(value) ⇒ Object
Sets the value of the start_time
attribute.
55393 55394 55395 |
# File 'lib/ovirtsdk4/types.rb', line 55393 def start_time=(value) @start_time = value end |
#stateless ⇒ Boolean
Returns the value of the stateless
attribute.
55402 55403 55404 |
# File 'lib/ovirtsdk4/types.rb', line 55402 def stateless @stateless end |
#stateless=(value) ⇒ Object
Sets the value of the stateless
attribute.
55411 55412 55413 |
# File 'lib/ovirtsdk4/types.rb', line 55411 def stateless=(value) @stateless = value end |
#statistics ⇒ Array<Statistic>
Returns the value of the statistics
attribute.
55420 55421 55422 |
# File 'lib/ovirtsdk4/types.rb', line 55420 def statistics @statistics end |
#statistics=(list) ⇒ Object
Sets the value of the statistics
attribute.
55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 |
# File 'lib/ovirtsdk4/types.rb', line 55429 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.
55446 55447 55448 |
# File 'lib/ovirtsdk4/types.rb', line 55446 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
55455 55456 55457 |
# File 'lib/ovirtsdk4/types.rb', line 55455 def status=(value) @status = value end |
#status_detail ⇒ String
Returns the value of the status_detail
attribute.
55464 55465 55466 |
# File 'lib/ovirtsdk4/types.rb', line 55464 def status_detail @status_detail end |
#status_detail=(value) ⇒ Object
Sets the value of the status_detail
attribute.
55473 55474 55475 |
# File 'lib/ovirtsdk4/types.rb', line 55473 def status_detail=(value) @status_detail = value end |
#stop_reason ⇒ String
Returns the value of the stop_reason
attribute.
55482 55483 55484 |
# File 'lib/ovirtsdk4/types.rb', line 55482 def stop_reason @stop_reason end |
#stop_reason=(value) ⇒ Object
Sets the value of the stop_reason
attribute.
55491 55492 55493 |
# File 'lib/ovirtsdk4/types.rb', line 55491 def stop_reason=(value) @stop_reason = value end |
#stop_time ⇒ DateTime
Returns the value of the stop_time
attribute.
55500 55501 55502 |
# File 'lib/ovirtsdk4/types.rb', line 55500 def stop_time @stop_time end |
#stop_time=(value) ⇒ Object
Sets the value of the stop_time
attribute.
55509 55510 55511 |
# File 'lib/ovirtsdk4/types.rb', line 55509 def stop_time=(value) @stop_time = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
55518 55519 55520 |
# File 'lib/ovirtsdk4/types.rb', line 55518 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.
55531 55532 55533 55534 55535 55536 |
# File 'lib/ovirtsdk4/types.rb', line 55531 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.
55543 55544 55545 |
# File 'lib/ovirtsdk4/types.rb', line 55543 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.
55552 55553 55554 |
# File 'lib/ovirtsdk4/types.rb', line 55552 def storage_error_resume_behaviour=(value) @storage_error_resume_behaviour = value end |
#tags ⇒ Array<Tag>
Returns the value of the tags
attribute.
55561 55562 55563 |
# File 'lib/ovirtsdk4/types.rb', line 55561 def @tags end |
#tags=(list) ⇒ Object
Sets the value of the tags
attribute.
55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 |
# File 'lib/ovirtsdk4/types.rb', line 55570 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.
55587 55588 55589 |
# File 'lib/ovirtsdk4/types.rb', line 55587 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.
55600 55601 55602 55603 55604 55605 |
# File 'lib/ovirtsdk4/types.rb', line 55600 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.
55612 55613 55614 |
# File 'lib/ovirtsdk4/types.rb', line 55612 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.
55625 55626 55627 55628 55629 55630 |
# File 'lib/ovirtsdk4/types.rb', line 55625 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.
55637 55638 55639 |
# File 'lib/ovirtsdk4/types.rb', line 55637 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration
attribute.
55646 55647 55648 |
# File 'lib/ovirtsdk4/types.rb', line 55646 def tunnel_migration=(value) @tunnel_migration = value end |
#type ⇒ VmType
Returns the value of the type
attribute.
55655 55656 55657 |
# File 'lib/ovirtsdk4/types.rb', line 55655 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
55664 55665 55666 |
# File 'lib/ovirtsdk4/types.rb', line 55664 def type=(value) @type = value end |
#usb ⇒ Usb
Returns the value of the usb
attribute.
55673 55674 55675 |
# File 'lib/ovirtsdk4/types.rb', line 55673 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.
55686 55687 55688 55689 55690 55691 |
# File 'lib/ovirtsdk4/types.rb', line 55686 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.
55698 55699 55700 |
# File 'lib/ovirtsdk4/types.rb', line 55698 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.
55707 55708 55709 |
# File 'lib/ovirtsdk4/types.rb', line 55707 def use_latest_template_version=(value) @use_latest_template_version = value end |
#virtio_scsi ⇒ VirtioScsi
Returns the value of the virtio_scsi
attribute.
55716 55717 55718 |
# File 'lib/ovirtsdk4/types.rb', line 55716 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.
55729 55730 55731 55732 55733 55734 |
# File 'lib/ovirtsdk4/types.rb', line 55729 def virtio_scsi=(value) if value.is_a?(Hash) value = VirtioScsi.new(value) end @virtio_scsi = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
55741 55742 55743 |
# File 'lib/ovirtsdk4/types.rb', line 55741 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.
55754 55755 55756 55757 55758 55759 |
# File 'lib/ovirtsdk4/types.rb', line 55754 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.
55766 55767 55768 |
# File 'lib/ovirtsdk4/types.rb', line 55766 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.
55779 55780 55781 55782 55783 55784 |
# File 'lib/ovirtsdk4/types.rb', line 55779 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.
55791 55792 55793 |
# File 'lib/ovirtsdk4/types.rb', line 55791 def watchdogs @watchdogs end |
#watchdogs=(list) ⇒ Object
Sets the value of the watchdogs
attribute.
55800 55801 55802 55803 55804 55805 55806 55807 55808 55809 55810 |
# File 'lib/ovirtsdk4/types.rb', line 55800 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 |