Class: OvirtSDK4::Vm
- Inherits:
-
VmBase
- Object
- Struct
- Identified
- VmBase
- OvirtSDK4::Vm
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#affinity_labels ⇒ Array<AffinityLabel>
Returns the value of the
affinity_labels
attribute. -
#affinity_labels=(list) ⇒ Object
Sets the value of the
affinity_labels
attribute. -
#applications ⇒ Array<Application>
Returns the value of the
applications
attribute. -
#applications=(list) ⇒ Object
Sets the value of the
applications
attribute. -
#bios ⇒ Bios
Returns the value of the
bios
attribute. -
#bios=(value) ⇒ Object
Sets the value of the
bios
attribute. -
#cdroms ⇒ Array<Cdrom>
Returns the value of the
cdroms
attribute. -
#cdroms=(list) ⇒ Object
Sets the value of the
cdroms
attribute. -
#cluster ⇒ Cluster
Returns the value of the
cluster
attribute. -
#cluster=(value) ⇒ Object
Sets the value of the
cluster
attribute. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#console ⇒ Console
Returns the value of the
console
attribute. -
#console=(value) ⇒ Object
Sets the value of the
console
attribute. -
#cpu ⇒ Cpu
Returns the value of the
cpu
attribute. -
#cpu=(value) ⇒ Object
Sets the value of the
cpu
attribute. -
#cpu_profile ⇒ CpuProfile
Returns the value of the
cpu_profile
attribute. -
#cpu_profile=(value) ⇒ Object
Sets the value of the
cpu_profile
attribute. -
#cpu_shares ⇒ Integer
Returns the value of the
cpu_shares
attribute. -
#cpu_shares=(value) ⇒ Object
Sets the value of the
cpu_shares
attribute. -
#creation_time ⇒ DateTime
Returns the value of the
creation_time
attribute. -
#creation_time=(value) ⇒ Object
Sets the value of the
creation_time
attribute. -
#custom_compatibility_version ⇒ Version
Returns the value of the
custom_compatibility_version
attribute. -
#custom_compatibility_version=(value) ⇒ Object
Sets the value of the
custom_compatibility_version
attribute. -
#custom_cpu_model ⇒ String
Returns the value of the
custom_cpu_model
attribute. -
#custom_cpu_model=(value) ⇒ Object
Sets the value of the
custom_cpu_model
attribute. -
#custom_emulated_machine ⇒ String
Returns the value of the
custom_emulated_machine
attribute. -
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the
custom_emulated_machine
attribute. -
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the
custom_properties
attribute. -
#custom_properties=(list) ⇒ Object
Sets the value of the
custom_properties
attribute. -
#delete_protected ⇒ Boolean
Returns the value of the
delete_protected
attribute. -
#delete_protected=(value) ⇒ Object
Sets the value of the
delete_protected
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the
disk_attachments
attribute. -
#disk_attachments=(list) ⇒ Object
Sets the value of the
disk_attachments
attribute. -
#display ⇒ Display
Returns the value of the
display
attribute. -
#display=(value) ⇒ Object
Sets the value of the
display
attribute. -
#domain ⇒ Domain
Returns the value of the
domain
attribute. -
#domain=(value) ⇒ Object
Sets the value of the
domain
attribute. -
#external_host_provider ⇒ ExternalHostProvider
Returns the value of the
external_host_provider
attribute. -
#external_host_provider=(value) ⇒ Object
Sets the value of the
external_host_provider
attribute. -
#floppies ⇒ Array<Floppy>
Returns the value of the
floppies
attribute. -
#floppies=(list) ⇒ Object
Sets the value of the
floppies
attribute. -
#fqdn ⇒ String
Returns the value of the
fqdn
attribute. -
#fqdn=(value) ⇒ Object
Sets the value of the
fqdn
attribute. -
#graphics_consoles ⇒ Array<GraphicsConsole>
Returns the value of the
graphics_consoles
attribute. -
#graphics_consoles=(list) ⇒ Object
Sets the value of the
graphics_consoles
attribute. -
#guest_operating_system ⇒ GuestOperatingSystem
Returns the value of the
guest_operating_system
attribute. -
#guest_operating_system=(value) ⇒ Object
Sets the value of the
guest_operating_system
attribute. -
#guest_time_zone ⇒ TimeZone
Returns the value of the
guest_time_zone
attribute. -
#guest_time_zone=(value) ⇒ Object
Sets the value of the
guest_time_zone
attribute. -
#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 = {}) ⇒ Vm
constructor
Creates a new instance of the Vm class.
-
#instance_type ⇒ InstanceType
Returns the value of the
instance_type
attribute. -
#instance_type=(value) ⇒ Object
Sets the value of the
instance_type
attribute. -
#io ⇒ Io
Returns the value of the
io
attribute. -
#io=(value) ⇒ Object
Sets the value of the
io
attribute. -
#katello_errata ⇒ Array<KatelloErratum>
Returns the value of the
katello_errata
attribute. -
#katello_errata=(list) ⇒ Object
Sets the value of the
katello_errata
attribute. -
#large_icon ⇒ Icon
Returns the value of the
large_icon
attribute. -
#large_icon=(value) ⇒ Object
Sets the value of the
large_icon
attribute. -
#lease ⇒ StorageDomainLease
Returns the value of the
lease
attribute. -
#lease=(value) ⇒ Object
Sets the value of the
lease
attribute. -
#memory ⇒ Integer
Returns the value of the
memory
attribute. -
#memory=(value) ⇒ Object
Sets the value of the
memory
attribute. -
#memory_policy ⇒ MemoryPolicy
Returns the value of the
memory_policy
attribute. -
#memory_policy=(value) ⇒ Object
Sets the value of the
memory_policy
attribute. -
#migration ⇒ MigrationOptions
Returns the value of the
migration
attribute. -
#migration=(value) ⇒ Object
Sets the value of the
migration
attribute. -
#migration_downtime ⇒ Integer
Returns the value of the
migration_downtime
attribute. -
#migration_downtime=(value) ⇒ Object
Sets the value of the
migration_downtime
attribute. -
#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. -
#placement_policy ⇒ VmPlacementPolicy
Returns the value of the
placement_policy
attribute. -
#placement_policy=(value) ⇒ Object
Sets the value of the
placement_policy
attribute. -
#quota ⇒ Quota
Returns the value of the
quota
attribute. -
#quota=(value) ⇒ Object
Sets the value of the
quota
attribute. -
#reported_devices ⇒ Array<ReportedDevice>
Returns the value of the
reported_devices
attribute. -
#reported_devices=(list) ⇒ Object
Sets the value of the
reported_devices
attribute. -
#rng_device ⇒ RngDevice
Returns the value of the
rng_device
attribute. -
#rng_device=(value) ⇒ Object
Sets the value of the
rng_device
attribute. -
#run_once ⇒ Boolean
Returns the value of the
run_once
attribute. -
#run_once=(value) ⇒ Object
Sets the value of the
run_once
attribute. -
#serial_number ⇒ SerialNumber
Returns the value of the
serial_number
attribute. -
#serial_number=(value) ⇒ Object
Sets the value of the
serial_number
attribute. -
#sessions ⇒ Array<Session>
Returns the value of the
sessions
attribute. -
#sessions=(list) ⇒ Object
Sets the value of the
sessions
attribute. -
#small_icon ⇒ Icon
Returns the value of the
small_icon
attribute. -
#small_icon=(value) ⇒ Object
Sets the value of the
small_icon
attribute. -
#snapshots ⇒ Array<Snapshot>
Returns the value of the
snapshots
attribute. -
#snapshots=(list) ⇒ Object
Sets the value of the
snapshots
attribute. -
#soundcard_enabled ⇒ Boolean
Returns the value of the
soundcard_enabled
attribute. -
#soundcard_enabled=(value) ⇒ Object
Sets the value of the
soundcard_enabled
attribute. -
#sso ⇒ Sso
Returns the value of the
sso
attribute. -
#sso=(value) ⇒ Object
Sets the value of the
sso
attribute. -
#start_paused ⇒ Boolean
Returns the value of the
start_paused
attribute. -
#start_paused=(value) ⇒ Object
Sets the value of the
start_paused
attribute. -
#start_time ⇒ DateTime
Returns the value of the
start_time
attribute. -
#start_time=(value) ⇒ Object
Sets the value of the
start_time
attribute. -
#stateless ⇒ Boolean
Returns the value of the
stateless
attribute. -
#stateless=(value) ⇒ Object
Sets the value of the
stateless
attribute. -
#statistics ⇒ Array<Statistic>
Returns the value of the
statistics
attribute. -
#statistics=(list) ⇒ Object
Sets the value of the
statistics
attribute. -
#status ⇒ VmStatus
Returns the value of the
status
attribute. -
#status=(value) ⇒ Object
Sets the value of the
status
attribute. -
#status_detail ⇒ String
Returns the value of the
status_detail
attribute. -
#status_detail=(value) ⇒ Object
Sets the value of the
status_detail
attribute. -
#stop_reason ⇒ String
Returns the value of the
stop_reason
attribute. -
#stop_reason=(value) ⇒ Object
Sets the value of the
stop_reason
attribute. -
#stop_time ⇒ DateTime
Returns the value of the
stop_time
attribute. -
#stop_time=(value) ⇒ Object
Sets the value of the
stop_time
attribute. -
#storage_domain ⇒ StorageDomain
Returns the value of the
storage_domain
attribute. -
#storage_domain=(value) ⇒ Object
Sets the value of the
storage_domain
attribute. -
#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_pool ⇒ VmPool
Returns the value of the
vm_pool
attribute. -
#vm_pool=(value) ⇒ Object
Sets the value of the
vm_pool
attribute. -
#watchdogs ⇒ Array<Watchdog>
Returns the value of the
watchdogs
attribute. -
#watchdogs=(list) ⇒ Object
Sets the value of the
watchdogs
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Vm
Creates a new instance of the OvirtSDK4::Vm class.
49348 49349 49350 49351 49352 49353 49354 49355 49356 49357 49358 49359 49360 49361 49362 49363 49364 49365 49366 49367 49368 49369 49370 49371 49372 49373 49374 49375 49376 49377 49378 49379 49380 49381 49382 49383 49384 49385 49386 49387 |
# File 'lib/ovirtsdk4/types.rb', line 49348 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.
49392 49393 49394 49395 49396 49397 49398 49399 49400 49401 49402 49403 49404 49405 49406 49407 49408 49409 49410 49411 49412 49413 49414 49415 49416 49417 49418 49419 49420 49421 49422 49423 49424 49425 49426 49427 49428 49429 49430 49431 |
# File 'lib/ovirtsdk4/types.rb', line 49392 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.
47295 47296 47297 |
# File 'lib/ovirtsdk4/types.rb', line 47295 def affinity_labels @affinity_labels end |
#affinity_labels=(list) ⇒ Object
Sets the value of the affinity_labels
attribute.
47304 47305 47306 47307 47308 47309 47310 47311 47312 47313 47314 |
# File 'lib/ovirtsdk4/types.rb', line 47304 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.
47321 47322 47323 |
# File 'lib/ovirtsdk4/types.rb', line 47321 def applications @applications end |
#applications=(list) ⇒ Object
Sets the value of the applications
attribute.
47330 47331 47332 47333 47334 47335 47336 47337 47338 47339 47340 |
# File 'lib/ovirtsdk4/types.rb', line 47330 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.
47347 47348 47349 |
# File 'lib/ovirtsdk4/types.rb', line 47347 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.
47360 47361 47362 47363 47364 47365 |
# File 'lib/ovirtsdk4/types.rb', line 47360 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.
47372 47373 47374 |
# File 'lib/ovirtsdk4/types.rb', line 47372 def cdroms @cdroms end |
#cdroms=(list) ⇒ Object
Sets the value of the cdroms
attribute.
47381 47382 47383 47384 47385 47386 47387 47388 47389 47390 47391 |
# File 'lib/ovirtsdk4/types.rb', line 47381 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.
47398 47399 47400 |
# File 'lib/ovirtsdk4/types.rb', line 47398 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.
47411 47412 47413 47414 47415 47416 |
# File 'lib/ovirtsdk4/types.rb', line 47411 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.
47423 47424 47425 |
# File 'lib/ovirtsdk4/types.rb', line 47423 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
47432 47433 47434 |
# File 'lib/ovirtsdk4/types.rb', line 47432 def comment=(value) @comment = value end |
#console ⇒ Console
Returns the value of the console
attribute.
47441 47442 47443 |
# File 'lib/ovirtsdk4/types.rb', line 47441 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.
47454 47455 47456 47457 47458 47459 |
# File 'lib/ovirtsdk4/types.rb', line 47454 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.
47466 47467 47468 |
# File 'lib/ovirtsdk4/types.rb', line 47466 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.
47479 47480 47481 47482 47483 47484 |
# File 'lib/ovirtsdk4/types.rb', line 47479 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.
47491 47492 47493 |
# File 'lib/ovirtsdk4/types.rb', line 47491 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.
47504 47505 47506 47507 47508 47509 |
# File 'lib/ovirtsdk4/types.rb', line 47504 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.
47516 47517 47518 |
# File 'lib/ovirtsdk4/types.rb', line 47516 def cpu_shares @cpu_shares end |
#cpu_shares=(value) ⇒ Object
Sets the value of the cpu_shares
attribute.
47525 47526 47527 |
# File 'lib/ovirtsdk4/types.rb', line 47525 def cpu_shares=(value) @cpu_shares = value end |
#creation_time ⇒ DateTime
Returns the value of the creation_time
attribute.
47534 47535 47536 |
# File 'lib/ovirtsdk4/types.rb', line 47534 def creation_time @creation_time end |
#creation_time=(value) ⇒ Object
Sets the value of the creation_time
attribute.
47543 47544 47545 |
# File 'lib/ovirtsdk4/types.rb', line 47543 def creation_time=(value) @creation_time = value end |
#custom_compatibility_version ⇒ Version
Returns the value of the custom_compatibility_version
attribute.
47552 47553 47554 |
# File 'lib/ovirtsdk4/types.rb', line 47552 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.
47565 47566 47567 47568 47569 47570 |
# File 'lib/ovirtsdk4/types.rb', line 47565 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.
47577 47578 47579 |
# File 'lib/ovirtsdk4/types.rb', line 47577 def custom_cpu_model @custom_cpu_model end |
#custom_cpu_model=(value) ⇒ Object
Sets the value of the custom_cpu_model
attribute.
47586 47587 47588 |
# File 'lib/ovirtsdk4/types.rb', line 47586 def custom_cpu_model=(value) @custom_cpu_model = value end |
#custom_emulated_machine ⇒ String
Returns the value of the custom_emulated_machine
attribute.
47595 47596 47597 |
# File 'lib/ovirtsdk4/types.rb', line 47595 def custom_emulated_machine @custom_emulated_machine end |
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the custom_emulated_machine
attribute.
47604 47605 47606 |
# File 'lib/ovirtsdk4/types.rb', line 47604 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the custom_properties
attribute.
47613 47614 47615 |
# File 'lib/ovirtsdk4/types.rb', line 47613 def custom_properties @custom_properties end |
#custom_properties=(list) ⇒ Object
Sets the value of the custom_properties
attribute.
47622 47623 47624 47625 47626 47627 47628 47629 47630 47631 47632 |
# File 'lib/ovirtsdk4/types.rb', line 47622 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.
47639 47640 47641 |
# File 'lib/ovirtsdk4/types.rb', line 47639 def delete_protected @delete_protected end |
#delete_protected=(value) ⇒ Object
Sets the value of the delete_protected
attribute.
47648 47649 47650 |
# File 'lib/ovirtsdk4/types.rb', line 47648 def delete_protected=(value) @delete_protected = value end |
#description ⇒ String
Returns the value of the description
attribute.
47657 47658 47659 |
# File 'lib/ovirtsdk4/types.rb', line 47657 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
47666 47667 47668 |
# File 'lib/ovirtsdk4/types.rb', line 47666 def description=(value) @description = value end |
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the disk_attachments
attribute.
47675 47676 47677 |
# File 'lib/ovirtsdk4/types.rb', line 47675 def @disk_attachments end |
#disk_attachments=(list) ⇒ Object
Sets the value of the disk_attachments
attribute.
47684 47685 47686 47687 47688 47689 47690 47691 47692 47693 47694 |
# File 'lib/ovirtsdk4/types.rb', line 47684 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.
47701 47702 47703 |
# File 'lib/ovirtsdk4/types.rb', line 47701 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.
47714 47715 47716 47717 47718 47719 |
# File 'lib/ovirtsdk4/types.rb', line 47714 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.
47726 47727 47728 |
# File 'lib/ovirtsdk4/types.rb', line 47726 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.
47739 47740 47741 47742 47743 47744 |
# File 'lib/ovirtsdk4/types.rb', line 47739 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.
47751 47752 47753 |
# File 'lib/ovirtsdk4/types.rb', line 47751 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.
47764 47765 47766 47767 47768 47769 |
# File 'lib/ovirtsdk4/types.rb', line 47764 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.
47776 47777 47778 |
# File 'lib/ovirtsdk4/types.rb', line 47776 def floppies @floppies end |
#floppies=(list) ⇒ Object
Sets the value of the floppies
attribute.
47785 47786 47787 47788 47789 47790 47791 47792 47793 47794 47795 |
# File 'lib/ovirtsdk4/types.rb', line 47785 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.
47802 47803 47804 |
# File 'lib/ovirtsdk4/types.rb', line 47802 def fqdn @fqdn end |
#fqdn=(value) ⇒ Object
Sets the value of the fqdn
attribute.
47811 47812 47813 |
# File 'lib/ovirtsdk4/types.rb', line 47811 def fqdn=(value) @fqdn = value end |
#graphics_consoles ⇒ Array<GraphicsConsole>
Returns the value of the graphics_consoles
attribute.
47820 47821 47822 |
# File 'lib/ovirtsdk4/types.rb', line 47820 def graphics_consoles @graphics_consoles end |
#graphics_consoles=(list) ⇒ Object
Sets the value of the graphics_consoles
attribute.
47829 47830 47831 47832 47833 47834 47835 47836 47837 47838 47839 |
# File 'lib/ovirtsdk4/types.rb', line 47829 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.
47846 47847 47848 |
# File 'lib/ovirtsdk4/types.rb', line 47846 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.
47859 47860 47861 47862 47863 47864 |
# File 'lib/ovirtsdk4/types.rb', line 47859 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.
47871 47872 47873 |
# File 'lib/ovirtsdk4/types.rb', line 47871 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.
47884 47885 47886 47887 47888 47889 |
# File 'lib/ovirtsdk4/types.rb', line 47884 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.
47896 47897 47898 |
# File 'lib/ovirtsdk4/types.rb', line 47896 def has_illegal_images @has_illegal_images end |
#has_illegal_images=(value) ⇒ Object
Sets the value of the has_illegal_images
attribute.
47905 47906 47907 |
# File 'lib/ovirtsdk4/types.rb', line 47905 def has_illegal_images=(value) @has_illegal_images = value end |
#hash ⇒ Object
Generates a hash value for this object.
49436 49437 49438 49439 49440 49441 49442 49443 49444 49445 49446 49447 49448 49449 49450 49451 49452 49453 49454 49455 49456 49457 49458 49459 49460 49461 49462 49463 49464 49465 49466 49467 49468 49469 49470 49471 49472 49473 49474 49475 |
# File 'lib/ovirtsdk4/types.rb', line 49436 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.
47914 47915 47916 |
# File 'lib/ovirtsdk4/types.rb', line 47914 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.
47927 47928 47929 47930 47931 47932 |
# File 'lib/ovirtsdk4/types.rb', line 47927 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.
47939 47940 47941 |
# File 'lib/ovirtsdk4/types.rb', line 47939 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.
47952 47953 47954 47955 47956 47957 |
# File 'lib/ovirtsdk4/types.rb', line 47952 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.
47964 47965 47966 |
# File 'lib/ovirtsdk4/types.rb', line 47964 def host_devices @host_devices end |
#host_devices=(list) ⇒ Object
Sets the value of the host_devices
attribute.
47973 47974 47975 47976 47977 47978 47979 47980 47981 47982 47983 |
# File 'lib/ovirtsdk4/types.rb', line 47973 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.
47990 47991 47992 |
# File 'lib/ovirtsdk4/types.rb', line 47990 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
47999 48000 48001 |
# File 'lib/ovirtsdk4/types.rb', line 47999 def id=(value) @id = value end |
#initialization ⇒ Initialization
Returns the value of the initialization
attribute.
48008 48009 48010 |
# File 'lib/ovirtsdk4/types.rb', line 48008 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.
48021 48022 48023 48024 48025 48026 |
# File 'lib/ovirtsdk4/types.rb', line 48021 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.
48033 48034 48035 |
# File 'lib/ovirtsdk4/types.rb', line 48033 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.
48046 48047 48048 48049 48050 48051 |
# File 'lib/ovirtsdk4/types.rb', line 48046 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.
48058 48059 48060 |
# File 'lib/ovirtsdk4/types.rb', line 48058 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.
48071 48072 48073 48074 48075 48076 |
# File 'lib/ovirtsdk4/types.rb', line 48071 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.
48083 48084 48085 |
# File 'lib/ovirtsdk4/types.rb', line 48083 def katello_errata @katello_errata end |
#katello_errata=(list) ⇒ Object
Sets the value of the katello_errata
attribute.
48092 48093 48094 48095 48096 48097 48098 48099 48100 48101 48102 |
# File 'lib/ovirtsdk4/types.rb', line 48092 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.
48109 48110 48111 |
# File 'lib/ovirtsdk4/types.rb', line 48109 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.
48122 48123 48124 48125 48126 48127 |
# File 'lib/ovirtsdk4/types.rb', line 48122 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.
48134 48135 48136 |
# File 'lib/ovirtsdk4/types.rb', line 48134 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.
48147 48148 48149 48150 48151 48152 |
# File 'lib/ovirtsdk4/types.rb', line 48147 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.
48159 48160 48161 |
# File 'lib/ovirtsdk4/types.rb', line 48159 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory
attribute.
48168 48169 48170 |
# File 'lib/ovirtsdk4/types.rb', line 48168 def memory=(value) @memory = value end |
#memory_policy ⇒ MemoryPolicy
Returns the value of the memory_policy
attribute.
48177 48178 48179 |
# File 'lib/ovirtsdk4/types.rb', line 48177 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.
48190 48191 48192 48193 48194 48195 |
# File 'lib/ovirtsdk4/types.rb', line 48190 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.
48202 48203 48204 |
# File 'lib/ovirtsdk4/types.rb', line 48202 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.
48215 48216 48217 48218 48219 48220 |
# File 'lib/ovirtsdk4/types.rb', line 48215 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.
48227 48228 48229 |
# File 'lib/ovirtsdk4/types.rb', line 48227 def migration_downtime @migration_downtime end |
#migration_downtime=(value) ⇒ Object
Sets the value of the migration_downtime
attribute.
48236 48237 48238 |
# File 'lib/ovirtsdk4/types.rb', line 48236 def migration_downtime=(value) @migration_downtime = value end |
#multi_queues_enabled ⇒ Boolean
Returns the value of the multi_queues_enabled
attribute.
48245 48246 48247 |
# File 'lib/ovirtsdk4/types.rb', line 48245 def multi_queues_enabled @multi_queues_enabled end |
#multi_queues_enabled=(value) ⇒ Object
Sets the value of the multi_queues_enabled
attribute.
48254 48255 48256 |
# File 'lib/ovirtsdk4/types.rb', line 48254 def multi_queues_enabled=(value) @multi_queues_enabled = value end |
#name ⇒ String
Returns the value of the name
attribute.
48263 48264 48265 |
# File 'lib/ovirtsdk4/types.rb', line 48263 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
48272 48273 48274 |
# File 'lib/ovirtsdk4/types.rb', line 48272 def name=(value) @name = value end |
#next_run_configuration_exists ⇒ Boolean
Returns the value of the next_run_configuration_exists
attribute.
48281 48282 48283 |
# File 'lib/ovirtsdk4/types.rb', line 48281 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.
48290 48291 48292 |
# File 'lib/ovirtsdk4/types.rb', line 48290 def next_run_configuration_exists=(value) @next_run_configuration_exists = value end |
#nics ⇒ Array<Nic>
Returns the value of the nics
attribute.
48299 48300 48301 |
# File 'lib/ovirtsdk4/types.rb', line 48299 def nics @nics end |
#nics=(list) ⇒ Object
Sets the value of the nics
attribute.
48308 48309 48310 48311 48312 48313 48314 48315 48316 48317 48318 |
# File 'lib/ovirtsdk4/types.rb', line 48308 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.
48325 48326 48327 |
# File 'lib/ovirtsdk4/types.rb', line 48325 def numa_nodes @numa_nodes end |
#numa_nodes=(list) ⇒ Object
Sets the value of the numa_nodes
attribute.
48334 48335 48336 48337 48338 48339 48340 48341 48342 48343 48344 |
# File 'lib/ovirtsdk4/types.rb', line 48334 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.
48351 48352 48353 |
# File 'lib/ovirtsdk4/types.rb', line 48351 def numa_tune_mode @numa_tune_mode end |
#numa_tune_mode=(value) ⇒ Object
Sets the value of the numa_tune_mode
attribute.
48360 48361 48362 |
# File 'lib/ovirtsdk4/types.rb', line 48360 def numa_tune_mode=(value) @numa_tune_mode = value end |
#origin ⇒ String
Returns the value of the origin
attribute.
48369 48370 48371 |
# File 'lib/ovirtsdk4/types.rb', line 48369 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin
attribute.
48378 48379 48380 |
# File 'lib/ovirtsdk4/types.rb', line 48378 def origin=(value) @origin = value end |
#original_template ⇒ Template
Returns the value of the original_template
attribute.
48387 48388 48389 |
# File 'lib/ovirtsdk4/types.rb', line 48387 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.
48400 48401 48402 48403 48404 48405 |
# File 'lib/ovirtsdk4/types.rb', line 48400 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.
48412 48413 48414 |
# File 'lib/ovirtsdk4/types.rb', line 48412 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.
48425 48426 48427 48428 48429 48430 |
# File 'lib/ovirtsdk4/types.rb', line 48425 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.
48437 48438 48439 |
# File 'lib/ovirtsdk4/types.rb', line 48437 def payloads @payloads end |
#payloads=(list) ⇒ Object
Sets the value of the payloads
attribute.
48446 48447 48448 48449 48450 48451 48452 48453 48454 48455 48456 |
# File 'lib/ovirtsdk4/types.rb', line 48446 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.
48463 48464 48465 |
# File 'lib/ovirtsdk4/types.rb', line 48463 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
48472 48473 48474 48475 48476 48477 48478 48479 48480 48481 48482 |
# File 'lib/ovirtsdk4/types.rb', line 48472 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.
48489 48490 48491 |
# File 'lib/ovirtsdk4/types.rb', line 48489 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.
48502 48503 48504 48505 48506 48507 |
# File 'lib/ovirtsdk4/types.rb', line 48502 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.
48514 48515 48516 |
# File 'lib/ovirtsdk4/types.rb', line 48514 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.
48527 48528 48529 48530 48531 48532 |
# File 'lib/ovirtsdk4/types.rb', line 48527 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.
48539 48540 48541 |
# File 'lib/ovirtsdk4/types.rb', line 48539 def reported_devices @reported_devices end |
#reported_devices=(list) ⇒ Object
Sets the value of the reported_devices
attribute.
48548 48549 48550 48551 48552 48553 48554 48555 48556 48557 48558 |
# File 'lib/ovirtsdk4/types.rb', line 48548 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.
48565 48566 48567 |
# File 'lib/ovirtsdk4/types.rb', line 48565 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.
48578 48579 48580 48581 48582 48583 |
# File 'lib/ovirtsdk4/types.rb', line 48578 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.
48590 48591 48592 |
# File 'lib/ovirtsdk4/types.rb', line 48590 def run_once @run_once end |
#run_once=(value) ⇒ Object
Sets the value of the run_once
attribute.
48599 48600 48601 |
# File 'lib/ovirtsdk4/types.rb', line 48599 def run_once=(value) @run_once = value end |
#serial_number ⇒ SerialNumber
Returns the value of the serial_number
attribute.
48608 48609 48610 |
# File 'lib/ovirtsdk4/types.rb', line 48608 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.
48621 48622 48623 48624 48625 48626 |
# File 'lib/ovirtsdk4/types.rb', line 48621 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.
48633 48634 48635 |
# File 'lib/ovirtsdk4/types.rb', line 48633 def sessions @sessions end |
#sessions=(list) ⇒ Object
Sets the value of the sessions
attribute.
48642 48643 48644 48645 48646 48647 48648 48649 48650 48651 48652 |
# File 'lib/ovirtsdk4/types.rb', line 48642 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.
48659 48660 48661 |
# File 'lib/ovirtsdk4/types.rb', line 48659 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.
48672 48673 48674 48675 48676 48677 |
# File 'lib/ovirtsdk4/types.rb', line 48672 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.
48684 48685 48686 |
# File 'lib/ovirtsdk4/types.rb', line 48684 def snapshots @snapshots end |
#snapshots=(list) ⇒ Object
Sets the value of the snapshots
attribute.
48693 48694 48695 48696 48697 48698 48699 48700 48701 48702 48703 |
# File 'lib/ovirtsdk4/types.rb', line 48693 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.
48710 48711 48712 |
# File 'lib/ovirtsdk4/types.rb', line 48710 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled
attribute.
48719 48720 48721 |
# File 'lib/ovirtsdk4/types.rb', line 48719 def soundcard_enabled=(value) @soundcard_enabled = value end |
#sso ⇒ Sso
Returns the value of the sso
attribute.
48728 48729 48730 |
# File 'lib/ovirtsdk4/types.rb', line 48728 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.
48741 48742 48743 48744 48745 48746 |
# File 'lib/ovirtsdk4/types.rb', line 48741 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.
48753 48754 48755 |
# File 'lib/ovirtsdk4/types.rb', line 48753 def start_paused @start_paused end |
#start_paused=(value) ⇒ Object
Sets the value of the start_paused
attribute.
48762 48763 48764 |
# File 'lib/ovirtsdk4/types.rb', line 48762 def start_paused=(value) @start_paused = value end |
#start_time ⇒ DateTime
Returns the value of the start_time
attribute.
48771 48772 48773 |
# File 'lib/ovirtsdk4/types.rb', line 48771 def start_time @start_time end |
#start_time=(value) ⇒ Object
Sets the value of the start_time
attribute.
48780 48781 48782 |
# File 'lib/ovirtsdk4/types.rb', line 48780 def start_time=(value) @start_time = value end |
#stateless ⇒ Boolean
Returns the value of the stateless
attribute.
48789 48790 48791 |
# File 'lib/ovirtsdk4/types.rb', line 48789 def stateless @stateless end |
#stateless=(value) ⇒ Object
Sets the value of the stateless
attribute.
48798 48799 48800 |
# File 'lib/ovirtsdk4/types.rb', line 48798 def stateless=(value) @stateless = value end |
#statistics ⇒ Array<Statistic>
Returns the value of the statistics
attribute.
48807 48808 48809 |
# File 'lib/ovirtsdk4/types.rb', line 48807 def statistics @statistics end |
#statistics=(list) ⇒ Object
Sets the value of the statistics
attribute.
48816 48817 48818 48819 48820 48821 48822 48823 48824 48825 48826 |
# File 'lib/ovirtsdk4/types.rb', line 48816 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.
48833 48834 48835 |
# File 'lib/ovirtsdk4/types.rb', line 48833 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
48842 48843 48844 |
# File 'lib/ovirtsdk4/types.rb', line 48842 def status=(value) @status = value end |
#status_detail ⇒ String
Returns the value of the status_detail
attribute.
48851 48852 48853 |
# File 'lib/ovirtsdk4/types.rb', line 48851 def status_detail @status_detail end |
#status_detail=(value) ⇒ Object
Sets the value of the status_detail
attribute.
48860 48861 48862 |
# File 'lib/ovirtsdk4/types.rb', line 48860 def status_detail=(value) @status_detail = value end |
#stop_reason ⇒ String
Returns the value of the stop_reason
attribute.
48869 48870 48871 |
# File 'lib/ovirtsdk4/types.rb', line 48869 def stop_reason @stop_reason end |
#stop_reason=(value) ⇒ Object
Sets the value of the stop_reason
attribute.
48878 48879 48880 |
# File 'lib/ovirtsdk4/types.rb', line 48878 def stop_reason=(value) @stop_reason = value end |
#stop_time ⇒ DateTime
Returns the value of the stop_time
attribute.
48887 48888 48889 |
# File 'lib/ovirtsdk4/types.rb', line 48887 def stop_time @stop_time end |
#stop_time=(value) ⇒ Object
Sets the value of the stop_time
attribute.
48896 48897 48898 |
# File 'lib/ovirtsdk4/types.rb', line 48896 def stop_time=(value) @stop_time = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
48905 48906 48907 |
# File 'lib/ovirtsdk4/types.rb', line 48905 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.
48918 48919 48920 48921 48922 48923 |
# File 'lib/ovirtsdk4/types.rb', line 48918 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.
48930 48931 48932 |
# File 'lib/ovirtsdk4/types.rb', line 48930 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.
48939 48940 48941 |
# File 'lib/ovirtsdk4/types.rb', line 48939 def storage_error_resume_behaviour=(value) @storage_error_resume_behaviour = value end |
#tags ⇒ Array<Tag>
Returns the value of the tags
attribute.
48948 48949 48950 |
# File 'lib/ovirtsdk4/types.rb', line 48948 def @tags end |
#tags=(list) ⇒ Object
Sets the value of the tags
attribute.
48957 48958 48959 48960 48961 48962 48963 48964 48965 48966 48967 |
# File 'lib/ovirtsdk4/types.rb', line 48957 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.
48974 48975 48976 |
# File 'lib/ovirtsdk4/types.rb', line 48974 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.
48987 48988 48989 48990 48991 48992 |
# File 'lib/ovirtsdk4/types.rb', line 48987 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.
48999 49000 49001 |
# File 'lib/ovirtsdk4/types.rb', line 48999 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.
49012 49013 49014 49015 49016 49017 |
# File 'lib/ovirtsdk4/types.rb', line 49012 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.
49024 49025 49026 |
# File 'lib/ovirtsdk4/types.rb', line 49024 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration
attribute.
49033 49034 49035 |
# File 'lib/ovirtsdk4/types.rb', line 49033 def tunnel_migration=(value) @tunnel_migration = value end |
#type ⇒ VmType
Returns the value of the type
attribute.
49042 49043 49044 |
# File 'lib/ovirtsdk4/types.rb', line 49042 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
49051 49052 49053 |
# File 'lib/ovirtsdk4/types.rb', line 49051 def type=(value) @type = value end |
#usb ⇒ Usb
Returns the value of the usb
attribute.
49060 49061 49062 |
# File 'lib/ovirtsdk4/types.rb', line 49060 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.
49073 49074 49075 49076 49077 49078 |
# File 'lib/ovirtsdk4/types.rb', line 49073 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.
49085 49086 49087 |
# File 'lib/ovirtsdk4/types.rb', line 49085 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.
49094 49095 49096 |
# File 'lib/ovirtsdk4/types.rb', line 49094 def use_latest_template_version=(value) @use_latest_template_version = value end |
#virtio_scsi ⇒ VirtioScsi
Returns the value of the virtio_scsi
attribute.
49103 49104 49105 |
# File 'lib/ovirtsdk4/types.rb', line 49103 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.
49116 49117 49118 49119 49120 49121 |
# File 'lib/ovirtsdk4/types.rb', line 49116 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.
49128 49129 49130 |
# File 'lib/ovirtsdk4/types.rb', line 49128 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.
49141 49142 49143 49144 49145 49146 |
# File 'lib/ovirtsdk4/types.rb', line 49141 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.
49153 49154 49155 |
# File 'lib/ovirtsdk4/types.rb', line 49153 def watchdogs @watchdogs end |
#watchdogs=(list) ⇒ Object
Sets the value of the watchdogs
attribute.
49162 49163 49164 49165 49166 49167 49168 49169 49170 49171 49172 |
# File 'lib/ovirtsdk4/types.rb', line 49162 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 |