Class: OvirtSDK4::Template
- Inherits:
-
VmBase
- Object
- Struct
- Identified
- VmBase
- OvirtSDK4::Template
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#auto_pinning_policy ⇒ AutoPinningPolicy
Returns the value of the
auto_pinning_policy
attribute. -
#auto_pinning_policy=(value) ⇒ Object
Sets the value of the
auto_pinning_policy
attribute. -
#bios ⇒ Bios
Returns the value of the
bios
attribute. -
#bios=(value) ⇒ Object
Sets the value of the
bios
attribute. -
#cdroms ⇒ Array<Cdrom>
Returns the value of the
cdroms
attribute. -
#cdroms=(list) ⇒ Object
Sets the value of the
cdroms
attribute. -
#cluster ⇒ Cluster
Returns the value of the
cluster
attribute. -
#cluster=(value) ⇒ Object
Sets the value of the
cluster
attribute. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#console ⇒ Console
Returns the value of the
console
attribute. -
#console=(value) ⇒ Object
Sets the value of the
console
attribute. -
#cpu ⇒ Cpu
Returns the value of the
cpu
attribute. -
#cpu=(value) ⇒ Object
Sets the value of the
cpu
attribute. -
#cpu_pinning_policy ⇒ CpuPinningPolicy
Returns the value of the
cpu_pinning_policy
attribute. -
#cpu_pinning_policy=(value) ⇒ Object
Sets the value of the
cpu_pinning_policy
attribute. -
#cpu_profile ⇒ CpuProfile
Returns the value of the
cpu_profile
attribute. -
#cpu_profile=(value) ⇒ Object
Sets the value of the
cpu_profile
attribute. -
#cpu_shares ⇒ Integer
Returns the value of the
cpu_shares
attribute. -
#cpu_shares=(value) ⇒ Object
Sets the value of the
cpu_shares
attribute. -
#creation_time ⇒ DateTime
Returns the value of the
creation_time
attribute. -
#creation_time=(value) ⇒ Object
Sets the value of the
creation_time
attribute. -
#custom_compatibility_version ⇒ Version
Returns the value of the
custom_compatibility_version
attribute. -
#custom_compatibility_version=(value) ⇒ Object
Sets the value of the
custom_compatibility_version
attribute. -
#custom_cpu_model ⇒ String
Returns the value of the
custom_cpu_model
attribute. -
#custom_cpu_model=(value) ⇒ Object
Sets the value of the
custom_cpu_model
attribute. -
#custom_emulated_machine ⇒ String
Returns the value of the
custom_emulated_machine
attribute. -
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the
custom_emulated_machine
attribute. -
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the
custom_properties
attribute. -
#custom_properties=(list) ⇒ Object
Sets the value of the
custom_properties
attribute. -
#delete_protected ⇒ Boolean
Returns the value of the
delete_protected
attribute. -
#delete_protected=(value) ⇒ Object
Sets the value of the
delete_protected
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the
disk_attachments
attribute. -
#disk_attachments=(list) ⇒ Object
Sets the value of the
disk_attachments
attribute. -
#display ⇒ Display
Returns the value of the
display
attribute. -
#display=(value) ⇒ Object
Sets the value of the
display
attribute. -
#domain ⇒ Domain
Returns the value of the
domain
attribute. -
#domain=(value) ⇒ Object
Sets the value of the
domain
attribute. -
#graphics_consoles ⇒ Array<GraphicsConsole>
Returns the value of the
graphics_consoles
attribute. -
#graphics_consoles=(list) ⇒ Object
Sets the value of the
graphics_consoles
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#high_availability ⇒ HighAvailability
Returns the value of the
high_availability
attribute. -
#high_availability=(value) ⇒ Object
Sets the value of the
high_availability
attribute. -
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialization ⇒ Initialization
Returns the value of the
initialization
attribute. -
#initialization=(value) ⇒ Object
Sets the value of the
initialization
attribute. -
#initialize(opts = {}) ⇒ Template
constructor
Creates a new instance of the Template class.
-
#io ⇒ Io
Returns the value of the
io
attribute. -
#io=(value) ⇒ Object
Sets the value of the
io
attribute. -
#large_icon ⇒ Icon
Returns the value of the
large_icon
attribute. -
#large_icon=(value) ⇒ Object
Sets the value of the
large_icon
attribute. -
#lease ⇒ StorageDomainLease
Returns the value of the
lease
attribute. -
#lease=(value) ⇒ Object
Sets the value of the
lease
attribute. -
#mediated_devices ⇒ Array<VmMediatedDevice>
Returns the value of the
mediated_devices
attribute. -
#mediated_devices=(list) ⇒ Object
Sets the value of the
mediated_devices
attribute. -
#memory ⇒ Integer
Returns the value of the
memory
attribute. -
#memory=(value) ⇒ Object
Sets the value of the
memory
attribute. -
#memory_policy ⇒ MemoryPolicy
Returns the value of the
memory_policy
attribute. -
#memory_policy=(value) ⇒ Object
Sets the value of the
memory_policy
attribute. -
#migration ⇒ MigrationOptions
Returns the value of the
migration
attribute. -
#migration=(value) ⇒ Object
Sets the value of the
migration
attribute. -
#migration_downtime ⇒ Integer
Returns the value of the
migration_downtime
attribute. -
#migration_downtime=(value) ⇒ Object
Sets the value of the
migration_downtime
attribute. -
#multi_queues_enabled ⇒ Boolean
Returns the value of the
multi_queues_enabled
attribute. -
#multi_queues_enabled=(value) ⇒ Object
Sets the value of the
multi_queues_enabled
attribute. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#nics ⇒ Array<Nic>
Returns the value of the
nics
attribute. -
#nics=(list) ⇒ Object
Sets the value of the
nics
attribute. -
#origin ⇒ String
Returns the value of the
origin
attribute. -
#origin=(value) ⇒ Object
Sets the value of the
origin
attribute. -
#os ⇒ OperatingSystem
Returns the value of the
os
attribute. -
#os=(value) ⇒ Object
Sets the value of the
os
attribute. -
#permissions ⇒ Array<Permission>
Returns the value of the
permissions
attribute. -
#permissions=(list) ⇒ Object
Sets the value of the
permissions
attribute. -
#placement_policy ⇒ VmPlacementPolicy
Returns the value of the
placement_policy
attribute. -
#placement_policy=(value) ⇒ Object
Sets the value of the
placement_policy
attribute. -
#quota ⇒ Quota
Returns the value of the
quota
attribute. -
#quota=(value) ⇒ Object
Sets the value of the
quota
attribute. -
#rng_device ⇒ RngDevice
Returns the value of the
rng_device
attribute. -
#rng_device=(value) ⇒ Object
Sets the value of the
rng_device
attribute. -
#serial_number ⇒ SerialNumber
Returns the value of the
serial_number
attribute. -
#serial_number=(value) ⇒ Object
Sets the value of the
serial_number
attribute. -
#small_icon ⇒ Icon
Returns the value of the
small_icon
attribute. -
#small_icon=(value) ⇒ Object
Sets the value of the
small_icon
attribute. -
#soundcard_enabled ⇒ Boolean
Returns the value of the
soundcard_enabled
attribute. -
#soundcard_enabled=(value) ⇒ Object
Sets the value of the
soundcard_enabled
attribute. -
#sso ⇒ Sso
Returns the value of the
sso
attribute. -
#sso=(value) ⇒ Object
Sets the value of the
sso
attribute. -
#start_paused ⇒ Boolean
Returns the value of the
start_paused
attribute. -
#start_paused=(value) ⇒ Object
Sets the value of the
start_paused
attribute. -
#stateless ⇒ Boolean
Returns the value of the
stateless
attribute. -
#stateless=(value) ⇒ Object
Sets the value of the
stateless
attribute. -
#status ⇒ TemplateStatus
Returns the value of the
status
attribute. -
#status=(value) ⇒ Object
Sets the value of the
status
attribute. -
#storage_domain ⇒ StorageDomain
Returns the value of the
storage_domain
attribute. -
#storage_domain=(value) ⇒ Object
Sets the value of the
storage_domain
attribute. -
#storage_error_resume_behaviour ⇒ VmStorageErrorResumeBehaviour
Returns the value of the
storage_error_resume_behaviour
attribute. -
#storage_error_resume_behaviour=(value) ⇒ Object
Sets the value of the
storage_error_resume_behaviour
attribute. -
#tags ⇒ Array<Tag>
Returns the value of the
tags
attribute. -
#tags=(list) ⇒ Object
Sets the value of the
tags
attribute. -
#time_zone ⇒ TimeZone
Returns the value of the
time_zone
attribute. -
#time_zone=(value) ⇒ Object
Sets the value of the
time_zone
attribute. -
#tpm_enabled ⇒ Boolean
Returns the value of the
tpm_enabled
attribute. -
#tpm_enabled=(value) ⇒ Object
Sets the value of the
tpm_enabled
attribute. -
#tunnel_migration ⇒ Boolean
Returns the value of the
tunnel_migration
attribute. -
#tunnel_migration=(value) ⇒ Object
Sets the value of the
tunnel_migration
attribute. -
#type ⇒ VmType
Returns the value of the
type
attribute. -
#type=(value) ⇒ Object
Sets the value of the
type
attribute. -
#usb ⇒ Usb
Returns the value of the
usb
attribute. -
#usb=(value) ⇒ Object
Sets the value of the
usb
attribute. -
#version ⇒ TemplateVersion
Returns the value of the
version
attribute. -
#version=(value) ⇒ Object
Sets the value of the
version
attribute. -
#virtio_scsi ⇒ VirtioScsi
Returns the value of the
virtio_scsi
attribute. -
#virtio_scsi=(value) ⇒ Object
Sets the value of the
virtio_scsi
attribute. -
#virtio_scsi_multi_queues ⇒ Integer
Returns the value of the
virtio_scsi_multi_queues
attribute. -
#virtio_scsi_multi_queues=(value) ⇒ Object
Sets the value of the
virtio_scsi_multi_queues
attribute. -
#virtio_scsi_multi_queues_enabled ⇒ Boolean
Returns the value of the
virtio_scsi_multi_queues_enabled
attribute. -
#virtio_scsi_multi_queues_enabled=(value) ⇒ Object
Sets the value of the
virtio_scsi_multi_queues_enabled
attribute. -
#vm ⇒ Vm
Returns the value of the
vm
attribute. -
#vm=(value) ⇒ Object
Sets the value of the
vm
attribute. -
#watchdogs ⇒ Array<Watchdog>
Returns the value of the
watchdogs
attribute. -
#watchdogs=(list) ⇒ Object
Sets the value of the
watchdogs
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Template
Creates a new instance of the OvirtSDK4::Template class.
50789 50790 50791 50792 50793 50794 50795 50796 50797 50798 50799 50800 50801 50802 |
# File 'lib/ovirtsdk4/types.rb', line 50789 def initialize(opts = {}) super(opts) self.cdroms = opts[:cdroms] self. = opts[:disk_attachments] self.graphics_consoles = opts[:graphics_consoles] self.mediated_devices = opts[:mediated_devices] self.nics = opts[:nics] self. = opts[:permissions] self.status = opts[:status] self. = opts[:tags] self.version = opts[:version] self.vm = opts[:vm] self.watchdogs = opts[:watchdogs] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
50807 50808 50809 50810 50811 50812 50813 50814 50815 50816 50817 50818 50819 50820 |
# File 'lib/ovirtsdk4/types.rb', line 50807 def ==(other) super && @cdroms == other.cdroms && @disk_attachments == other. && @graphics_consoles == other.graphics_consoles && @mediated_devices == other.mediated_devices && @nics == other.nics && @permissions == other. && @status == other.status && @tags == other. && @version == other.version && @vm == other.vm && @watchdogs == other.watchdogs end |
#auto_pinning_policy ⇒ AutoPinningPolicy
Returns the value of the auto_pinning_policy
attribute.
49278 49279 49280 |
# File 'lib/ovirtsdk4/types.rb', line 49278 def auto_pinning_policy @auto_pinning_policy end |
#auto_pinning_policy=(value) ⇒ Object
Sets the value of the auto_pinning_policy
attribute.
49287 49288 49289 |
# File 'lib/ovirtsdk4/types.rb', line 49287 def auto_pinning_policy=(value) @auto_pinning_policy = value end |
#bios ⇒ Bios
Returns the value of the bios
attribute.
49296 49297 49298 |
# File 'lib/ovirtsdk4/types.rb', line 49296 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.
49309 49310 49311 49312 49313 49314 |
# File 'lib/ovirtsdk4/types.rb', line 49309 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.
49321 49322 49323 |
# File 'lib/ovirtsdk4/types.rb', line 49321 def cdroms @cdroms end |
#cdroms=(list) ⇒ Object
Sets the value of the cdroms
attribute.
49330 49331 49332 49333 49334 49335 49336 49337 49338 49339 49340 |
# File 'lib/ovirtsdk4/types.rb', line 49330 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.
49347 49348 49349 |
# File 'lib/ovirtsdk4/types.rb', line 49347 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.
49360 49361 49362 49363 49364 49365 |
# File 'lib/ovirtsdk4/types.rb', line 49360 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.
49372 49373 49374 |
# File 'lib/ovirtsdk4/types.rb', line 49372 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
49381 49382 49383 |
# File 'lib/ovirtsdk4/types.rb', line 49381 def comment=(value) @comment = value end |
#console ⇒ Console
Returns the value of the console
attribute.
49390 49391 49392 |
# File 'lib/ovirtsdk4/types.rb', line 49390 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.
49403 49404 49405 49406 49407 49408 |
# File 'lib/ovirtsdk4/types.rb', line 49403 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.
49415 49416 49417 |
# File 'lib/ovirtsdk4/types.rb', line 49415 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.
49428 49429 49430 49431 49432 49433 |
# File 'lib/ovirtsdk4/types.rb', line 49428 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.
49440 49441 49442 |
# File 'lib/ovirtsdk4/types.rb', line 49440 def cpu_pinning_policy @cpu_pinning_policy end |
#cpu_pinning_policy=(value) ⇒ Object
Sets the value of the cpu_pinning_policy
attribute.
49449 49450 49451 |
# File 'lib/ovirtsdk4/types.rb', line 49449 def cpu_pinning_policy=(value) @cpu_pinning_policy = value end |
#cpu_profile ⇒ CpuProfile
Returns the value of the cpu_profile
attribute.
49458 49459 49460 |
# File 'lib/ovirtsdk4/types.rb', line 49458 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.
49471 49472 49473 49474 49475 49476 |
# File 'lib/ovirtsdk4/types.rb', line 49471 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.
49483 49484 49485 |
# File 'lib/ovirtsdk4/types.rb', line 49483 def cpu_shares @cpu_shares end |
#cpu_shares=(value) ⇒ Object
Sets the value of the cpu_shares
attribute.
49492 49493 49494 |
# File 'lib/ovirtsdk4/types.rb', line 49492 def cpu_shares=(value) @cpu_shares = value end |
#creation_time ⇒ DateTime
Returns the value of the creation_time
attribute.
49501 49502 49503 |
# File 'lib/ovirtsdk4/types.rb', line 49501 def creation_time @creation_time end |
#creation_time=(value) ⇒ Object
Sets the value of the creation_time
attribute.
49510 49511 49512 |
# File 'lib/ovirtsdk4/types.rb', line 49510 def creation_time=(value) @creation_time = value end |
#custom_compatibility_version ⇒ Version
Returns the value of the custom_compatibility_version
attribute.
49519 49520 49521 |
# File 'lib/ovirtsdk4/types.rb', line 49519 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.
49532 49533 49534 49535 49536 49537 |
# File 'lib/ovirtsdk4/types.rb', line 49532 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.
49544 49545 49546 |
# File 'lib/ovirtsdk4/types.rb', line 49544 def custom_cpu_model @custom_cpu_model end |
#custom_cpu_model=(value) ⇒ Object
Sets the value of the custom_cpu_model
attribute.
49553 49554 49555 |
# File 'lib/ovirtsdk4/types.rb', line 49553 def custom_cpu_model=(value) @custom_cpu_model = value end |
#custom_emulated_machine ⇒ String
Returns the value of the custom_emulated_machine
attribute.
49562 49563 49564 |
# File 'lib/ovirtsdk4/types.rb', line 49562 def custom_emulated_machine @custom_emulated_machine end |
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the custom_emulated_machine
attribute.
49571 49572 49573 |
# File 'lib/ovirtsdk4/types.rb', line 49571 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the custom_properties
attribute.
49580 49581 49582 |
# File 'lib/ovirtsdk4/types.rb', line 49580 def custom_properties @custom_properties end |
#custom_properties=(list) ⇒ Object
Sets the value of the custom_properties
attribute.
49589 49590 49591 49592 49593 49594 49595 49596 49597 49598 49599 |
# File 'lib/ovirtsdk4/types.rb', line 49589 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.
49606 49607 49608 |
# File 'lib/ovirtsdk4/types.rb', line 49606 def delete_protected @delete_protected end |
#delete_protected=(value) ⇒ Object
Sets the value of the delete_protected
attribute.
49615 49616 49617 |
# File 'lib/ovirtsdk4/types.rb', line 49615 def delete_protected=(value) @delete_protected = value end |
#description ⇒ String
Returns the value of the description
attribute.
49624 49625 49626 |
# File 'lib/ovirtsdk4/types.rb', line 49624 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
49633 49634 49635 |
# File 'lib/ovirtsdk4/types.rb', line 49633 def description=(value) @description = value end |
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the disk_attachments
attribute.
49642 49643 49644 |
# File 'lib/ovirtsdk4/types.rb', line 49642 def @disk_attachments end |
#disk_attachments=(list) ⇒ Object
Sets the value of the disk_attachments
attribute.
49651 49652 49653 49654 49655 49656 49657 49658 49659 49660 49661 |
# File 'lib/ovirtsdk4/types.rb', line 49651 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.
49668 49669 49670 |
# File 'lib/ovirtsdk4/types.rb', line 49668 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.
49681 49682 49683 49684 49685 49686 |
# File 'lib/ovirtsdk4/types.rb', line 49681 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.
49693 49694 49695 |
# File 'lib/ovirtsdk4/types.rb', line 49693 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.
49706 49707 49708 49709 49710 49711 |
# File 'lib/ovirtsdk4/types.rb', line 49706 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.
49718 49719 49720 |
# File 'lib/ovirtsdk4/types.rb', line 49718 def graphics_consoles @graphics_consoles end |
#graphics_consoles=(list) ⇒ Object
Sets the value of the graphics_consoles
attribute.
49727 49728 49729 49730 49731 49732 49733 49734 49735 49736 49737 |
# File 'lib/ovirtsdk4/types.rb', line 49727 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 |
#hash ⇒ Object
Generates a hash value for this object.
50825 50826 50827 50828 50829 50830 50831 50832 50833 50834 50835 50836 50837 50838 |
# File 'lib/ovirtsdk4/types.rb', line 50825 def hash super + @cdroms.hash + @disk_attachments.hash + @graphics_consoles.hash + @mediated_devices.hash + @nics.hash + @permissions.hash + @status.hash + @tags.hash + @version.hash + @vm.hash + @watchdogs.hash end |
#high_availability ⇒ HighAvailability
Returns the value of the high_availability
attribute.
49744 49745 49746 |
# File 'lib/ovirtsdk4/types.rb', line 49744 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.
49757 49758 49759 49760 49761 49762 |
# File 'lib/ovirtsdk4/types.rb', line 49757 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.
49769 49770 49771 |
# File 'lib/ovirtsdk4/types.rb', line 49769 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
49778 49779 49780 |
# File 'lib/ovirtsdk4/types.rb', line 49778 def id=(value) @id = value end |
#initialization ⇒ Initialization
Returns the value of the initialization
attribute.
49787 49788 49789 |
# File 'lib/ovirtsdk4/types.rb', line 49787 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.
49800 49801 49802 49803 49804 49805 |
# File 'lib/ovirtsdk4/types.rb', line 49800 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.
49812 49813 49814 |
# File 'lib/ovirtsdk4/types.rb', line 49812 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.
49825 49826 49827 49828 49829 49830 |
# File 'lib/ovirtsdk4/types.rb', line 49825 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.
49837 49838 49839 |
# File 'lib/ovirtsdk4/types.rb', line 49837 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.
49850 49851 49852 49853 49854 49855 |
# File 'lib/ovirtsdk4/types.rb', line 49850 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.
49862 49863 49864 |
# File 'lib/ovirtsdk4/types.rb', line 49862 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.
49875 49876 49877 49878 49879 49880 |
# File 'lib/ovirtsdk4/types.rb', line 49875 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.
49887 49888 49889 |
# File 'lib/ovirtsdk4/types.rb', line 49887 def mediated_devices @mediated_devices end |
#mediated_devices=(list) ⇒ Object
Sets the value of the mediated_devices
attribute.
49896 49897 49898 49899 49900 49901 49902 49903 49904 49905 49906 |
# File 'lib/ovirtsdk4/types.rb', line 49896 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.
49913 49914 49915 |
# File 'lib/ovirtsdk4/types.rb', line 49913 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory
attribute.
49922 49923 49924 |
# File 'lib/ovirtsdk4/types.rb', line 49922 def memory=(value) @memory = value end |
#memory_policy ⇒ MemoryPolicy
Returns the value of the memory_policy
attribute.
49931 49932 49933 |
# File 'lib/ovirtsdk4/types.rb', line 49931 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.
49944 49945 49946 49947 49948 49949 |
# File 'lib/ovirtsdk4/types.rb', line 49944 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.
49956 49957 49958 |
# File 'lib/ovirtsdk4/types.rb', line 49956 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.
49969 49970 49971 49972 49973 49974 |
# File 'lib/ovirtsdk4/types.rb', line 49969 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.
49981 49982 49983 |
# File 'lib/ovirtsdk4/types.rb', line 49981 def migration_downtime @migration_downtime end |
#migration_downtime=(value) ⇒ Object
Sets the value of the migration_downtime
attribute.
49990 49991 49992 |
# File 'lib/ovirtsdk4/types.rb', line 49990 def migration_downtime=(value) @migration_downtime = value end |
#multi_queues_enabled ⇒ Boolean
Returns the value of the multi_queues_enabled
attribute.
49999 50000 50001 |
# File 'lib/ovirtsdk4/types.rb', line 49999 def multi_queues_enabled @multi_queues_enabled end |
#multi_queues_enabled=(value) ⇒ Object
Sets the value of the multi_queues_enabled
attribute.
50008 50009 50010 |
# File 'lib/ovirtsdk4/types.rb', line 50008 def multi_queues_enabled=(value) @multi_queues_enabled = value end |
#name ⇒ String
Returns the value of the name
attribute.
50017 50018 50019 |
# File 'lib/ovirtsdk4/types.rb', line 50017 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
50026 50027 50028 |
# File 'lib/ovirtsdk4/types.rb', line 50026 def name=(value) @name = value end |
#nics ⇒ Array<Nic>
Returns the value of the nics
attribute.
50035 50036 50037 |
# File 'lib/ovirtsdk4/types.rb', line 50035 def nics @nics end |
#nics=(list) ⇒ Object
Sets the value of the nics
attribute.
50044 50045 50046 50047 50048 50049 50050 50051 50052 50053 50054 |
# File 'lib/ovirtsdk4/types.rb', line 50044 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.
50061 50062 50063 |
# File 'lib/ovirtsdk4/types.rb', line 50061 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin
attribute.
50070 50071 50072 |
# File 'lib/ovirtsdk4/types.rb', line 50070 def origin=(value) @origin = value end |
#os ⇒ OperatingSystem
Returns the value of the os
attribute.
50079 50080 50081 |
# File 'lib/ovirtsdk4/types.rb', line 50079 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.
50092 50093 50094 50095 50096 50097 |
# File 'lib/ovirtsdk4/types.rb', line 50092 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.
50104 50105 50106 |
# File 'lib/ovirtsdk4/types.rb', line 50104 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
50113 50114 50115 50116 50117 50118 50119 50120 50121 50122 50123 |
# File 'lib/ovirtsdk4/types.rb', line 50113 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.
50130 50131 50132 |
# File 'lib/ovirtsdk4/types.rb', line 50130 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.
50143 50144 50145 50146 50147 50148 |
# File 'lib/ovirtsdk4/types.rb', line 50143 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.
50155 50156 50157 |
# File 'lib/ovirtsdk4/types.rb', line 50155 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.
50168 50169 50170 50171 50172 50173 |
# File 'lib/ovirtsdk4/types.rb', line 50168 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.
50180 50181 50182 |
# File 'lib/ovirtsdk4/types.rb', line 50180 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.
50193 50194 50195 50196 50197 50198 |
# File 'lib/ovirtsdk4/types.rb', line 50193 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.
50205 50206 50207 |
# File 'lib/ovirtsdk4/types.rb', line 50205 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.
50218 50219 50220 50221 50222 50223 |
# File 'lib/ovirtsdk4/types.rb', line 50218 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.
50230 50231 50232 |
# File 'lib/ovirtsdk4/types.rb', line 50230 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.
50243 50244 50245 50246 50247 50248 |
# File 'lib/ovirtsdk4/types.rb', line 50243 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.
50255 50256 50257 |
# File 'lib/ovirtsdk4/types.rb', line 50255 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled
attribute.
50264 50265 50266 |
# File 'lib/ovirtsdk4/types.rb', line 50264 def soundcard_enabled=(value) @soundcard_enabled = value end |
#sso ⇒ Sso
Returns the value of the sso
attribute.
50273 50274 50275 |
# File 'lib/ovirtsdk4/types.rb', line 50273 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.
50286 50287 50288 50289 50290 50291 |
# File 'lib/ovirtsdk4/types.rb', line 50286 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.
50298 50299 50300 |
# File 'lib/ovirtsdk4/types.rb', line 50298 def start_paused @start_paused end |
#start_paused=(value) ⇒ Object
Sets the value of the start_paused
attribute.
50307 50308 50309 |
# File 'lib/ovirtsdk4/types.rb', line 50307 def start_paused=(value) @start_paused = value end |
#stateless ⇒ Boolean
Returns the value of the stateless
attribute.
50316 50317 50318 |
# File 'lib/ovirtsdk4/types.rb', line 50316 def stateless @stateless end |
#stateless=(value) ⇒ Object
Sets the value of the stateless
attribute.
50325 50326 50327 |
# File 'lib/ovirtsdk4/types.rb', line 50325 def stateless=(value) @stateless = value end |
#status ⇒ TemplateStatus
Returns the value of the status
attribute.
50334 50335 50336 |
# File 'lib/ovirtsdk4/types.rb', line 50334 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
50343 50344 50345 |
# File 'lib/ovirtsdk4/types.rb', line 50343 def status=(value) @status = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
50352 50353 50354 |
# File 'lib/ovirtsdk4/types.rb', line 50352 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.
50365 50366 50367 50368 50369 50370 |
# File 'lib/ovirtsdk4/types.rb', line 50365 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.
50377 50378 50379 |
# File 'lib/ovirtsdk4/types.rb', line 50377 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.
50386 50387 50388 |
# File 'lib/ovirtsdk4/types.rb', line 50386 def storage_error_resume_behaviour=(value) @storage_error_resume_behaviour = value end |
#tags ⇒ Array<Tag>
Returns the value of the tags
attribute.
50395 50396 50397 |
# File 'lib/ovirtsdk4/types.rb', line 50395 def @tags end |
#tags=(list) ⇒ Object
Sets the value of the tags
attribute.
50404 50405 50406 50407 50408 50409 50410 50411 50412 50413 50414 |
# File 'lib/ovirtsdk4/types.rb', line 50404 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.
50421 50422 50423 |
# File 'lib/ovirtsdk4/types.rb', line 50421 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 OvirtSDK4::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.
50434 50435 50436 50437 50438 50439 |
# File 'lib/ovirtsdk4/types.rb', line 50434 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.
50446 50447 50448 |
# File 'lib/ovirtsdk4/types.rb', line 50446 def tpm_enabled @tpm_enabled end |
#tpm_enabled=(value) ⇒ Object
Sets the value of the tpm_enabled
attribute.
50455 50456 50457 |
# File 'lib/ovirtsdk4/types.rb', line 50455 def tpm_enabled=(value) @tpm_enabled = value end |
#tunnel_migration ⇒ Boolean
Returns the value of the tunnel_migration
attribute.
50464 50465 50466 |
# File 'lib/ovirtsdk4/types.rb', line 50464 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration
attribute.
50473 50474 50475 |
# File 'lib/ovirtsdk4/types.rb', line 50473 def tunnel_migration=(value) @tunnel_migration = value end |
#type ⇒ VmType
Returns the value of the type
attribute.
50482 50483 50484 |
# File 'lib/ovirtsdk4/types.rb', line 50482 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
50491 50492 50493 |
# File 'lib/ovirtsdk4/types.rb', line 50491 def type=(value) @type = value end |
#usb ⇒ Usb
Returns the value of the usb
attribute.
50500 50501 50502 |
# File 'lib/ovirtsdk4/types.rb', line 50500 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.
50513 50514 50515 50516 50517 50518 |
# File 'lib/ovirtsdk4/types.rb', line 50513 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.
50525 50526 50527 |
# File 'lib/ovirtsdk4/types.rb', line 50525 def version @version end |
#version=(value) ⇒ Object
Sets the value of the version
attribute.
The value
parameter can be an instance of OvirtSDK4::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.
50538 50539 50540 50541 50542 50543 |
# File 'lib/ovirtsdk4/types.rb', line 50538 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.
50550 50551 50552 |
# File 'lib/ovirtsdk4/types.rb', line 50550 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.
50563 50564 50565 50566 50567 50568 |
# File 'lib/ovirtsdk4/types.rb', line 50563 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.
50575 50576 50577 |
# File 'lib/ovirtsdk4/types.rb', line 50575 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.
50584 50585 50586 |
# File 'lib/ovirtsdk4/types.rb', line 50584 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.
50593 50594 50595 |
# File 'lib/ovirtsdk4/types.rb', line 50593 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.
50602 50603 50604 |
# File 'lib/ovirtsdk4/types.rb', line 50602 def virtio_scsi_multi_queues_enabled=(value) @virtio_scsi_multi_queues_enabled = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
50611 50612 50613 |
# File 'lib/ovirtsdk4/types.rb', line 50611 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.
50624 50625 50626 50627 50628 50629 |
# File 'lib/ovirtsdk4/types.rb', line 50624 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.
50636 50637 50638 |
# File 'lib/ovirtsdk4/types.rb', line 50636 def watchdogs @watchdogs end |
#watchdogs=(list) ⇒ Object
Sets the value of the watchdogs
attribute.
50645 50646 50647 50648 50649 50650 50651 50652 50653 50654 50655 |
# File 'lib/ovirtsdk4/types.rb', line 50645 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 |