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.
47238 47239 47240 47241 47242 47243 47244 47245 47246 47247 47248 47249 47250 |
# File 'lib/ovirtsdk4/types.rb', line 47238 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.
47255 47256 47257 47258 47259 47260 47261 47262 47263 47264 47265 47266 47267 |
# File 'lib/ovirtsdk4/types.rb', line 47255 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.
45855 45856 45857 |
# File 'lib/ovirtsdk4/types.rb', line 45855 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.
45868 45869 45870 45871 45872 45873 |
# File 'lib/ovirtsdk4/types.rb', line 45868 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.
45880 45881 45882 |
# File 'lib/ovirtsdk4/types.rb', line 45880 def cdroms @cdroms end |
#cdroms=(list) ⇒ Object
Sets the value of the cdroms
attribute.
45889 45890 45891 45892 45893 45894 45895 45896 45897 45898 45899 |
# File 'lib/ovirtsdk4/types.rb', line 45889 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.
45906 45907 45908 |
# File 'lib/ovirtsdk4/types.rb', line 45906 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.
45919 45920 45921 45922 45923 45924 |
# File 'lib/ovirtsdk4/types.rb', line 45919 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.
45931 45932 45933 |
# File 'lib/ovirtsdk4/types.rb', line 45931 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
45940 45941 45942 |
# File 'lib/ovirtsdk4/types.rb', line 45940 def comment=(value) @comment = value end |
#console ⇒ Console
Returns the value of the console
attribute.
45949 45950 45951 |
# File 'lib/ovirtsdk4/types.rb', line 45949 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.
45962 45963 45964 45965 45966 45967 |
# File 'lib/ovirtsdk4/types.rb', line 45962 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.
45974 45975 45976 |
# File 'lib/ovirtsdk4/types.rb', line 45974 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.
45987 45988 45989 45990 45991 45992 |
# File 'lib/ovirtsdk4/types.rb', line 45987 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.
45999 46000 46001 |
# File 'lib/ovirtsdk4/types.rb', line 45999 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.
46012 46013 46014 46015 46016 46017 |
# File 'lib/ovirtsdk4/types.rb', line 46012 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.
46024 46025 46026 |
# File 'lib/ovirtsdk4/types.rb', line 46024 def cpu_shares @cpu_shares end |
#cpu_shares=(value) ⇒ Object
Sets the value of the cpu_shares
attribute.
46033 46034 46035 |
# File 'lib/ovirtsdk4/types.rb', line 46033 def cpu_shares=(value) @cpu_shares = value end |
#creation_time ⇒ DateTime
Returns the value of the creation_time
attribute.
46042 46043 46044 |
# File 'lib/ovirtsdk4/types.rb', line 46042 def creation_time @creation_time end |
#creation_time=(value) ⇒ Object
Sets the value of the creation_time
attribute.
46051 46052 46053 |
# File 'lib/ovirtsdk4/types.rb', line 46051 def creation_time=(value) @creation_time = value end |
#custom_compatibility_version ⇒ Version
Returns the value of the custom_compatibility_version
attribute.
46060 46061 46062 |
# File 'lib/ovirtsdk4/types.rb', line 46060 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.
46073 46074 46075 46076 46077 46078 |
# File 'lib/ovirtsdk4/types.rb', line 46073 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.
46085 46086 46087 |
# File 'lib/ovirtsdk4/types.rb', line 46085 def custom_cpu_model @custom_cpu_model end |
#custom_cpu_model=(value) ⇒ Object
Sets the value of the custom_cpu_model
attribute.
46094 46095 46096 |
# File 'lib/ovirtsdk4/types.rb', line 46094 def custom_cpu_model=(value) @custom_cpu_model = value end |
#custom_emulated_machine ⇒ String
Returns the value of the custom_emulated_machine
attribute.
46103 46104 46105 |
# File 'lib/ovirtsdk4/types.rb', line 46103 def custom_emulated_machine @custom_emulated_machine end |
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the custom_emulated_machine
attribute.
46112 46113 46114 |
# File 'lib/ovirtsdk4/types.rb', line 46112 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the custom_properties
attribute.
46121 46122 46123 |
# File 'lib/ovirtsdk4/types.rb', line 46121 def custom_properties @custom_properties end |
#custom_properties=(list) ⇒ Object
Sets the value of the custom_properties
attribute.
46130 46131 46132 46133 46134 46135 46136 46137 46138 46139 46140 |
# File 'lib/ovirtsdk4/types.rb', line 46130 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.
46147 46148 46149 |
# File 'lib/ovirtsdk4/types.rb', line 46147 def delete_protected @delete_protected end |
#delete_protected=(value) ⇒ Object
Sets the value of the delete_protected
attribute.
46156 46157 46158 |
# File 'lib/ovirtsdk4/types.rb', line 46156 def delete_protected=(value) @delete_protected = value end |
#description ⇒ String
Returns the value of the description
attribute.
46165 46166 46167 |
# File 'lib/ovirtsdk4/types.rb', line 46165 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
46174 46175 46176 |
# File 'lib/ovirtsdk4/types.rb', line 46174 def description=(value) @description = value end |
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the disk_attachments
attribute.
46183 46184 46185 |
# File 'lib/ovirtsdk4/types.rb', line 46183 def @disk_attachments end |
#disk_attachments=(list) ⇒ Object
Sets the value of the disk_attachments
attribute.
46192 46193 46194 46195 46196 46197 46198 46199 46200 46201 46202 |
# File 'lib/ovirtsdk4/types.rb', line 46192 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.
46209 46210 46211 |
# File 'lib/ovirtsdk4/types.rb', line 46209 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.
46222 46223 46224 46225 46226 46227 |
# File 'lib/ovirtsdk4/types.rb', line 46222 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.
46234 46235 46236 |
# File 'lib/ovirtsdk4/types.rb', line 46234 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.
46247 46248 46249 46250 46251 46252 |
# File 'lib/ovirtsdk4/types.rb', line 46247 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.
46259 46260 46261 |
# File 'lib/ovirtsdk4/types.rb', line 46259 def graphics_consoles @graphics_consoles end |
#graphics_consoles=(list) ⇒ Object
Sets the value of the graphics_consoles
attribute.
46268 46269 46270 46271 46272 46273 46274 46275 46276 46277 46278 |
# File 'lib/ovirtsdk4/types.rb', line 46268 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.
47272 47273 47274 47275 47276 47277 47278 47279 47280 47281 47282 47283 47284 |
# File 'lib/ovirtsdk4/types.rb', line 47272 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.
46285 46286 46287 |
# File 'lib/ovirtsdk4/types.rb', line 46285 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.
46298 46299 46300 46301 46302 46303 |
# File 'lib/ovirtsdk4/types.rb', line 46298 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.
46310 46311 46312 |
# File 'lib/ovirtsdk4/types.rb', line 46310 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
46319 46320 46321 |
# File 'lib/ovirtsdk4/types.rb', line 46319 def id=(value) @id = value end |
#initialization ⇒ Initialization
Returns the value of the initialization
attribute.
46328 46329 46330 |
# File 'lib/ovirtsdk4/types.rb', line 46328 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.
46341 46342 46343 46344 46345 46346 |
# File 'lib/ovirtsdk4/types.rb', line 46341 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.
46353 46354 46355 |
# File 'lib/ovirtsdk4/types.rb', line 46353 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.
46366 46367 46368 46369 46370 46371 |
# File 'lib/ovirtsdk4/types.rb', line 46366 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.
46378 46379 46380 |
# File 'lib/ovirtsdk4/types.rb', line 46378 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.
46391 46392 46393 46394 46395 46396 |
# File 'lib/ovirtsdk4/types.rb', line 46391 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.
46403 46404 46405 |
# File 'lib/ovirtsdk4/types.rb', line 46403 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.
46416 46417 46418 46419 46420 46421 |
# File 'lib/ovirtsdk4/types.rb', line 46416 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.
46428 46429 46430 |
# File 'lib/ovirtsdk4/types.rb', line 46428 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory
attribute.
46437 46438 46439 |
# File 'lib/ovirtsdk4/types.rb', line 46437 def memory=(value) @memory = value end |
#memory_policy ⇒ MemoryPolicy
Returns the value of the memory_policy
attribute.
46446 46447 46448 |
# File 'lib/ovirtsdk4/types.rb', line 46446 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.
46459 46460 46461 46462 46463 46464 |
# File 'lib/ovirtsdk4/types.rb', line 46459 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.
46471 46472 46473 |
# File 'lib/ovirtsdk4/types.rb', line 46471 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.
46484 46485 46486 46487 46488 46489 |
# File 'lib/ovirtsdk4/types.rb', line 46484 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.
46496 46497 46498 |
# File 'lib/ovirtsdk4/types.rb', line 46496 def migration_downtime @migration_downtime end |
#migration_downtime=(value) ⇒ Object
Sets the value of the migration_downtime
attribute.
46505 46506 46507 |
# File 'lib/ovirtsdk4/types.rb', line 46505 def migration_downtime=(value) @migration_downtime = value end |
#multi_queues_enabled ⇒ Boolean
Returns the value of the multi_queues_enabled
attribute.
46514 46515 46516 |
# File 'lib/ovirtsdk4/types.rb', line 46514 def multi_queues_enabled @multi_queues_enabled end |
#multi_queues_enabled=(value) ⇒ Object
Sets the value of the multi_queues_enabled
attribute.
46523 46524 46525 |
# File 'lib/ovirtsdk4/types.rb', line 46523 def multi_queues_enabled=(value) @multi_queues_enabled = value end |
#name ⇒ String
Returns the value of the name
attribute.
46532 46533 46534 |
# File 'lib/ovirtsdk4/types.rb', line 46532 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
46541 46542 46543 |
# File 'lib/ovirtsdk4/types.rb', line 46541 def name=(value) @name = value end |
#nics ⇒ Array<Nic>
Returns the value of the nics
attribute.
46550 46551 46552 |
# File 'lib/ovirtsdk4/types.rb', line 46550 def nics @nics end |
#nics=(list) ⇒ Object
Sets the value of the nics
attribute.
46559 46560 46561 46562 46563 46564 46565 46566 46567 46568 46569 |
# File 'lib/ovirtsdk4/types.rb', line 46559 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.
46576 46577 46578 |
# File 'lib/ovirtsdk4/types.rb', line 46576 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin
attribute.
46585 46586 46587 |
# File 'lib/ovirtsdk4/types.rb', line 46585 def origin=(value) @origin = value end |
#os ⇒ OperatingSystem
Returns the value of the os
attribute.
46594 46595 46596 |
# File 'lib/ovirtsdk4/types.rb', line 46594 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.
46607 46608 46609 46610 46611 46612 |
# File 'lib/ovirtsdk4/types.rb', line 46607 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.
46619 46620 46621 |
# File 'lib/ovirtsdk4/types.rb', line 46619 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
46628 46629 46630 46631 46632 46633 46634 46635 46636 46637 46638 |
# File 'lib/ovirtsdk4/types.rb', line 46628 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.
46645 46646 46647 |
# File 'lib/ovirtsdk4/types.rb', line 46645 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.
46658 46659 46660 46661 46662 46663 |
# File 'lib/ovirtsdk4/types.rb', line 46658 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.
46670 46671 46672 |
# File 'lib/ovirtsdk4/types.rb', line 46670 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.
46683 46684 46685 46686 46687 46688 |
# File 'lib/ovirtsdk4/types.rb', line 46683 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.
46695 46696 46697 |
# File 'lib/ovirtsdk4/types.rb', line 46695 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.
46708 46709 46710 46711 46712 46713 |
# File 'lib/ovirtsdk4/types.rb', line 46708 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.
46720 46721 46722 |
# File 'lib/ovirtsdk4/types.rb', line 46720 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.
46733 46734 46735 46736 46737 46738 |
# File 'lib/ovirtsdk4/types.rb', line 46733 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.
46745 46746 46747 |
# File 'lib/ovirtsdk4/types.rb', line 46745 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.
46758 46759 46760 46761 46762 46763 |
# File 'lib/ovirtsdk4/types.rb', line 46758 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.
46770 46771 46772 |
# File 'lib/ovirtsdk4/types.rb', line 46770 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled
attribute.
46779 46780 46781 |
# File 'lib/ovirtsdk4/types.rb', line 46779 def soundcard_enabled=(value) @soundcard_enabled = value end |
#sso ⇒ Sso
Returns the value of the sso
attribute.
46788 46789 46790 |
# File 'lib/ovirtsdk4/types.rb', line 46788 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.
46801 46802 46803 46804 46805 46806 |
# File 'lib/ovirtsdk4/types.rb', line 46801 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.
46813 46814 46815 |
# File 'lib/ovirtsdk4/types.rb', line 46813 def start_paused @start_paused end |
#start_paused=(value) ⇒ Object
Sets the value of the start_paused
attribute.
46822 46823 46824 |
# File 'lib/ovirtsdk4/types.rb', line 46822 def start_paused=(value) @start_paused = value end |
#stateless ⇒ Boolean
Returns the value of the stateless
attribute.
46831 46832 46833 |
# File 'lib/ovirtsdk4/types.rb', line 46831 def stateless @stateless end |
#stateless=(value) ⇒ Object
Sets the value of the stateless
attribute.
46840 46841 46842 |
# File 'lib/ovirtsdk4/types.rb', line 46840 def stateless=(value) @stateless = value end |
#status ⇒ TemplateStatus
Returns the value of the status
attribute.
46849 46850 46851 |
# File 'lib/ovirtsdk4/types.rb', line 46849 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
46858 46859 46860 |
# File 'lib/ovirtsdk4/types.rb', line 46858 def status=(value) @status = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
46867 46868 46869 |
# File 'lib/ovirtsdk4/types.rb', line 46867 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.
46880 46881 46882 46883 46884 46885 |
# File 'lib/ovirtsdk4/types.rb', line 46880 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.
46892 46893 46894 |
# File 'lib/ovirtsdk4/types.rb', line 46892 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.
46901 46902 46903 |
# File 'lib/ovirtsdk4/types.rb', line 46901 def storage_error_resume_behaviour=(value) @storage_error_resume_behaviour = value end |
#tags ⇒ Array<Tag>
Returns the value of the tags
attribute.
46910 46911 46912 |
# File 'lib/ovirtsdk4/types.rb', line 46910 def @tags end |
#tags=(list) ⇒ Object
Sets the value of the tags
attribute.
46919 46920 46921 46922 46923 46924 46925 46926 46927 46928 46929 |
# File 'lib/ovirtsdk4/types.rb', line 46919 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.
46936 46937 46938 |
# File 'lib/ovirtsdk4/types.rb', line 46936 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.
46949 46950 46951 46952 46953 46954 |
# File 'lib/ovirtsdk4/types.rb', line 46949 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.
46961 46962 46963 |
# File 'lib/ovirtsdk4/types.rb', line 46961 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration
attribute.
46970 46971 46972 |
# File 'lib/ovirtsdk4/types.rb', line 46970 def tunnel_migration=(value) @tunnel_migration = value end |
#type ⇒ VmType
Returns the value of the type
attribute.
46979 46980 46981 |
# File 'lib/ovirtsdk4/types.rb', line 46979 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
46988 46989 46990 |
# File 'lib/ovirtsdk4/types.rb', line 46988 def type=(value) @type = value end |
#usb ⇒ Usb
Returns the value of the usb
attribute.
46997 46998 46999 |
# File 'lib/ovirtsdk4/types.rb', line 46997 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.
47010 47011 47012 47013 47014 47015 |
# File 'lib/ovirtsdk4/types.rb', line 47010 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.
47022 47023 47024 |
# File 'lib/ovirtsdk4/types.rb', line 47022 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.
47035 47036 47037 47038 47039 47040 |
# File 'lib/ovirtsdk4/types.rb', line 47035 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.
47047 47048 47049 |
# File 'lib/ovirtsdk4/types.rb', line 47047 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.
47060 47061 47062 47063 47064 47065 |
# File 'lib/ovirtsdk4/types.rb', line 47060 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.
47072 47073 47074 |
# File 'lib/ovirtsdk4/types.rb', line 47072 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.
47085 47086 47087 47088 47089 47090 |
# File 'lib/ovirtsdk4/types.rb', line 47085 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.
47097 47098 47099 |
# File 'lib/ovirtsdk4/types.rb', line 47097 def watchdogs @watchdogs end |
#watchdogs=(list) ⇒ Object
Sets the value of the watchdogs
attribute.
47106 47107 47108 47109 47110 47111 47112 47113 47114 47115 47116 |
# File 'lib/ovirtsdk4/types.rb', line 47106 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 |