Class: OvirtSDK4::Vm
- Inherits:
-
VmBase
- Object
- Struct
- Identified
- VmBase
- OvirtSDK4::Vm
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#affinity_labels ⇒ Array<AffinityLabel>
Returns the value of the
affinity_labelsattribute. -
#affinity_labels=(list) ⇒ Object
Sets the value of the
affinity_labelsattribute. -
#applications ⇒ Array<Application>
Returns the value of the
applicationsattribute. -
#applications=(list) ⇒ Object
Sets the value of the
applicationsattribute. -
#auto_pinning_policy ⇒ AutoPinningPolicy
Returns the value of the
auto_pinning_policyattribute. -
#auto_pinning_policy=(value) ⇒ Object
Sets the value of the
auto_pinning_policyattribute. -
#bios ⇒ Bios
Returns the value of the
biosattribute. -
#bios=(value) ⇒ Object
Sets the value of the
biosattribute. -
#cdroms ⇒ Array<Cdrom>
Returns the value of the
cdromsattribute. -
#cdroms=(list) ⇒ Object
Sets the value of the
cdromsattribute. -
#cluster ⇒ Cluster
Returns the value of the
clusterattribute. -
#cluster=(value) ⇒ Object
Sets the value of the
clusterattribute. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#console ⇒ Console
Returns the value of the
consoleattribute. -
#console=(value) ⇒ Object
Sets the value of the
consoleattribute. -
#cpu ⇒ Cpu
Returns the value of the
cpuattribute. -
#cpu=(value) ⇒ Object
Sets the value of the
cpuattribute. -
#cpu_pinning_policy ⇒ CpuPinningPolicy
Returns the value of the
cpu_pinning_policyattribute. -
#cpu_pinning_policy=(value) ⇒ Object
Sets the value of the
cpu_pinning_policyattribute. -
#cpu_profile ⇒ CpuProfile
Returns the value of the
cpu_profileattribute. -
#cpu_profile=(value) ⇒ Object
Sets the value of the
cpu_profileattribute. -
#cpu_shares ⇒ Integer
Returns the value of the
cpu_sharesattribute. -
#cpu_shares=(value) ⇒ Object
Sets the value of the
cpu_sharesattribute. -
#creation_time ⇒ DateTime
Returns the value of the
creation_timeattribute. -
#creation_time=(value) ⇒ Object
Sets the value of the
creation_timeattribute. -
#custom_compatibility_version ⇒ Version
Returns the value of the
custom_compatibility_versionattribute. -
#custom_compatibility_version=(value) ⇒ Object
Sets the value of the
custom_compatibility_versionattribute. -
#custom_cpu_model ⇒ String
Returns the value of the
custom_cpu_modelattribute. -
#custom_cpu_model=(value) ⇒ Object
Sets the value of the
custom_cpu_modelattribute. -
#custom_emulated_machine ⇒ String
Returns the value of the
custom_emulated_machineattribute. -
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the
custom_emulated_machineattribute. -
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the
custom_propertiesattribute. -
#custom_properties=(list) ⇒ Object
Sets the value of the
custom_propertiesattribute. -
#delete_protected ⇒ Boolean
Returns the value of the
delete_protectedattribute. -
#delete_protected=(value) ⇒ Object
Sets the value of the
delete_protectedattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the
disk_attachmentsattribute. -
#disk_attachments=(list) ⇒ Object
Sets the value of the
disk_attachmentsattribute. -
#display ⇒ Display
Returns the value of the
displayattribute. -
#display=(value) ⇒ Object
Sets the value of the
displayattribute. -
#domain ⇒ Domain
Returns the value of the
domainattribute. -
#domain=(value) ⇒ Object
Sets the value of the
domainattribute. -
#dynamic_cpu ⇒ DynamicCpu
Returns the value of the
dynamic_cpuattribute. -
#dynamic_cpu=(value) ⇒ Object
Sets the value of the
dynamic_cpuattribute. -
#external_host_provider ⇒ ExternalHostProvider
Returns the value of the
external_host_providerattribute. -
#external_host_provider=(value) ⇒ Object
Sets the value of the
external_host_providerattribute. -
#floppies ⇒ Array<Floppy>
Returns the value of the
floppiesattribute. -
#floppies=(list) ⇒ Object
Sets the value of the
floppiesattribute. -
#fqdn ⇒ String
Returns the value of the
fqdnattribute. -
#fqdn=(value) ⇒ Object
Sets the value of the
fqdnattribute. -
#graphics_consoles ⇒ Array<GraphicsConsole>
Returns the value of the
graphics_consolesattribute. -
#graphics_consoles=(list) ⇒ Object
Sets the value of the
graphics_consolesattribute. -
#guest_operating_system ⇒ GuestOperatingSystem
Returns the value of the
guest_operating_systemattribute. -
#guest_operating_system=(value) ⇒ Object
Sets the value of the
guest_operating_systemattribute. -
#guest_time_zone ⇒ TimeZone
Returns the value of the
guest_time_zoneattribute. -
#guest_time_zone=(value) ⇒ Object
Sets the value of the
guest_time_zoneattribute. -
#has_illegal_images ⇒ Boolean
Returns the value of the
has_illegal_imagesattribute. -
#has_illegal_images=(value) ⇒ Object
Sets the value of the
has_illegal_imagesattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#high_availability ⇒ HighAvailability
Returns the value of the
high_availabilityattribute. -
#high_availability=(value) ⇒ Object
Sets the value of the
high_availabilityattribute. -
#host ⇒ Host
Returns the value of the
hostattribute. -
#host=(value) ⇒ Object
Sets the value of the
hostattribute. -
#host_devices ⇒ Array<HostDevice>
Returns the value of the
host_devicesattribute. -
#host_devices=(list) ⇒ Object
Sets the value of the
host_devicesattribute. -
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialization ⇒ Initialization
Returns the value of the
initializationattribute. -
#initialization=(value) ⇒ Object
Sets the value of the
initializationattribute. -
#initialize(opts = {}) ⇒ Vm
constructor
Creates a new instance of the Vm class.
-
#instance_type ⇒ InstanceType
Returns the value of the
instance_typeattribute. -
#instance_type=(value) ⇒ Object
Sets the value of the
instance_typeattribute. -
#io ⇒ Io
Returns the value of the
ioattribute. -
#io=(value) ⇒ Object
Sets the value of the
ioattribute. -
#katello_errata ⇒ Array<KatelloErratum>
Returns the value of the
katello_errataattribute. -
#katello_errata=(list) ⇒ Object
Sets the value of the
katello_errataattribute. -
#large_icon ⇒ Icon
Returns the value of the
large_iconattribute. -
#large_icon=(value) ⇒ Object
Sets the value of the
large_iconattribute. -
#lease ⇒ StorageDomainLease
Returns the value of the
leaseattribute. -
#lease=(value) ⇒ Object
Sets the value of the
leaseattribute. -
#mediated_devices ⇒ Array<VmMediatedDevice>
Returns the value of the
mediated_devicesattribute. -
#mediated_devices=(list) ⇒ Object
Sets the value of the
mediated_devicesattribute. -
#memory ⇒ Integer
Returns the value of the
memoryattribute. -
#memory=(value) ⇒ Object
Sets the value of the
memoryattribute. -
#memory_policy ⇒ MemoryPolicy
Returns the value of the
memory_policyattribute. -
#memory_policy=(value) ⇒ Object
Sets the value of the
memory_policyattribute. -
#migration ⇒ MigrationOptions
Returns the value of the
migrationattribute. -
#migration=(value) ⇒ Object
Sets the value of the
migrationattribute. -
#migration_downtime ⇒ Integer
Returns the value of the
migration_downtimeattribute. -
#migration_downtime=(value) ⇒ Object
Sets the value of the
migration_downtimeattribute. -
#multi_queues_enabled ⇒ Boolean
Returns the value of the
multi_queues_enabledattribute. -
#multi_queues_enabled=(value) ⇒ Object
Sets the value of the
multi_queues_enabledattribute. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#next_run_configuration_exists ⇒ Boolean
Returns the value of the
next_run_configuration_existsattribute. -
#next_run_configuration_exists=(value) ⇒ Object
Sets the value of the
next_run_configuration_existsattribute. -
#nics ⇒ Array<Nic>
Returns the value of the
nicsattribute. -
#nics=(list) ⇒ Object
Sets the value of the
nicsattribute. -
#numa_nodes ⇒ Array<NumaNode>
Returns the value of the
numa_nodesattribute. -
#numa_nodes=(list) ⇒ Object
Sets the value of the
numa_nodesattribute. -
#numa_tune_mode ⇒ NumaTuneMode
Returns the value of the
numa_tune_modeattribute. -
#numa_tune_mode=(value) ⇒ Object
Sets the value of the
numa_tune_modeattribute. -
#origin ⇒ String
Returns the value of the
originattribute. -
#origin=(value) ⇒ Object
Sets the value of the
originattribute. -
#original_template ⇒ Template
Returns the value of the
original_templateattribute. -
#original_template=(value) ⇒ Object
Sets the value of the
original_templateattribute. -
#os ⇒ OperatingSystem
Returns the value of the
osattribute. -
#os=(value) ⇒ Object
Sets the value of the
osattribute. -
#payloads ⇒ Array<Payload>
Returns the value of the
payloadsattribute. -
#payloads=(list) ⇒ Object
Sets the value of the
payloadsattribute. -
#permissions ⇒ Array<Permission>
Returns the value of the
permissionsattribute. -
#permissions=(list) ⇒ Object
Sets the value of the
permissionsattribute. -
#placement_policy ⇒ VmPlacementPolicy
Returns the value of the
placement_policyattribute. -
#placement_policy=(value) ⇒ Object
Sets the value of the
placement_policyattribute. -
#quota ⇒ Quota
Returns the value of the
quotaattribute. -
#quota=(value) ⇒ Object
Sets the value of the
quotaattribute. -
#reported_devices ⇒ Array<ReportedDevice>
Returns the value of the
reported_devicesattribute. -
#reported_devices=(list) ⇒ Object
Sets the value of the
reported_devicesattribute. -
#rng_device ⇒ RngDevice
Returns the value of the
rng_deviceattribute. -
#rng_device=(value) ⇒ Object
Sets the value of the
rng_deviceattribute. -
#run_once ⇒ Boolean
Returns the value of the
run_onceattribute. -
#run_once=(value) ⇒ Object
Sets the value of the
run_onceattribute. -
#serial_number ⇒ SerialNumber
Returns the value of the
serial_numberattribute. -
#serial_number=(value) ⇒ Object
Sets the value of the
serial_numberattribute. -
#sessions ⇒ Array<Session>
Returns the value of the
sessionsattribute. -
#sessions=(list) ⇒ Object
Sets the value of the
sessionsattribute. -
#small_icon ⇒ Icon
Returns the value of the
small_iconattribute. -
#small_icon=(value) ⇒ Object
Sets the value of the
small_iconattribute. -
#snapshots ⇒ Array<Snapshot>
Returns the value of the
snapshotsattribute. -
#snapshots=(list) ⇒ Object
Sets the value of the
snapshotsattribute. -
#soundcard_enabled ⇒ Boolean
Returns the value of the
soundcard_enabledattribute. -
#soundcard_enabled=(value) ⇒ Object
Sets the value of the
soundcard_enabledattribute. -
#sso ⇒ Sso
Returns the value of the
ssoattribute. -
#sso=(value) ⇒ Object
Sets the value of the
ssoattribute. -
#start_paused ⇒ Boolean
Returns the value of the
start_pausedattribute. -
#start_paused=(value) ⇒ Object
Sets the value of the
start_pausedattribute. -
#start_time ⇒ DateTime
Returns the value of the
start_timeattribute. -
#start_time=(value) ⇒ Object
Sets the value of the
start_timeattribute. -
#stateless ⇒ Boolean
Returns the value of the
statelessattribute. -
#stateless=(value) ⇒ Object
Sets the value of the
statelessattribute. -
#statistics ⇒ Array<Statistic>
Returns the value of the
statisticsattribute. -
#statistics=(list) ⇒ Object
Sets the value of the
statisticsattribute. -
#status ⇒ VmStatus
Returns the value of the
statusattribute. -
#status=(value) ⇒ Object
Sets the value of the
statusattribute. -
#status_detail ⇒ String
Returns the value of the
status_detailattribute. -
#status_detail=(value) ⇒ Object
Sets the value of the
status_detailattribute. -
#stop_reason ⇒ String
Returns the value of the
stop_reasonattribute. -
#stop_reason=(value) ⇒ Object
Sets the value of the
stop_reasonattribute. -
#stop_time ⇒ DateTime
Returns the value of the
stop_timeattribute. -
#stop_time=(value) ⇒ Object
Sets the value of the
stop_timeattribute. -
#storage_domain ⇒ StorageDomain
Returns the value of the
storage_domainattribute. -
#storage_domain=(value) ⇒ Object
Sets the value of the
storage_domainattribute. -
#storage_error_resume_behaviour ⇒ VmStorageErrorResumeBehaviour
Returns the value of the
storage_error_resume_behaviourattribute. -
#storage_error_resume_behaviour=(value) ⇒ Object
Sets the value of the
storage_error_resume_behaviourattribute. -
#tags ⇒ Array<Tag>
Returns the value of the
tagsattribute. -
#tags=(list) ⇒ Object
Sets the value of the
tagsattribute. -
#template ⇒ Template
Returns the value of the
templateattribute. -
#template=(value) ⇒ Object
Sets the value of the
templateattribute. -
#time_zone ⇒ TimeZone
Returns the value of the
time_zoneattribute. -
#time_zone=(value) ⇒ Object
Sets the value of the
time_zoneattribute. -
#tpm_enabled ⇒ Boolean
Returns the value of the
tpm_enabledattribute. -
#tpm_enabled=(value) ⇒ Object
Sets the value of the
tpm_enabledattribute. -
#tunnel_migration ⇒ Boolean
Returns the value of the
tunnel_migrationattribute. -
#tunnel_migration=(value) ⇒ Object
Sets the value of the
tunnel_migrationattribute. -
#type ⇒ VmType
Returns the value of the
typeattribute. -
#type=(value) ⇒ Object
Sets the value of the
typeattribute. -
#usb ⇒ Usb
Returns the value of the
usbattribute. -
#usb=(value) ⇒ Object
Sets the value of the
usbattribute. -
#use_latest_template_version ⇒ Boolean
Returns the value of the
use_latest_template_versionattribute. -
#use_latest_template_version=(value) ⇒ Object
Sets the value of the
use_latest_template_versionattribute. -
#virtio_scsi ⇒ VirtioScsi
Returns the value of the
virtio_scsiattribute. -
#virtio_scsi=(value) ⇒ Object
Sets the value of the
virtio_scsiattribute. -
#virtio_scsi_multi_queues ⇒ Integer
Returns the value of the
virtio_scsi_multi_queuesattribute. -
#virtio_scsi_multi_queues=(value) ⇒ Object
Sets the value of the
virtio_scsi_multi_queuesattribute. -
#virtio_scsi_multi_queues_enabled ⇒ Boolean
Returns the value of the
virtio_scsi_multi_queues_enabledattribute. -
#virtio_scsi_multi_queues_enabled=(value) ⇒ Object
Sets the value of the
virtio_scsi_multi_queues_enabledattribute. -
#vm_pool ⇒ VmPool
Returns the value of the
vm_poolattribute. -
#vm_pool=(value) ⇒ Object
Sets the value of the
vm_poolattribute. -
#watchdogs ⇒ Array<Watchdog>
Returns the value of the
watchdogsattribute. -
#watchdogs=(list) ⇒ Object
Sets the value of the
watchdogsattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Vm
Creates a new instance of the OvirtSDK4::Vm class.
53350 53351 53352 53353 53354 53355 53356 53357 53358 53359 53360 53361 53362 53363 53364 53365 53366 53367 53368 53369 53370 53371 53372 53373 53374 53375 53376 53377 53378 53379 53380 53381 53382 53383 53384 53385 53386 53387 53388 53389 53390 53391 |
# File 'lib/ovirtsdk4/types.rb', line 53350 def initialize(opts = {}) super(opts) self.affinity_labels = opts[:affinity_labels] self.applications = opts[:applications] self.cdroms = opts[:cdroms] self. = opts[:disk_attachments] self.dynamic_cpu = opts[:dynamic_cpu] self.external_host_provider = opts[:external_host_provider] self.floppies = opts[:floppies] self.fqdn = opts[:fqdn] self.graphics_consoles = opts[:graphics_consoles] self. = opts[:guest_operating_system] self.guest_time_zone = opts[:guest_time_zone] self.has_illegal_images = opts[:has_illegal_images] self.host = opts[:host] self.host_devices = opts[:host_devices] self.instance_type = opts[:instance_type] self.katello_errata = opts[:katello_errata] self.mediated_devices = opts[:mediated_devices] self.next_run_configuration_exists = opts[:next_run_configuration_exists] self.nics = opts[:nics] self.numa_nodes = opts[:numa_nodes] self.numa_tune_mode = opts[:numa_tune_mode] self.original_template = opts[:original_template] self.payloads = opts[:payloads] self. = opts[:permissions] self.reported_devices = opts[:reported_devices] self.run_once = opts[:run_once] self.sessions = opts[:sessions] self.snapshots = opts[:snapshots] self.start_time = opts[:start_time] self.statistics = opts[:statistics] self.status = opts[:status] self.status_detail = opts[:status_detail] self.stop_reason = opts[:stop_reason] self.stop_time = opts[:stop_time] self. = opts[:tags] self.template = opts[:template] self.use_latest_template_version = opts[:use_latest_template_version] self.vm_pool = opts[:vm_pool] self.watchdogs = opts[:watchdogs] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
53396 53397 53398 53399 53400 53401 53402 53403 53404 53405 53406 53407 53408 53409 53410 53411 53412 53413 53414 53415 53416 53417 53418 53419 53420 53421 53422 53423 53424 53425 53426 53427 53428 53429 53430 53431 53432 53433 53434 53435 53436 53437 |
# File 'lib/ovirtsdk4/types.rb', line 53396 def ==(other) super && @affinity_labels == other.affinity_labels && @applications == other.applications && @cdroms == other.cdroms && == other. && @dynamic_cpu == other.dynamic_cpu && @external_host_provider == other.external_host_provider && @floppies == other.floppies && @fqdn == other.fqdn && @graphics_consoles == other.graphics_consoles && == other. && @guest_time_zone == other.guest_time_zone && @has_illegal_images == other.has_illegal_images && @host == other.host && @host_devices == other.host_devices && @instance_type == other.instance_type && @katello_errata == other.katello_errata && @mediated_devices == other.mediated_devices && @next_run_configuration_exists == other.next_run_configuration_exists && @nics == other.nics && @numa_nodes == other.numa_nodes && @numa_tune_mode == other.numa_tune_mode && @original_template == other.original_template && @payloads == other.payloads && == other. && @reported_devices == other.reported_devices && @run_once == other.run_once && @sessions == other.sessions && @snapshots == other.snapshots && @start_time == other.start_time && @statistics == other.statistics && @status == other.status && @status_detail == other.status_detail && @stop_reason == other.stop_reason && @stop_time == other.stop_time && == other. && @template == other.template && @use_latest_template_version == other.use_latest_template_version && @vm_pool == other.vm_pool && @watchdogs == other.watchdogs end |
#affinity_labels ⇒ Array<AffinityLabel>
Returns the value of the affinity_labels attribute.
51142 51143 51144 |
# File 'lib/ovirtsdk4/types.rb', line 51142 def affinity_labels @affinity_labels end |
#affinity_labels=(list) ⇒ Object
Sets the value of the affinity_labels attribute.
51151 51152 51153 51154 51155 51156 51157 51158 51159 51160 51161 |
# File 'lib/ovirtsdk4/types.rb', line 51151 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.
51168 51169 51170 |
# File 'lib/ovirtsdk4/types.rb', line 51168 def applications @applications end |
#applications=(list) ⇒ Object
Sets the value of the applications attribute.
51177 51178 51179 51180 51181 51182 51183 51184 51185 51186 51187 |
# File 'lib/ovirtsdk4/types.rb', line 51177 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.
51194 51195 51196 |
# File 'lib/ovirtsdk4/types.rb', line 51194 def auto_pinning_policy @auto_pinning_policy end |
#auto_pinning_policy=(value) ⇒ Object
Sets the value of the auto_pinning_policy attribute.
51203 51204 51205 |
# File 'lib/ovirtsdk4/types.rb', line 51203 def auto_pinning_policy=(value) @auto_pinning_policy = value end |
#bios ⇒ Bios
Returns the value of the bios attribute.
51212 51213 51214 |
# File 'lib/ovirtsdk4/types.rb', line 51212 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.
51225 51226 51227 51228 51229 51230 |
# File 'lib/ovirtsdk4/types.rb', line 51225 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.
51237 51238 51239 |
# File 'lib/ovirtsdk4/types.rb', line 51237 def cdroms @cdroms end |
#cdroms=(list) ⇒ Object
Sets the value of the cdroms attribute.
51246 51247 51248 51249 51250 51251 51252 51253 51254 51255 51256 |
# File 'lib/ovirtsdk4/types.rb', line 51246 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.
51263 51264 51265 |
# File 'lib/ovirtsdk4/types.rb', line 51263 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.
51276 51277 51278 51279 51280 51281 |
# File 'lib/ovirtsdk4/types.rb', line 51276 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.
51288 51289 51290 |
# File 'lib/ovirtsdk4/types.rb', line 51288 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
51297 51298 51299 |
# File 'lib/ovirtsdk4/types.rb', line 51297 def comment=(value) @comment = value end |
#console ⇒ Console
Returns the value of the console attribute.
51306 51307 51308 |
# File 'lib/ovirtsdk4/types.rb', line 51306 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.
51319 51320 51321 51322 51323 51324 |
# File 'lib/ovirtsdk4/types.rb', line 51319 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.
51331 51332 51333 |
# File 'lib/ovirtsdk4/types.rb', line 51331 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.
51344 51345 51346 51347 51348 51349 |
# File 'lib/ovirtsdk4/types.rb', line 51344 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.
51356 51357 51358 |
# File 'lib/ovirtsdk4/types.rb', line 51356 def cpu_pinning_policy @cpu_pinning_policy end |
#cpu_pinning_policy=(value) ⇒ Object
Sets the value of the cpu_pinning_policy attribute.
51365 51366 51367 |
# File 'lib/ovirtsdk4/types.rb', line 51365 def cpu_pinning_policy=(value) @cpu_pinning_policy = value end |
#cpu_profile ⇒ CpuProfile
Returns the value of the cpu_profile attribute.
51374 51375 51376 |
# File 'lib/ovirtsdk4/types.rb', line 51374 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.
51387 51388 51389 51390 51391 51392 |
# File 'lib/ovirtsdk4/types.rb', line 51387 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.
51399 51400 51401 |
# File 'lib/ovirtsdk4/types.rb', line 51399 def cpu_shares @cpu_shares end |
#cpu_shares=(value) ⇒ Object
Sets the value of the cpu_shares attribute.
51408 51409 51410 |
# File 'lib/ovirtsdk4/types.rb', line 51408 def cpu_shares=(value) @cpu_shares = value end |
#creation_time ⇒ DateTime
Returns the value of the creation_time attribute.
51417 51418 51419 |
# File 'lib/ovirtsdk4/types.rb', line 51417 def creation_time @creation_time end |
#creation_time=(value) ⇒ Object
Sets the value of the creation_time attribute.
51426 51427 51428 |
# File 'lib/ovirtsdk4/types.rb', line 51426 def creation_time=(value) @creation_time = value end |
#custom_compatibility_version ⇒ Version
Returns the value of the custom_compatibility_version attribute.
51435 51436 51437 |
# File 'lib/ovirtsdk4/types.rb', line 51435 def custom_compatibility_version @custom_compatibility_version end |
#custom_compatibility_version=(value) ⇒ Object
Sets the value of the custom_compatibility_version attribute.
The value parameter can be an instance of OvirtSDK4::Version or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
51448 51449 51450 51451 51452 51453 |
# File 'lib/ovirtsdk4/types.rb', line 51448 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.
51460 51461 51462 |
# File 'lib/ovirtsdk4/types.rb', line 51460 def custom_cpu_model @custom_cpu_model end |
#custom_cpu_model=(value) ⇒ Object
Sets the value of the custom_cpu_model attribute.
51469 51470 51471 |
# File 'lib/ovirtsdk4/types.rb', line 51469 def custom_cpu_model=(value) @custom_cpu_model = value end |
#custom_emulated_machine ⇒ String
Returns the value of the custom_emulated_machine attribute.
51478 51479 51480 |
# File 'lib/ovirtsdk4/types.rb', line 51478 def custom_emulated_machine @custom_emulated_machine end |
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the custom_emulated_machine attribute.
51487 51488 51489 |
# File 'lib/ovirtsdk4/types.rb', line 51487 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the custom_properties attribute.
51496 51497 51498 |
# File 'lib/ovirtsdk4/types.rb', line 51496 def custom_properties @custom_properties end |
#custom_properties=(list) ⇒ Object
Sets the value of the custom_properties attribute.
51505 51506 51507 51508 51509 51510 51511 51512 51513 51514 51515 |
# File 'lib/ovirtsdk4/types.rb', line 51505 def custom_properties=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = CustomProperty.new(value) end end end @custom_properties = list end |
#delete_protected ⇒ Boolean
Returns the value of the delete_protected attribute.
51522 51523 51524 |
# File 'lib/ovirtsdk4/types.rb', line 51522 def delete_protected @delete_protected end |
#delete_protected=(value) ⇒ Object
Sets the value of the delete_protected attribute.
51531 51532 51533 |
# File 'lib/ovirtsdk4/types.rb', line 51531 def delete_protected=(value) @delete_protected = value end |
#description ⇒ String
Returns the value of the description attribute.
51540 51541 51542 |
# File 'lib/ovirtsdk4/types.rb', line 51540 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
51549 51550 51551 |
# File 'lib/ovirtsdk4/types.rb', line 51549 def description=(value) @description = value end |
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the disk_attachments attribute.
51558 51559 51560 |
# File 'lib/ovirtsdk4/types.rb', line 51558 def end |
#disk_attachments=(list) ⇒ Object
Sets the value of the disk_attachments attribute.
51567 51568 51569 51570 51571 51572 51573 51574 51575 51576 51577 |
# File 'lib/ovirtsdk4/types.rb', line 51567 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 = list end |
#display ⇒ Display
Returns the value of the display attribute.
51584 51585 51586 |
# File 'lib/ovirtsdk4/types.rb', line 51584 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.
51597 51598 51599 51600 51601 51602 |
# File 'lib/ovirtsdk4/types.rb', line 51597 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.
51609 51610 51611 |
# File 'lib/ovirtsdk4/types.rb', line 51609 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.
51622 51623 51624 51625 51626 51627 |
# File 'lib/ovirtsdk4/types.rb', line 51622 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.
51634 51635 51636 |
# File 'lib/ovirtsdk4/types.rb', line 51634 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.
51647 51648 51649 51650 51651 51652 |
# File 'lib/ovirtsdk4/types.rb', line 51647 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.
51659 51660 51661 |
# File 'lib/ovirtsdk4/types.rb', line 51659 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.
51672 51673 51674 51675 51676 51677 |
# File 'lib/ovirtsdk4/types.rb', line 51672 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.
51684 51685 51686 |
# File 'lib/ovirtsdk4/types.rb', line 51684 def floppies @floppies end |
#floppies=(list) ⇒ Object
Sets the value of the floppies attribute.
51693 51694 51695 51696 51697 51698 51699 51700 51701 51702 51703 |
# File 'lib/ovirtsdk4/types.rb', line 51693 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.
51710 51711 51712 |
# File 'lib/ovirtsdk4/types.rb', line 51710 def fqdn @fqdn end |
#fqdn=(value) ⇒ Object
Sets the value of the fqdn attribute.
51719 51720 51721 |
# File 'lib/ovirtsdk4/types.rb', line 51719 def fqdn=(value) @fqdn = value end |
#graphics_consoles ⇒ Array<GraphicsConsole>
Returns the value of the graphics_consoles attribute.
51728 51729 51730 |
# File 'lib/ovirtsdk4/types.rb', line 51728 def graphics_consoles @graphics_consoles end |
#graphics_consoles=(list) ⇒ Object
Sets the value of the graphics_consoles attribute.
51737 51738 51739 51740 51741 51742 51743 51744 51745 51746 51747 |
# File 'lib/ovirtsdk4/types.rb', line 51737 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.
51754 51755 51756 |
# File 'lib/ovirtsdk4/types.rb', line 51754 def 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.
51767 51768 51769 51770 51771 51772 |
# File 'lib/ovirtsdk4/types.rb', line 51767 def (value) if value.is_a?(Hash) value = .new(value) end = value end |
#guest_time_zone ⇒ TimeZone
Returns the value of the guest_time_zone attribute.
51779 51780 51781 |
# File 'lib/ovirtsdk4/types.rb', line 51779 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.
51792 51793 51794 51795 51796 51797 |
# File 'lib/ovirtsdk4/types.rb', line 51792 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.
51804 51805 51806 |
# File 'lib/ovirtsdk4/types.rb', line 51804 def has_illegal_images @has_illegal_images end |
#has_illegal_images=(value) ⇒ Object
Sets the value of the has_illegal_images attribute.
51813 51814 51815 |
# File 'lib/ovirtsdk4/types.rb', line 51813 def has_illegal_images=(value) @has_illegal_images = value end |
#hash ⇒ Object
Generates a hash value for this object.
53442 53443 53444 53445 53446 53447 53448 53449 53450 53451 53452 53453 53454 53455 53456 53457 53458 53459 53460 53461 53462 53463 53464 53465 53466 53467 53468 53469 53470 53471 53472 53473 53474 53475 53476 53477 53478 53479 53480 53481 53482 53483 |
# File 'lib/ovirtsdk4/types.rb', line 53442 def hash super + @affinity_labels.hash + @applications.hash + @cdroms.hash + .hash + @dynamic_cpu.hash + @external_host_provider.hash + @floppies.hash + @fqdn.hash + @graphics_consoles.hash + .hash + @guest_time_zone.hash + @has_illegal_images.hash + @host.hash + @host_devices.hash + @instance_type.hash + @katello_errata.hash + @mediated_devices.hash + @next_run_configuration_exists.hash + @nics.hash + @numa_nodes.hash + @numa_tune_mode.hash + @original_template.hash + @payloads.hash + .hash + @reported_devices.hash + @run_once.hash + @sessions.hash + @snapshots.hash + @start_time.hash + @statistics.hash + @status.hash + @status_detail.hash + @stop_reason.hash + @stop_time.hash + .hash + @template.hash + @use_latest_template_version.hash + @vm_pool.hash + @watchdogs.hash end |
#high_availability ⇒ HighAvailability
Returns the value of the high_availability attribute.
51822 51823 51824 |
# File 'lib/ovirtsdk4/types.rb', line 51822 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.
51835 51836 51837 51838 51839 51840 |
# File 'lib/ovirtsdk4/types.rb', line 51835 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.
51847 51848 51849 |
# File 'lib/ovirtsdk4/types.rb', line 51847 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.
51860 51861 51862 51863 51864 51865 |
# File 'lib/ovirtsdk4/types.rb', line 51860 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.
51872 51873 51874 |
# File 'lib/ovirtsdk4/types.rb', line 51872 def host_devices @host_devices end |
#host_devices=(list) ⇒ Object
Sets the value of the host_devices attribute.
51881 51882 51883 51884 51885 51886 51887 51888 51889 51890 51891 |
# File 'lib/ovirtsdk4/types.rb', line 51881 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.
51898 51899 51900 |
# File 'lib/ovirtsdk4/types.rb', line 51898 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
51907 51908 51909 |
# File 'lib/ovirtsdk4/types.rb', line 51907 def id=(value) @id = value end |
#initialization ⇒ Initialization
Returns the value of the initialization attribute.
51916 51917 51918 |
# File 'lib/ovirtsdk4/types.rb', line 51916 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.
51929 51930 51931 51932 51933 51934 |
# File 'lib/ovirtsdk4/types.rb', line 51929 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.
51941 51942 51943 |
# File 'lib/ovirtsdk4/types.rb', line 51941 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.
51954 51955 51956 51957 51958 51959 |
# File 'lib/ovirtsdk4/types.rb', line 51954 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.
51966 51967 51968 |
# File 'lib/ovirtsdk4/types.rb', line 51966 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.
51979 51980 51981 51982 51983 51984 |
# File 'lib/ovirtsdk4/types.rb', line 51979 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.
51991 51992 51993 |
# File 'lib/ovirtsdk4/types.rb', line 51991 def katello_errata @katello_errata end |
#katello_errata=(list) ⇒ Object
Sets the value of the katello_errata attribute.
52000 52001 52002 52003 52004 52005 52006 52007 52008 52009 52010 |
# File 'lib/ovirtsdk4/types.rb', line 52000 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.
52017 52018 52019 |
# File 'lib/ovirtsdk4/types.rb', line 52017 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.
52030 52031 52032 52033 52034 52035 |
# File 'lib/ovirtsdk4/types.rb', line 52030 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.
52042 52043 52044 |
# File 'lib/ovirtsdk4/types.rb', line 52042 def lease @lease end |
#lease=(value) ⇒ Object
Sets the value of the lease attribute.
The value parameter can be an instance of StorageDomainLease or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
52055 52056 52057 52058 52059 52060 |
# File 'lib/ovirtsdk4/types.rb', line 52055 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.
52067 52068 52069 |
# File 'lib/ovirtsdk4/types.rb', line 52067 def mediated_devices @mediated_devices end |
#mediated_devices=(list) ⇒ Object
Sets the value of the mediated_devices attribute.
52076 52077 52078 52079 52080 52081 52082 52083 52084 52085 52086 |
# File 'lib/ovirtsdk4/types.rb', line 52076 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.
52093 52094 52095 |
# File 'lib/ovirtsdk4/types.rb', line 52093 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory attribute.
52102 52103 52104 |
# File 'lib/ovirtsdk4/types.rb', line 52102 def memory=(value) @memory = value end |
#memory_policy ⇒ MemoryPolicy
Returns the value of the memory_policy attribute.
52111 52112 52113 |
# File 'lib/ovirtsdk4/types.rb', line 52111 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.
52124 52125 52126 52127 52128 52129 |
# File 'lib/ovirtsdk4/types.rb', line 52124 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.
52136 52137 52138 |
# File 'lib/ovirtsdk4/types.rb', line 52136 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.
52149 52150 52151 52152 52153 52154 |
# File 'lib/ovirtsdk4/types.rb', line 52149 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.
52161 52162 52163 |
# File 'lib/ovirtsdk4/types.rb', line 52161 def migration_downtime @migration_downtime end |
#migration_downtime=(value) ⇒ Object
Sets the value of the migration_downtime attribute.
52170 52171 52172 |
# File 'lib/ovirtsdk4/types.rb', line 52170 def migration_downtime=(value) @migration_downtime = value end |
#multi_queues_enabled ⇒ Boolean
Returns the value of the multi_queues_enabled attribute.
52179 52180 52181 |
# File 'lib/ovirtsdk4/types.rb', line 52179 def multi_queues_enabled @multi_queues_enabled end |
#multi_queues_enabled=(value) ⇒ Object
Sets the value of the multi_queues_enabled attribute.
52188 52189 52190 |
# File 'lib/ovirtsdk4/types.rb', line 52188 def multi_queues_enabled=(value) @multi_queues_enabled = value end |
#name ⇒ String
Returns the value of the name attribute.
52197 52198 52199 |
# File 'lib/ovirtsdk4/types.rb', line 52197 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
52206 52207 52208 |
# File 'lib/ovirtsdk4/types.rb', line 52206 def name=(value) @name = value end |
#next_run_configuration_exists ⇒ Boolean
Returns the value of the next_run_configuration_exists attribute.
52215 52216 52217 |
# File 'lib/ovirtsdk4/types.rb', line 52215 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.
52224 52225 52226 |
# File 'lib/ovirtsdk4/types.rb', line 52224 def next_run_configuration_exists=(value) @next_run_configuration_exists = value end |
#nics ⇒ Array<Nic>
Returns the value of the nics attribute.
52233 52234 52235 |
# File 'lib/ovirtsdk4/types.rb', line 52233 def nics @nics end |
#nics=(list) ⇒ Object
Sets the value of the nics attribute.
52242 52243 52244 52245 52246 52247 52248 52249 52250 52251 52252 |
# File 'lib/ovirtsdk4/types.rb', line 52242 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.
52259 52260 52261 |
# File 'lib/ovirtsdk4/types.rb', line 52259 def numa_nodes @numa_nodes end |
#numa_nodes=(list) ⇒ Object
Sets the value of the numa_nodes attribute.
52268 52269 52270 52271 52272 52273 52274 52275 52276 52277 52278 |
# File 'lib/ovirtsdk4/types.rb', line 52268 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.
52285 52286 52287 |
# File 'lib/ovirtsdk4/types.rb', line 52285 def numa_tune_mode @numa_tune_mode end |
#numa_tune_mode=(value) ⇒ Object
Sets the value of the numa_tune_mode attribute.
52294 52295 52296 |
# File 'lib/ovirtsdk4/types.rb', line 52294 def numa_tune_mode=(value) @numa_tune_mode = value end |
#origin ⇒ String
Returns the value of the origin attribute.
52303 52304 52305 |
# File 'lib/ovirtsdk4/types.rb', line 52303 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin attribute.
52312 52313 52314 |
# File 'lib/ovirtsdk4/types.rb', line 52312 def origin=(value) @origin = value end |
#original_template ⇒ Template
Returns the value of the original_template attribute.
52321 52322 52323 |
# File 'lib/ovirtsdk4/types.rb', line 52321 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.
52334 52335 52336 52337 52338 52339 |
# File 'lib/ovirtsdk4/types.rb', line 52334 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.
52346 52347 52348 |
# File 'lib/ovirtsdk4/types.rb', line 52346 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.
52359 52360 52361 52362 52363 52364 |
# File 'lib/ovirtsdk4/types.rb', line 52359 def os=(value) if value.is_a?(Hash) value = .new(value) end @os = value end |
#payloads ⇒ Array<Payload>
Returns the value of the payloads attribute.
52371 52372 52373 |
# File 'lib/ovirtsdk4/types.rb', line 52371 def payloads @payloads end |
#payloads=(list) ⇒ Object
Sets the value of the payloads attribute.
52380 52381 52382 52383 52384 52385 52386 52387 52388 52389 52390 |
# File 'lib/ovirtsdk4/types.rb', line 52380 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.
52397 52398 52399 |
# File 'lib/ovirtsdk4/types.rb', line 52397 def end |
#permissions=(list) ⇒ Object
Sets the value of the permissions attribute.
52406 52407 52408 52409 52410 52411 52412 52413 52414 52415 52416 |
# File 'lib/ovirtsdk4/types.rb', line 52406 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 = list end |
#placement_policy ⇒ VmPlacementPolicy
Returns the value of the placement_policy attribute.
52423 52424 52425 |
# File 'lib/ovirtsdk4/types.rb', line 52423 def placement_policy @placement_policy end |
#placement_policy=(value) ⇒ Object
Sets the value of the placement_policy attribute.
The value parameter can be an instance of OvirtSDK4::VmPlacementPolicy or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
52436 52437 52438 52439 52440 52441 |
# File 'lib/ovirtsdk4/types.rb', line 52436 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.
52448 52449 52450 |
# File 'lib/ovirtsdk4/types.rb', line 52448 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.
52461 52462 52463 52464 52465 52466 |
# File 'lib/ovirtsdk4/types.rb', line 52461 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.
52473 52474 52475 |
# File 'lib/ovirtsdk4/types.rb', line 52473 def reported_devices @reported_devices end |
#reported_devices=(list) ⇒ Object
Sets the value of the reported_devices attribute.
52482 52483 52484 52485 52486 52487 52488 52489 52490 52491 52492 |
# File 'lib/ovirtsdk4/types.rb', line 52482 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.
52499 52500 52501 |
# File 'lib/ovirtsdk4/types.rb', line 52499 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.
52512 52513 52514 52515 52516 52517 |
# File 'lib/ovirtsdk4/types.rb', line 52512 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.
52524 52525 52526 |
# File 'lib/ovirtsdk4/types.rb', line 52524 def run_once @run_once end |
#run_once=(value) ⇒ Object
Sets the value of the run_once attribute.
52533 52534 52535 |
# File 'lib/ovirtsdk4/types.rb', line 52533 def run_once=(value) @run_once = value end |
#serial_number ⇒ SerialNumber
Returns the value of the serial_number attribute.
52542 52543 52544 |
# File 'lib/ovirtsdk4/types.rb', line 52542 def serial_number @serial_number end |
#serial_number=(value) ⇒ Object
Sets the value of the serial_number attribute.
The value parameter can be an instance of SerialNumber or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
52555 52556 52557 52558 52559 52560 |
# File 'lib/ovirtsdk4/types.rb', line 52555 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.
52567 52568 52569 |
# File 'lib/ovirtsdk4/types.rb', line 52567 def sessions @sessions end |
#sessions=(list) ⇒ Object
Sets the value of the sessions attribute.
52576 52577 52578 52579 52580 52581 52582 52583 52584 52585 52586 |
# File 'lib/ovirtsdk4/types.rb', line 52576 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.
52593 52594 52595 |
# File 'lib/ovirtsdk4/types.rb', line 52593 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.
52606 52607 52608 52609 52610 52611 |
# File 'lib/ovirtsdk4/types.rb', line 52606 def small_icon=(value) if value.is_a?(Hash) value = Icon.new(value) end @small_icon = value end |
#snapshots ⇒ Array<Snapshot>
Returns the value of the snapshots attribute.
52618 52619 52620 |
# File 'lib/ovirtsdk4/types.rb', line 52618 def snapshots @snapshots end |
#snapshots=(list) ⇒ Object
Sets the value of the snapshots attribute.
52627 52628 52629 52630 52631 52632 52633 52634 52635 52636 52637 |
# File 'lib/ovirtsdk4/types.rb', line 52627 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.
52644 52645 52646 |
# File 'lib/ovirtsdk4/types.rb', line 52644 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled attribute.
52653 52654 52655 |
# File 'lib/ovirtsdk4/types.rb', line 52653 def soundcard_enabled=(value) @soundcard_enabled = value end |
#sso ⇒ Sso
Returns the value of the sso attribute.
52662 52663 52664 |
# File 'lib/ovirtsdk4/types.rb', line 52662 def sso @sso end |
#sso=(value) ⇒ Object
Sets the value of the sso attribute.
The value parameter can be an instance of Sso or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
52675 52676 52677 52678 52679 52680 |
# File 'lib/ovirtsdk4/types.rb', line 52675 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.
52687 52688 52689 |
# File 'lib/ovirtsdk4/types.rb', line 52687 def start_paused @start_paused end |
#start_paused=(value) ⇒ Object
Sets the value of the start_paused attribute.
52696 52697 52698 |
# File 'lib/ovirtsdk4/types.rb', line 52696 def start_paused=(value) @start_paused = value end |
#start_time ⇒ DateTime
Returns the value of the start_time attribute.
52705 52706 52707 |
# File 'lib/ovirtsdk4/types.rb', line 52705 def start_time @start_time end |
#start_time=(value) ⇒ Object
Sets the value of the start_time attribute.
52714 52715 52716 |
# File 'lib/ovirtsdk4/types.rb', line 52714 def start_time=(value) @start_time = value end |
#stateless ⇒ Boolean
Returns the value of the stateless attribute.
52723 52724 52725 |
# File 'lib/ovirtsdk4/types.rb', line 52723 def stateless @stateless end |
#stateless=(value) ⇒ Object
Sets the value of the stateless attribute.
52732 52733 52734 |
# File 'lib/ovirtsdk4/types.rb', line 52732 def stateless=(value) @stateless = value end |
#statistics ⇒ Array<Statistic>
Returns the value of the statistics attribute.
52741 52742 52743 |
# File 'lib/ovirtsdk4/types.rb', line 52741 def statistics @statistics end |
#statistics=(list) ⇒ Object
Sets the value of the statistics attribute.
52750 52751 52752 52753 52754 52755 52756 52757 52758 52759 52760 |
# File 'lib/ovirtsdk4/types.rb', line 52750 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.
52767 52768 52769 |
# File 'lib/ovirtsdk4/types.rb', line 52767 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status attribute.
52776 52777 52778 |
# File 'lib/ovirtsdk4/types.rb', line 52776 def status=(value) @status = value end |
#status_detail ⇒ String
Returns the value of the status_detail attribute.
52785 52786 52787 |
# File 'lib/ovirtsdk4/types.rb', line 52785 def status_detail @status_detail end |
#status_detail=(value) ⇒ Object
Sets the value of the status_detail attribute.
52794 52795 52796 |
# File 'lib/ovirtsdk4/types.rb', line 52794 def status_detail=(value) @status_detail = value end |
#stop_reason ⇒ String
Returns the value of the stop_reason attribute.
52803 52804 52805 |
# File 'lib/ovirtsdk4/types.rb', line 52803 def stop_reason @stop_reason end |
#stop_reason=(value) ⇒ Object
Sets the value of the stop_reason attribute.
52812 52813 52814 |
# File 'lib/ovirtsdk4/types.rb', line 52812 def stop_reason=(value) @stop_reason = value end |
#stop_time ⇒ DateTime
Returns the value of the stop_time attribute.
52821 52822 52823 |
# File 'lib/ovirtsdk4/types.rb', line 52821 def stop_time @stop_time end |
#stop_time=(value) ⇒ Object
Sets the value of the stop_time attribute.
52830 52831 52832 |
# File 'lib/ovirtsdk4/types.rb', line 52830 def stop_time=(value) @stop_time = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain attribute.
52839 52840 52841 |
# File 'lib/ovirtsdk4/types.rb', line 52839 def storage_domain @storage_domain end |
#storage_domain=(value) ⇒ Object
Sets the value of the storage_domain attribute.
The value parameter can be an instance of StorageDomain or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
52852 52853 52854 52855 52856 52857 |
# File 'lib/ovirtsdk4/types.rb', line 52852 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.
52864 52865 52866 |
# File 'lib/ovirtsdk4/types.rb', line 52864 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.
52873 52874 52875 |
# File 'lib/ovirtsdk4/types.rb', line 52873 def storage_error_resume_behaviour=(value) @storage_error_resume_behaviour = value end |
#tags ⇒ Array<Tag>
Returns the value of the tags attribute.
52882 52883 52884 |
# File 'lib/ovirtsdk4/types.rb', line 52882 def end |
#tags=(list) ⇒ Object
Sets the value of the tags attribute.
52891 52892 52893 52894 52895 52896 52897 52898 52899 52900 52901 |
# File 'lib/ovirtsdk4/types.rb', line 52891 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 = list end |
#template ⇒ Template
Returns the value of the template attribute.
52908 52909 52910 |
# File 'lib/ovirtsdk4/types.rb', line 52908 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.
52921 52922 52923 52924 52925 52926 |
# File 'lib/ovirtsdk4/types.rb', line 52921 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.
52933 52934 52935 |
# File 'lib/ovirtsdk4/types.rb', line 52933 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.
52946 52947 52948 52949 52950 52951 |
# File 'lib/ovirtsdk4/types.rb', line 52946 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.
52958 52959 52960 |
# File 'lib/ovirtsdk4/types.rb', line 52958 def tpm_enabled @tpm_enabled end |
#tpm_enabled=(value) ⇒ Object
Sets the value of the tpm_enabled attribute.
52967 52968 52969 |
# File 'lib/ovirtsdk4/types.rb', line 52967 def tpm_enabled=(value) @tpm_enabled = value end |
#tunnel_migration ⇒ Boolean
Returns the value of the tunnel_migration attribute.
52976 52977 52978 |
# File 'lib/ovirtsdk4/types.rb', line 52976 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration attribute.
52985 52986 52987 |
# File 'lib/ovirtsdk4/types.rb', line 52985 def tunnel_migration=(value) @tunnel_migration = value end |
#type ⇒ VmType
Returns the value of the type attribute.
52994 52995 52996 |
# File 'lib/ovirtsdk4/types.rb', line 52994 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type attribute.
53003 53004 53005 |
# File 'lib/ovirtsdk4/types.rb', line 53003 def type=(value) @type = value end |
#usb ⇒ Usb
Returns the value of the usb attribute.
53012 53013 53014 |
# File 'lib/ovirtsdk4/types.rb', line 53012 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.
53025 53026 53027 53028 53029 53030 |
# File 'lib/ovirtsdk4/types.rb', line 53025 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.
53037 53038 53039 |
# File 'lib/ovirtsdk4/types.rb', line 53037 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.
53046 53047 53048 |
# File 'lib/ovirtsdk4/types.rb', line 53046 def use_latest_template_version=(value) @use_latest_template_version = value end |
#virtio_scsi ⇒ VirtioScsi
Returns the value of the virtio_scsi attribute.
53055 53056 53057 |
# File 'lib/ovirtsdk4/types.rb', line 53055 def virtio_scsi @virtio_scsi end |
#virtio_scsi=(value) ⇒ Object
Sets the value of the virtio_scsi attribute.
The value parameter can be an instance of OvirtSDK4::VirtioScsi or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
53068 53069 53070 53071 53072 53073 |
# File 'lib/ovirtsdk4/types.rb', line 53068 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.
53080 53081 53082 |
# File 'lib/ovirtsdk4/types.rb', line 53080 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.
53089 53090 53091 |
# File 'lib/ovirtsdk4/types.rb', line 53089 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.
53098 53099 53100 |
# File 'lib/ovirtsdk4/types.rb', line 53098 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.
53107 53108 53109 |
# File 'lib/ovirtsdk4/types.rb', line 53107 def virtio_scsi_multi_queues_enabled=(value) @virtio_scsi_multi_queues_enabled = value end |
#vm_pool ⇒ VmPool
Returns the value of the vm_pool attribute.
53116 53117 53118 |
# File 'lib/ovirtsdk4/types.rb', line 53116 def vm_pool @vm_pool end |
#vm_pool=(value) ⇒ Object
Sets the value of the vm_pool attribute.
The value parameter can be an instance of OvirtSDK4::VmPool or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
53129 53130 53131 53132 53133 53134 |
# File 'lib/ovirtsdk4/types.rb', line 53129 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.
53141 53142 53143 |
# File 'lib/ovirtsdk4/types.rb', line 53141 def watchdogs @watchdogs end |
#watchdogs=(list) ⇒ Object
Sets the value of the watchdogs attribute.
53150 53151 53152 53153 53154 53155 53156 53157 53158 53159 53160 |
# File 'lib/ovirtsdk4/types.rb', line 53150 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 |