Class: OvirtSDK4::Snapshot
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#affinity_labels ⇒ Array<AffinityLabel>
Returns the value of the
affinity_labels
attribute. -
#affinity_labels=(list) ⇒ Object
Sets the value of the
affinity_labels
attribute. -
#applications ⇒ Array<Application>
Returns the value of the
applications
attribute. -
#applications=(list) ⇒ Object
Sets the value of the
applications
attribute. -
#bios ⇒ Bios
Returns the value of the
bios
attribute. -
#bios=(value) ⇒ Object
Sets the value of the
bios
attribute. -
#cdroms ⇒ Array<Cdrom>
Returns the value of the
cdroms
attribute. -
#cdroms=(list) ⇒ Object
Sets the value of the
cdroms
attribute. -
#cluster ⇒ Cluster
Returns the value of the
cluster
attribute. -
#cluster=(value) ⇒ Object
Sets the value of the
cluster
attribute. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#console ⇒ Console
Returns the value of the
console
attribute. -
#console=(value) ⇒ Object
Sets the value of the
console
attribute. -
#cpu ⇒ Cpu
Returns the value of the
cpu
attribute. -
#cpu=(value) ⇒ Object
Sets the value of the
cpu
attribute. -
#cpu_profile ⇒ CpuProfile
Returns the value of the
cpu_profile
attribute. -
#cpu_profile=(value) ⇒ Object
Sets the value of the
cpu_profile
attribute. -
#cpu_shares ⇒ Integer
Returns the value of the
cpu_shares
attribute. -
#cpu_shares=(value) ⇒ Object
Sets the value of the
cpu_shares
attribute. -
#creation_time ⇒ DateTime
Returns the value of the
creation_time
attribute. -
#creation_time=(value) ⇒ Object
Sets the value of the
creation_time
attribute. -
#custom_compatibility_version ⇒ Version
Returns the value of the
custom_compatibility_version
attribute. -
#custom_compatibility_version=(value) ⇒ Object
Sets the value of the
custom_compatibility_version
attribute. -
#custom_cpu_model ⇒ String
Returns the value of the
custom_cpu_model
attribute. -
#custom_cpu_model=(value) ⇒ Object
Sets the value of the
custom_cpu_model
attribute. -
#custom_emulated_machine ⇒ String
Returns the value of the
custom_emulated_machine
attribute. -
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the
custom_emulated_machine
attribute. -
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the
custom_properties
attribute. -
#custom_properties=(list) ⇒ Object
Sets the value of the
custom_properties
attribute. -
#date ⇒ DateTime
Returns the value of the
date
attribute. -
#date=(value) ⇒ Object
Sets the value of the
date
attribute. -
#delete_protected ⇒ Boolean
Returns the value of the
delete_protected
attribute. -
#delete_protected=(value) ⇒ Object
Sets the value of the
delete_protected
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the
disk_attachments
attribute. -
#disk_attachments=(list) ⇒ Object
Sets the value of the
disk_attachments
attribute. -
#display ⇒ Display
Returns the value of the
display
attribute. -
#display=(value) ⇒ Object
Sets the value of the
display
attribute. -
#domain ⇒ Domain
Returns the value of the
domain
attribute. -
#domain=(value) ⇒ Object
Sets the value of the
domain
attribute. -
#external_host_provider ⇒ ExternalHostProvider
Returns the value of the
external_host_provider
attribute. -
#external_host_provider=(value) ⇒ Object
Sets the value of the
external_host_provider
attribute. -
#floppies ⇒ Array<Floppy>
Returns the value of the
floppies
attribute. -
#floppies=(list) ⇒ Object
Sets the value of the
floppies
attribute. -
#fqdn ⇒ String
Returns the value of the
fqdn
attribute. -
#fqdn=(value) ⇒ Object
Sets the value of the
fqdn
attribute. -
#graphics_consoles ⇒ Array<GraphicsConsole>
Returns the value of the
graphics_consoles
attribute. -
#graphics_consoles=(list) ⇒ Object
Sets the value of the
graphics_consoles
attribute. -
#guest_operating_system ⇒ GuestOperatingSystem
Returns the value of the
guest_operating_system
attribute. -
#guest_operating_system=(value) ⇒ Object
Sets the value of the
guest_operating_system
attribute. -
#guest_time_zone ⇒ TimeZone
Returns the value of the
guest_time_zone
attribute. -
#guest_time_zone=(value) ⇒ Object
Sets the value of the
guest_time_zone
attribute. -
#has_illegal_images ⇒ Boolean
Returns the value of the
has_illegal_images
attribute. -
#has_illegal_images=(value) ⇒ Object
Sets the value of the
has_illegal_images
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#high_availability ⇒ HighAvailability
Returns the value of the
high_availability
attribute. -
#high_availability=(value) ⇒ Object
Sets the value of the
high_availability
attribute. -
#host ⇒ Host
Returns the value of the
host
attribute. -
#host=(value) ⇒ Object
Sets the value of the
host
attribute. -
#host_devices ⇒ Array<HostDevice>
Returns the value of the
host_devices
attribute. -
#host_devices=(list) ⇒ Object
Sets the value of the
host_devices
attribute. -
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialization ⇒ Initialization
Returns the value of the
initialization
attribute. -
#initialization=(value) ⇒ Object
Sets the value of the
initialization
attribute. -
#initialize(opts = {}) ⇒ Snapshot
constructor
Creates a new instance of the Snapshot class.
-
#instance_type ⇒ InstanceType
Returns the value of the
instance_type
attribute. -
#instance_type=(value) ⇒ Object
Sets the value of the
instance_type
attribute. -
#io ⇒ Io
Returns the value of the
io
attribute. -
#io=(value) ⇒ Object
Sets the value of the
io
attribute. -
#katello_errata ⇒ Array<KatelloErratum>
Returns the value of the
katello_errata
attribute. -
#katello_errata=(list) ⇒ Object
Sets the value of the
katello_errata
attribute. -
#large_icon ⇒ Icon
Returns the value of the
large_icon
attribute. -
#large_icon=(value) ⇒ Object
Sets the value of the
large_icon
attribute. -
#lease ⇒ StorageDomainLease
Returns the value of the
lease
attribute. -
#lease=(value) ⇒ Object
Sets the value of the
lease
attribute. -
#memory ⇒ Integer
Returns the value of the
memory
attribute. -
#memory=(value) ⇒ Object
Sets the value of the
memory
attribute. -
#memory_policy ⇒ MemoryPolicy
Returns the value of the
memory_policy
attribute. -
#memory_policy=(value) ⇒ Object
Sets the value of the
memory_policy
attribute. -
#migration ⇒ MigrationOptions
Returns the value of the
migration
attribute. -
#migration=(value) ⇒ Object
Sets the value of the
migration
attribute. -
#migration_downtime ⇒ Integer
Returns the value of the
migration_downtime
attribute. -
#migration_downtime=(value) ⇒ Object
Sets the value of the
migration_downtime
attribute. -
#multi_queues_enabled ⇒ Boolean
Returns the value of the
multi_queues_enabled
attribute. -
#multi_queues_enabled=(value) ⇒ Object
Sets the value of the
multi_queues_enabled
attribute. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#next_run_configuration_exists ⇒ Boolean
Returns the value of the
next_run_configuration_exists
attribute. -
#next_run_configuration_exists=(value) ⇒ Object
Sets the value of the
next_run_configuration_exists
attribute. -
#nics ⇒ Array<Nic>
Returns the value of the
nics
attribute. -
#nics=(list) ⇒ Object
Sets the value of the
nics
attribute. -
#numa_nodes ⇒ Array<NumaNode>
Returns the value of the
numa_nodes
attribute. -
#numa_nodes=(list) ⇒ Object
Sets the value of the
numa_nodes
attribute. -
#numa_tune_mode ⇒ NumaTuneMode
Returns the value of the
numa_tune_mode
attribute. -
#numa_tune_mode=(value) ⇒ Object
Sets the value of the
numa_tune_mode
attribute. -
#origin ⇒ String
Returns the value of the
origin
attribute. -
#origin=(value) ⇒ Object
Sets the value of the
origin
attribute. -
#original_template ⇒ Template
Returns the value of the
original_template
attribute. -
#original_template=(value) ⇒ Object
Sets the value of the
original_template
attribute. -
#os ⇒ OperatingSystem
Returns the value of the
os
attribute. -
#os=(value) ⇒ Object
Sets the value of the
os
attribute. -
#payloads ⇒ Array<Payload>
Returns the value of the
payloads
attribute. -
#payloads=(list) ⇒ Object
Sets the value of the
payloads
attribute. -
#permissions ⇒ Array<Permission>
Returns the value of the
permissions
attribute. -
#permissions=(list) ⇒ Object
Sets the value of the
permissions
attribute. -
#persist_memorystate ⇒ Boolean
Returns the value of the
persist_memorystate
attribute. -
#persist_memorystate=(value) ⇒ Object
Sets the value of the
persist_memorystate
attribute. -
#placement_policy ⇒ VmPlacementPolicy
Returns the value of the
placement_policy
attribute. -
#placement_policy=(value) ⇒ Object
Sets the value of the
placement_policy
attribute. -
#quota ⇒ Quota
Returns the value of the
quota
attribute. -
#quota=(value) ⇒ Object
Sets the value of the
quota
attribute. -
#reported_devices ⇒ Array<ReportedDevice>
Returns the value of the
reported_devices
attribute. -
#reported_devices=(list) ⇒ Object
Sets the value of the
reported_devices
attribute. -
#rng_device ⇒ RngDevice
Returns the value of the
rng_device
attribute. -
#rng_device=(value) ⇒ Object
Sets the value of the
rng_device
attribute. -
#run_once ⇒ Boolean
Returns the value of the
run_once
attribute. -
#run_once=(value) ⇒ Object
Sets the value of the
run_once
attribute. -
#serial_number ⇒ SerialNumber
Returns the value of the
serial_number
attribute. -
#serial_number=(value) ⇒ Object
Sets the value of the
serial_number
attribute. -
#sessions ⇒ Array<Session>
Returns the value of the
sessions
attribute. -
#sessions=(list) ⇒ Object
Sets the value of the
sessions
attribute. -
#small_icon ⇒ Icon
Returns the value of the
small_icon
attribute. -
#small_icon=(value) ⇒ Object
Sets the value of the
small_icon
attribute. -
#snapshot_status ⇒ SnapshotStatus
Returns the value of the
snapshot_status
attribute. -
#snapshot_status=(value) ⇒ Object
Sets the value of the
snapshot_status
attribute. -
#snapshot_type ⇒ SnapshotType
Returns the value of the
snapshot_type
attribute. -
#snapshot_type=(value) ⇒ Object
Sets the value of the
snapshot_type
attribute. -
#snapshots ⇒ Array<Snapshot>
Returns the value of the
snapshots
attribute. -
#snapshots=(list) ⇒ Object
Sets the value of the
snapshots
attribute. -
#soundcard_enabled ⇒ Boolean
Returns the value of the
soundcard_enabled
attribute. -
#soundcard_enabled=(value) ⇒ Object
Sets the value of the
soundcard_enabled
attribute. -
#sso ⇒ Sso
Returns the value of the
sso
attribute. -
#sso=(value) ⇒ Object
Sets the value of the
sso
attribute. -
#start_paused ⇒ Boolean
Returns the value of the
start_paused
attribute. -
#start_paused=(value) ⇒ Object
Sets the value of the
start_paused
attribute. -
#start_time ⇒ DateTime
Returns the value of the
start_time
attribute. -
#start_time=(value) ⇒ Object
Sets the value of the
start_time
attribute. -
#stateless ⇒ Boolean
Returns the value of the
stateless
attribute. -
#stateless=(value) ⇒ Object
Sets the value of the
stateless
attribute. -
#statistics ⇒ Array<Statistic>
Returns the value of the
statistics
attribute. -
#statistics=(list) ⇒ Object
Sets the value of the
statistics
attribute. -
#status ⇒ VmStatus
Returns the value of the
status
attribute. -
#status=(value) ⇒ Object
Sets the value of the
status
attribute. -
#status_detail ⇒ String
Returns the value of the
status_detail
attribute. -
#status_detail=(value) ⇒ Object
Sets the value of the
status_detail
attribute. -
#stop_reason ⇒ String
Returns the value of the
stop_reason
attribute. -
#stop_reason=(value) ⇒ Object
Sets the value of the
stop_reason
attribute. -
#stop_time ⇒ DateTime
Returns the value of the
stop_time
attribute. -
#stop_time=(value) ⇒ Object
Sets the value of the
stop_time
attribute. -
#storage_domain ⇒ StorageDomain
Returns the value of the
storage_domain
attribute. -
#storage_domain=(value) ⇒ Object
Sets the value of the
storage_domain
attribute. -
#storage_error_resume_behaviour ⇒ VmStorageErrorResumeBehaviour
Returns the value of the
storage_error_resume_behaviour
attribute. -
#storage_error_resume_behaviour=(value) ⇒ Object
Sets the value of the
storage_error_resume_behaviour
attribute. -
#tags ⇒ Array<Tag>
Returns the value of the
tags
attribute. -
#tags=(list) ⇒ Object
Sets the value of the
tags
attribute. -
#template ⇒ Template
Returns the value of the
template
attribute. -
#template=(value) ⇒ Object
Sets the value of the
template
attribute. -
#time_zone ⇒ TimeZone
Returns the value of the
time_zone
attribute. -
#time_zone=(value) ⇒ Object
Sets the value of the
time_zone
attribute. -
#tunnel_migration ⇒ Boolean
Returns the value of the
tunnel_migration
attribute. -
#tunnel_migration=(value) ⇒ Object
Sets the value of the
tunnel_migration
attribute. -
#type ⇒ VmType
Returns the value of the
type
attribute. -
#type=(value) ⇒ Object
Sets the value of the
type
attribute. -
#usb ⇒ Usb
Returns the value of the
usb
attribute. -
#usb=(value) ⇒ Object
Sets the value of the
usb
attribute. -
#use_latest_template_version ⇒ Boolean
Returns the value of the
use_latest_template_version
attribute. -
#use_latest_template_version=(value) ⇒ Object
Sets the value of the
use_latest_template_version
attribute. -
#virtio_scsi ⇒ VirtioScsi
Returns the value of the
virtio_scsi
attribute. -
#virtio_scsi=(value) ⇒ Object
Sets the value of the
virtio_scsi
attribute. -
#vm ⇒ Vm
Returns the value of the
vm
attribute. -
#vm=(value) ⇒ Object
Sets the value of the
vm
attribute. -
#vm_pool ⇒ VmPool
Returns the value of the
vm_pool
attribute. -
#vm_pool=(value) ⇒ Object
Sets the value of the
vm_pool
attribute. -
#watchdogs ⇒ Array<Watchdog>
Returns the value of the
watchdogs
attribute. -
#watchdogs=(list) ⇒ Object
Sets the value of the
watchdogs
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Snapshot
Creates a new instance of the OvirtSDK4::Snapshot class.
55362 55363 55364 55365 55366 55367 55368 55369 |
# File 'lib/ovirtsdk4/types.rb', line 55362 def initialize(opts = {}) super(opts) self.date = opts[:date] 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.
55374 55375 55376 55377 55378 55379 55380 55381 |
# File 'lib/ovirtsdk4/types.rb', line 55374 def ==(other) super && @date == other.date && @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.
53202 53203 53204 |
# File 'lib/ovirtsdk4/types.rb', line 53202 def affinity_labels @affinity_labels end |
#affinity_labels=(list) ⇒ Object
Sets the value of the affinity_labels
attribute.
53211 53212 53213 53214 53215 53216 53217 53218 53219 53220 53221 |
# File 'lib/ovirtsdk4/types.rb', line 53211 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.
53228 53229 53230 |
# File 'lib/ovirtsdk4/types.rb', line 53228 def applications @applications end |
#applications=(list) ⇒ Object
Sets the value of the applications
attribute.
53237 53238 53239 53240 53241 53242 53243 53244 53245 53246 53247 |
# File 'lib/ovirtsdk4/types.rb', line 53237 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.
53254 53255 53256 |
# File 'lib/ovirtsdk4/types.rb', line 53254 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.
53267 53268 53269 53270 53271 53272 |
# File 'lib/ovirtsdk4/types.rb', line 53267 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.
53279 53280 53281 |
# File 'lib/ovirtsdk4/types.rb', line 53279 def cdroms @cdroms end |
#cdroms=(list) ⇒ Object
Sets the value of the cdroms
attribute.
53288 53289 53290 53291 53292 53293 53294 53295 53296 53297 53298 |
# File 'lib/ovirtsdk4/types.rb', line 53288 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.
53305 53306 53307 |
# File 'lib/ovirtsdk4/types.rb', line 53305 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.
53318 53319 53320 53321 53322 53323 |
# File 'lib/ovirtsdk4/types.rb', line 53318 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.
53330 53331 53332 |
# File 'lib/ovirtsdk4/types.rb', line 53330 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
53339 53340 53341 |
# File 'lib/ovirtsdk4/types.rb', line 53339 def comment=(value) @comment = value end |
#console ⇒ Console
Returns the value of the console
attribute.
53348 53349 53350 |
# File 'lib/ovirtsdk4/types.rb', line 53348 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.
53361 53362 53363 53364 53365 53366 |
# File 'lib/ovirtsdk4/types.rb', line 53361 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.
53373 53374 53375 |
# File 'lib/ovirtsdk4/types.rb', line 53373 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.
53386 53387 53388 53389 53390 53391 |
# File 'lib/ovirtsdk4/types.rb', line 53386 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.
53398 53399 53400 |
# File 'lib/ovirtsdk4/types.rb', line 53398 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.
53411 53412 53413 53414 53415 53416 |
# File 'lib/ovirtsdk4/types.rb', line 53411 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.
53423 53424 53425 |
# File 'lib/ovirtsdk4/types.rb', line 53423 def cpu_shares @cpu_shares end |
#cpu_shares=(value) ⇒ Object
Sets the value of the cpu_shares
attribute.
53432 53433 53434 |
# File 'lib/ovirtsdk4/types.rb', line 53432 def cpu_shares=(value) @cpu_shares = value end |
#creation_time ⇒ DateTime
Returns the value of the creation_time
attribute.
53441 53442 53443 |
# File 'lib/ovirtsdk4/types.rb', line 53441 def creation_time @creation_time end |
#creation_time=(value) ⇒ Object
Sets the value of the creation_time
attribute.
53450 53451 53452 |
# File 'lib/ovirtsdk4/types.rb', line 53450 def creation_time=(value) @creation_time = value end |
#custom_compatibility_version ⇒ Version
Returns the value of the custom_compatibility_version
attribute.
53459 53460 53461 |
# File 'lib/ovirtsdk4/types.rb', line 53459 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.
53472 53473 53474 53475 53476 53477 |
# File 'lib/ovirtsdk4/types.rb', line 53472 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.
53484 53485 53486 |
# File 'lib/ovirtsdk4/types.rb', line 53484 def custom_cpu_model @custom_cpu_model end |
#custom_cpu_model=(value) ⇒ Object
Sets the value of the custom_cpu_model
attribute.
53493 53494 53495 |
# File 'lib/ovirtsdk4/types.rb', line 53493 def custom_cpu_model=(value) @custom_cpu_model = value end |
#custom_emulated_machine ⇒ String
Returns the value of the custom_emulated_machine
attribute.
53502 53503 53504 |
# File 'lib/ovirtsdk4/types.rb', line 53502 def custom_emulated_machine @custom_emulated_machine end |
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the custom_emulated_machine
attribute.
53511 53512 53513 |
# File 'lib/ovirtsdk4/types.rb', line 53511 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the custom_properties
attribute.
53520 53521 53522 |
# File 'lib/ovirtsdk4/types.rb', line 53520 def custom_properties @custom_properties end |
#custom_properties=(list) ⇒ Object
Sets the value of the custom_properties
attribute.
53529 53530 53531 53532 53533 53534 53535 53536 53537 53538 53539 |
# File 'lib/ovirtsdk4/types.rb', line 53529 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.
53546 53547 53548 |
# File 'lib/ovirtsdk4/types.rb', line 53546 def date @date end |
#date=(value) ⇒ Object
Sets the value of the date
attribute.
53555 53556 53557 |
# File 'lib/ovirtsdk4/types.rb', line 53555 def date=(value) @date = value end |
#delete_protected ⇒ Boolean
Returns the value of the delete_protected
attribute.
53564 53565 53566 |
# File 'lib/ovirtsdk4/types.rb', line 53564 def delete_protected @delete_protected end |
#delete_protected=(value) ⇒ Object
Sets the value of the delete_protected
attribute.
53573 53574 53575 |
# File 'lib/ovirtsdk4/types.rb', line 53573 def delete_protected=(value) @delete_protected = value end |
#description ⇒ String
Returns the value of the description
attribute.
53582 53583 53584 |
# File 'lib/ovirtsdk4/types.rb', line 53582 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
53591 53592 53593 |
# File 'lib/ovirtsdk4/types.rb', line 53591 def description=(value) @description = value end |
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the disk_attachments
attribute.
53600 53601 53602 |
# File 'lib/ovirtsdk4/types.rb', line 53600 def @disk_attachments end |
#disk_attachments=(list) ⇒ Object
Sets the value of the disk_attachments
attribute.
53609 53610 53611 53612 53613 53614 53615 53616 53617 53618 53619 |
# File 'lib/ovirtsdk4/types.rb', line 53609 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.
53626 53627 53628 |
# File 'lib/ovirtsdk4/types.rb', line 53626 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.
53639 53640 53641 53642 53643 53644 |
# File 'lib/ovirtsdk4/types.rb', line 53639 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.
53651 53652 53653 |
# File 'lib/ovirtsdk4/types.rb', line 53651 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.
53664 53665 53666 53667 53668 53669 |
# File 'lib/ovirtsdk4/types.rb', line 53664 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.
53676 53677 53678 |
# File 'lib/ovirtsdk4/types.rb', line 53676 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.
53689 53690 53691 53692 53693 53694 |
# File 'lib/ovirtsdk4/types.rb', line 53689 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.
53701 53702 53703 |
# File 'lib/ovirtsdk4/types.rb', line 53701 def floppies @floppies end |
#floppies=(list) ⇒ Object
Sets the value of the floppies
attribute.
53710 53711 53712 53713 53714 53715 53716 53717 53718 53719 53720 |
# File 'lib/ovirtsdk4/types.rb', line 53710 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.
53727 53728 53729 |
# File 'lib/ovirtsdk4/types.rb', line 53727 def fqdn @fqdn end |
#fqdn=(value) ⇒ Object
Sets the value of the fqdn
attribute.
53736 53737 53738 |
# File 'lib/ovirtsdk4/types.rb', line 53736 def fqdn=(value) @fqdn = value end |
#graphics_consoles ⇒ Array<GraphicsConsole>
Returns the value of the graphics_consoles
attribute.
53745 53746 53747 |
# File 'lib/ovirtsdk4/types.rb', line 53745 def graphics_consoles @graphics_consoles end |
#graphics_consoles=(list) ⇒ Object
Sets the value of the graphics_consoles
attribute.
53754 53755 53756 53757 53758 53759 53760 53761 53762 53763 53764 |
# File 'lib/ovirtsdk4/types.rb', line 53754 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.
53771 53772 53773 |
# File 'lib/ovirtsdk4/types.rb', line 53771 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.
53784 53785 53786 53787 53788 53789 |
# File 'lib/ovirtsdk4/types.rb', line 53784 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.
53796 53797 53798 |
# File 'lib/ovirtsdk4/types.rb', line 53796 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.
53809 53810 53811 53812 53813 53814 |
# File 'lib/ovirtsdk4/types.rb', line 53809 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.
53821 53822 53823 |
# File 'lib/ovirtsdk4/types.rb', line 53821 def has_illegal_images @has_illegal_images end |
#has_illegal_images=(value) ⇒ Object
Sets the value of the has_illegal_images
attribute.
53830 53831 53832 |
# File 'lib/ovirtsdk4/types.rb', line 53830 def has_illegal_images=(value) @has_illegal_images = value end |
#hash ⇒ Object
Generates a hash value for this object.
55386 55387 55388 55389 55390 55391 55392 55393 |
# File 'lib/ovirtsdk4/types.rb', line 55386 def hash super + @date.hash + @persist_memorystate.hash + @snapshot_status.hash + @snapshot_type.hash + @vm.hash end |
#high_availability ⇒ HighAvailability
Returns the value of the high_availability
attribute.
53839 53840 53841 |
# File 'lib/ovirtsdk4/types.rb', line 53839 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.
53852 53853 53854 53855 53856 53857 |
# File 'lib/ovirtsdk4/types.rb', line 53852 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.
53864 53865 53866 |
# File 'lib/ovirtsdk4/types.rb', line 53864 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.
53877 53878 53879 53880 53881 53882 |
# File 'lib/ovirtsdk4/types.rb', line 53877 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.
53889 53890 53891 |
# File 'lib/ovirtsdk4/types.rb', line 53889 def host_devices @host_devices end |
#host_devices=(list) ⇒ Object
Sets the value of the host_devices
attribute.
53898 53899 53900 53901 53902 53903 53904 53905 53906 53907 53908 |
# File 'lib/ovirtsdk4/types.rb', line 53898 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.
53915 53916 53917 |
# File 'lib/ovirtsdk4/types.rb', line 53915 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
53924 53925 53926 |
# File 'lib/ovirtsdk4/types.rb', line 53924 def id=(value) @id = value end |
#initialization ⇒ Initialization
Returns the value of the initialization
attribute.
53933 53934 53935 |
# File 'lib/ovirtsdk4/types.rb', line 53933 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.
53946 53947 53948 53949 53950 53951 |
# File 'lib/ovirtsdk4/types.rb', line 53946 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.
53958 53959 53960 |
# File 'lib/ovirtsdk4/types.rb', line 53958 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.
53971 53972 53973 53974 53975 53976 |
# File 'lib/ovirtsdk4/types.rb', line 53971 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.
53983 53984 53985 |
# File 'lib/ovirtsdk4/types.rb', line 53983 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.
53996 53997 53998 53999 54000 54001 |
# File 'lib/ovirtsdk4/types.rb', line 53996 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.
54008 54009 54010 |
# File 'lib/ovirtsdk4/types.rb', line 54008 def katello_errata @katello_errata end |
#katello_errata=(list) ⇒ Object
Sets the value of the katello_errata
attribute.
54017 54018 54019 54020 54021 54022 54023 54024 54025 54026 54027 |
# File 'lib/ovirtsdk4/types.rb', line 54017 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.
54034 54035 54036 |
# File 'lib/ovirtsdk4/types.rb', line 54034 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.
54047 54048 54049 54050 54051 54052 |
# File 'lib/ovirtsdk4/types.rb', line 54047 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.
54059 54060 54061 |
# File 'lib/ovirtsdk4/types.rb', line 54059 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.
54072 54073 54074 54075 54076 54077 |
# File 'lib/ovirtsdk4/types.rb', line 54072 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.
54084 54085 54086 |
# File 'lib/ovirtsdk4/types.rb', line 54084 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory
attribute.
54093 54094 54095 |
# File 'lib/ovirtsdk4/types.rb', line 54093 def memory=(value) @memory = value end |
#memory_policy ⇒ MemoryPolicy
Returns the value of the memory_policy
attribute.
54102 54103 54104 |
# File 'lib/ovirtsdk4/types.rb', line 54102 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.
54115 54116 54117 54118 54119 54120 |
# File 'lib/ovirtsdk4/types.rb', line 54115 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.
54127 54128 54129 |
# File 'lib/ovirtsdk4/types.rb', line 54127 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.
54140 54141 54142 54143 54144 54145 |
# File 'lib/ovirtsdk4/types.rb', line 54140 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.
54152 54153 54154 |
# File 'lib/ovirtsdk4/types.rb', line 54152 def migration_downtime @migration_downtime end |
#migration_downtime=(value) ⇒ Object
Sets the value of the migration_downtime
attribute.
54161 54162 54163 |
# File 'lib/ovirtsdk4/types.rb', line 54161 def migration_downtime=(value) @migration_downtime = value end |
#multi_queues_enabled ⇒ Boolean
Returns the value of the multi_queues_enabled
attribute.
54170 54171 54172 |
# File 'lib/ovirtsdk4/types.rb', line 54170 def multi_queues_enabled @multi_queues_enabled end |
#multi_queues_enabled=(value) ⇒ Object
Sets the value of the multi_queues_enabled
attribute.
54179 54180 54181 |
# File 'lib/ovirtsdk4/types.rb', line 54179 def multi_queues_enabled=(value) @multi_queues_enabled = value end |
#name ⇒ String
Returns the value of the name
attribute.
54188 54189 54190 |
# File 'lib/ovirtsdk4/types.rb', line 54188 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
54197 54198 54199 |
# File 'lib/ovirtsdk4/types.rb', line 54197 def name=(value) @name = value end |
#next_run_configuration_exists ⇒ Boolean
Returns the value of the next_run_configuration_exists
attribute.
54206 54207 54208 |
# File 'lib/ovirtsdk4/types.rb', line 54206 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.
54215 54216 54217 |
# File 'lib/ovirtsdk4/types.rb', line 54215 def next_run_configuration_exists=(value) @next_run_configuration_exists = value end |
#nics ⇒ Array<Nic>
Returns the value of the nics
attribute.
54224 54225 54226 |
# File 'lib/ovirtsdk4/types.rb', line 54224 def nics @nics end |
#nics=(list) ⇒ Object
Sets the value of the nics
attribute.
54233 54234 54235 54236 54237 54238 54239 54240 54241 54242 54243 |
# File 'lib/ovirtsdk4/types.rb', line 54233 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.
54250 54251 54252 |
# File 'lib/ovirtsdk4/types.rb', line 54250 def numa_nodes @numa_nodes end |
#numa_nodes=(list) ⇒ Object
Sets the value of the numa_nodes
attribute.
54259 54260 54261 54262 54263 54264 54265 54266 54267 54268 54269 |
# File 'lib/ovirtsdk4/types.rb', line 54259 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.
54276 54277 54278 |
# File 'lib/ovirtsdk4/types.rb', line 54276 def numa_tune_mode @numa_tune_mode end |
#numa_tune_mode=(value) ⇒ Object
Sets the value of the numa_tune_mode
attribute.
54285 54286 54287 |
# File 'lib/ovirtsdk4/types.rb', line 54285 def numa_tune_mode=(value) @numa_tune_mode = value end |
#origin ⇒ String
Returns the value of the origin
attribute.
54294 54295 54296 |
# File 'lib/ovirtsdk4/types.rb', line 54294 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin
attribute.
54303 54304 54305 |
# File 'lib/ovirtsdk4/types.rb', line 54303 def origin=(value) @origin = value end |
#original_template ⇒ Template
Returns the value of the original_template
attribute.
54312 54313 54314 |
# File 'lib/ovirtsdk4/types.rb', line 54312 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.
54325 54326 54327 54328 54329 54330 |
# File 'lib/ovirtsdk4/types.rb', line 54325 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.
54337 54338 54339 |
# File 'lib/ovirtsdk4/types.rb', line 54337 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.
54350 54351 54352 54353 54354 54355 |
# File 'lib/ovirtsdk4/types.rb', line 54350 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.
54362 54363 54364 |
# File 'lib/ovirtsdk4/types.rb', line 54362 def payloads @payloads end |
#payloads=(list) ⇒ Object
Sets the value of the payloads
attribute.
54371 54372 54373 54374 54375 54376 54377 54378 54379 54380 54381 |
# File 'lib/ovirtsdk4/types.rb', line 54371 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.
54388 54389 54390 |
# File 'lib/ovirtsdk4/types.rb', line 54388 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
54397 54398 54399 54400 54401 54402 54403 54404 54405 54406 54407 |
# File 'lib/ovirtsdk4/types.rb', line 54397 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.
54414 54415 54416 |
# File 'lib/ovirtsdk4/types.rb', line 54414 def persist_memorystate @persist_memorystate end |
#persist_memorystate=(value) ⇒ Object
Sets the value of the persist_memorystate
attribute.
54423 54424 54425 |
# File 'lib/ovirtsdk4/types.rb', line 54423 def persist_memorystate=(value) @persist_memorystate = value end |
#placement_policy ⇒ VmPlacementPolicy
Returns the value of the placement_policy
attribute.
54432 54433 54434 |
# File 'lib/ovirtsdk4/types.rb', line 54432 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.
54445 54446 54447 54448 54449 54450 |
# File 'lib/ovirtsdk4/types.rb', line 54445 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.
54457 54458 54459 |
# File 'lib/ovirtsdk4/types.rb', line 54457 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.
54470 54471 54472 54473 54474 54475 |
# File 'lib/ovirtsdk4/types.rb', line 54470 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.
54482 54483 54484 |
# File 'lib/ovirtsdk4/types.rb', line 54482 def reported_devices @reported_devices end |
#reported_devices=(list) ⇒ Object
Sets the value of the reported_devices
attribute.
54491 54492 54493 54494 54495 54496 54497 54498 54499 54500 54501 |
# File 'lib/ovirtsdk4/types.rb', line 54491 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.
54508 54509 54510 |
# File 'lib/ovirtsdk4/types.rb', line 54508 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.
54521 54522 54523 54524 54525 54526 |
# File 'lib/ovirtsdk4/types.rb', line 54521 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.
54533 54534 54535 |
# File 'lib/ovirtsdk4/types.rb', line 54533 def run_once @run_once end |
#run_once=(value) ⇒ Object
Sets the value of the run_once
attribute.
54542 54543 54544 |
# File 'lib/ovirtsdk4/types.rb', line 54542 def run_once=(value) @run_once = value end |
#serial_number ⇒ SerialNumber
Returns the value of the serial_number
attribute.
54551 54552 54553 |
# File 'lib/ovirtsdk4/types.rb', line 54551 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.
54564 54565 54566 54567 54568 54569 |
# File 'lib/ovirtsdk4/types.rb', line 54564 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.
54576 54577 54578 |
# File 'lib/ovirtsdk4/types.rb', line 54576 def sessions @sessions end |
#sessions=(list) ⇒ Object
Sets the value of the sessions
attribute.
54585 54586 54587 54588 54589 54590 54591 54592 54593 54594 54595 |
# File 'lib/ovirtsdk4/types.rb', line 54585 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.
54602 54603 54604 |
# File 'lib/ovirtsdk4/types.rb', line 54602 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.
54615 54616 54617 54618 54619 54620 |
# File 'lib/ovirtsdk4/types.rb', line 54615 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.
54627 54628 54629 |
# File 'lib/ovirtsdk4/types.rb', line 54627 def snapshot_status @snapshot_status end |
#snapshot_status=(value) ⇒ Object
Sets the value of the snapshot_status
attribute.
54636 54637 54638 |
# File 'lib/ovirtsdk4/types.rb', line 54636 def snapshot_status=(value) @snapshot_status = value end |
#snapshot_type ⇒ SnapshotType
Returns the value of the snapshot_type
attribute.
54645 54646 54647 |
# File 'lib/ovirtsdk4/types.rb', line 54645 def snapshot_type @snapshot_type end |
#snapshot_type=(value) ⇒ Object
Sets the value of the snapshot_type
attribute.
54654 54655 54656 |
# File 'lib/ovirtsdk4/types.rb', line 54654 def snapshot_type=(value) @snapshot_type = value end |
#snapshots ⇒ Array<Snapshot>
Returns the value of the snapshots
attribute.
54663 54664 54665 |
# File 'lib/ovirtsdk4/types.rb', line 54663 def snapshots @snapshots end |
#snapshots=(list) ⇒ Object
Sets the value of the snapshots
attribute.
54672 54673 54674 54675 54676 54677 54678 54679 54680 54681 54682 |
# File 'lib/ovirtsdk4/types.rb', line 54672 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.
54689 54690 54691 |
# File 'lib/ovirtsdk4/types.rb', line 54689 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled
attribute.
54698 54699 54700 |
# File 'lib/ovirtsdk4/types.rb', line 54698 def soundcard_enabled=(value) @soundcard_enabled = value end |
#sso ⇒ Sso
Returns the value of the sso
attribute.
54707 54708 54709 |
# File 'lib/ovirtsdk4/types.rb', line 54707 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.
54720 54721 54722 54723 54724 54725 |
# File 'lib/ovirtsdk4/types.rb', line 54720 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.
54732 54733 54734 |
# File 'lib/ovirtsdk4/types.rb', line 54732 def start_paused @start_paused end |
#start_paused=(value) ⇒ Object
Sets the value of the start_paused
attribute.
54741 54742 54743 |
# File 'lib/ovirtsdk4/types.rb', line 54741 def start_paused=(value) @start_paused = value end |
#start_time ⇒ DateTime
Returns the value of the start_time
attribute.
54750 54751 54752 |
# File 'lib/ovirtsdk4/types.rb', line 54750 def start_time @start_time end |
#start_time=(value) ⇒ Object
Sets the value of the start_time
attribute.
54759 54760 54761 |
# File 'lib/ovirtsdk4/types.rb', line 54759 def start_time=(value) @start_time = value end |
#stateless ⇒ Boolean
Returns the value of the stateless
attribute.
54768 54769 54770 |
# File 'lib/ovirtsdk4/types.rb', line 54768 def stateless @stateless end |
#stateless=(value) ⇒ Object
Sets the value of the stateless
attribute.
54777 54778 54779 |
# File 'lib/ovirtsdk4/types.rb', line 54777 def stateless=(value) @stateless = value end |
#statistics ⇒ Array<Statistic>
Returns the value of the statistics
attribute.
54786 54787 54788 |
# File 'lib/ovirtsdk4/types.rb', line 54786 def statistics @statistics end |
#statistics=(list) ⇒ Object
Sets the value of the statistics
attribute.
54795 54796 54797 54798 54799 54800 54801 54802 54803 54804 54805 |
# File 'lib/ovirtsdk4/types.rb', line 54795 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.
54812 54813 54814 |
# File 'lib/ovirtsdk4/types.rb', line 54812 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
54821 54822 54823 |
# File 'lib/ovirtsdk4/types.rb', line 54821 def status=(value) @status = value end |
#status_detail ⇒ String
Returns the value of the status_detail
attribute.
54830 54831 54832 |
# File 'lib/ovirtsdk4/types.rb', line 54830 def status_detail @status_detail end |
#status_detail=(value) ⇒ Object
Sets the value of the status_detail
attribute.
54839 54840 54841 |
# File 'lib/ovirtsdk4/types.rb', line 54839 def status_detail=(value) @status_detail = value end |
#stop_reason ⇒ String
Returns the value of the stop_reason
attribute.
54848 54849 54850 |
# File 'lib/ovirtsdk4/types.rb', line 54848 def stop_reason @stop_reason end |
#stop_reason=(value) ⇒ Object
Sets the value of the stop_reason
attribute.
54857 54858 54859 |
# File 'lib/ovirtsdk4/types.rb', line 54857 def stop_reason=(value) @stop_reason = value end |
#stop_time ⇒ DateTime
Returns the value of the stop_time
attribute.
54866 54867 54868 |
# File 'lib/ovirtsdk4/types.rb', line 54866 def stop_time @stop_time end |
#stop_time=(value) ⇒ Object
Sets the value of the stop_time
attribute.
54875 54876 54877 |
# File 'lib/ovirtsdk4/types.rb', line 54875 def stop_time=(value) @stop_time = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
54884 54885 54886 |
# File 'lib/ovirtsdk4/types.rb', line 54884 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.
54897 54898 54899 54900 54901 54902 |
# File 'lib/ovirtsdk4/types.rb', line 54897 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.
54909 54910 54911 |
# File 'lib/ovirtsdk4/types.rb', line 54909 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.
54918 54919 54920 |
# File 'lib/ovirtsdk4/types.rb', line 54918 def storage_error_resume_behaviour=(value) @storage_error_resume_behaviour = value end |
#tags ⇒ Array<Tag>
Returns the value of the tags
attribute.
54927 54928 54929 |
# File 'lib/ovirtsdk4/types.rb', line 54927 def @tags end |
#tags=(list) ⇒ Object
Sets the value of the tags
attribute.
54936 54937 54938 54939 54940 54941 54942 54943 54944 54945 54946 |
# File 'lib/ovirtsdk4/types.rb', line 54936 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.
54953 54954 54955 |
# File 'lib/ovirtsdk4/types.rb', line 54953 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.
54966 54967 54968 54969 54970 54971 |
# File 'lib/ovirtsdk4/types.rb', line 54966 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.
54978 54979 54980 |
# File 'lib/ovirtsdk4/types.rb', line 54978 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.
54991 54992 54993 54994 54995 54996 |
# File 'lib/ovirtsdk4/types.rb', line 54991 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.
55003 55004 55005 |
# File 'lib/ovirtsdk4/types.rb', line 55003 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration
attribute.
55012 55013 55014 |
# File 'lib/ovirtsdk4/types.rb', line 55012 def tunnel_migration=(value) @tunnel_migration = value end |
#type ⇒ VmType
Returns the value of the type
attribute.
55021 55022 55023 |
# File 'lib/ovirtsdk4/types.rb', line 55021 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
55030 55031 55032 |
# File 'lib/ovirtsdk4/types.rb', line 55030 def type=(value) @type = value end |
#usb ⇒ Usb
Returns the value of the usb
attribute.
55039 55040 55041 |
# File 'lib/ovirtsdk4/types.rb', line 55039 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.
55052 55053 55054 55055 55056 55057 |
# File 'lib/ovirtsdk4/types.rb', line 55052 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.
55064 55065 55066 |
# File 'lib/ovirtsdk4/types.rb', line 55064 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.
55073 55074 55075 |
# File 'lib/ovirtsdk4/types.rb', line 55073 def use_latest_template_version=(value) @use_latest_template_version = value end |
#virtio_scsi ⇒ VirtioScsi
Returns the value of the virtio_scsi
attribute.
55082 55083 55084 |
# File 'lib/ovirtsdk4/types.rb', line 55082 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.
55095 55096 55097 55098 55099 55100 |
# File 'lib/ovirtsdk4/types.rb', line 55095 def virtio_scsi=(value) if value.is_a?(Hash) value = VirtioScsi.new(value) end @virtio_scsi = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
55107 55108 55109 |
# File 'lib/ovirtsdk4/types.rb', line 55107 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.
55120 55121 55122 55123 55124 55125 |
# File 'lib/ovirtsdk4/types.rb', line 55120 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.
55132 55133 55134 |
# File 'lib/ovirtsdk4/types.rb', line 55132 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.
55145 55146 55147 55148 55149 55150 |
# File 'lib/ovirtsdk4/types.rb', line 55145 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.
55157 55158 55159 |
# File 'lib/ovirtsdk4/types.rb', line 55157 def watchdogs @watchdogs end |
#watchdogs=(list) ⇒ Object
Sets the value of the watchdogs
attribute.
55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 |
# File 'lib/ovirtsdk4/types.rb', line 55166 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 |