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. -
#bios ⇒ Bios
Returns the value of the
bios
attribute. -
#bios=(value) ⇒ Object
Sets the value of the
bios
attribute. -
#cdroms ⇒ Array<Cdrom>
Returns the value of the
cdroms
attribute. -
#cdroms=(list) ⇒ Object
Sets the value of the
cdroms
attribute. -
#cluster ⇒ Cluster
Returns the value of the
cluster
attribute. -
#cluster=(value) ⇒ Object
Sets the value of the
cluster
attribute. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#console ⇒ Console
Returns the value of the
console
attribute. -
#console=(value) ⇒ Object
Sets the value of the
console
attribute. -
#cpu ⇒ Cpu
Returns the value of the
cpu
attribute. -
#cpu=(value) ⇒ Object
Sets the value of the
cpu
attribute. -
#cpu_profile ⇒ CpuProfile
Returns the value of the
cpu_profile
attribute. -
#cpu_profile=(value) ⇒ Object
Sets the value of the
cpu_profile
attribute. -
#cpu_shares ⇒ Integer
Returns the value of the
cpu_shares
attribute. -
#cpu_shares=(value) ⇒ Object
Sets the value of the
cpu_shares
attribute. -
#creation_time ⇒ DateTime
Returns the value of the
creation_time
attribute. -
#creation_time=(value) ⇒ Object
Sets the value of the
creation_time
attribute. -
#custom_compatibility_version ⇒ Version
Returns the value of the
custom_compatibility_version
attribute. -
#custom_compatibility_version=(value) ⇒ Object
Sets the value of the
custom_compatibility_version
attribute. -
#custom_cpu_model ⇒ String
Returns the value of the
custom_cpu_model
attribute. -
#custom_cpu_model=(value) ⇒ Object
Sets the value of the
custom_cpu_model
attribute. -
#custom_emulated_machine ⇒ String
Returns the value of the
custom_emulated_machine
attribute. -
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the
custom_emulated_machine
attribute. -
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the
custom_properties
attribute. -
#custom_properties=(list) ⇒ Object
Sets the value of the
custom_properties
attribute. -
#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. -
#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. -
#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. -
#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.
47846 47847 47848 47849 47850 47851 47852 47853 47854 47855 47856 47857 47858 |
# File 'lib/ovirtsdk4/types.rb', line 47846 def initialize(opts = {}) super(opts) self.cdroms = opts[:cdroms] self. = opts[:disk_attachments] self.graphics_consoles = opts[:graphics_consoles] 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.
47863 47864 47865 47866 47867 47868 47869 47870 47871 47872 47873 47874 47875 |
# File 'lib/ovirtsdk4/types.rb', line 47863 def ==(other) super && @cdroms == other.cdroms && @disk_attachments == other. && @graphics_consoles == other.graphics_consoles && @nics == other.nics && @permissions == other. && @status == other.status && @tags == other. && @version == other.version && @vm == other.vm && @watchdogs == other.watchdogs end |
#bios ⇒ Bios
Returns the value of the bios
attribute.
46463 46464 46465 |
# File 'lib/ovirtsdk4/types.rb', line 46463 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.
46476 46477 46478 46479 46480 46481 |
# File 'lib/ovirtsdk4/types.rb', line 46476 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.
46488 46489 46490 |
# File 'lib/ovirtsdk4/types.rb', line 46488 def cdroms @cdroms end |
#cdroms=(list) ⇒ Object
Sets the value of the cdroms
attribute.
46497 46498 46499 46500 46501 46502 46503 46504 46505 46506 46507 |
# File 'lib/ovirtsdk4/types.rb', line 46497 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.
46514 46515 46516 |
# File 'lib/ovirtsdk4/types.rb', line 46514 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.
46527 46528 46529 46530 46531 46532 |
# File 'lib/ovirtsdk4/types.rb', line 46527 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.
46539 46540 46541 |
# File 'lib/ovirtsdk4/types.rb', line 46539 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
46548 46549 46550 |
# File 'lib/ovirtsdk4/types.rb', line 46548 def comment=(value) @comment = value end |
#console ⇒ Console
Returns the value of the console
attribute.
46557 46558 46559 |
# File 'lib/ovirtsdk4/types.rb', line 46557 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.
46570 46571 46572 46573 46574 46575 |
# File 'lib/ovirtsdk4/types.rb', line 46570 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.
46582 46583 46584 |
# File 'lib/ovirtsdk4/types.rb', line 46582 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.
46595 46596 46597 46598 46599 46600 |
# File 'lib/ovirtsdk4/types.rb', line 46595 def cpu=(value) if value.is_a?(Hash) value = Cpu.new(value) end @cpu = value end |
#cpu_profile ⇒ CpuProfile
Returns the value of the cpu_profile
attribute.
46607 46608 46609 |
# File 'lib/ovirtsdk4/types.rb', line 46607 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.
46620 46621 46622 46623 46624 46625 |
# File 'lib/ovirtsdk4/types.rb', line 46620 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.
46632 46633 46634 |
# File 'lib/ovirtsdk4/types.rb', line 46632 def cpu_shares @cpu_shares end |
#cpu_shares=(value) ⇒ Object
Sets the value of the cpu_shares
attribute.
46641 46642 46643 |
# File 'lib/ovirtsdk4/types.rb', line 46641 def cpu_shares=(value) @cpu_shares = value end |
#creation_time ⇒ DateTime
Returns the value of the creation_time
attribute.
46650 46651 46652 |
# File 'lib/ovirtsdk4/types.rb', line 46650 def creation_time @creation_time end |
#creation_time=(value) ⇒ Object
Sets the value of the creation_time
attribute.
46659 46660 46661 |
# File 'lib/ovirtsdk4/types.rb', line 46659 def creation_time=(value) @creation_time = value end |
#custom_compatibility_version ⇒ Version
Returns the value of the custom_compatibility_version
attribute.
46668 46669 46670 |
# File 'lib/ovirtsdk4/types.rb', line 46668 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.
46681 46682 46683 46684 46685 46686 |
# File 'lib/ovirtsdk4/types.rb', line 46681 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.
46693 46694 46695 |
# File 'lib/ovirtsdk4/types.rb', line 46693 def custom_cpu_model @custom_cpu_model end |
#custom_cpu_model=(value) ⇒ Object
Sets the value of the custom_cpu_model
attribute.
46702 46703 46704 |
# File 'lib/ovirtsdk4/types.rb', line 46702 def custom_cpu_model=(value) @custom_cpu_model = value end |
#custom_emulated_machine ⇒ String
Returns the value of the custom_emulated_machine
attribute.
46711 46712 46713 |
# File 'lib/ovirtsdk4/types.rb', line 46711 def custom_emulated_machine @custom_emulated_machine end |
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the custom_emulated_machine
attribute.
46720 46721 46722 |
# File 'lib/ovirtsdk4/types.rb', line 46720 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the custom_properties
attribute.
46729 46730 46731 |
# File 'lib/ovirtsdk4/types.rb', line 46729 def custom_properties @custom_properties end |
#custom_properties=(list) ⇒ Object
Sets the value of the custom_properties
attribute.
46738 46739 46740 46741 46742 46743 46744 46745 46746 46747 46748 |
# File 'lib/ovirtsdk4/types.rb', line 46738 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.
46755 46756 46757 |
# File 'lib/ovirtsdk4/types.rb', line 46755 def delete_protected @delete_protected end |
#delete_protected=(value) ⇒ Object
Sets the value of the delete_protected
attribute.
46764 46765 46766 |
# File 'lib/ovirtsdk4/types.rb', line 46764 def delete_protected=(value) @delete_protected = value end |
#description ⇒ String
Returns the value of the description
attribute.
46773 46774 46775 |
# File 'lib/ovirtsdk4/types.rb', line 46773 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
46782 46783 46784 |
# File 'lib/ovirtsdk4/types.rb', line 46782 def description=(value) @description = value end |
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the disk_attachments
attribute.
46791 46792 46793 |
# File 'lib/ovirtsdk4/types.rb', line 46791 def @disk_attachments end |
#disk_attachments=(list) ⇒ Object
Sets the value of the disk_attachments
attribute.
46800 46801 46802 46803 46804 46805 46806 46807 46808 46809 46810 |
# File 'lib/ovirtsdk4/types.rb', line 46800 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.
46817 46818 46819 |
# File 'lib/ovirtsdk4/types.rb', line 46817 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.
46830 46831 46832 46833 46834 46835 |
# File 'lib/ovirtsdk4/types.rb', line 46830 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.
46842 46843 46844 |
# File 'lib/ovirtsdk4/types.rb', line 46842 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.
46855 46856 46857 46858 46859 46860 |
# File 'lib/ovirtsdk4/types.rb', line 46855 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.
46867 46868 46869 |
# File 'lib/ovirtsdk4/types.rb', line 46867 def graphics_consoles @graphics_consoles end |
#graphics_consoles=(list) ⇒ Object
Sets the value of the graphics_consoles
attribute.
46876 46877 46878 46879 46880 46881 46882 46883 46884 46885 46886 |
# File 'lib/ovirtsdk4/types.rb', line 46876 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.
47880 47881 47882 47883 47884 47885 47886 47887 47888 47889 47890 47891 47892 |
# File 'lib/ovirtsdk4/types.rb', line 47880 def hash super + @cdroms.hash + @disk_attachments.hash + @graphics_consoles.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.
46893 46894 46895 |
# File 'lib/ovirtsdk4/types.rb', line 46893 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.
46906 46907 46908 46909 46910 46911 |
# File 'lib/ovirtsdk4/types.rb', line 46906 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.
46918 46919 46920 |
# File 'lib/ovirtsdk4/types.rb', line 46918 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
46927 46928 46929 |
# File 'lib/ovirtsdk4/types.rb', line 46927 def id=(value) @id = value end |
#initialization ⇒ Initialization
Returns the value of the initialization
attribute.
46936 46937 46938 |
# File 'lib/ovirtsdk4/types.rb', line 46936 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.
46949 46950 46951 46952 46953 46954 |
# File 'lib/ovirtsdk4/types.rb', line 46949 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.
46961 46962 46963 |
# File 'lib/ovirtsdk4/types.rb', line 46961 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.
46974 46975 46976 46977 46978 46979 |
# File 'lib/ovirtsdk4/types.rb', line 46974 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.
46986 46987 46988 |
# File 'lib/ovirtsdk4/types.rb', line 46986 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.
46999 47000 47001 47002 47003 47004 |
# File 'lib/ovirtsdk4/types.rb', line 46999 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.
47011 47012 47013 |
# File 'lib/ovirtsdk4/types.rb', line 47011 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.
47024 47025 47026 47027 47028 47029 |
# File 'lib/ovirtsdk4/types.rb', line 47024 def lease=(value) if value.is_a?(Hash) value = StorageDomainLease.new(value) end @lease = value end |
#memory ⇒ Integer
Returns the value of the memory
attribute.
47036 47037 47038 |
# File 'lib/ovirtsdk4/types.rb', line 47036 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory
attribute.
47045 47046 47047 |
# File 'lib/ovirtsdk4/types.rb', line 47045 def memory=(value) @memory = value end |
#memory_policy ⇒ MemoryPolicy
Returns the value of the memory_policy
attribute.
47054 47055 47056 |
# File 'lib/ovirtsdk4/types.rb', line 47054 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.
47067 47068 47069 47070 47071 47072 |
# File 'lib/ovirtsdk4/types.rb', line 47067 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.
47079 47080 47081 |
# File 'lib/ovirtsdk4/types.rb', line 47079 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.
47092 47093 47094 47095 47096 47097 |
# File 'lib/ovirtsdk4/types.rb', line 47092 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.
47104 47105 47106 |
# File 'lib/ovirtsdk4/types.rb', line 47104 def migration_downtime @migration_downtime end |
#migration_downtime=(value) ⇒ Object
Sets the value of the migration_downtime
attribute.
47113 47114 47115 |
# File 'lib/ovirtsdk4/types.rb', line 47113 def migration_downtime=(value) @migration_downtime = value end |
#multi_queues_enabled ⇒ Boolean
Returns the value of the multi_queues_enabled
attribute.
47122 47123 47124 |
# File 'lib/ovirtsdk4/types.rb', line 47122 def multi_queues_enabled @multi_queues_enabled end |
#multi_queues_enabled=(value) ⇒ Object
Sets the value of the multi_queues_enabled
attribute.
47131 47132 47133 |
# File 'lib/ovirtsdk4/types.rb', line 47131 def multi_queues_enabled=(value) @multi_queues_enabled = value end |
#name ⇒ String
Returns the value of the name
attribute.
47140 47141 47142 |
# File 'lib/ovirtsdk4/types.rb', line 47140 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
47149 47150 47151 |
# File 'lib/ovirtsdk4/types.rb', line 47149 def name=(value) @name = value end |
#nics ⇒ Array<Nic>
Returns the value of the nics
attribute.
47158 47159 47160 |
# File 'lib/ovirtsdk4/types.rb', line 47158 def nics @nics end |
#nics=(list) ⇒ Object
Sets the value of the nics
attribute.
47167 47168 47169 47170 47171 47172 47173 47174 47175 47176 47177 |
# File 'lib/ovirtsdk4/types.rb', line 47167 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.
47184 47185 47186 |
# File 'lib/ovirtsdk4/types.rb', line 47184 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin
attribute.
47193 47194 47195 |
# File 'lib/ovirtsdk4/types.rb', line 47193 def origin=(value) @origin = value end |
#os ⇒ OperatingSystem
Returns the value of the os
attribute.
47202 47203 47204 |
# File 'lib/ovirtsdk4/types.rb', line 47202 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.
47215 47216 47217 47218 47219 47220 |
# File 'lib/ovirtsdk4/types.rb', line 47215 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.
47227 47228 47229 |
# File 'lib/ovirtsdk4/types.rb', line 47227 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
47236 47237 47238 47239 47240 47241 47242 47243 47244 47245 47246 |
# File 'lib/ovirtsdk4/types.rb', line 47236 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.
47253 47254 47255 |
# File 'lib/ovirtsdk4/types.rb', line 47253 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.
47266 47267 47268 47269 47270 47271 |
# File 'lib/ovirtsdk4/types.rb', line 47266 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.
47278 47279 47280 |
# File 'lib/ovirtsdk4/types.rb', line 47278 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.
47291 47292 47293 47294 47295 47296 |
# File 'lib/ovirtsdk4/types.rb', line 47291 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.
47303 47304 47305 |
# File 'lib/ovirtsdk4/types.rb', line 47303 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.
47316 47317 47318 47319 47320 47321 |
# File 'lib/ovirtsdk4/types.rb', line 47316 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.
47328 47329 47330 |
# File 'lib/ovirtsdk4/types.rb', line 47328 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.
47341 47342 47343 47344 47345 47346 |
# File 'lib/ovirtsdk4/types.rb', line 47341 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.
47353 47354 47355 |
# File 'lib/ovirtsdk4/types.rb', line 47353 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.
47366 47367 47368 47369 47370 47371 |
# File 'lib/ovirtsdk4/types.rb', line 47366 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.
47378 47379 47380 |
# File 'lib/ovirtsdk4/types.rb', line 47378 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled
attribute.
47387 47388 47389 |
# File 'lib/ovirtsdk4/types.rb', line 47387 def soundcard_enabled=(value) @soundcard_enabled = value end |
#sso ⇒ Sso
Returns the value of the sso
attribute.
47396 47397 47398 |
# File 'lib/ovirtsdk4/types.rb', line 47396 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.
47409 47410 47411 47412 47413 47414 |
# File 'lib/ovirtsdk4/types.rb', line 47409 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.
47421 47422 47423 |
# File 'lib/ovirtsdk4/types.rb', line 47421 def start_paused @start_paused end |
#start_paused=(value) ⇒ Object
Sets the value of the start_paused
attribute.
47430 47431 47432 |
# File 'lib/ovirtsdk4/types.rb', line 47430 def start_paused=(value) @start_paused = value end |
#stateless ⇒ Boolean
Returns the value of the stateless
attribute.
47439 47440 47441 |
# File 'lib/ovirtsdk4/types.rb', line 47439 def stateless @stateless end |
#stateless=(value) ⇒ Object
Sets the value of the stateless
attribute.
47448 47449 47450 |
# File 'lib/ovirtsdk4/types.rb', line 47448 def stateless=(value) @stateless = value end |
#status ⇒ TemplateStatus
Returns the value of the status
attribute.
47457 47458 47459 |
# File 'lib/ovirtsdk4/types.rb', line 47457 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
47466 47467 47468 |
# File 'lib/ovirtsdk4/types.rb', line 47466 def status=(value) @status = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
47475 47476 47477 |
# File 'lib/ovirtsdk4/types.rb', line 47475 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.
47488 47489 47490 47491 47492 47493 |
# File 'lib/ovirtsdk4/types.rb', line 47488 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.
47500 47501 47502 |
# File 'lib/ovirtsdk4/types.rb', line 47500 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.
47509 47510 47511 |
# File 'lib/ovirtsdk4/types.rb', line 47509 def storage_error_resume_behaviour=(value) @storage_error_resume_behaviour = value end |
#tags ⇒ Array<Tag>
Returns the value of the tags
attribute.
47518 47519 47520 |
# File 'lib/ovirtsdk4/types.rb', line 47518 def @tags end |
#tags=(list) ⇒ Object
Sets the value of the tags
attribute.
47527 47528 47529 47530 47531 47532 47533 47534 47535 47536 47537 |
# File 'lib/ovirtsdk4/types.rb', line 47527 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.
47544 47545 47546 |
# File 'lib/ovirtsdk4/types.rb', line 47544 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.
47557 47558 47559 47560 47561 47562 |
# File 'lib/ovirtsdk4/types.rb', line 47557 def time_zone=(value) if value.is_a?(Hash) value = TimeZone.new(value) end @time_zone = value end |
#tunnel_migration ⇒ Boolean
Returns the value of the tunnel_migration
attribute.
47569 47570 47571 |
# File 'lib/ovirtsdk4/types.rb', line 47569 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration
attribute.
47578 47579 47580 |
# File 'lib/ovirtsdk4/types.rb', line 47578 def tunnel_migration=(value) @tunnel_migration = value end |
#type ⇒ VmType
Returns the value of the type
attribute.
47587 47588 47589 |
# File 'lib/ovirtsdk4/types.rb', line 47587 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
47596 47597 47598 |
# File 'lib/ovirtsdk4/types.rb', line 47596 def type=(value) @type = value end |
#usb ⇒ Usb
Returns the value of the usb
attribute.
47605 47606 47607 |
# File 'lib/ovirtsdk4/types.rb', line 47605 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.
47618 47619 47620 47621 47622 47623 |
# File 'lib/ovirtsdk4/types.rb', line 47618 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.
47630 47631 47632 |
# File 'lib/ovirtsdk4/types.rb', line 47630 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.
47643 47644 47645 47646 47647 47648 |
# File 'lib/ovirtsdk4/types.rb', line 47643 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.
47655 47656 47657 |
# File 'lib/ovirtsdk4/types.rb', line 47655 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.
47668 47669 47670 47671 47672 47673 |
# File 'lib/ovirtsdk4/types.rb', line 47668 def virtio_scsi=(value) if value.is_a?(Hash) value = VirtioScsi.new(value) end @virtio_scsi = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
47680 47681 47682 |
# File 'lib/ovirtsdk4/types.rb', line 47680 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.
47693 47694 47695 47696 47697 47698 |
# File 'lib/ovirtsdk4/types.rb', line 47693 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.
47705 47706 47707 |
# File 'lib/ovirtsdk4/types.rb', line 47705 def watchdogs @watchdogs end |
#watchdogs=(list) ⇒ Object
Sets the value of the watchdogs
attribute.
47714 47715 47716 47717 47718 47719 47720 47721 47722 47723 47724 |
# File 'lib/ovirtsdk4/types.rb', line 47714 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 |