Class: OvirtSDK4::Vm
- Inherits:
-
VmBase
- Object
- Struct
- Identified
- VmBase
- OvirtSDK4::Vm
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#affinity_labels ⇒ Array<AffinityLabel>
Returns the value of the
affinity_labelsattribute. -
#affinity_labels=(list) ⇒ Object
Sets the value of the
affinity_labelsattribute. -
#applications ⇒ Array<Application>
Returns the value of the
applicationsattribute. -
#applications=(list) ⇒ Object
Sets the value of the
applicationsattribute. -
#bios ⇒ Bios
Returns the value of the
biosattribute. -
#bios=(value) ⇒ Object
Sets the value of the
biosattribute. -
#cdroms ⇒ Array<Cdrom>
Returns the value of the
cdromsattribute. -
#cdroms=(list) ⇒ Object
Sets the value of the
cdromsattribute. -
#cluster ⇒ Cluster
Returns the value of the
clusterattribute. -
#cluster=(value) ⇒ Object
Sets the value of the
clusterattribute. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#console ⇒ Console
Returns the value of the
consoleattribute. -
#console=(value) ⇒ Object
Sets the value of the
consoleattribute. -
#cpu ⇒ Cpu
Returns the value of the
cpuattribute. -
#cpu=(value) ⇒ Object
Sets the value of the
cpuattribute. -
#cpu_profile ⇒ CpuProfile
Returns the value of the
cpu_profileattribute. -
#cpu_profile=(value) ⇒ Object
Sets the value of the
cpu_profileattribute. -
#cpu_shares ⇒ Integer
Returns the value of the
cpu_sharesattribute. -
#cpu_shares=(value) ⇒ Object
Sets the value of the
cpu_sharesattribute. -
#creation_time ⇒ DateTime
Returns the value of the
creation_timeattribute. -
#creation_time=(value) ⇒ Object
Sets the value of the
creation_timeattribute. -
#custom_compatibility_version ⇒ Version
Returns the value of the
custom_compatibility_versionattribute. -
#custom_compatibility_version=(value) ⇒ Object
Sets the value of the
custom_compatibility_versionattribute. -
#custom_cpu_model ⇒ String
Returns the value of the
custom_cpu_modelattribute. -
#custom_cpu_model=(value) ⇒ Object
Sets the value of the
custom_cpu_modelattribute. -
#custom_emulated_machine ⇒ String
Returns the value of the
custom_emulated_machineattribute. -
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the
custom_emulated_machineattribute. -
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the
custom_propertiesattribute. -
#custom_properties=(list) ⇒ Object
Sets the value of the
custom_propertiesattribute. -
#delete_protected ⇒ Boolean
Returns the value of the
delete_protectedattribute. -
#delete_protected=(value) ⇒ Object
Sets the value of the
delete_protectedattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the
disk_attachmentsattribute. -
#disk_attachments=(list) ⇒ Object
Sets the value of the
disk_attachmentsattribute. -
#display ⇒ Display
Returns the value of the
displayattribute. -
#display=(value) ⇒ Object
Sets the value of the
displayattribute. -
#domain ⇒ Domain
Returns the value of the
domainattribute. -
#domain=(value) ⇒ Object
Sets the value of the
domainattribute. -
#external_host_provider ⇒ ExternalHostProvider
Returns the value of the
external_host_providerattribute. -
#external_host_provider=(value) ⇒ Object
Sets the value of the
external_host_providerattribute. -
#floppies ⇒ Array<Floppy>
Returns the value of the
floppiesattribute. -
#floppies=(list) ⇒ Object
Sets the value of the
floppiesattribute. -
#fqdn ⇒ String
Returns the value of the
fqdnattribute. -
#fqdn=(value) ⇒ Object
Sets the value of the
fqdnattribute. -
#graphics_consoles ⇒ Array<GraphicsConsole>
Returns the value of the
graphics_consolesattribute. -
#graphics_consoles=(list) ⇒ Object
Sets the value of the
graphics_consolesattribute. -
#guest_operating_system ⇒ GuestOperatingSystem
Returns the value of the
guest_operating_systemattribute. -
#guest_operating_system=(value) ⇒ Object
Sets the value of the
guest_operating_systemattribute. -
#guest_time_zone ⇒ TimeZone
Returns the value of the
guest_time_zoneattribute. -
#guest_time_zone=(value) ⇒ Object
Sets the value of the
guest_time_zoneattribute. -
#has_illegal_images ⇒ Boolean
Returns the value of the
has_illegal_imagesattribute. -
#has_illegal_images=(value) ⇒ Object
Sets the value of the
has_illegal_imagesattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#high_availability ⇒ HighAvailability
Returns the value of the
high_availabilityattribute. -
#high_availability=(value) ⇒ Object
Sets the value of the
high_availabilityattribute. -
#host ⇒ Host
Returns the value of the
hostattribute. -
#host=(value) ⇒ Object
Sets the value of the
hostattribute. -
#host_devices ⇒ Array<HostDevice>
Returns the value of the
host_devicesattribute. -
#host_devices=(list) ⇒ Object
Sets the value of the
host_devicesattribute. -
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialization ⇒ Initialization
Returns the value of the
initializationattribute. -
#initialization=(value) ⇒ Object
Sets the value of the
initializationattribute. -
#initialize(opts = {}) ⇒ Vm
constructor
Creates a new instance of the Vm class.
-
#instance_type ⇒ InstanceType
Returns the value of the
instance_typeattribute. -
#instance_type=(value) ⇒ Object
Sets the value of the
instance_typeattribute. -
#io ⇒ Io
Returns the value of the
ioattribute. -
#io=(value) ⇒ Object
Sets the value of the
ioattribute. -
#katello_errata ⇒ Array<KatelloErratum>
Returns the value of the
katello_errataattribute. -
#katello_errata=(list) ⇒ Object
Sets the value of the
katello_errataattribute. -
#large_icon ⇒ Icon
Returns the value of the
large_iconattribute. -
#large_icon=(value) ⇒ Object
Sets the value of the
large_iconattribute. -
#lease ⇒ StorageDomainLease
Returns the value of the
leaseattribute. -
#lease=(value) ⇒ Object
Sets the value of the
leaseattribute. -
#memory ⇒ Integer
Returns the value of the
memoryattribute. -
#memory=(value) ⇒ Object
Sets the value of the
memoryattribute. -
#memory_policy ⇒ MemoryPolicy
Returns the value of the
memory_policyattribute. -
#memory_policy=(value) ⇒ Object
Sets the value of the
memory_policyattribute. -
#migration ⇒ MigrationOptions
Returns the value of the
migrationattribute. -
#migration=(value) ⇒ Object
Sets the value of the
migrationattribute. -
#migration_downtime ⇒ Integer
Returns the value of the
migration_downtimeattribute. -
#migration_downtime=(value) ⇒ Object
Sets the value of the
migration_downtimeattribute. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#next_run_configuration_exists ⇒ Boolean
Returns the value of the
next_run_configuration_existsattribute. -
#next_run_configuration_exists=(value) ⇒ Object
Sets the value of the
next_run_configuration_existsattribute. -
#nics ⇒ Array<Nic>
Returns the value of the
nicsattribute. -
#nics=(list) ⇒ Object
Sets the value of the
nicsattribute. -
#numa_nodes ⇒ Array<NumaNode>
Returns the value of the
numa_nodesattribute. -
#numa_nodes=(list) ⇒ Object
Sets the value of the
numa_nodesattribute. -
#numa_tune_mode ⇒ NumaTuneMode
Returns the value of the
numa_tune_modeattribute. -
#numa_tune_mode=(value) ⇒ Object
Sets the value of the
numa_tune_modeattribute. -
#origin ⇒ String
Returns the value of the
originattribute. -
#origin=(value) ⇒ Object
Sets the value of the
originattribute. -
#original_template ⇒ Template
Returns the value of the
original_templateattribute. -
#original_template=(value) ⇒ Object
Sets the value of the
original_templateattribute. -
#os ⇒ OperatingSystem
Returns the value of the
osattribute. -
#os=(value) ⇒ Object
Sets the value of the
osattribute. -
#payloads ⇒ Array<Payload>
Returns the value of the
payloadsattribute. -
#payloads=(list) ⇒ Object
Sets the value of the
payloadsattribute. -
#permissions ⇒ Array<Permission>
Returns the value of the
permissionsattribute. -
#permissions=(list) ⇒ Object
Sets the value of the
permissionsattribute. -
#placement_policy ⇒ VmPlacementPolicy
Returns the value of the
placement_policyattribute. -
#placement_policy=(value) ⇒ Object
Sets the value of the
placement_policyattribute. -
#quota ⇒ Quota
Returns the value of the
quotaattribute. -
#quota=(value) ⇒ Object
Sets the value of the
quotaattribute. -
#reported_devices ⇒ Array<ReportedDevice>
Returns the value of the
reported_devicesattribute. -
#reported_devices=(list) ⇒ Object
Sets the value of the
reported_devicesattribute. -
#rng_device ⇒ RngDevice
Returns the value of the
rng_deviceattribute. -
#rng_device=(value) ⇒ Object
Sets the value of the
rng_deviceattribute. -
#run_once ⇒ Boolean
Returns the value of the
run_onceattribute. -
#run_once=(value) ⇒ Object
Sets the value of the
run_onceattribute. -
#serial_number ⇒ SerialNumber
Returns the value of the
serial_numberattribute. -
#serial_number=(value) ⇒ Object
Sets the value of the
serial_numberattribute. -
#sessions ⇒ Array<Session>
Returns the value of the
sessionsattribute. -
#sessions=(list) ⇒ Object
Sets the value of the
sessionsattribute. -
#small_icon ⇒ Icon
Returns the value of the
small_iconattribute. -
#small_icon=(value) ⇒ Object
Sets the value of the
small_iconattribute. -
#snapshots ⇒ Array<Snapshot>
Returns the value of the
snapshotsattribute. -
#snapshots=(list) ⇒ Object
Sets the value of the
snapshotsattribute. -
#soundcard_enabled ⇒ Boolean
Returns the value of the
soundcard_enabledattribute. -
#soundcard_enabled=(value) ⇒ Object
Sets the value of the
soundcard_enabledattribute. -
#sso ⇒ Sso
Returns the value of the
ssoattribute. -
#sso=(value) ⇒ Object
Sets the value of the
ssoattribute. -
#start_paused ⇒ Boolean
Returns the value of the
start_pausedattribute. -
#start_paused=(value) ⇒ Object
Sets the value of the
start_pausedattribute. -
#start_time ⇒ DateTime
Returns the value of the
start_timeattribute. -
#start_time=(value) ⇒ Object
Sets the value of the
start_timeattribute. -
#stateless ⇒ Boolean
Returns the value of the
statelessattribute. -
#stateless=(value) ⇒ Object
Sets the value of the
statelessattribute. -
#statistics ⇒ Array<Statistic>
Returns the value of the
statisticsattribute. -
#statistics=(list) ⇒ Object
Sets the value of the
statisticsattribute. -
#status ⇒ VmStatus
Returns the value of the
statusattribute. -
#status=(value) ⇒ Object
Sets the value of the
statusattribute. -
#status_detail ⇒ String
Returns the value of the
status_detailattribute. -
#status_detail=(value) ⇒ Object
Sets the value of the
status_detailattribute. -
#stop_reason ⇒ String
Returns the value of the
stop_reasonattribute. -
#stop_reason=(value) ⇒ Object
Sets the value of the
stop_reasonattribute. -
#stop_time ⇒ DateTime
Returns the value of the
stop_timeattribute. -
#stop_time=(value) ⇒ Object
Sets the value of the
stop_timeattribute. -
#storage_domain ⇒ StorageDomain
Returns the value of the
storage_domainattribute. -
#storage_domain=(value) ⇒ Object
Sets the value of the
storage_domainattribute. -
#storage_error_resume_behaviour ⇒ VmStorageErrorResumeBehaviour
Returns the value of the
storage_error_resume_behaviourattribute. -
#storage_error_resume_behaviour=(value) ⇒ Object
Sets the value of the
storage_error_resume_behaviourattribute. -
#tags ⇒ Array<Tag>
Returns the value of the
tagsattribute. -
#tags=(list) ⇒ Object
Sets the value of the
tagsattribute. -
#template ⇒ Template
Returns the value of the
templateattribute. -
#template=(value) ⇒ Object
Sets the value of the
templateattribute. -
#time_zone ⇒ TimeZone
Returns the value of the
time_zoneattribute. -
#time_zone=(value) ⇒ Object
Sets the value of the
time_zoneattribute. -
#tunnel_migration ⇒ Boolean
Returns the value of the
tunnel_migrationattribute. -
#tunnel_migration=(value) ⇒ Object
Sets the value of the
tunnel_migrationattribute. -
#type ⇒ VmType
Returns the value of the
typeattribute. -
#type=(value) ⇒ Object
Sets the value of the
typeattribute. -
#usb ⇒ Usb
Returns the value of the
usbattribute. -
#usb=(value) ⇒ Object
Sets the value of the
usbattribute. -
#use_latest_template_version ⇒ Boolean
Returns the value of the
use_latest_template_versionattribute. -
#use_latest_template_version=(value) ⇒ Object
Sets the value of the
use_latest_template_versionattribute. -
#virtio_scsi ⇒ VirtioScsi
Returns the value of the
virtio_scsiattribute. -
#virtio_scsi=(value) ⇒ Object
Sets the value of the
virtio_scsiattribute. -
#vm_pool ⇒ VmPool
Returns the value of the
vm_poolattribute. -
#vm_pool=(value) ⇒ Object
Sets the value of the
vm_poolattribute. -
#watchdogs ⇒ Array<Watchdog>
Returns the value of the
watchdogsattribute. -
#watchdogs=(list) ⇒ Object
Sets the value of the
watchdogsattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Vm
Creates a new instance of the OvirtSDK4::Vm class.
49163 49164 49165 49166 49167 49168 49169 49170 49171 49172 49173 49174 49175 49176 49177 49178 49179 49180 49181 49182 49183 49184 49185 49186 49187 49188 49189 49190 49191 49192 49193 49194 49195 49196 49197 49198 49199 49200 49201 49202 |
# File 'lib/ovirtsdk4/types.rb', line 49163 def initialize(opts = {}) super(opts) self.affinity_labels = opts[:affinity_labels] self.applications = opts[:applications] self.cdroms = opts[:cdroms] self. = opts[:disk_attachments] self.external_host_provider = opts[:external_host_provider] self.floppies = opts[:floppies] self.fqdn = opts[:fqdn] self.graphics_consoles = opts[:graphics_consoles] self. = opts[:guest_operating_system] self.guest_time_zone = opts[:guest_time_zone] self.has_illegal_images = opts[:has_illegal_images] self.host = opts[:host] self.host_devices = opts[:host_devices] self.instance_type = opts[:instance_type] self.katello_errata = opts[:katello_errata] self.next_run_configuration_exists = opts[:next_run_configuration_exists] self.nics = opts[:nics] self.numa_nodes = opts[:numa_nodes] self.numa_tune_mode = opts[:numa_tune_mode] self.original_template = opts[:original_template] self.payloads = opts[:payloads] self. = opts[:permissions] self.reported_devices = opts[:reported_devices] self.run_once = opts[:run_once] self.sessions = opts[:sessions] self.snapshots = opts[:snapshots] self.start_time = opts[:start_time] self.statistics = opts[:statistics] self.status = opts[:status] self.status_detail = opts[:status_detail] self.stop_reason = opts[:stop_reason] self.stop_time = opts[:stop_time] self. = opts[:tags] self.template = opts[:template] self.use_latest_template_version = opts[:use_latest_template_version] self.vm_pool = opts[:vm_pool] self.watchdogs = opts[:watchdogs] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
49207 49208 49209 49210 49211 49212 49213 49214 49215 49216 49217 49218 49219 49220 49221 49222 49223 49224 49225 49226 49227 49228 49229 49230 49231 49232 49233 49234 49235 49236 49237 49238 49239 49240 49241 49242 49243 49244 49245 49246 |
# File 'lib/ovirtsdk4/types.rb', line 49207 def ==(other) super && @affinity_labels == other.affinity_labels && @applications == other.applications && @cdroms == other.cdroms && @disk_attachments == other. && @external_host_provider == other.external_host_provider && @floppies == other.floppies && @fqdn == other.fqdn && @graphics_consoles == other.graphics_consoles && @guest_operating_system == other. && @guest_time_zone == other.guest_time_zone && @has_illegal_images == other.has_illegal_images && @host == other.host && @host_devices == other.host_devices && @instance_type == other.instance_type && @katello_errata == other.katello_errata && @next_run_configuration_exists == other.next_run_configuration_exists && @nics == other.nics && @numa_nodes == other.numa_nodes && @numa_tune_mode == other.numa_tune_mode && @original_template == other.original_template && @payloads == other.payloads && @permissions == other. && @reported_devices == other.reported_devices && @run_once == other.run_once && @sessions == other.sessions && @snapshots == other.snapshots && @start_time == other.start_time && @statistics == other.statistics && @status == other.status && @status_detail == other.status_detail && @stop_reason == other.stop_reason && @stop_time == other.stop_time && @tags == other. && @template == other.template && @use_latest_template_version == other.use_latest_template_version && @vm_pool == other.vm_pool && @watchdogs == other.watchdogs end |
#affinity_labels ⇒ Array<AffinityLabel>
Returns the value of the affinity_labels attribute.
47130 47131 47132 |
# File 'lib/ovirtsdk4/types.rb', line 47130 def affinity_labels @affinity_labels end |
#affinity_labels=(list) ⇒ Object
Sets the value of the affinity_labels attribute.
47139 47140 47141 47142 47143 47144 47145 47146 47147 47148 47149 |
# File 'lib/ovirtsdk4/types.rb', line 47139 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.
47156 47157 47158 |
# File 'lib/ovirtsdk4/types.rb', line 47156 def applications @applications end |
#applications=(list) ⇒ Object
Sets the value of the applications attribute.
47165 47166 47167 47168 47169 47170 47171 47172 47173 47174 47175 |
# File 'lib/ovirtsdk4/types.rb', line 47165 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.
47182 47183 47184 |
# File 'lib/ovirtsdk4/types.rb', line 47182 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.
47195 47196 47197 47198 47199 47200 |
# File 'lib/ovirtsdk4/types.rb', line 47195 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.
47207 47208 47209 |
# File 'lib/ovirtsdk4/types.rb', line 47207 def cdroms @cdroms end |
#cdroms=(list) ⇒ Object
Sets the value of the cdroms attribute.
47216 47217 47218 47219 47220 47221 47222 47223 47224 47225 47226 |
# File 'lib/ovirtsdk4/types.rb', line 47216 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.
47233 47234 47235 |
# File 'lib/ovirtsdk4/types.rb', line 47233 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.
47246 47247 47248 47249 47250 47251 |
# File 'lib/ovirtsdk4/types.rb', line 47246 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.
47258 47259 47260 |
# File 'lib/ovirtsdk4/types.rb', line 47258 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
47267 47268 47269 |
# File 'lib/ovirtsdk4/types.rb', line 47267 def comment=(value) @comment = value end |
#console ⇒ Console
Returns the value of the console attribute.
47276 47277 47278 |
# File 'lib/ovirtsdk4/types.rb', line 47276 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.
47289 47290 47291 47292 47293 47294 |
# File 'lib/ovirtsdk4/types.rb', line 47289 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.
47301 47302 47303 |
# File 'lib/ovirtsdk4/types.rb', line 47301 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.
47314 47315 47316 47317 47318 47319 |
# File 'lib/ovirtsdk4/types.rb', line 47314 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.
47326 47327 47328 |
# File 'lib/ovirtsdk4/types.rb', line 47326 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.
47339 47340 47341 47342 47343 47344 |
# File 'lib/ovirtsdk4/types.rb', line 47339 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.
47351 47352 47353 |
# File 'lib/ovirtsdk4/types.rb', line 47351 def cpu_shares @cpu_shares end |
#cpu_shares=(value) ⇒ Object
Sets the value of the cpu_shares attribute.
47360 47361 47362 |
# File 'lib/ovirtsdk4/types.rb', line 47360 def cpu_shares=(value) @cpu_shares = value end |
#creation_time ⇒ DateTime
Returns the value of the creation_time attribute.
47369 47370 47371 |
# File 'lib/ovirtsdk4/types.rb', line 47369 def creation_time @creation_time end |
#creation_time=(value) ⇒ Object
Sets the value of the creation_time attribute.
47378 47379 47380 |
# File 'lib/ovirtsdk4/types.rb', line 47378 def creation_time=(value) @creation_time = value end |
#custom_compatibility_version ⇒ Version
Returns the value of the custom_compatibility_version attribute.
47387 47388 47389 |
# File 'lib/ovirtsdk4/types.rb', line 47387 def custom_compatibility_version @custom_compatibility_version end |
#custom_compatibility_version=(value) ⇒ Object
Sets the value of the custom_compatibility_version attribute.
The value parameter can be an instance of OvirtSDK4::Version or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
47400 47401 47402 47403 47404 47405 |
# File 'lib/ovirtsdk4/types.rb', line 47400 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.
47412 47413 47414 |
# File 'lib/ovirtsdk4/types.rb', line 47412 def custom_cpu_model @custom_cpu_model end |
#custom_cpu_model=(value) ⇒ Object
Sets the value of the custom_cpu_model attribute.
47421 47422 47423 |
# File 'lib/ovirtsdk4/types.rb', line 47421 def custom_cpu_model=(value) @custom_cpu_model = value end |
#custom_emulated_machine ⇒ String
Returns the value of the custom_emulated_machine attribute.
47430 47431 47432 |
# File 'lib/ovirtsdk4/types.rb', line 47430 def custom_emulated_machine @custom_emulated_machine end |
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the custom_emulated_machine attribute.
47439 47440 47441 |
# File 'lib/ovirtsdk4/types.rb', line 47439 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the custom_properties attribute.
47448 47449 47450 |
# File 'lib/ovirtsdk4/types.rb', line 47448 def custom_properties @custom_properties end |
#custom_properties=(list) ⇒ Object
Sets the value of the custom_properties attribute.
47457 47458 47459 47460 47461 47462 47463 47464 47465 47466 47467 |
# File 'lib/ovirtsdk4/types.rb', line 47457 def custom_properties=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = CustomProperty.new(value) end end end @custom_properties = list end |
#delete_protected ⇒ Boolean
Returns the value of the delete_protected attribute.
47474 47475 47476 |
# File 'lib/ovirtsdk4/types.rb', line 47474 def delete_protected @delete_protected end |
#delete_protected=(value) ⇒ Object
Sets the value of the delete_protected attribute.
47483 47484 47485 |
# File 'lib/ovirtsdk4/types.rb', line 47483 def delete_protected=(value) @delete_protected = value end |
#description ⇒ String
Returns the value of the description attribute.
47492 47493 47494 |
# File 'lib/ovirtsdk4/types.rb', line 47492 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
47501 47502 47503 |
# File 'lib/ovirtsdk4/types.rb', line 47501 def description=(value) @description = value end |
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the disk_attachments attribute.
47510 47511 47512 |
# File 'lib/ovirtsdk4/types.rb', line 47510 def @disk_attachments end |
#disk_attachments=(list) ⇒ Object
Sets the value of the disk_attachments attribute.
47519 47520 47521 47522 47523 47524 47525 47526 47527 47528 47529 |
# File 'lib/ovirtsdk4/types.rb', line 47519 def (list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = DiskAttachment.new(value) end end end @disk_attachments = list end |
#display ⇒ Display
Returns the value of the display attribute.
47536 47537 47538 |
# File 'lib/ovirtsdk4/types.rb', line 47536 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.
47549 47550 47551 47552 47553 47554 |
# File 'lib/ovirtsdk4/types.rb', line 47549 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.
47561 47562 47563 |
# File 'lib/ovirtsdk4/types.rb', line 47561 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.
47574 47575 47576 47577 47578 47579 |
# File 'lib/ovirtsdk4/types.rb', line 47574 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.
47586 47587 47588 |
# File 'lib/ovirtsdk4/types.rb', line 47586 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.
47599 47600 47601 47602 47603 47604 |
# File 'lib/ovirtsdk4/types.rb', line 47599 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.
47611 47612 47613 |
# File 'lib/ovirtsdk4/types.rb', line 47611 def floppies @floppies end |
#floppies=(list) ⇒ Object
Sets the value of the floppies attribute.
47620 47621 47622 47623 47624 47625 47626 47627 47628 47629 47630 |
# File 'lib/ovirtsdk4/types.rb', line 47620 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.
47637 47638 47639 |
# File 'lib/ovirtsdk4/types.rb', line 47637 def fqdn @fqdn end |
#fqdn=(value) ⇒ Object
Sets the value of the fqdn attribute.
47646 47647 47648 |
# File 'lib/ovirtsdk4/types.rb', line 47646 def fqdn=(value) @fqdn = value end |
#graphics_consoles ⇒ Array<GraphicsConsole>
Returns the value of the graphics_consoles attribute.
47655 47656 47657 |
# File 'lib/ovirtsdk4/types.rb', line 47655 def graphics_consoles @graphics_consoles end |
#graphics_consoles=(list) ⇒ Object
Sets the value of the graphics_consoles attribute.
47664 47665 47666 47667 47668 47669 47670 47671 47672 47673 47674 |
# File 'lib/ovirtsdk4/types.rb', line 47664 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.
47681 47682 47683 |
# File 'lib/ovirtsdk4/types.rb', line 47681 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.
47694 47695 47696 47697 47698 47699 |
# File 'lib/ovirtsdk4/types.rb', line 47694 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.
47706 47707 47708 |
# File 'lib/ovirtsdk4/types.rb', line 47706 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.
47719 47720 47721 47722 47723 47724 |
# File 'lib/ovirtsdk4/types.rb', line 47719 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.
47731 47732 47733 |
# File 'lib/ovirtsdk4/types.rb', line 47731 def has_illegal_images @has_illegal_images end |
#has_illegal_images=(value) ⇒ Object
Sets the value of the has_illegal_images attribute.
47740 47741 47742 |
# File 'lib/ovirtsdk4/types.rb', line 47740 def has_illegal_images=(value) @has_illegal_images = value end |
#hash ⇒ Object
Generates a hash value for this object.
49251 49252 49253 49254 49255 49256 49257 49258 49259 49260 49261 49262 49263 49264 49265 49266 49267 49268 49269 49270 49271 49272 49273 49274 49275 49276 49277 49278 49279 49280 49281 49282 49283 49284 49285 49286 49287 49288 49289 49290 |
# File 'lib/ovirtsdk4/types.rb', line 49251 def hash super + @affinity_labels.hash + @applications.hash + @cdroms.hash + @disk_attachments.hash + @external_host_provider.hash + @floppies.hash + @fqdn.hash + @graphics_consoles.hash + @guest_operating_system.hash + @guest_time_zone.hash + @has_illegal_images.hash + @host.hash + @host_devices.hash + @instance_type.hash + @katello_errata.hash + @next_run_configuration_exists.hash + @nics.hash + @numa_nodes.hash + @numa_tune_mode.hash + @original_template.hash + @payloads.hash + @permissions.hash + @reported_devices.hash + @run_once.hash + @sessions.hash + @snapshots.hash + @start_time.hash + @statistics.hash + @status.hash + @status_detail.hash + @stop_reason.hash + @stop_time.hash + @tags.hash + @template.hash + @use_latest_template_version.hash + @vm_pool.hash + @watchdogs.hash end |
#high_availability ⇒ HighAvailability
Returns the value of the high_availability attribute.
47749 47750 47751 |
# File 'lib/ovirtsdk4/types.rb', line 47749 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.
47762 47763 47764 47765 47766 47767 |
# File 'lib/ovirtsdk4/types.rb', line 47762 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.
47774 47775 47776 |
# File 'lib/ovirtsdk4/types.rb', line 47774 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.
47787 47788 47789 47790 47791 47792 |
# File 'lib/ovirtsdk4/types.rb', line 47787 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.
47799 47800 47801 |
# File 'lib/ovirtsdk4/types.rb', line 47799 def host_devices @host_devices end |
#host_devices=(list) ⇒ Object
Sets the value of the host_devices attribute.
47808 47809 47810 47811 47812 47813 47814 47815 47816 47817 47818 |
# File 'lib/ovirtsdk4/types.rb', line 47808 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.
47825 47826 47827 |
# File 'lib/ovirtsdk4/types.rb', line 47825 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
47834 47835 47836 |
# File 'lib/ovirtsdk4/types.rb', line 47834 def id=(value) @id = value end |
#initialization ⇒ Initialization
Returns the value of the initialization attribute.
47843 47844 47845 |
# File 'lib/ovirtsdk4/types.rb', line 47843 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.
47856 47857 47858 47859 47860 47861 |
# File 'lib/ovirtsdk4/types.rb', line 47856 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.
47868 47869 47870 |
# File 'lib/ovirtsdk4/types.rb', line 47868 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.
47881 47882 47883 47884 47885 47886 |
# File 'lib/ovirtsdk4/types.rb', line 47881 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.
47893 47894 47895 |
# File 'lib/ovirtsdk4/types.rb', line 47893 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.
47906 47907 47908 47909 47910 47911 |
# File 'lib/ovirtsdk4/types.rb', line 47906 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.
47918 47919 47920 |
# File 'lib/ovirtsdk4/types.rb', line 47918 def katello_errata @katello_errata end |
#katello_errata=(list) ⇒ Object
Sets the value of the katello_errata attribute.
47927 47928 47929 47930 47931 47932 47933 47934 47935 47936 47937 |
# File 'lib/ovirtsdk4/types.rb', line 47927 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.
47944 47945 47946 |
# File 'lib/ovirtsdk4/types.rb', line 47944 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.
47957 47958 47959 47960 47961 47962 |
# File 'lib/ovirtsdk4/types.rb', line 47957 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.
47969 47970 47971 |
# File 'lib/ovirtsdk4/types.rb', line 47969 def lease @lease end |
#lease=(value) ⇒ Object
Sets the value of the lease attribute.
The value parameter can be an instance of StorageDomainLease or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
47982 47983 47984 47985 47986 47987 |
# File 'lib/ovirtsdk4/types.rb', line 47982 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.
47994 47995 47996 |
# File 'lib/ovirtsdk4/types.rb', line 47994 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory attribute.
48003 48004 48005 |
# File 'lib/ovirtsdk4/types.rb', line 48003 def memory=(value) @memory = value end |
#memory_policy ⇒ MemoryPolicy
Returns the value of the memory_policy attribute.
48012 48013 48014 |
# File 'lib/ovirtsdk4/types.rb', line 48012 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.
48025 48026 48027 48028 48029 48030 |
# File 'lib/ovirtsdk4/types.rb', line 48025 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.
48037 48038 48039 |
# File 'lib/ovirtsdk4/types.rb', line 48037 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.
48050 48051 48052 48053 48054 48055 |
# File 'lib/ovirtsdk4/types.rb', line 48050 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.
48062 48063 48064 |
# File 'lib/ovirtsdk4/types.rb', line 48062 def migration_downtime @migration_downtime end |
#migration_downtime=(value) ⇒ Object
Sets the value of the migration_downtime attribute.
48071 48072 48073 |
# File 'lib/ovirtsdk4/types.rb', line 48071 def migration_downtime=(value) @migration_downtime = value end |
#name ⇒ String
Returns the value of the name attribute.
48080 48081 48082 |
# File 'lib/ovirtsdk4/types.rb', line 48080 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
48089 48090 48091 |
# File 'lib/ovirtsdk4/types.rb', line 48089 def name=(value) @name = value end |
#next_run_configuration_exists ⇒ Boolean
Returns the value of the next_run_configuration_exists attribute.
48098 48099 48100 |
# File 'lib/ovirtsdk4/types.rb', line 48098 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.
48107 48108 48109 |
# File 'lib/ovirtsdk4/types.rb', line 48107 def next_run_configuration_exists=(value) @next_run_configuration_exists = value end |
#nics ⇒ Array<Nic>
Returns the value of the nics attribute.
48116 48117 48118 |
# File 'lib/ovirtsdk4/types.rb', line 48116 def nics @nics end |
#nics=(list) ⇒ Object
Sets the value of the nics attribute.
48125 48126 48127 48128 48129 48130 48131 48132 48133 48134 48135 |
# File 'lib/ovirtsdk4/types.rb', line 48125 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.
48142 48143 48144 |
# File 'lib/ovirtsdk4/types.rb', line 48142 def numa_nodes @numa_nodes end |
#numa_nodes=(list) ⇒ Object
Sets the value of the numa_nodes attribute.
48151 48152 48153 48154 48155 48156 48157 48158 48159 48160 48161 |
# File 'lib/ovirtsdk4/types.rb', line 48151 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.
48168 48169 48170 |
# File 'lib/ovirtsdk4/types.rb', line 48168 def numa_tune_mode @numa_tune_mode end |
#numa_tune_mode=(value) ⇒ Object
Sets the value of the numa_tune_mode attribute.
48177 48178 48179 |
# File 'lib/ovirtsdk4/types.rb', line 48177 def numa_tune_mode=(value) @numa_tune_mode = value end |
#origin ⇒ String
Returns the value of the origin attribute.
48186 48187 48188 |
# File 'lib/ovirtsdk4/types.rb', line 48186 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin attribute.
48195 48196 48197 |
# File 'lib/ovirtsdk4/types.rb', line 48195 def origin=(value) @origin = value end |
#original_template ⇒ Template
Returns the value of the original_template attribute.
48204 48205 48206 |
# File 'lib/ovirtsdk4/types.rb', line 48204 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.
48217 48218 48219 48220 48221 48222 |
# File 'lib/ovirtsdk4/types.rb', line 48217 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.
48229 48230 48231 |
# File 'lib/ovirtsdk4/types.rb', line 48229 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.
48242 48243 48244 48245 48246 48247 |
# File 'lib/ovirtsdk4/types.rb', line 48242 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.
48254 48255 48256 |
# File 'lib/ovirtsdk4/types.rb', line 48254 def payloads @payloads end |
#payloads=(list) ⇒ Object
Sets the value of the payloads attribute.
48263 48264 48265 48266 48267 48268 48269 48270 48271 48272 48273 |
# File 'lib/ovirtsdk4/types.rb', line 48263 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.
48280 48281 48282 |
# File 'lib/ovirtsdk4/types.rb', line 48280 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions attribute.
48289 48290 48291 48292 48293 48294 48295 48296 48297 48298 48299 |
# File 'lib/ovirtsdk4/types.rb', line 48289 def (list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Permission.new(value) end end end @permissions = list end |
#placement_policy ⇒ VmPlacementPolicy
Returns the value of the placement_policy attribute.
48306 48307 48308 |
# File 'lib/ovirtsdk4/types.rb', line 48306 def placement_policy @placement_policy end |
#placement_policy=(value) ⇒ Object
Sets the value of the placement_policy attribute.
The value parameter can be an instance of OvirtSDK4::VmPlacementPolicy or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
48319 48320 48321 48322 48323 48324 |
# File 'lib/ovirtsdk4/types.rb', line 48319 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.
48331 48332 48333 |
# File 'lib/ovirtsdk4/types.rb', line 48331 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.
48344 48345 48346 48347 48348 48349 |
# File 'lib/ovirtsdk4/types.rb', line 48344 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.
48356 48357 48358 |
# File 'lib/ovirtsdk4/types.rb', line 48356 def reported_devices @reported_devices end |
#reported_devices=(list) ⇒ Object
Sets the value of the reported_devices attribute.
48365 48366 48367 48368 48369 48370 48371 48372 48373 48374 48375 |
# File 'lib/ovirtsdk4/types.rb', line 48365 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.
48382 48383 48384 |
# File 'lib/ovirtsdk4/types.rb', line 48382 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.
48395 48396 48397 48398 48399 48400 |
# File 'lib/ovirtsdk4/types.rb', line 48395 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.
48407 48408 48409 |
# File 'lib/ovirtsdk4/types.rb', line 48407 def run_once @run_once end |
#run_once=(value) ⇒ Object
Sets the value of the run_once attribute.
48416 48417 48418 |
# File 'lib/ovirtsdk4/types.rb', line 48416 def run_once=(value) @run_once = value end |
#serial_number ⇒ SerialNumber
Returns the value of the serial_number attribute.
48425 48426 48427 |
# File 'lib/ovirtsdk4/types.rb', line 48425 def serial_number @serial_number end |
#serial_number=(value) ⇒ Object
Sets the value of the serial_number attribute.
The value parameter can be an instance of SerialNumber or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
48438 48439 48440 48441 48442 48443 |
# File 'lib/ovirtsdk4/types.rb', line 48438 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.
48450 48451 48452 |
# File 'lib/ovirtsdk4/types.rb', line 48450 def sessions @sessions end |
#sessions=(list) ⇒ Object
Sets the value of the sessions attribute.
48459 48460 48461 48462 48463 48464 48465 48466 48467 48468 48469 |
# File 'lib/ovirtsdk4/types.rb', line 48459 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.
48476 48477 48478 |
# File 'lib/ovirtsdk4/types.rb', line 48476 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.
48489 48490 48491 48492 48493 48494 |
# File 'lib/ovirtsdk4/types.rb', line 48489 def small_icon=(value) if value.is_a?(Hash) value = Icon.new(value) end @small_icon = value end |
#snapshots ⇒ Array<Snapshot>
Returns the value of the snapshots attribute.
48501 48502 48503 |
# File 'lib/ovirtsdk4/types.rb', line 48501 def snapshots @snapshots end |
#snapshots=(list) ⇒ Object
Sets the value of the snapshots attribute.
48510 48511 48512 48513 48514 48515 48516 48517 48518 48519 48520 |
# File 'lib/ovirtsdk4/types.rb', line 48510 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.
48527 48528 48529 |
# File 'lib/ovirtsdk4/types.rb', line 48527 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled attribute.
48536 48537 48538 |
# File 'lib/ovirtsdk4/types.rb', line 48536 def soundcard_enabled=(value) @soundcard_enabled = value end |
#sso ⇒ Sso
Returns the value of the sso attribute.
48545 48546 48547 |
# File 'lib/ovirtsdk4/types.rb', line 48545 def sso @sso end |
#sso=(value) ⇒ Object
Sets the value of the sso attribute.
The value parameter can be an instance of Sso or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
48558 48559 48560 48561 48562 48563 |
# File 'lib/ovirtsdk4/types.rb', line 48558 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.
48570 48571 48572 |
# File 'lib/ovirtsdk4/types.rb', line 48570 def start_paused @start_paused end |
#start_paused=(value) ⇒ Object
Sets the value of the start_paused attribute.
48579 48580 48581 |
# File 'lib/ovirtsdk4/types.rb', line 48579 def start_paused=(value) @start_paused = value end |
#start_time ⇒ DateTime
Returns the value of the start_time attribute.
48588 48589 48590 |
# File 'lib/ovirtsdk4/types.rb', line 48588 def start_time @start_time end |
#start_time=(value) ⇒ Object
Sets the value of the start_time attribute.
48597 48598 48599 |
# File 'lib/ovirtsdk4/types.rb', line 48597 def start_time=(value) @start_time = value end |
#stateless ⇒ Boolean
Returns the value of the stateless attribute.
48606 48607 48608 |
# File 'lib/ovirtsdk4/types.rb', line 48606 def stateless @stateless end |
#stateless=(value) ⇒ Object
Sets the value of the stateless attribute.
48615 48616 48617 |
# File 'lib/ovirtsdk4/types.rb', line 48615 def stateless=(value) @stateless = value end |
#statistics ⇒ Array<Statistic>
Returns the value of the statistics attribute.
48624 48625 48626 |
# File 'lib/ovirtsdk4/types.rb', line 48624 def statistics @statistics end |
#statistics=(list) ⇒ Object
Sets the value of the statistics attribute.
48633 48634 48635 48636 48637 48638 48639 48640 48641 48642 48643 |
# File 'lib/ovirtsdk4/types.rb', line 48633 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.
48650 48651 48652 |
# File 'lib/ovirtsdk4/types.rb', line 48650 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status attribute.
48659 48660 48661 |
# File 'lib/ovirtsdk4/types.rb', line 48659 def status=(value) @status = value end |
#status_detail ⇒ String
Returns the value of the status_detail attribute.
48668 48669 48670 |
# File 'lib/ovirtsdk4/types.rb', line 48668 def status_detail @status_detail end |
#status_detail=(value) ⇒ Object
Sets the value of the status_detail attribute.
48677 48678 48679 |
# File 'lib/ovirtsdk4/types.rb', line 48677 def status_detail=(value) @status_detail = value end |
#stop_reason ⇒ String
Returns the value of the stop_reason attribute.
48686 48687 48688 |
# File 'lib/ovirtsdk4/types.rb', line 48686 def stop_reason @stop_reason end |
#stop_reason=(value) ⇒ Object
Sets the value of the stop_reason attribute.
48695 48696 48697 |
# File 'lib/ovirtsdk4/types.rb', line 48695 def stop_reason=(value) @stop_reason = value end |
#stop_time ⇒ DateTime
Returns the value of the stop_time attribute.
48704 48705 48706 |
# File 'lib/ovirtsdk4/types.rb', line 48704 def stop_time @stop_time end |
#stop_time=(value) ⇒ Object
Sets the value of the stop_time attribute.
48713 48714 48715 |
# File 'lib/ovirtsdk4/types.rb', line 48713 def stop_time=(value) @stop_time = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain attribute.
48722 48723 48724 |
# File 'lib/ovirtsdk4/types.rb', line 48722 def storage_domain @storage_domain end |
#storage_domain=(value) ⇒ Object
Sets the value of the storage_domain attribute.
The value parameter can be an instance of StorageDomain or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
48735 48736 48737 48738 48739 48740 |
# File 'lib/ovirtsdk4/types.rb', line 48735 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.
48747 48748 48749 |
# File 'lib/ovirtsdk4/types.rb', line 48747 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.
48756 48757 48758 |
# File 'lib/ovirtsdk4/types.rb', line 48756 def storage_error_resume_behaviour=(value) @storage_error_resume_behaviour = value end |
#tags ⇒ Array<Tag>
Returns the value of the tags attribute.
48765 48766 48767 |
# File 'lib/ovirtsdk4/types.rb', line 48765 def @tags end |
#tags=(list) ⇒ Object
Sets the value of the tags attribute.
48774 48775 48776 48777 48778 48779 48780 48781 48782 48783 48784 |
# File 'lib/ovirtsdk4/types.rb', line 48774 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.
48791 48792 48793 |
# File 'lib/ovirtsdk4/types.rb', line 48791 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.
48804 48805 48806 48807 48808 48809 |
# File 'lib/ovirtsdk4/types.rb', line 48804 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.
48816 48817 48818 |
# File 'lib/ovirtsdk4/types.rb', line 48816 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.
48829 48830 48831 48832 48833 48834 |
# File 'lib/ovirtsdk4/types.rb', line 48829 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.
48841 48842 48843 |
# File 'lib/ovirtsdk4/types.rb', line 48841 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration attribute.
48850 48851 48852 |
# File 'lib/ovirtsdk4/types.rb', line 48850 def tunnel_migration=(value) @tunnel_migration = value end |
#type ⇒ VmType
Returns the value of the type attribute.
48859 48860 48861 |
# File 'lib/ovirtsdk4/types.rb', line 48859 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type attribute.
48868 48869 48870 |
# File 'lib/ovirtsdk4/types.rb', line 48868 def type=(value) @type = value end |
#usb ⇒ Usb
Returns the value of the usb attribute.
48877 48878 48879 |
# File 'lib/ovirtsdk4/types.rb', line 48877 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.
48890 48891 48892 48893 48894 48895 |
# File 'lib/ovirtsdk4/types.rb', line 48890 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.
48902 48903 48904 |
# File 'lib/ovirtsdk4/types.rb', line 48902 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.
48911 48912 48913 |
# File 'lib/ovirtsdk4/types.rb', line 48911 def use_latest_template_version=(value) @use_latest_template_version = value end |
#virtio_scsi ⇒ VirtioScsi
Returns the value of the virtio_scsi attribute.
48920 48921 48922 |
# File 'lib/ovirtsdk4/types.rb', line 48920 def virtio_scsi @virtio_scsi end |
#virtio_scsi=(value) ⇒ Object
Sets the value of the virtio_scsi attribute.
The value parameter can be an instance of OvirtSDK4::VirtioScsi or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
48933 48934 48935 48936 48937 48938 |
# File 'lib/ovirtsdk4/types.rb', line 48933 def virtio_scsi=(value) if value.is_a?(Hash) value = VirtioScsi.new(value) end @virtio_scsi = value end |
#vm_pool ⇒ VmPool
Returns the value of the vm_pool attribute.
48945 48946 48947 |
# File 'lib/ovirtsdk4/types.rb', line 48945 def vm_pool @vm_pool end |
#vm_pool=(value) ⇒ Object
Sets the value of the vm_pool attribute.
The value parameter can be an instance of OvirtSDK4::VmPool or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
48958 48959 48960 48961 48962 48963 |
# File 'lib/ovirtsdk4/types.rb', line 48958 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.
48970 48971 48972 |
# File 'lib/ovirtsdk4/types.rb', line 48970 def watchdogs @watchdogs end |
#watchdogs=(list) ⇒ Object
Sets the value of the watchdogs attribute.
48979 48980 48981 48982 48983 48984 48985 48986 48987 48988 48989 |
# File 'lib/ovirtsdk4/types.rb', line 48979 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 |