Class: OvirtSDK4::Snapshot
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#affinity_labels ⇒ Array<AffinityLabel>
Returns the value of the
affinity_labels
attribute. -
#affinity_labels=(list) ⇒ Object
Sets the value of the
affinity_labels
attribute. -
#applications ⇒ Array<Application>
Returns the value of the
applications
attribute. -
#applications=(list) ⇒ Object
Sets the value of the
applications
attribute. -
#auto_pinning_policy ⇒ AutoPinningPolicy
Returns the value of the
auto_pinning_policy
attribute. -
#auto_pinning_policy=(value) ⇒ Object
Sets the value of the
auto_pinning_policy
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_pinning_policy ⇒ CpuPinningPolicy
Returns the value of the
cpu_pinning_policy
attribute. -
#cpu_pinning_policy=(value) ⇒ Object
Sets the value of the
cpu_pinning_policy
attribute. -
#cpu_profile ⇒ CpuProfile
Returns the value of the
cpu_profile
attribute. -
#cpu_profile=(value) ⇒ Object
Sets the value of the
cpu_profile
attribute. -
#cpu_shares ⇒ Integer
Returns the value of the
cpu_shares
attribute. -
#cpu_shares=(value) ⇒ Object
Sets the value of the
cpu_shares
attribute. -
#creation_time ⇒ DateTime
Returns the value of the
creation_time
attribute. -
#creation_time=(value) ⇒ Object
Sets the value of the
creation_time
attribute. -
#custom_compatibility_version ⇒ Version
Returns the value of the
custom_compatibility_version
attribute. -
#custom_compatibility_version=(value) ⇒ Object
Sets the value of the
custom_compatibility_version
attribute. -
#custom_cpu_model ⇒ String
Returns the value of the
custom_cpu_model
attribute. -
#custom_cpu_model=(value) ⇒ Object
Sets the value of the
custom_cpu_model
attribute. -
#custom_emulated_machine ⇒ String
Returns the value of the
custom_emulated_machine
attribute. -
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the
custom_emulated_machine
attribute. -
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the
custom_properties
attribute. -
#custom_properties=(list) ⇒ Object
Sets the value of the
custom_properties
attribute. -
#date ⇒ DateTime
Returns the value of the
date
attribute. -
#date=(value) ⇒ Object
Sets the value of the
date
attribute. -
#delete_protected ⇒ Boolean
Returns the value of the
delete_protected
attribute. -
#delete_protected=(value) ⇒ Object
Sets the value of the
delete_protected
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the
disk_attachments
attribute. -
#disk_attachments=(list) ⇒ Object
Sets the value of the
disk_attachments
attribute. -
#disks ⇒ Array<Disk>
Returns the value of the
disks
attribute. -
#disks=(list) ⇒ Object
Sets the value of the
disks
attribute. -
#display ⇒ Display
Returns the value of the
display
attribute. -
#display=(value) ⇒ Object
Sets the value of the
display
attribute. -
#domain ⇒ Domain
Returns the value of the
domain
attribute. -
#domain=(value) ⇒ Object
Sets the value of the
domain
attribute. -
#dynamic_cpu ⇒ DynamicCpu
Returns the value of the
dynamic_cpu
attribute. -
#dynamic_cpu=(value) ⇒ Object
Sets the value of the
dynamic_cpu
attribute. -
#external_host_provider ⇒ ExternalHostProvider
Returns the value of the
external_host_provider
attribute. -
#external_host_provider=(value) ⇒ Object
Sets the value of the
external_host_provider
attribute. -
#floppies ⇒ Array<Floppy>
Returns the value of the
floppies
attribute. -
#floppies=(list) ⇒ Object
Sets the value of the
floppies
attribute. -
#fqdn ⇒ String
Returns the value of the
fqdn
attribute. -
#fqdn=(value) ⇒ Object
Sets the value of the
fqdn
attribute. -
#graphics_consoles ⇒ Array<GraphicsConsole>
Returns the value of the
graphics_consoles
attribute. -
#graphics_consoles=(list) ⇒ Object
Sets the value of the
graphics_consoles
attribute. -
#guest_operating_system ⇒ GuestOperatingSystem
Returns the value of the
guest_operating_system
attribute. -
#guest_operating_system=(value) ⇒ Object
Sets the value of the
guest_operating_system
attribute. -
#guest_time_zone ⇒ TimeZone
Returns the value of the
guest_time_zone
attribute. -
#guest_time_zone=(value) ⇒ Object
Sets the value of the
guest_time_zone
attribute. -
#has_illegal_images ⇒ Boolean
Returns the value of the
has_illegal_images
attribute. -
#has_illegal_images=(value) ⇒ Object
Sets the value of the
has_illegal_images
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#high_availability ⇒ HighAvailability
Returns the value of the
high_availability
attribute. -
#high_availability=(value) ⇒ Object
Sets the value of the
high_availability
attribute. -
#host ⇒ Host
Returns the value of the
host
attribute. -
#host=(value) ⇒ Object
Sets the value of the
host
attribute. -
#host_devices ⇒ Array<HostDevice>
Returns the value of the
host_devices
attribute. -
#host_devices=(list) ⇒ Object
Sets the value of the
host_devices
attribute. -
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialization ⇒ Initialization
Returns the value of the
initialization
attribute. -
#initialization=(value) ⇒ Object
Sets the value of the
initialization
attribute. -
#initialize(opts = {}) ⇒ Snapshot
constructor
Creates a new instance of the Snapshot class.
-
#instance_type ⇒ InstanceType
Returns the value of the
instance_type
attribute. -
#instance_type=(value) ⇒ Object
Sets the value of the
instance_type
attribute. -
#io ⇒ Io
Returns the value of the
io
attribute. -
#io=(value) ⇒ Object
Sets the value of the
io
attribute. -
#katello_errata ⇒ Array<KatelloErratum>
Returns the value of the
katello_errata
attribute. -
#katello_errata=(list) ⇒ Object
Sets the value of the
katello_errata
attribute. -
#large_icon ⇒ Icon
Returns the value of the
large_icon
attribute. -
#large_icon=(value) ⇒ Object
Sets the value of the
large_icon
attribute. -
#lease ⇒ StorageDomainLease
Returns the value of the
lease
attribute. -
#lease=(value) ⇒ Object
Sets the value of the
lease
attribute. -
#mediated_devices ⇒ Array<VmMediatedDevice>
Returns the value of the
mediated_devices
attribute. -
#mediated_devices=(list) ⇒ Object
Sets the value of the
mediated_devices
attribute. -
#memory ⇒ Integer
Returns the value of the
memory
attribute. -
#memory=(value) ⇒ Object
Sets the value of the
memory
attribute. -
#memory_policy ⇒ MemoryPolicy
Returns the value of the
memory_policy
attribute. -
#memory_policy=(value) ⇒ Object
Sets the value of the
memory_policy
attribute. -
#migration ⇒ MigrationOptions
Returns the value of the
migration
attribute. -
#migration=(value) ⇒ Object
Sets the value of the
migration
attribute. -
#migration_downtime ⇒ Integer
Returns the value of the
migration_downtime
attribute. -
#migration_downtime=(value) ⇒ Object
Sets the value of the
migration_downtime
attribute. -
#multi_queues_enabled ⇒ Boolean
Returns the value of the
multi_queues_enabled
attribute. -
#multi_queues_enabled=(value) ⇒ Object
Sets the value of the
multi_queues_enabled
attribute. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#next_run_configuration_exists ⇒ Boolean
Returns the value of the
next_run_configuration_exists
attribute. -
#next_run_configuration_exists=(value) ⇒ Object
Sets the value of the
next_run_configuration_exists
attribute. -
#nics ⇒ Array<Nic>
Returns the value of the
nics
attribute. -
#nics=(list) ⇒ Object
Sets the value of the
nics
attribute. -
#numa_nodes ⇒ Array<NumaNode>
Returns the value of the
numa_nodes
attribute. -
#numa_nodes=(list) ⇒ Object
Sets the value of the
numa_nodes
attribute. -
#numa_tune_mode ⇒ NumaTuneMode
Returns the value of the
numa_tune_mode
attribute. -
#numa_tune_mode=(value) ⇒ Object
Sets the value of the
numa_tune_mode
attribute. -
#origin ⇒ String
Returns the value of the
origin
attribute. -
#origin=(value) ⇒ Object
Sets the value of the
origin
attribute. -
#original_template ⇒ Template
Returns the value of the
original_template
attribute. -
#original_template=(value) ⇒ Object
Sets the value of the
original_template
attribute. -
#os ⇒ OperatingSystem
Returns the value of the
os
attribute. -
#os=(value) ⇒ Object
Sets the value of the
os
attribute. -
#payloads ⇒ Array<Payload>
Returns the value of the
payloads
attribute. -
#payloads=(list) ⇒ Object
Sets the value of the
payloads
attribute. -
#permissions ⇒ Array<Permission>
Returns the value of the
permissions
attribute. -
#permissions=(list) ⇒ Object
Sets the value of the
permissions
attribute. -
#persist_memorystate ⇒ Boolean
Returns the value of the
persist_memorystate
attribute. -
#persist_memorystate=(value) ⇒ Object
Sets the value of the
persist_memorystate
attribute. -
#placement_policy ⇒ VmPlacementPolicy
Returns the value of the
placement_policy
attribute. -
#placement_policy=(value) ⇒ Object
Sets the value of the
placement_policy
attribute. -
#quota ⇒ Quota
Returns the value of the
quota
attribute. -
#quota=(value) ⇒ Object
Sets the value of the
quota
attribute. -
#reported_devices ⇒ Array<ReportedDevice>
Returns the value of the
reported_devices
attribute. -
#reported_devices=(list) ⇒ Object
Sets the value of the
reported_devices
attribute. -
#rng_device ⇒ RngDevice
Returns the value of the
rng_device
attribute. -
#rng_device=(value) ⇒ Object
Sets the value of the
rng_device
attribute. -
#run_once ⇒ Boolean
Returns the value of the
run_once
attribute. -
#run_once=(value) ⇒ Object
Sets the value of the
run_once
attribute. -
#serial_number ⇒ SerialNumber
Returns the value of the
serial_number
attribute. -
#serial_number=(value) ⇒ Object
Sets the value of the
serial_number
attribute. -
#sessions ⇒ Array<Session>
Returns the value of the
sessions
attribute. -
#sessions=(list) ⇒ Object
Sets the value of the
sessions
attribute. -
#small_icon ⇒ Icon
Returns the value of the
small_icon
attribute. -
#small_icon=(value) ⇒ Object
Sets the value of the
small_icon
attribute. -
#snapshot_status ⇒ SnapshotStatus
Returns the value of the
snapshot_status
attribute. -
#snapshot_status=(value) ⇒ Object
Sets the value of the
snapshot_status
attribute. -
#snapshot_type ⇒ SnapshotType
Returns the value of the
snapshot_type
attribute. -
#snapshot_type=(value) ⇒ Object
Sets the value of the
snapshot_type
attribute. -
#snapshots ⇒ Array<Snapshot>
Returns the value of the
snapshots
attribute. -
#snapshots=(list) ⇒ Object
Sets the value of the
snapshots
attribute. -
#soundcard_enabled ⇒ Boolean
Returns the value of the
soundcard_enabled
attribute. -
#soundcard_enabled=(value) ⇒ Object
Sets the value of the
soundcard_enabled
attribute. -
#sso ⇒ Sso
Returns the value of the
sso
attribute. -
#sso=(value) ⇒ Object
Sets the value of the
sso
attribute. -
#start_paused ⇒ Boolean
Returns the value of the
start_paused
attribute. -
#start_paused=(value) ⇒ Object
Sets the value of the
start_paused
attribute. -
#start_time ⇒ DateTime
Returns the value of the
start_time
attribute. -
#start_time=(value) ⇒ Object
Sets the value of the
start_time
attribute. -
#stateless ⇒ Boolean
Returns the value of the
stateless
attribute. -
#stateless=(value) ⇒ Object
Sets the value of the
stateless
attribute. -
#statistics ⇒ Array<Statistic>
Returns the value of the
statistics
attribute. -
#statistics=(list) ⇒ Object
Sets the value of the
statistics
attribute. -
#status ⇒ VmStatus
Returns the value of the
status
attribute. -
#status=(value) ⇒ Object
Sets the value of the
status
attribute. -
#status_detail ⇒ String
Returns the value of the
status_detail
attribute. -
#status_detail=(value) ⇒ Object
Sets the value of the
status_detail
attribute. -
#stop_reason ⇒ String
Returns the value of the
stop_reason
attribute. -
#stop_reason=(value) ⇒ Object
Sets the value of the
stop_reason
attribute. -
#stop_time ⇒ DateTime
Returns the value of the
stop_time
attribute. -
#stop_time=(value) ⇒ Object
Sets the value of the
stop_time
attribute. -
#storage_domain ⇒ StorageDomain
Returns the value of the
storage_domain
attribute. -
#storage_domain=(value) ⇒ Object
Sets the value of the
storage_domain
attribute. -
#storage_error_resume_behaviour ⇒ VmStorageErrorResumeBehaviour
Returns the value of the
storage_error_resume_behaviour
attribute. -
#storage_error_resume_behaviour=(value) ⇒ Object
Sets the value of the
storage_error_resume_behaviour
attribute. -
#tags ⇒ Array<Tag>
Returns the value of the
tags
attribute. -
#tags=(list) ⇒ Object
Sets the value of the
tags
attribute. -
#template ⇒ Template
Returns the value of the
template
attribute. -
#template=(value) ⇒ Object
Sets the value of the
template
attribute. -
#time_zone ⇒ TimeZone
Returns the value of the
time_zone
attribute. -
#time_zone=(value) ⇒ Object
Sets the value of the
time_zone
attribute. -
#tpm_enabled ⇒ Boolean
Returns the value of the
tpm_enabled
attribute. -
#tpm_enabled=(value) ⇒ Object
Sets the value of the
tpm_enabled
attribute. -
#tunnel_migration ⇒ Boolean
Returns the value of the
tunnel_migration
attribute. -
#tunnel_migration=(value) ⇒ Object
Sets the value of the
tunnel_migration
attribute. -
#type ⇒ VmType
Returns the value of the
type
attribute. -
#type=(value) ⇒ Object
Sets the value of the
type
attribute. -
#usb ⇒ Usb
Returns the value of the
usb
attribute. -
#usb=(value) ⇒ Object
Sets the value of the
usb
attribute. -
#use_latest_template_version ⇒ Boolean
Returns the value of the
use_latest_template_version
attribute. -
#use_latest_template_version=(value) ⇒ Object
Sets the value of the
use_latest_template_version
attribute. -
#virtio_scsi ⇒ VirtioScsi
Returns the value of the
virtio_scsi
attribute. -
#virtio_scsi=(value) ⇒ Object
Sets the value of the
virtio_scsi
attribute. -
#virtio_scsi_multi_queues ⇒ Integer
Returns the value of the
virtio_scsi_multi_queues
attribute. -
#virtio_scsi_multi_queues=(value) ⇒ Object
Sets the value of the
virtio_scsi_multi_queues
attribute. -
#virtio_scsi_multi_queues_enabled ⇒ Boolean
Returns the value of the
virtio_scsi_multi_queues_enabled
attribute. -
#virtio_scsi_multi_queues_enabled=(value) ⇒ Object
Sets the value of the
virtio_scsi_multi_queues_enabled
attribute. -
#vm ⇒ Vm
Returns the value of the
vm
attribute. -
#vm=(value) ⇒ Object
Sets the value of the
vm
attribute. -
#vm_pool ⇒ VmPool
Returns the value of the
vm_pool
attribute. -
#vm_pool=(value) ⇒ Object
Sets the value of the
vm_pool
attribute. -
#watchdogs ⇒ Array<Watchdog>
Returns the value of the
watchdogs
attribute. -
#watchdogs=(list) ⇒ Object
Sets the value of the
watchdogs
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Snapshot
Creates a new instance of the OvirtSDK4::Snapshot class.
59638 59639 59640 59641 59642 59643 59644 59645 59646 |
# File 'lib/ovirtsdk4/types.rb', line 59638 def initialize(opts = {}) super(opts) self.date = opts[:date] self.disks = opts[:disks] self.persist_memorystate = opts[:persist_memorystate] self.snapshot_status = opts[:snapshot_status] self.snapshot_type = opts[:snapshot_type] self.vm = opts[:vm] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
59651 59652 59653 59654 59655 59656 59657 59658 59659 |
# File 'lib/ovirtsdk4/types.rb', line 59651 def ==(other) super && @date == other.date && @disks == other.disks && @persist_memorystate == other.persist_memorystate && @snapshot_status == other.snapshot_status && @snapshot_type == other.snapshot_type && @vm == other.vm end |
#affinity_labels ⇒ Array<AffinityLabel>
Returns the value of the affinity_labels
attribute.
57295 57296 57297 |
# File 'lib/ovirtsdk4/types.rb', line 57295 def affinity_labels @affinity_labels end |
#affinity_labels=(list) ⇒ Object
Sets the value of the affinity_labels
attribute.
57304 57305 57306 57307 57308 57309 57310 57311 57312 57313 57314 |
# File 'lib/ovirtsdk4/types.rb', line 57304 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.
57321 57322 57323 |
# File 'lib/ovirtsdk4/types.rb', line 57321 def applications @applications end |
#applications=(list) ⇒ Object
Sets the value of the applications
attribute.
57330 57331 57332 57333 57334 57335 57336 57337 57338 57339 57340 |
# File 'lib/ovirtsdk4/types.rb', line 57330 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 |
#auto_pinning_policy ⇒ AutoPinningPolicy
Returns the value of the auto_pinning_policy
attribute.
57347 57348 57349 |
# File 'lib/ovirtsdk4/types.rb', line 57347 def auto_pinning_policy @auto_pinning_policy end |
#auto_pinning_policy=(value) ⇒ Object
Sets the value of the auto_pinning_policy
attribute.
57356 57357 57358 |
# File 'lib/ovirtsdk4/types.rb', line 57356 def auto_pinning_policy=(value) @auto_pinning_policy = value end |
#bios ⇒ Bios
Returns the value of the bios
attribute.
57365 57366 57367 |
# File 'lib/ovirtsdk4/types.rb', line 57365 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.
57378 57379 57380 57381 57382 57383 |
# File 'lib/ovirtsdk4/types.rb', line 57378 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.
57390 57391 57392 |
# File 'lib/ovirtsdk4/types.rb', line 57390 def cdroms @cdroms end |
#cdroms=(list) ⇒ Object
Sets the value of the cdroms
attribute.
57399 57400 57401 57402 57403 57404 57405 57406 57407 57408 57409 |
# File 'lib/ovirtsdk4/types.rb', line 57399 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.
57416 57417 57418 |
# File 'lib/ovirtsdk4/types.rb', line 57416 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.
57429 57430 57431 57432 57433 57434 |
# File 'lib/ovirtsdk4/types.rb', line 57429 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.
57441 57442 57443 |
# File 'lib/ovirtsdk4/types.rb', line 57441 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
57450 57451 57452 |
# File 'lib/ovirtsdk4/types.rb', line 57450 def comment=(value) @comment = value end |
#console ⇒ Console
Returns the value of the console
attribute.
57459 57460 57461 |
# File 'lib/ovirtsdk4/types.rb', line 57459 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.
57472 57473 57474 57475 57476 57477 |
# File 'lib/ovirtsdk4/types.rb', line 57472 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.
57484 57485 57486 |
# File 'lib/ovirtsdk4/types.rb', line 57484 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.
57497 57498 57499 57500 57501 57502 |
# File 'lib/ovirtsdk4/types.rb', line 57497 def cpu=(value) if value.is_a?(Hash) value = Cpu.new(value) end @cpu = value end |
#cpu_pinning_policy ⇒ CpuPinningPolicy
Returns the value of the cpu_pinning_policy
attribute.
57509 57510 57511 |
# File 'lib/ovirtsdk4/types.rb', line 57509 def cpu_pinning_policy @cpu_pinning_policy end |
#cpu_pinning_policy=(value) ⇒ Object
Sets the value of the cpu_pinning_policy
attribute.
57518 57519 57520 |
# File 'lib/ovirtsdk4/types.rb', line 57518 def cpu_pinning_policy=(value) @cpu_pinning_policy = value end |
#cpu_profile ⇒ CpuProfile
Returns the value of the cpu_profile
attribute.
57527 57528 57529 |
# File 'lib/ovirtsdk4/types.rb', line 57527 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.
57540 57541 57542 57543 57544 57545 |
# File 'lib/ovirtsdk4/types.rb', line 57540 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.
57552 57553 57554 |
# File 'lib/ovirtsdk4/types.rb', line 57552 def cpu_shares @cpu_shares end |
#cpu_shares=(value) ⇒ Object
Sets the value of the cpu_shares
attribute.
57561 57562 57563 |
# File 'lib/ovirtsdk4/types.rb', line 57561 def cpu_shares=(value) @cpu_shares = value end |
#creation_time ⇒ DateTime
Returns the value of the creation_time
attribute.
57570 57571 57572 |
# File 'lib/ovirtsdk4/types.rb', line 57570 def creation_time @creation_time end |
#creation_time=(value) ⇒ Object
Sets the value of the creation_time
attribute.
57579 57580 57581 |
# File 'lib/ovirtsdk4/types.rb', line 57579 def creation_time=(value) @creation_time = value end |
#custom_compatibility_version ⇒ Version
Returns the value of the custom_compatibility_version
attribute.
57588 57589 57590 |
# File 'lib/ovirtsdk4/types.rb', line 57588 def custom_compatibility_version @custom_compatibility_version end |
#custom_compatibility_version=(value) ⇒ Object
Sets the value of the custom_compatibility_version
attribute.
The value
parameter can be an instance of Version or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
57601 57602 57603 57604 57605 57606 |
# File 'lib/ovirtsdk4/types.rb', line 57601 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.
57613 57614 57615 |
# File 'lib/ovirtsdk4/types.rb', line 57613 def custom_cpu_model @custom_cpu_model end |
#custom_cpu_model=(value) ⇒ Object
Sets the value of the custom_cpu_model
attribute.
57622 57623 57624 |
# File 'lib/ovirtsdk4/types.rb', line 57622 def custom_cpu_model=(value) @custom_cpu_model = value end |
#custom_emulated_machine ⇒ String
Returns the value of the custom_emulated_machine
attribute.
57631 57632 57633 |
# File 'lib/ovirtsdk4/types.rb', line 57631 def custom_emulated_machine @custom_emulated_machine end |
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the custom_emulated_machine
attribute.
57640 57641 57642 |
# File 'lib/ovirtsdk4/types.rb', line 57640 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the custom_properties
attribute.
57649 57650 57651 |
# File 'lib/ovirtsdk4/types.rb', line 57649 def custom_properties @custom_properties end |
#custom_properties=(list) ⇒ Object
Sets the value of the custom_properties
attribute.
57658 57659 57660 57661 57662 57663 57664 57665 57666 57667 57668 |
# File 'lib/ovirtsdk4/types.rb', line 57658 def custom_properties=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = CustomProperty.new(value) end end end @custom_properties = list end |
#date ⇒ DateTime
Returns the value of the date
attribute.
57675 57676 57677 |
# File 'lib/ovirtsdk4/types.rb', line 57675 def date @date end |
#date=(value) ⇒ Object
Sets the value of the date
attribute.
57684 57685 57686 |
# File 'lib/ovirtsdk4/types.rb', line 57684 def date=(value) @date = value end |
#delete_protected ⇒ Boolean
Returns the value of the delete_protected
attribute.
57693 57694 57695 |
# File 'lib/ovirtsdk4/types.rb', line 57693 def delete_protected @delete_protected end |
#delete_protected=(value) ⇒ Object
Sets the value of the delete_protected
attribute.
57702 57703 57704 |
# File 'lib/ovirtsdk4/types.rb', line 57702 def delete_protected=(value) @delete_protected = value end |
#description ⇒ String
Returns the value of the description
attribute.
57711 57712 57713 |
# File 'lib/ovirtsdk4/types.rb', line 57711 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
57720 57721 57722 |
# File 'lib/ovirtsdk4/types.rb', line 57720 def description=(value) @description = value end |
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the disk_attachments
attribute.
57729 57730 57731 |
# File 'lib/ovirtsdk4/types.rb', line 57729 def @disk_attachments end |
#disk_attachments=(list) ⇒ Object
Sets the value of the disk_attachments
attribute.
57738 57739 57740 57741 57742 57743 57744 57745 57746 57747 57748 |
# File 'lib/ovirtsdk4/types.rb', line 57738 def (list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = DiskAttachment.new(value) end end end @disk_attachments = list end |
#disks ⇒ Array<Disk>
Returns the value of the disks
attribute.
57755 57756 57757 |
# File 'lib/ovirtsdk4/types.rb', line 57755 def disks @disks end |
#disks=(list) ⇒ Object
Sets the value of the disks
attribute.
57764 57765 57766 57767 57768 57769 57770 57771 57772 57773 57774 |
# File 'lib/ovirtsdk4/types.rb', line 57764 def disks=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Disk.new(value) end end end @disks = list end |
#display ⇒ Display
Returns the value of the display
attribute.
57781 57782 57783 |
# File 'lib/ovirtsdk4/types.rb', line 57781 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.
57794 57795 57796 57797 57798 57799 |
# File 'lib/ovirtsdk4/types.rb', line 57794 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.
57806 57807 57808 |
# File 'lib/ovirtsdk4/types.rb', line 57806 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.
57819 57820 57821 57822 57823 57824 |
# File 'lib/ovirtsdk4/types.rb', line 57819 def domain=(value) if value.is_a?(Hash) value = Domain.new(value) end @domain = value end |
#dynamic_cpu ⇒ DynamicCpu
Returns the value of the dynamic_cpu
attribute.
57831 57832 57833 |
# File 'lib/ovirtsdk4/types.rb', line 57831 def dynamic_cpu @dynamic_cpu end |
#dynamic_cpu=(value) ⇒ Object
Sets the value of the dynamic_cpu
attribute.
The value
parameter can be an instance of DynamicCpu 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.
57844 57845 57846 57847 57848 57849 |
# File 'lib/ovirtsdk4/types.rb', line 57844 def dynamic_cpu=(value) if value.is_a?(Hash) value = DynamicCpu.new(value) end @dynamic_cpu = value end |
#external_host_provider ⇒ ExternalHostProvider
Returns the value of the external_host_provider
attribute.
57856 57857 57858 |
# File 'lib/ovirtsdk4/types.rb', line 57856 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.
57869 57870 57871 57872 57873 57874 |
# File 'lib/ovirtsdk4/types.rb', line 57869 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.
57881 57882 57883 |
# File 'lib/ovirtsdk4/types.rb', line 57881 def floppies @floppies end |
#floppies=(list) ⇒ Object
Sets the value of the floppies
attribute.
57890 57891 57892 57893 57894 57895 57896 57897 57898 57899 57900 |
# File 'lib/ovirtsdk4/types.rb', line 57890 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.
57907 57908 57909 |
# File 'lib/ovirtsdk4/types.rb', line 57907 def fqdn @fqdn end |
#fqdn=(value) ⇒ Object
Sets the value of the fqdn
attribute.
57916 57917 57918 |
# File 'lib/ovirtsdk4/types.rb', line 57916 def fqdn=(value) @fqdn = value end |
#graphics_consoles ⇒ Array<GraphicsConsole>
Returns the value of the graphics_consoles
attribute.
57925 57926 57927 |
# File 'lib/ovirtsdk4/types.rb', line 57925 def graphics_consoles @graphics_consoles end |
#graphics_consoles=(list) ⇒ Object
Sets the value of the graphics_consoles
attribute.
57934 57935 57936 57937 57938 57939 57940 57941 57942 57943 57944 |
# File 'lib/ovirtsdk4/types.rb', line 57934 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.
57951 57952 57953 |
# File 'lib/ovirtsdk4/types.rb', line 57951 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.
57964 57965 57966 57967 57968 57969 |
# File 'lib/ovirtsdk4/types.rb', line 57964 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.
57976 57977 57978 |
# File 'lib/ovirtsdk4/types.rb', line 57976 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.
57989 57990 57991 57992 57993 57994 |
# File 'lib/ovirtsdk4/types.rb', line 57989 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.
58001 58002 58003 |
# File 'lib/ovirtsdk4/types.rb', line 58001 def has_illegal_images @has_illegal_images end |
#has_illegal_images=(value) ⇒ Object
Sets the value of the has_illegal_images
attribute.
58010 58011 58012 |
# File 'lib/ovirtsdk4/types.rb', line 58010 def has_illegal_images=(value) @has_illegal_images = value end |
#hash ⇒ Object
Generates a hash value for this object.
59664 59665 59666 59667 59668 59669 59670 59671 59672 |
# File 'lib/ovirtsdk4/types.rb', line 59664 def hash super + @date.hash + @disks.hash + @persist_memorystate.hash + @snapshot_status.hash + @snapshot_type.hash + @vm.hash end |
#high_availability ⇒ HighAvailability
Returns the value of the high_availability
attribute.
58019 58020 58021 |
# File 'lib/ovirtsdk4/types.rb', line 58019 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.
58032 58033 58034 58035 58036 58037 |
# File 'lib/ovirtsdk4/types.rb', line 58032 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.
58044 58045 58046 |
# File 'lib/ovirtsdk4/types.rb', line 58044 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.
58057 58058 58059 58060 58061 58062 |
# File 'lib/ovirtsdk4/types.rb', line 58057 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.
58069 58070 58071 |
# File 'lib/ovirtsdk4/types.rb', line 58069 def host_devices @host_devices end |
#host_devices=(list) ⇒ Object
Sets the value of the host_devices
attribute.
58078 58079 58080 58081 58082 58083 58084 58085 58086 58087 58088 |
# File 'lib/ovirtsdk4/types.rb', line 58078 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.
58095 58096 58097 |
# File 'lib/ovirtsdk4/types.rb', line 58095 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
58104 58105 58106 |
# File 'lib/ovirtsdk4/types.rb', line 58104 def id=(value) @id = value end |
#initialization ⇒ Initialization
Returns the value of the initialization
attribute.
58113 58114 58115 |
# File 'lib/ovirtsdk4/types.rb', line 58113 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.
58126 58127 58128 58129 58130 58131 |
# File 'lib/ovirtsdk4/types.rb', line 58126 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.
58138 58139 58140 |
# File 'lib/ovirtsdk4/types.rb', line 58138 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.
58151 58152 58153 58154 58155 58156 |
# File 'lib/ovirtsdk4/types.rb', line 58151 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.
58163 58164 58165 |
# File 'lib/ovirtsdk4/types.rb', line 58163 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.
58176 58177 58178 58179 58180 58181 |
# File 'lib/ovirtsdk4/types.rb', line 58176 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.
58188 58189 58190 |
# File 'lib/ovirtsdk4/types.rb', line 58188 def katello_errata @katello_errata end |
#katello_errata=(list) ⇒ Object
Sets the value of the katello_errata
attribute.
58197 58198 58199 58200 58201 58202 58203 58204 58205 58206 58207 |
# File 'lib/ovirtsdk4/types.rb', line 58197 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.
58214 58215 58216 |
# File 'lib/ovirtsdk4/types.rb', line 58214 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.
58227 58228 58229 58230 58231 58232 |
# File 'lib/ovirtsdk4/types.rb', line 58227 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.
58239 58240 58241 |
# File 'lib/ovirtsdk4/types.rb', line 58239 def lease @lease end |
#lease=(value) ⇒ Object
Sets the value of the lease
attribute.
The value
parameter can be an instance of OvirtSDK4::StorageDomainLease or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
58252 58253 58254 58255 58256 58257 |
# File 'lib/ovirtsdk4/types.rb', line 58252 def lease=(value) if value.is_a?(Hash) value = StorageDomainLease.new(value) end @lease = value end |
#mediated_devices ⇒ Array<VmMediatedDevice>
Returns the value of the mediated_devices
attribute.
58264 58265 58266 |
# File 'lib/ovirtsdk4/types.rb', line 58264 def mediated_devices @mediated_devices end |
#mediated_devices=(list) ⇒ Object
Sets the value of the mediated_devices
attribute.
58273 58274 58275 58276 58277 58278 58279 58280 58281 58282 58283 |
# File 'lib/ovirtsdk4/types.rb', line 58273 def mediated_devices=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = VmMediatedDevice.new(value) end end end @mediated_devices = list end |
#memory ⇒ Integer
Returns the value of the memory
attribute.
58290 58291 58292 |
# File 'lib/ovirtsdk4/types.rb', line 58290 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory
attribute.
58299 58300 58301 |
# File 'lib/ovirtsdk4/types.rb', line 58299 def memory=(value) @memory = value end |
#memory_policy ⇒ MemoryPolicy
Returns the value of the memory_policy
attribute.
58308 58309 58310 |
# File 'lib/ovirtsdk4/types.rb', line 58308 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.
58321 58322 58323 58324 58325 58326 |
# File 'lib/ovirtsdk4/types.rb', line 58321 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.
58333 58334 58335 |
# File 'lib/ovirtsdk4/types.rb', line 58333 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.
58346 58347 58348 58349 58350 58351 |
# File 'lib/ovirtsdk4/types.rb', line 58346 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.
58358 58359 58360 |
# File 'lib/ovirtsdk4/types.rb', line 58358 def migration_downtime @migration_downtime end |
#migration_downtime=(value) ⇒ Object
Sets the value of the migration_downtime
attribute.
58367 58368 58369 |
# File 'lib/ovirtsdk4/types.rb', line 58367 def migration_downtime=(value) @migration_downtime = value end |
#multi_queues_enabled ⇒ Boolean
Returns the value of the multi_queues_enabled
attribute.
58376 58377 58378 |
# File 'lib/ovirtsdk4/types.rb', line 58376 def multi_queues_enabled @multi_queues_enabled end |
#multi_queues_enabled=(value) ⇒ Object
Sets the value of the multi_queues_enabled
attribute.
58385 58386 58387 |
# File 'lib/ovirtsdk4/types.rb', line 58385 def multi_queues_enabled=(value) @multi_queues_enabled = value end |
#name ⇒ String
Returns the value of the name
attribute.
58394 58395 58396 |
# File 'lib/ovirtsdk4/types.rb', line 58394 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
58403 58404 58405 |
# File 'lib/ovirtsdk4/types.rb', line 58403 def name=(value) @name = value end |
#next_run_configuration_exists ⇒ Boolean
Returns the value of the next_run_configuration_exists
attribute.
58412 58413 58414 |
# File 'lib/ovirtsdk4/types.rb', line 58412 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.
58421 58422 58423 |
# File 'lib/ovirtsdk4/types.rb', line 58421 def next_run_configuration_exists=(value) @next_run_configuration_exists = value end |
#nics ⇒ Array<Nic>
Returns the value of the nics
attribute.
58430 58431 58432 |
# File 'lib/ovirtsdk4/types.rb', line 58430 def nics @nics end |
#nics=(list) ⇒ Object
Sets the value of the nics
attribute.
58439 58440 58441 58442 58443 58444 58445 58446 58447 58448 58449 |
# File 'lib/ovirtsdk4/types.rb', line 58439 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.
58456 58457 58458 |
# File 'lib/ovirtsdk4/types.rb', line 58456 def numa_nodes @numa_nodes end |
#numa_nodes=(list) ⇒ Object
Sets the value of the numa_nodes
attribute.
58465 58466 58467 58468 58469 58470 58471 58472 58473 58474 58475 |
# File 'lib/ovirtsdk4/types.rb', line 58465 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.
58482 58483 58484 |
# File 'lib/ovirtsdk4/types.rb', line 58482 def numa_tune_mode @numa_tune_mode end |
#numa_tune_mode=(value) ⇒ Object
Sets the value of the numa_tune_mode
attribute.
58491 58492 58493 |
# File 'lib/ovirtsdk4/types.rb', line 58491 def numa_tune_mode=(value) @numa_tune_mode = value end |
#origin ⇒ String
Returns the value of the origin
attribute.
58500 58501 58502 |
# File 'lib/ovirtsdk4/types.rb', line 58500 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin
attribute.
58509 58510 58511 |
# File 'lib/ovirtsdk4/types.rb', line 58509 def origin=(value) @origin = value end |
#original_template ⇒ Template
Returns the value of the original_template
attribute.
58518 58519 58520 |
# File 'lib/ovirtsdk4/types.rb', line 58518 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.
58531 58532 58533 58534 58535 58536 |
# File 'lib/ovirtsdk4/types.rb', line 58531 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.
58543 58544 58545 |
# File 'lib/ovirtsdk4/types.rb', line 58543 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.
58556 58557 58558 58559 58560 58561 |
# File 'lib/ovirtsdk4/types.rb', line 58556 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.
58568 58569 58570 |
# File 'lib/ovirtsdk4/types.rb', line 58568 def payloads @payloads end |
#payloads=(list) ⇒ Object
Sets the value of the payloads
attribute.
58577 58578 58579 58580 58581 58582 58583 58584 58585 58586 58587 |
# File 'lib/ovirtsdk4/types.rb', line 58577 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.
58594 58595 58596 |
# File 'lib/ovirtsdk4/types.rb', line 58594 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
58603 58604 58605 58606 58607 58608 58609 58610 58611 58612 58613 |
# File 'lib/ovirtsdk4/types.rb', line 58603 def (list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Permission.new(value) end end end @permissions = list end |
#persist_memorystate ⇒ Boolean
Returns the value of the persist_memorystate
attribute.
58620 58621 58622 |
# File 'lib/ovirtsdk4/types.rb', line 58620 def persist_memorystate @persist_memorystate end |
#persist_memorystate=(value) ⇒ Object
Sets the value of the persist_memorystate
attribute.
58629 58630 58631 |
# File 'lib/ovirtsdk4/types.rb', line 58629 def persist_memorystate=(value) @persist_memorystate = value end |
#placement_policy ⇒ VmPlacementPolicy
Returns the value of the placement_policy
attribute.
58638 58639 58640 |
# File 'lib/ovirtsdk4/types.rb', line 58638 def placement_policy @placement_policy end |
#placement_policy=(value) ⇒ Object
Sets the value of the placement_policy
attribute.
The value
parameter can be an instance of VmPlacementPolicy or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
58651 58652 58653 58654 58655 58656 |
# File 'lib/ovirtsdk4/types.rb', line 58651 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.
58663 58664 58665 |
# File 'lib/ovirtsdk4/types.rb', line 58663 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.
58676 58677 58678 58679 58680 58681 |
# File 'lib/ovirtsdk4/types.rb', line 58676 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.
58688 58689 58690 |
# File 'lib/ovirtsdk4/types.rb', line 58688 def reported_devices @reported_devices end |
#reported_devices=(list) ⇒ Object
Sets the value of the reported_devices
attribute.
58697 58698 58699 58700 58701 58702 58703 58704 58705 58706 58707 |
# File 'lib/ovirtsdk4/types.rb', line 58697 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.
58714 58715 58716 |
# File 'lib/ovirtsdk4/types.rb', line 58714 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.
58727 58728 58729 58730 58731 58732 |
# File 'lib/ovirtsdk4/types.rb', line 58727 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.
58739 58740 58741 |
# File 'lib/ovirtsdk4/types.rb', line 58739 def run_once @run_once end |
#run_once=(value) ⇒ Object
Sets the value of the run_once
attribute.
58748 58749 58750 |
# File 'lib/ovirtsdk4/types.rb', line 58748 def run_once=(value) @run_once = value end |
#serial_number ⇒ SerialNumber
Returns the value of the serial_number
attribute.
58757 58758 58759 |
# File 'lib/ovirtsdk4/types.rb', line 58757 def serial_number @serial_number end |
#serial_number=(value) ⇒ Object
Sets the value of the serial_number
attribute.
The value
parameter can be an instance of OvirtSDK4::SerialNumber or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
58770 58771 58772 58773 58774 58775 |
# File 'lib/ovirtsdk4/types.rb', line 58770 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.
58782 58783 58784 |
# File 'lib/ovirtsdk4/types.rb', line 58782 def sessions @sessions end |
#sessions=(list) ⇒ Object
Sets the value of the sessions
attribute.
58791 58792 58793 58794 58795 58796 58797 58798 58799 58800 58801 |
# File 'lib/ovirtsdk4/types.rb', line 58791 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.
58808 58809 58810 |
# File 'lib/ovirtsdk4/types.rb', line 58808 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.
58821 58822 58823 58824 58825 58826 |
# File 'lib/ovirtsdk4/types.rb', line 58821 def small_icon=(value) if value.is_a?(Hash) value = Icon.new(value) end @small_icon = value end |
#snapshot_status ⇒ SnapshotStatus
Returns the value of the snapshot_status
attribute.
58833 58834 58835 |
# File 'lib/ovirtsdk4/types.rb', line 58833 def snapshot_status @snapshot_status end |
#snapshot_status=(value) ⇒ Object
Sets the value of the snapshot_status
attribute.
58842 58843 58844 |
# File 'lib/ovirtsdk4/types.rb', line 58842 def snapshot_status=(value) @snapshot_status = value end |
#snapshot_type ⇒ SnapshotType
Returns the value of the snapshot_type
attribute.
58851 58852 58853 |
# File 'lib/ovirtsdk4/types.rb', line 58851 def snapshot_type @snapshot_type end |
#snapshot_type=(value) ⇒ Object
Sets the value of the snapshot_type
attribute.
58860 58861 58862 |
# File 'lib/ovirtsdk4/types.rb', line 58860 def snapshot_type=(value) @snapshot_type = value end |
#snapshots ⇒ Array<Snapshot>
Returns the value of the snapshots
attribute.
58869 58870 58871 |
# File 'lib/ovirtsdk4/types.rb', line 58869 def snapshots @snapshots end |
#snapshots=(list) ⇒ Object
Sets the value of the snapshots
attribute.
58878 58879 58880 58881 58882 58883 58884 58885 58886 58887 58888 |
# File 'lib/ovirtsdk4/types.rb', line 58878 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.
58895 58896 58897 |
# File 'lib/ovirtsdk4/types.rb', line 58895 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled
attribute.
58904 58905 58906 |
# File 'lib/ovirtsdk4/types.rb', line 58904 def soundcard_enabled=(value) @soundcard_enabled = value end |
#sso ⇒ Sso
Returns the value of the sso
attribute.
58913 58914 58915 |
# File 'lib/ovirtsdk4/types.rb', line 58913 def sso @sso end |
#sso=(value) ⇒ Object
Sets the value of the sso
attribute.
The value
parameter can be an instance of OvirtSDK4::Sso or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
58926 58927 58928 58929 58930 58931 |
# File 'lib/ovirtsdk4/types.rb', line 58926 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.
58938 58939 58940 |
# File 'lib/ovirtsdk4/types.rb', line 58938 def start_paused @start_paused end |
#start_paused=(value) ⇒ Object
Sets the value of the start_paused
attribute.
58947 58948 58949 |
# File 'lib/ovirtsdk4/types.rb', line 58947 def start_paused=(value) @start_paused = value end |
#start_time ⇒ DateTime
Returns the value of the start_time
attribute.
58956 58957 58958 |
# File 'lib/ovirtsdk4/types.rb', line 58956 def start_time @start_time end |
#start_time=(value) ⇒ Object
Sets the value of the start_time
attribute.
58965 58966 58967 |
# File 'lib/ovirtsdk4/types.rb', line 58965 def start_time=(value) @start_time = value end |
#stateless ⇒ Boolean
Returns the value of the stateless
attribute.
58974 58975 58976 |
# File 'lib/ovirtsdk4/types.rb', line 58974 def stateless @stateless end |
#stateless=(value) ⇒ Object
Sets the value of the stateless
attribute.
58983 58984 58985 |
# File 'lib/ovirtsdk4/types.rb', line 58983 def stateless=(value) @stateless = value end |
#statistics ⇒ Array<Statistic>
Returns the value of the statistics
attribute.
58992 58993 58994 |
# File 'lib/ovirtsdk4/types.rb', line 58992 def statistics @statistics end |
#statistics=(list) ⇒ Object
Sets the value of the statistics
attribute.
59001 59002 59003 59004 59005 59006 59007 59008 59009 59010 59011 |
# File 'lib/ovirtsdk4/types.rb', line 59001 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.
59018 59019 59020 |
# File 'lib/ovirtsdk4/types.rb', line 59018 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
59027 59028 59029 |
# File 'lib/ovirtsdk4/types.rb', line 59027 def status=(value) @status = value end |
#status_detail ⇒ String
Returns the value of the status_detail
attribute.
59036 59037 59038 |
# File 'lib/ovirtsdk4/types.rb', line 59036 def status_detail @status_detail end |
#status_detail=(value) ⇒ Object
Sets the value of the status_detail
attribute.
59045 59046 59047 |
# File 'lib/ovirtsdk4/types.rb', line 59045 def status_detail=(value) @status_detail = value end |
#stop_reason ⇒ String
Returns the value of the stop_reason
attribute.
59054 59055 59056 |
# File 'lib/ovirtsdk4/types.rb', line 59054 def stop_reason @stop_reason end |
#stop_reason=(value) ⇒ Object
Sets the value of the stop_reason
attribute.
59063 59064 59065 |
# File 'lib/ovirtsdk4/types.rb', line 59063 def stop_reason=(value) @stop_reason = value end |
#stop_time ⇒ DateTime
Returns the value of the stop_time
attribute.
59072 59073 59074 |
# File 'lib/ovirtsdk4/types.rb', line 59072 def stop_time @stop_time end |
#stop_time=(value) ⇒ Object
Sets the value of the stop_time
attribute.
59081 59082 59083 |
# File 'lib/ovirtsdk4/types.rb', line 59081 def stop_time=(value) @stop_time = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
59090 59091 59092 |
# File 'lib/ovirtsdk4/types.rb', line 59090 def storage_domain @storage_domain end |
#storage_domain=(value) ⇒ Object
Sets the value of the storage_domain
attribute.
The value
parameter can be an instance of OvirtSDK4::StorageDomain or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
59103 59104 59105 59106 59107 59108 |
# File 'lib/ovirtsdk4/types.rb', line 59103 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.
59115 59116 59117 |
# File 'lib/ovirtsdk4/types.rb', line 59115 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.
59124 59125 59126 |
# File 'lib/ovirtsdk4/types.rb', line 59124 def storage_error_resume_behaviour=(value) @storage_error_resume_behaviour = value end |
#tags ⇒ Array<Tag>
Returns the value of the tags
attribute.
59133 59134 59135 |
# File 'lib/ovirtsdk4/types.rb', line 59133 def @tags end |
#tags=(list) ⇒ Object
Sets the value of the tags
attribute.
59142 59143 59144 59145 59146 59147 59148 59149 59150 59151 59152 |
# File 'lib/ovirtsdk4/types.rb', line 59142 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.
59159 59160 59161 |
# File 'lib/ovirtsdk4/types.rb', line 59159 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.
59172 59173 59174 59175 59176 59177 |
# File 'lib/ovirtsdk4/types.rb', line 59172 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.
59184 59185 59186 |
# File 'lib/ovirtsdk4/types.rb', line 59184 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.
59197 59198 59199 59200 59201 59202 |
# File 'lib/ovirtsdk4/types.rb', line 59197 def time_zone=(value) if value.is_a?(Hash) value = TimeZone.new(value) end @time_zone = value end |
#tpm_enabled ⇒ Boolean
Returns the value of the tpm_enabled
attribute.
59209 59210 59211 |
# File 'lib/ovirtsdk4/types.rb', line 59209 def tpm_enabled @tpm_enabled end |
#tpm_enabled=(value) ⇒ Object
Sets the value of the tpm_enabled
attribute.
59218 59219 59220 |
# File 'lib/ovirtsdk4/types.rb', line 59218 def tpm_enabled=(value) @tpm_enabled = value end |
#tunnel_migration ⇒ Boolean
Returns the value of the tunnel_migration
attribute.
59227 59228 59229 |
# File 'lib/ovirtsdk4/types.rb', line 59227 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration
attribute.
59236 59237 59238 |
# File 'lib/ovirtsdk4/types.rb', line 59236 def tunnel_migration=(value) @tunnel_migration = value end |
#type ⇒ VmType
Returns the value of the type
attribute.
59245 59246 59247 |
# File 'lib/ovirtsdk4/types.rb', line 59245 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
59254 59255 59256 |
# File 'lib/ovirtsdk4/types.rb', line 59254 def type=(value) @type = value end |
#usb ⇒ Usb
Returns the value of the usb
attribute.
59263 59264 59265 |
# File 'lib/ovirtsdk4/types.rb', line 59263 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.
59276 59277 59278 59279 59280 59281 |
# File 'lib/ovirtsdk4/types.rb', line 59276 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.
59288 59289 59290 |
# File 'lib/ovirtsdk4/types.rb', line 59288 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.
59297 59298 59299 |
# File 'lib/ovirtsdk4/types.rb', line 59297 def use_latest_template_version=(value) @use_latest_template_version = value end |
#virtio_scsi ⇒ VirtioScsi
Returns the value of the virtio_scsi
attribute.
59306 59307 59308 |
# File 'lib/ovirtsdk4/types.rb', line 59306 def virtio_scsi @virtio_scsi end |
#virtio_scsi=(value) ⇒ Object
Sets the value of the virtio_scsi
attribute.
The value
parameter can be an instance of VirtioScsi or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
59319 59320 59321 59322 59323 59324 |
# File 'lib/ovirtsdk4/types.rb', line 59319 def virtio_scsi=(value) if value.is_a?(Hash) value = VirtioScsi.new(value) end @virtio_scsi = value end |
#virtio_scsi_multi_queues ⇒ Integer
Returns the value of the virtio_scsi_multi_queues
attribute.
59331 59332 59333 |
# File 'lib/ovirtsdk4/types.rb', line 59331 def virtio_scsi_multi_queues @virtio_scsi_multi_queues end |
#virtio_scsi_multi_queues=(value) ⇒ Object
Sets the value of the virtio_scsi_multi_queues
attribute.
59340 59341 59342 |
# File 'lib/ovirtsdk4/types.rb', line 59340 def virtio_scsi_multi_queues=(value) @virtio_scsi_multi_queues = value end |
#virtio_scsi_multi_queues_enabled ⇒ Boolean
Returns the value of the virtio_scsi_multi_queues_enabled
attribute.
59349 59350 59351 |
# File 'lib/ovirtsdk4/types.rb', line 59349 def virtio_scsi_multi_queues_enabled @virtio_scsi_multi_queues_enabled end |
#virtio_scsi_multi_queues_enabled=(value) ⇒ Object
Sets the value of the virtio_scsi_multi_queues_enabled
attribute.
59358 59359 59360 |
# File 'lib/ovirtsdk4/types.rb', line 59358 def virtio_scsi_multi_queues_enabled=(value) @virtio_scsi_multi_queues_enabled = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
59367 59368 59369 |
# File 'lib/ovirtsdk4/types.rb', line 59367 def vm @vm end |
#vm=(value) ⇒ Object
Sets the value of the vm
attribute.
The value
parameter can be an instance of Vm or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
59380 59381 59382 59383 59384 59385 |
# File 'lib/ovirtsdk4/types.rb', line 59380 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |
#vm_pool ⇒ VmPool
Returns the value of the vm_pool
attribute.
59392 59393 59394 |
# File 'lib/ovirtsdk4/types.rb', line 59392 def vm_pool @vm_pool end |
#vm_pool=(value) ⇒ Object
Sets the value of the vm_pool
attribute.
The value
parameter can be an instance of VmPool or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
59405 59406 59407 59408 59409 59410 |
# File 'lib/ovirtsdk4/types.rb', line 59405 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.
59417 59418 59419 |
# File 'lib/ovirtsdk4/types.rb', line 59417 def watchdogs @watchdogs end |
#watchdogs=(list) ⇒ Object
Sets the value of the watchdogs
attribute.
59426 59427 59428 59429 59430 59431 59432 59433 59434 59435 59436 |
# File 'lib/ovirtsdk4/types.rb', line 59426 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 |