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. -
#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.
47073 47074 47075 47076 47077 47078 47079 47080 47081 47082 47083 47084 47085 |
# File 'lib/ovirtsdk4/types.rb', line 47073 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.
47090 47091 47092 47093 47094 47095 47096 47097 47098 47099 47100 47101 47102 |
# File 'lib/ovirtsdk4/types.rb', line 47090 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.
45710 45711 45712 |
# File 'lib/ovirtsdk4/types.rb', line 45710 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.
45723 45724 45725 45726 45727 45728 |
# File 'lib/ovirtsdk4/types.rb', line 45723 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.
45735 45736 45737 |
# File 'lib/ovirtsdk4/types.rb', line 45735 def cdroms @cdroms end |
#cdroms=(list) ⇒ Object
Sets the value of the cdroms
attribute.
45744 45745 45746 45747 45748 45749 45750 45751 45752 45753 45754 |
# File 'lib/ovirtsdk4/types.rb', line 45744 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.
45761 45762 45763 |
# File 'lib/ovirtsdk4/types.rb', line 45761 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.
45774 45775 45776 45777 45778 45779 |
# File 'lib/ovirtsdk4/types.rb', line 45774 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.
45786 45787 45788 |
# File 'lib/ovirtsdk4/types.rb', line 45786 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
45795 45796 45797 |
# File 'lib/ovirtsdk4/types.rb', line 45795 def comment=(value) @comment = value end |
#console ⇒ Console
Returns the value of the console
attribute.
45804 45805 45806 |
# File 'lib/ovirtsdk4/types.rb', line 45804 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.
45817 45818 45819 45820 45821 45822 |
# File 'lib/ovirtsdk4/types.rb', line 45817 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.
45829 45830 45831 |
# File 'lib/ovirtsdk4/types.rb', line 45829 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.
45842 45843 45844 45845 45846 45847 |
# File 'lib/ovirtsdk4/types.rb', line 45842 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.
45854 45855 45856 |
# File 'lib/ovirtsdk4/types.rb', line 45854 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.
45867 45868 45869 45870 45871 45872 |
# File 'lib/ovirtsdk4/types.rb', line 45867 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.
45879 45880 45881 |
# File 'lib/ovirtsdk4/types.rb', line 45879 def cpu_shares @cpu_shares end |
#cpu_shares=(value) ⇒ Object
Sets the value of the cpu_shares
attribute.
45888 45889 45890 |
# File 'lib/ovirtsdk4/types.rb', line 45888 def cpu_shares=(value) @cpu_shares = value end |
#creation_time ⇒ DateTime
Returns the value of the creation_time
attribute.
45897 45898 45899 |
# File 'lib/ovirtsdk4/types.rb', line 45897 def creation_time @creation_time end |
#creation_time=(value) ⇒ Object
Sets the value of the creation_time
attribute.
45906 45907 45908 |
# File 'lib/ovirtsdk4/types.rb', line 45906 def creation_time=(value) @creation_time = value end |
#custom_compatibility_version ⇒ Version
Returns the value of the custom_compatibility_version
attribute.
45915 45916 45917 |
# File 'lib/ovirtsdk4/types.rb', line 45915 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.
45928 45929 45930 45931 45932 45933 |
# File 'lib/ovirtsdk4/types.rb', line 45928 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.
45940 45941 45942 |
# File 'lib/ovirtsdk4/types.rb', line 45940 def custom_cpu_model @custom_cpu_model end |
#custom_cpu_model=(value) ⇒ Object
Sets the value of the custom_cpu_model
attribute.
45949 45950 45951 |
# File 'lib/ovirtsdk4/types.rb', line 45949 def custom_cpu_model=(value) @custom_cpu_model = value end |
#custom_emulated_machine ⇒ String
Returns the value of the custom_emulated_machine
attribute.
45958 45959 45960 |
# File 'lib/ovirtsdk4/types.rb', line 45958 def custom_emulated_machine @custom_emulated_machine end |
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the custom_emulated_machine
attribute.
45967 45968 45969 |
# File 'lib/ovirtsdk4/types.rb', line 45967 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the custom_properties
attribute.
45976 45977 45978 |
# File 'lib/ovirtsdk4/types.rb', line 45976 def custom_properties @custom_properties end |
#custom_properties=(list) ⇒ Object
Sets the value of the custom_properties
attribute.
45985 45986 45987 45988 45989 45990 45991 45992 45993 45994 45995 |
# File 'lib/ovirtsdk4/types.rb', line 45985 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.
46002 46003 46004 |
# File 'lib/ovirtsdk4/types.rb', line 46002 def delete_protected @delete_protected end |
#delete_protected=(value) ⇒ Object
Sets the value of the delete_protected
attribute.
46011 46012 46013 |
# File 'lib/ovirtsdk4/types.rb', line 46011 def delete_protected=(value) @delete_protected = value end |
#description ⇒ String
Returns the value of the description
attribute.
46020 46021 46022 |
# File 'lib/ovirtsdk4/types.rb', line 46020 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
46029 46030 46031 |
# File 'lib/ovirtsdk4/types.rb', line 46029 def description=(value) @description = value end |
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the disk_attachments
attribute.
46038 46039 46040 |
# File 'lib/ovirtsdk4/types.rb', line 46038 def @disk_attachments end |
#disk_attachments=(list) ⇒ Object
Sets the value of the disk_attachments
attribute.
46047 46048 46049 46050 46051 46052 46053 46054 46055 46056 46057 |
# File 'lib/ovirtsdk4/types.rb', line 46047 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.
46064 46065 46066 |
# File 'lib/ovirtsdk4/types.rb', line 46064 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.
46077 46078 46079 46080 46081 46082 |
# File 'lib/ovirtsdk4/types.rb', line 46077 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.
46089 46090 46091 |
# File 'lib/ovirtsdk4/types.rb', line 46089 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.
46102 46103 46104 46105 46106 46107 |
# File 'lib/ovirtsdk4/types.rb', line 46102 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.
46114 46115 46116 |
# File 'lib/ovirtsdk4/types.rb', line 46114 def graphics_consoles @graphics_consoles end |
#graphics_consoles=(list) ⇒ Object
Sets the value of the graphics_consoles
attribute.
46123 46124 46125 46126 46127 46128 46129 46130 46131 46132 46133 |
# File 'lib/ovirtsdk4/types.rb', line 46123 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.
47107 47108 47109 47110 47111 47112 47113 47114 47115 47116 47117 47118 47119 |
# File 'lib/ovirtsdk4/types.rb', line 47107 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.
46140 46141 46142 |
# File 'lib/ovirtsdk4/types.rb', line 46140 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.
46153 46154 46155 46156 46157 46158 |
# File 'lib/ovirtsdk4/types.rb', line 46153 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.
46165 46166 46167 |
# File 'lib/ovirtsdk4/types.rb', line 46165 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
46174 46175 46176 |
# File 'lib/ovirtsdk4/types.rb', line 46174 def id=(value) @id = value end |
#initialization ⇒ Initialization
Returns the value of the initialization
attribute.
46183 46184 46185 |
# File 'lib/ovirtsdk4/types.rb', line 46183 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.
46196 46197 46198 46199 46200 46201 |
# File 'lib/ovirtsdk4/types.rb', line 46196 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.
46208 46209 46210 |
# File 'lib/ovirtsdk4/types.rb', line 46208 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.
46221 46222 46223 46224 46225 46226 |
# File 'lib/ovirtsdk4/types.rb', line 46221 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.
46233 46234 46235 |
# File 'lib/ovirtsdk4/types.rb', line 46233 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.
46246 46247 46248 46249 46250 46251 |
# File 'lib/ovirtsdk4/types.rb', line 46246 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.
46258 46259 46260 |
# File 'lib/ovirtsdk4/types.rb', line 46258 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.
46271 46272 46273 46274 46275 46276 |
# File 'lib/ovirtsdk4/types.rb', line 46271 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.
46283 46284 46285 |
# File 'lib/ovirtsdk4/types.rb', line 46283 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory
attribute.
46292 46293 46294 |
# File 'lib/ovirtsdk4/types.rb', line 46292 def memory=(value) @memory = value end |
#memory_policy ⇒ MemoryPolicy
Returns the value of the memory_policy
attribute.
46301 46302 46303 |
# File 'lib/ovirtsdk4/types.rb', line 46301 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.
46314 46315 46316 46317 46318 46319 |
# File 'lib/ovirtsdk4/types.rb', line 46314 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.
46326 46327 46328 |
# File 'lib/ovirtsdk4/types.rb', line 46326 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.
46339 46340 46341 46342 46343 46344 |
# File 'lib/ovirtsdk4/types.rb', line 46339 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.
46351 46352 46353 |
# File 'lib/ovirtsdk4/types.rb', line 46351 def migration_downtime @migration_downtime end |
#migration_downtime=(value) ⇒ Object
Sets the value of the migration_downtime
attribute.
46360 46361 46362 |
# File 'lib/ovirtsdk4/types.rb', line 46360 def migration_downtime=(value) @migration_downtime = value end |
#name ⇒ String
Returns the value of the name
attribute.
46369 46370 46371 |
# File 'lib/ovirtsdk4/types.rb', line 46369 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
46378 46379 46380 |
# File 'lib/ovirtsdk4/types.rb', line 46378 def name=(value) @name = value end |
#nics ⇒ Array<Nic>
Returns the value of the nics
attribute.
46387 46388 46389 |
# File 'lib/ovirtsdk4/types.rb', line 46387 def nics @nics end |
#nics=(list) ⇒ Object
Sets the value of the nics
attribute.
46396 46397 46398 46399 46400 46401 46402 46403 46404 46405 46406 |
# File 'lib/ovirtsdk4/types.rb', line 46396 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.
46413 46414 46415 |
# File 'lib/ovirtsdk4/types.rb', line 46413 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin
attribute.
46422 46423 46424 |
# File 'lib/ovirtsdk4/types.rb', line 46422 def origin=(value) @origin = value end |
#os ⇒ OperatingSystem
Returns the value of the os
attribute.
46431 46432 46433 |
# File 'lib/ovirtsdk4/types.rb', line 46431 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.
46444 46445 46446 46447 46448 46449 |
# File 'lib/ovirtsdk4/types.rb', line 46444 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.
46456 46457 46458 |
# File 'lib/ovirtsdk4/types.rb', line 46456 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
46465 46466 46467 46468 46469 46470 46471 46472 46473 46474 46475 |
# File 'lib/ovirtsdk4/types.rb', line 46465 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.
46482 46483 46484 |
# File 'lib/ovirtsdk4/types.rb', line 46482 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.
46495 46496 46497 46498 46499 46500 |
# File 'lib/ovirtsdk4/types.rb', line 46495 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.
46507 46508 46509 |
# File 'lib/ovirtsdk4/types.rb', line 46507 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.
46520 46521 46522 46523 46524 46525 |
# File 'lib/ovirtsdk4/types.rb', line 46520 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.
46532 46533 46534 |
# File 'lib/ovirtsdk4/types.rb', line 46532 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.
46545 46546 46547 46548 46549 46550 |
# File 'lib/ovirtsdk4/types.rb', line 46545 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.
46557 46558 46559 |
# File 'lib/ovirtsdk4/types.rb', line 46557 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.
46570 46571 46572 46573 46574 46575 |
# File 'lib/ovirtsdk4/types.rb', line 46570 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.
46582 46583 46584 |
# File 'lib/ovirtsdk4/types.rb', line 46582 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.
46595 46596 46597 46598 46599 46600 |
# File 'lib/ovirtsdk4/types.rb', line 46595 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.
46607 46608 46609 |
# File 'lib/ovirtsdk4/types.rb', line 46607 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled
attribute.
46616 46617 46618 |
# File 'lib/ovirtsdk4/types.rb', line 46616 def soundcard_enabled=(value) @soundcard_enabled = value end |
#sso ⇒ Sso
Returns the value of the sso
attribute.
46625 46626 46627 |
# File 'lib/ovirtsdk4/types.rb', line 46625 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.
46638 46639 46640 46641 46642 46643 |
# File 'lib/ovirtsdk4/types.rb', line 46638 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.
46650 46651 46652 |
# File 'lib/ovirtsdk4/types.rb', line 46650 def start_paused @start_paused end |
#start_paused=(value) ⇒ Object
Sets the value of the start_paused
attribute.
46659 46660 46661 |
# File 'lib/ovirtsdk4/types.rb', line 46659 def start_paused=(value) @start_paused = value end |
#stateless ⇒ Boolean
Returns the value of the stateless
attribute.
46668 46669 46670 |
# File 'lib/ovirtsdk4/types.rb', line 46668 def stateless @stateless end |
#stateless=(value) ⇒ Object
Sets the value of the stateless
attribute.
46677 46678 46679 |
# File 'lib/ovirtsdk4/types.rb', line 46677 def stateless=(value) @stateless = value end |
#status ⇒ TemplateStatus
Returns the value of the status
attribute.
46686 46687 46688 |
# File 'lib/ovirtsdk4/types.rb', line 46686 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
46695 46696 46697 |
# File 'lib/ovirtsdk4/types.rb', line 46695 def status=(value) @status = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
46704 46705 46706 |
# File 'lib/ovirtsdk4/types.rb', line 46704 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.
46717 46718 46719 46720 46721 46722 |
# File 'lib/ovirtsdk4/types.rb', line 46717 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.
46729 46730 46731 |
# File 'lib/ovirtsdk4/types.rb', line 46729 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.
46738 46739 46740 |
# File 'lib/ovirtsdk4/types.rb', line 46738 def storage_error_resume_behaviour=(value) @storage_error_resume_behaviour = value end |
#tags ⇒ Array<Tag>
Returns the value of the tags
attribute.
46747 46748 46749 |
# File 'lib/ovirtsdk4/types.rb', line 46747 def @tags end |
#tags=(list) ⇒ Object
Sets the value of the tags
attribute.
46756 46757 46758 46759 46760 46761 46762 46763 46764 46765 46766 |
# File 'lib/ovirtsdk4/types.rb', line 46756 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.
46773 46774 46775 |
# File 'lib/ovirtsdk4/types.rb', line 46773 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.
46786 46787 46788 46789 46790 46791 |
# File 'lib/ovirtsdk4/types.rb', line 46786 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.
46798 46799 46800 |
# File 'lib/ovirtsdk4/types.rb', line 46798 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration
attribute.
46807 46808 46809 |
# File 'lib/ovirtsdk4/types.rb', line 46807 def tunnel_migration=(value) @tunnel_migration = value end |
#type ⇒ VmType
Returns the value of the type
attribute.
46816 46817 46818 |
# File 'lib/ovirtsdk4/types.rb', line 46816 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
46825 46826 46827 |
# File 'lib/ovirtsdk4/types.rb', line 46825 def type=(value) @type = value end |
#usb ⇒ Usb
Returns the value of the usb
attribute.
46834 46835 46836 |
# File 'lib/ovirtsdk4/types.rb', line 46834 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.
46847 46848 46849 46850 46851 46852 |
# File 'lib/ovirtsdk4/types.rb', line 46847 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.
46859 46860 46861 |
# File 'lib/ovirtsdk4/types.rb', line 46859 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.
46872 46873 46874 46875 46876 46877 |
# File 'lib/ovirtsdk4/types.rb', line 46872 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.
46884 46885 46886 |
# File 'lib/ovirtsdk4/types.rb', line 46884 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.
46897 46898 46899 46900 46901 46902 |
# File 'lib/ovirtsdk4/types.rb', line 46897 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.
46909 46910 46911 |
# File 'lib/ovirtsdk4/types.rb', line 46909 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.
46922 46923 46924 46925 46926 46927 |
# File 'lib/ovirtsdk4/types.rb', line 46922 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.
46934 46935 46936 |
# File 'lib/ovirtsdk4/types.rb', line 46934 def watchdogs @watchdogs end |
#watchdogs=(list) ⇒ Object
Sets the value of the watchdogs
attribute.
46943 46944 46945 46946 46947 46948 46949 46950 46951 46952 46953 |
# File 'lib/ovirtsdk4/types.rb', line 46943 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 |