Class: OvirtSDK4::InstanceType
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#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. -
#graphics_consoles ⇒ Array<GraphicsConsole>
Returns the value of the
graphics_consolesattribute. -
#graphics_consoles=(list) ⇒ Object
Sets the value of the
graphics_consolesattribute. -
#high_availability ⇒ HighAvailability
Returns the value of the
high_availabilityattribute. -
#high_availability=(value) ⇒ Object
Sets the value of the
high_availabilityattribute. -
#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 = {}) ⇒ InstanceType
constructor
Creates a new instance of the InstanceType class.
-
#io ⇒ Io
Returns the value of the
ioattribute. -
#io=(value) ⇒ Object
Sets the value of the
ioattribute. -
#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. -
#nics ⇒ Array<Nic>
Returns the value of the
nicsattribute. -
#nics=(list) ⇒ Object
Sets the value of the
nicsattribute. -
#origin ⇒ String
Returns the value of the
originattribute. -
#origin=(value) ⇒ Object
Sets the value of the
originattribute. -
#os ⇒ OperatingSystem
Returns the value of the
osattribute. -
#os=(value) ⇒ Object
Sets the value of the
osattribute. -
#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. -
#rng_device ⇒ RngDevice
Returns the value of the
rng_deviceattribute. -
#rng_device=(value) ⇒ Object
Sets the value of the
rng_deviceattribute. -
#serial_number ⇒ SerialNumber
Returns the value of the
serial_numberattribute. -
#serial_number=(value) ⇒ Object
Sets the value of the
serial_numberattribute. -
#small_icon ⇒ Icon
Returns the value of the
small_iconattribute. -
#small_icon=(value) ⇒ Object
Sets the value of the
small_iconattribute. -
#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. -
#stateless ⇒ Boolean
Returns the value of the
statelessattribute. -
#stateless=(value) ⇒ Object
Sets the value of the
statelessattribute. -
#status ⇒ TemplateStatus
Returns the value of the
statusattribute. -
#status=(value) ⇒ Object
Sets the value of the
statusattribute. -
#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. -
#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. -
#version ⇒ TemplateVersion
Returns the value of the
versionattribute. -
#version=(value) ⇒ Object
Sets the value of the
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 ⇒ Vm
Returns the value of the
vmattribute. -
#vm=(value) ⇒ Object
Sets the value of the
vmattribute. -
#watchdogs ⇒ Array<Watchdog>
Returns the value of the
watchdogsattribute. -
#watchdogs=(list) ⇒ Object
Sets the value of the
watchdogsattribute.
Methods inherited from Template
Methods inherited from VmBase
Methods inherited from Identified
Methods inherited from Struct
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ InstanceType
Creates a new instance of the OvirtSDK4::InstanceType class.
56667 56668 56669 |
# File 'lib/ovirtsdk4/types.rb', line 56667 def initialize(opts = {}) super(opts) end |
Instance Method Details
#auto_pinning_policy ⇒ AutoPinningPolicy
Returns the value of the auto_pinning_policy attribute.
55156 55157 55158 |
# File 'lib/ovirtsdk4/types.rb', line 55156 def auto_pinning_policy @auto_pinning_policy end |
#auto_pinning_policy=(value) ⇒ Object
Sets the value of the auto_pinning_policy attribute.
55165 55166 55167 |
# File 'lib/ovirtsdk4/types.rb', line 55165 def auto_pinning_policy=(value) @auto_pinning_policy = value end |
#bios ⇒ Bios
Returns the value of the bios attribute.
55174 55175 55176 |
# File 'lib/ovirtsdk4/types.rb', line 55174 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.
55187 55188 55189 55190 55191 55192 |
# File 'lib/ovirtsdk4/types.rb', line 55187 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.
55199 55200 55201 |
# File 'lib/ovirtsdk4/types.rb', line 55199 def cdroms @cdroms end |
#cdroms=(list) ⇒ Object
Sets the value of the cdroms attribute.
55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 |
# File 'lib/ovirtsdk4/types.rb', line 55208 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.
55225 55226 55227 |
# File 'lib/ovirtsdk4/types.rb', line 55225 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.
55238 55239 55240 55241 55242 55243 |
# File 'lib/ovirtsdk4/types.rb', line 55238 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.
55250 55251 55252 |
# File 'lib/ovirtsdk4/types.rb', line 55250 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
55259 55260 55261 |
# File 'lib/ovirtsdk4/types.rb', line 55259 def comment=(value) @comment = value end |
#console ⇒ Console
Returns the value of the console attribute.
55268 55269 55270 |
# File 'lib/ovirtsdk4/types.rb', line 55268 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.
55281 55282 55283 55284 55285 55286 |
# File 'lib/ovirtsdk4/types.rb', line 55281 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.
55293 55294 55295 |
# File 'lib/ovirtsdk4/types.rb', line 55293 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.
55306 55307 55308 55309 55310 55311 |
# File 'lib/ovirtsdk4/types.rb', line 55306 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.
55318 55319 55320 |
# File 'lib/ovirtsdk4/types.rb', line 55318 def cpu_pinning_policy @cpu_pinning_policy end |
#cpu_pinning_policy=(value) ⇒ Object
Sets the value of the cpu_pinning_policy attribute.
55327 55328 55329 |
# File 'lib/ovirtsdk4/types.rb', line 55327 def cpu_pinning_policy=(value) @cpu_pinning_policy = value end |
#cpu_profile ⇒ CpuProfile
Returns the value of the cpu_profile attribute.
55336 55337 55338 |
# File 'lib/ovirtsdk4/types.rb', line 55336 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.
55349 55350 55351 55352 55353 55354 |
# File 'lib/ovirtsdk4/types.rb', line 55349 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.
55361 55362 55363 |
# File 'lib/ovirtsdk4/types.rb', line 55361 def cpu_shares @cpu_shares end |
#cpu_shares=(value) ⇒ Object
Sets the value of the cpu_shares attribute.
55370 55371 55372 |
# File 'lib/ovirtsdk4/types.rb', line 55370 def cpu_shares=(value) @cpu_shares = value end |
#creation_time ⇒ DateTime
Returns the value of the creation_time attribute.
55379 55380 55381 |
# File 'lib/ovirtsdk4/types.rb', line 55379 def creation_time @creation_time end |
#creation_time=(value) ⇒ Object
Sets the value of the creation_time attribute.
55388 55389 55390 |
# File 'lib/ovirtsdk4/types.rb', line 55388 def creation_time=(value) @creation_time = value end |
#custom_compatibility_version ⇒ Version
Returns the value of the custom_compatibility_version attribute.
55397 55398 55399 |
# File 'lib/ovirtsdk4/types.rb', line 55397 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.
55410 55411 55412 55413 55414 55415 |
# File 'lib/ovirtsdk4/types.rb', line 55410 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.
55422 55423 55424 |
# File 'lib/ovirtsdk4/types.rb', line 55422 def custom_cpu_model @custom_cpu_model end |
#custom_cpu_model=(value) ⇒ Object
Sets the value of the custom_cpu_model attribute.
55431 55432 55433 |
# File 'lib/ovirtsdk4/types.rb', line 55431 def custom_cpu_model=(value) @custom_cpu_model = value end |
#custom_emulated_machine ⇒ String
Returns the value of the custom_emulated_machine attribute.
55440 55441 55442 |
# File 'lib/ovirtsdk4/types.rb', line 55440 def custom_emulated_machine @custom_emulated_machine end |
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the custom_emulated_machine attribute.
55449 55450 55451 |
# File 'lib/ovirtsdk4/types.rb', line 55449 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the custom_properties attribute.
55458 55459 55460 |
# File 'lib/ovirtsdk4/types.rb', line 55458 def custom_properties @custom_properties end |
#custom_properties=(list) ⇒ Object
Sets the value of the custom_properties attribute.
55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 |
# File 'lib/ovirtsdk4/types.rb', line 55467 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.
55484 55485 55486 |
# File 'lib/ovirtsdk4/types.rb', line 55484 def delete_protected @delete_protected end |
#delete_protected=(value) ⇒ Object
Sets the value of the delete_protected attribute.
55493 55494 55495 |
# File 'lib/ovirtsdk4/types.rb', line 55493 def delete_protected=(value) @delete_protected = value end |
#description ⇒ String
Returns the value of the description attribute.
55502 55503 55504 |
# File 'lib/ovirtsdk4/types.rb', line 55502 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
55511 55512 55513 |
# File 'lib/ovirtsdk4/types.rb', line 55511 def description=(value) @description = value end |
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the disk_attachments attribute.
55520 55521 55522 |
# File 'lib/ovirtsdk4/types.rb', line 55520 def @disk_attachments end |
#disk_attachments=(list) ⇒ Object
Sets the value of the disk_attachments attribute.
55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 |
# File 'lib/ovirtsdk4/types.rb', line 55529 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.
55546 55547 55548 |
# File 'lib/ovirtsdk4/types.rb', line 55546 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.
55559 55560 55561 55562 55563 55564 |
# File 'lib/ovirtsdk4/types.rb', line 55559 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.
55571 55572 55573 |
# File 'lib/ovirtsdk4/types.rb', line 55571 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.
55584 55585 55586 55587 55588 55589 |
# File 'lib/ovirtsdk4/types.rb', line 55584 def domain=(value) if value.is_a?(Hash) value = Domain.new(value) end @domain = value end |
#graphics_consoles ⇒ Array<GraphicsConsole>
Returns the value of the graphics_consoles attribute.
55596 55597 55598 |
# File 'lib/ovirtsdk4/types.rb', line 55596 def graphics_consoles @graphics_consoles end |
#graphics_consoles=(list) ⇒ Object
Sets the value of the graphics_consoles attribute.
55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 |
# File 'lib/ovirtsdk4/types.rb', line 55605 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 |
#high_availability ⇒ HighAvailability
Returns the value of the high_availability attribute.
55622 55623 55624 |
# File 'lib/ovirtsdk4/types.rb', line 55622 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.
55635 55636 55637 55638 55639 55640 |
# File 'lib/ovirtsdk4/types.rb', line 55635 def high_availability=(value) if value.is_a?(Hash) value = HighAvailability.new(value) end @high_availability = value end |
#id ⇒ String
Returns the value of the id attribute.
55647 55648 55649 |
# File 'lib/ovirtsdk4/types.rb', line 55647 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
55656 55657 55658 |
# File 'lib/ovirtsdk4/types.rb', line 55656 def id=(value) @id = value end |
#initialization ⇒ Initialization
Returns the value of the initialization attribute.
55665 55666 55667 |
# File 'lib/ovirtsdk4/types.rb', line 55665 def initialization @initialization end |
#initialization=(value) ⇒ Object
Sets the value of the initialization attribute.
The value parameter can be an instance of OvirtSDK4::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.
55678 55679 55680 55681 55682 55683 |
# File 'lib/ovirtsdk4/types.rb', line 55678 def initialization=(value) if value.is_a?(Hash) value = Initialization.new(value) end @initialization = value end |
#io ⇒ Io
Returns the value of the io attribute.
55690 55691 55692 |
# File 'lib/ovirtsdk4/types.rb', line 55690 def io @io end |
#io=(value) ⇒ Object
Sets the value of the io attribute.
The value parameter can be an instance of OvirtSDK4::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.
55703 55704 55705 55706 55707 55708 |
# File 'lib/ovirtsdk4/types.rb', line 55703 def io=(value) if value.is_a?(Hash) value = Io.new(value) end @io = value end |
#large_icon ⇒ Icon
Returns the value of the large_icon attribute.
55715 55716 55717 |
# File 'lib/ovirtsdk4/types.rb', line 55715 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 OvirtSDK4::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.
55728 55729 55730 55731 55732 55733 |
# File 'lib/ovirtsdk4/types.rb', line 55728 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.
55740 55741 55742 |
# File 'lib/ovirtsdk4/types.rb', line 55740 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.
55753 55754 55755 55756 55757 55758 |
# File 'lib/ovirtsdk4/types.rb', line 55753 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.
55765 55766 55767 |
# File 'lib/ovirtsdk4/types.rb', line 55765 def mediated_devices @mediated_devices end |
#mediated_devices=(list) ⇒ Object
Sets the value of the mediated_devices attribute.
55774 55775 55776 55777 55778 55779 55780 55781 55782 55783 55784 |
# File 'lib/ovirtsdk4/types.rb', line 55774 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.
55791 55792 55793 |
# File 'lib/ovirtsdk4/types.rb', line 55791 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory attribute.
55800 55801 55802 |
# File 'lib/ovirtsdk4/types.rb', line 55800 def memory=(value) @memory = value end |
#memory_policy ⇒ MemoryPolicy
Returns the value of the memory_policy attribute.
55809 55810 55811 |
# File 'lib/ovirtsdk4/types.rb', line 55809 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.
55822 55823 55824 55825 55826 55827 |
# File 'lib/ovirtsdk4/types.rb', line 55822 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.
55834 55835 55836 |
# File 'lib/ovirtsdk4/types.rb', line 55834 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.
55847 55848 55849 55850 55851 55852 |
# File 'lib/ovirtsdk4/types.rb', line 55847 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.
55859 55860 55861 |
# File 'lib/ovirtsdk4/types.rb', line 55859 def migration_downtime @migration_downtime end |
#migration_downtime=(value) ⇒ Object
Sets the value of the migration_downtime attribute.
55868 55869 55870 |
# File 'lib/ovirtsdk4/types.rb', line 55868 def migration_downtime=(value) @migration_downtime = value end |
#multi_queues_enabled ⇒ Boolean
Returns the value of the multi_queues_enabled attribute.
55877 55878 55879 |
# File 'lib/ovirtsdk4/types.rb', line 55877 def multi_queues_enabled @multi_queues_enabled end |
#multi_queues_enabled=(value) ⇒ Object
Sets the value of the multi_queues_enabled attribute.
55886 55887 55888 |
# File 'lib/ovirtsdk4/types.rb', line 55886 def multi_queues_enabled=(value) @multi_queues_enabled = value end |
#name ⇒ String
Returns the value of the name attribute.
55895 55896 55897 |
# File 'lib/ovirtsdk4/types.rb', line 55895 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
55904 55905 55906 |
# File 'lib/ovirtsdk4/types.rb', line 55904 def name=(value) @name = value end |
#nics ⇒ Array<Nic>
Returns the value of the nics attribute.
55913 55914 55915 |
# File 'lib/ovirtsdk4/types.rb', line 55913 def nics @nics end |
#nics=(list) ⇒ Object
Sets the value of the nics attribute.
55922 55923 55924 55925 55926 55927 55928 55929 55930 55931 55932 |
# File 'lib/ovirtsdk4/types.rb', line 55922 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 |
#origin ⇒ String
Returns the value of the origin attribute.
55939 55940 55941 |
# File 'lib/ovirtsdk4/types.rb', line 55939 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin attribute.
55948 55949 55950 |
# File 'lib/ovirtsdk4/types.rb', line 55948 def origin=(value) @origin = value end |
#os ⇒ OperatingSystem
Returns the value of the os attribute.
55957 55958 55959 |
# File 'lib/ovirtsdk4/types.rb', line 55957 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.
55970 55971 55972 55973 55974 55975 |
# File 'lib/ovirtsdk4/types.rb', line 55970 def os=(value) if value.is_a?(Hash) value = OperatingSystem.new(value) end @os = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions attribute.
55982 55983 55984 |
# File 'lib/ovirtsdk4/types.rb', line 55982 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions attribute.
55991 55992 55993 55994 55995 55996 55997 55998 55999 56000 56001 |
# File 'lib/ovirtsdk4/types.rb', line 55991 def (list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Permission.new(value) end end end @permissions = list end |
#placement_policy ⇒ VmPlacementPolicy
Returns the value of the placement_policy attribute.
56008 56009 56010 |
# File 'lib/ovirtsdk4/types.rb', line 56008 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.
56021 56022 56023 56024 56025 56026 |
# File 'lib/ovirtsdk4/types.rb', line 56021 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.
56033 56034 56035 |
# File 'lib/ovirtsdk4/types.rb', line 56033 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.
56046 56047 56048 56049 56050 56051 |
# File 'lib/ovirtsdk4/types.rb', line 56046 def quota=(value) if value.is_a?(Hash) value = Quota.new(value) end @quota = value end |
#rng_device ⇒ RngDevice
Returns the value of the rng_device attribute.
56058 56059 56060 |
# File 'lib/ovirtsdk4/types.rb', line 56058 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.
56071 56072 56073 56074 56075 56076 |
# File 'lib/ovirtsdk4/types.rb', line 56071 def rng_device=(value) if value.is_a?(Hash) value = RngDevice.new(value) end @rng_device = value end |
#serial_number ⇒ SerialNumber
Returns the value of the serial_number attribute.
56083 56084 56085 |
# File 'lib/ovirtsdk4/types.rb', line 56083 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.
56096 56097 56098 56099 56100 56101 |
# File 'lib/ovirtsdk4/types.rb', line 56096 def serial_number=(value) if value.is_a?(Hash) value = SerialNumber.new(value) end @serial_number = value end |
#small_icon ⇒ Icon
Returns the value of the small_icon attribute.
56108 56109 56110 |
# File 'lib/ovirtsdk4/types.rb', line 56108 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 OvirtSDK4::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.
56121 56122 56123 56124 56125 56126 |
# File 'lib/ovirtsdk4/types.rb', line 56121 def small_icon=(value) if value.is_a?(Hash) value = Icon.new(value) end @small_icon = value end |
#soundcard_enabled ⇒ Boolean
Returns the value of the soundcard_enabled attribute.
56133 56134 56135 |
# File 'lib/ovirtsdk4/types.rb', line 56133 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled attribute.
56142 56143 56144 |
# File 'lib/ovirtsdk4/types.rb', line 56142 def soundcard_enabled=(value) @soundcard_enabled = value end |
#sso ⇒ Sso
Returns the value of the sso attribute.
56151 56152 56153 |
# File 'lib/ovirtsdk4/types.rb', line 56151 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.
56164 56165 56166 56167 56168 56169 |
# File 'lib/ovirtsdk4/types.rb', line 56164 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.
56176 56177 56178 |
# File 'lib/ovirtsdk4/types.rb', line 56176 def start_paused @start_paused end |
#start_paused=(value) ⇒ Object
Sets the value of the start_paused attribute.
56185 56186 56187 |
# File 'lib/ovirtsdk4/types.rb', line 56185 def start_paused=(value) @start_paused = value end |
#stateless ⇒ Boolean
Returns the value of the stateless attribute.
56194 56195 56196 |
# File 'lib/ovirtsdk4/types.rb', line 56194 def stateless @stateless end |
#stateless=(value) ⇒ Object
Sets the value of the stateless attribute.
56203 56204 56205 |
# File 'lib/ovirtsdk4/types.rb', line 56203 def stateless=(value) @stateless = value end |
#status ⇒ TemplateStatus
Returns the value of the status attribute.
56212 56213 56214 |
# File 'lib/ovirtsdk4/types.rb', line 56212 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status attribute.
56221 56222 56223 |
# File 'lib/ovirtsdk4/types.rb', line 56221 def status=(value) @status = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain attribute.
56230 56231 56232 |
# File 'lib/ovirtsdk4/types.rb', line 56230 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.
56243 56244 56245 56246 56247 56248 |
# File 'lib/ovirtsdk4/types.rb', line 56243 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.
56255 56256 56257 |
# File 'lib/ovirtsdk4/types.rb', line 56255 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.
56264 56265 56266 |
# File 'lib/ovirtsdk4/types.rb', line 56264 def storage_error_resume_behaviour=(value) @storage_error_resume_behaviour = value end |
#tags ⇒ Array<Tag>
Returns the value of the tags attribute.
56273 56274 56275 |
# File 'lib/ovirtsdk4/types.rb', line 56273 def @tags end |
#tags=(list) ⇒ Object
Sets the value of the tags attribute.
56282 56283 56284 56285 56286 56287 56288 56289 56290 56291 56292 |
# File 'lib/ovirtsdk4/types.rb', line 56282 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 |
#time_zone ⇒ TimeZone
Returns the value of the time_zone attribute.
56299 56300 56301 |
# File 'lib/ovirtsdk4/types.rb', line 56299 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.
56312 56313 56314 56315 56316 56317 |
# File 'lib/ovirtsdk4/types.rb', line 56312 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.
56324 56325 56326 |
# File 'lib/ovirtsdk4/types.rb', line 56324 def tpm_enabled @tpm_enabled end |
#tpm_enabled=(value) ⇒ Object
Sets the value of the tpm_enabled attribute.
56333 56334 56335 |
# File 'lib/ovirtsdk4/types.rb', line 56333 def tpm_enabled=(value) @tpm_enabled = value end |
#tunnel_migration ⇒ Boolean
Returns the value of the tunnel_migration attribute.
56342 56343 56344 |
# File 'lib/ovirtsdk4/types.rb', line 56342 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration attribute.
56351 56352 56353 |
# File 'lib/ovirtsdk4/types.rb', line 56351 def tunnel_migration=(value) @tunnel_migration = value end |
#type ⇒ VmType
Returns the value of the type attribute.
56360 56361 56362 |
# File 'lib/ovirtsdk4/types.rb', line 56360 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type attribute.
56369 56370 56371 |
# File 'lib/ovirtsdk4/types.rb', line 56369 def type=(value) @type = value end |
#usb ⇒ Usb
Returns the value of the usb attribute.
56378 56379 56380 |
# File 'lib/ovirtsdk4/types.rb', line 56378 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.
56391 56392 56393 56394 56395 56396 |
# File 'lib/ovirtsdk4/types.rb', line 56391 def usb=(value) if value.is_a?(Hash) value = Usb.new(value) end @usb = value end |
#version ⇒ TemplateVersion
Returns the value of the version attribute.
56403 56404 56405 |
# File 'lib/ovirtsdk4/types.rb', line 56403 def version @version end |
#version=(value) ⇒ Object
Sets the value of the version attribute.
The value parameter can be an instance of TemplateVersion 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.
56416 56417 56418 56419 56420 56421 |
# File 'lib/ovirtsdk4/types.rb', line 56416 def version=(value) if value.is_a?(Hash) value = TemplateVersion.new(value) end @version = value end |
#virtio_scsi ⇒ VirtioScsi
Returns the value of the virtio_scsi attribute.
56428 56429 56430 |
# File 'lib/ovirtsdk4/types.rb', line 56428 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.
56441 56442 56443 56444 56445 56446 |
# File 'lib/ovirtsdk4/types.rb', line 56441 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.
56453 56454 56455 |
# File 'lib/ovirtsdk4/types.rb', line 56453 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.
56462 56463 56464 |
# File 'lib/ovirtsdk4/types.rb', line 56462 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.
56471 56472 56473 |
# File 'lib/ovirtsdk4/types.rb', line 56471 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.
56480 56481 56482 |
# File 'lib/ovirtsdk4/types.rb', line 56480 def virtio_scsi_multi_queues_enabled=(value) @virtio_scsi_multi_queues_enabled = value end |
#vm ⇒ Vm
Returns the value of the vm attribute.
56489 56490 56491 |
# File 'lib/ovirtsdk4/types.rb', line 56489 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.
56502 56503 56504 56505 56506 56507 |
# File 'lib/ovirtsdk4/types.rb', line 56502 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |
#watchdogs ⇒ Array<Watchdog>
Returns the value of the watchdogs attribute.
56514 56515 56516 |
# File 'lib/ovirtsdk4/types.rb', line 56514 def watchdogs @watchdogs end |
#watchdogs=(list) ⇒ Object
Sets the value of the watchdogs attribute.
56523 56524 56525 56526 56527 56528 56529 56530 56531 56532 56533 |
# File 'lib/ovirtsdk4/types.rb', line 56523 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 |