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. -
#virtio_scsi_multi_queues_enabled ⇒ Boolean
Returns the value of the
virtio_scsi_multi_queues_enabled
attribute. -
#virtio_scsi_multi_queues_enabled=(value) ⇒ Object
Sets the value of the
virtio_scsi_multi_queues_enabled
attribute. -
#vm ⇒ Vm
Returns the value of the
vm
attribute. -
#vm=(value) ⇒ Object
Sets the value of the
vm
attribute. -
#watchdogs ⇒ Array<Watchdog>
Returns the value of the
watchdogs
attribute. -
#watchdogs=(list) ⇒ Object
Sets the value of the
watchdogs
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Template
Creates a new instance of the OvirtSDK4::Template class.
49516 49517 49518 49519 49520 49521 49522 49523 49524 49525 49526 49527 49528 |
# File 'lib/ovirtsdk4/types.rb', line 49516 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.
49533 49534 49535 49536 49537 49538 49539 49540 49541 49542 49543 49544 49545 |
# File 'lib/ovirtsdk4/types.rb', line 49533 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.
48113 48114 48115 |
# File 'lib/ovirtsdk4/types.rb', line 48113 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.
48126 48127 48128 48129 48130 48131 |
# File 'lib/ovirtsdk4/types.rb', line 48126 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.
48138 48139 48140 |
# File 'lib/ovirtsdk4/types.rb', line 48138 def cdroms @cdroms end |
#cdroms=(list) ⇒ Object
Sets the value of the cdroms
attribute.
48147 48148 48149 48150 48151 48152 48153 48154 48155 48156 48157 |
# File 'lib/ovirtsdk4/types.rb', line 48147 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.
48164 48165 48166 |
# File 'lib/ovirtsdk4/types.rb', line 48164 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.
48177 48178 48179 48180 48181 48182 |
# File 'lib/ovirtsdk4/types.rb', line 48177 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.
48189 48190 48191 |
# File 'lib/ovirtsdk4/types.rb', line 48189 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
48198 48199 48200 |
# File 'lib/ovirtsdk4/types.rb', line 48198 def comment=(value) @comment = value end |
#console ⇒ Console
Returns the value of the console
attribute.
48207 48208 48209 |
# File 'lib/ovirtsdk4/types.rb', line 48207 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.
48220 48221 48222 48223 48224 48225 |
# File 'lib/ovirtsdk4/types.rb', line 48220 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.
48232 48233 48234 |
# File 'lib/ovirtsdk4/types.rb', line 48232 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.
48245 48246 48247 48248 48249 48250 |
# File 'lib/ovirtsdk4/types.rb', line 48245 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.
48257 48258 48259 |
# File 'lib/ovirtsdk4/types.rb', line 48257 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.
48270 48271 48272 48273 48274 48275 |
# File 'lib/ovirtsdk4/types.rb', line 48270 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.
48282 48283 48284 |
# File 'lib/ovirtsdk4/types.rb', line 48282 def cpu_shares @cpu_shares end |
#cpu_shares=(value) ⇒ Object
Sets the value of the cpu_shares
attribute.
48291 48292 48293 |
# File 'lib/ovirtsdk4/types.rb', line 48291 def cpu_shares=(value) @cpu_shares = value end |
#creation_time ⇒ DateTime
Returns the value of the creation_time
attribute.
48300 48301 48302 |
# File 'lib/ovirtsdk4/types.rb', line 48300 def creation_time @creation_time end |
#creation_time=(value) ⇒ Object
Sets the value of the creation_time
attribute.
48309 48310 48311 |
# File 'lib/ovirtsdk4/types.rb', line 48309 def creation_time=(value) @creation_time = value end |
#custom_compatibility_version ⇒ Version
Returns the value of the custom_compatibility_version
attribute.
48318 48319 48320 |
# File 'lib/ovirtsdk4/types.rb', line 48318 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.
48331 48332 48333 48334 48335 48336 |
# File 'lib/ovirtsdk4/types.rb', line 48331 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.
48343 48344 48345 |
# File 'lib/ovirtsdk4/types.rb', line 48343 def custom_cpu_model @custom_cpu_model end |
#custom_cpu_model=(value) ⇒ Object
Sets the value of the custom_cpu_model
attribute.
48352 48353 48354 |
# File 'lib/ovirtsdk4/types.rb', line 48352 def custom_cpu_model=(value) @custom_cpu_model = value end |
#custom_emulated_machine ⇒ String
Returns the value of the custom_emulated_machine
attribute.
48361 48362 48363 |
# File 'lib/ovirtsdk4/types.rb', line 48361 def custom_emulated_machine @custom_emulated_machine end |
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the custom_emulated_machine
attribute.
48370 48371 48372 |
# File 'lib/ovirtsdk4/types.rb', line 48370 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the custom_properties
attribute.
48379 48380 48381 |
# File 'lib/ovirtsdk4/types.rb', line 48379 def custom_properties @custom_properties end |
#custom_properties=(list) ⇒ Object
Sets the value of the custom_properties
attribute.
48388 48389 48390 48391 48392 48393 48394 48395 48396 48397 48398 |
# File 'lib/ovirtsdk4/types.rb', line 48388 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.
48405 48406 48407 |
# File 'lib/ovirtsdk4/types.rb', line 48405 def delete_protected @delete_protected end |
#delete_protected=(value) ⇒ Object
Sets the value of the delete_protected
attribute.
48414 48415 48416 |
# File 'lib/ovirtsdk4/types.rb', line 48414 def delete_protected=(value) @delete_protected = value end |
#description ⇒ String
Returns the value of the description
attribute.
48423 48424 48425 |
# File 'lib/ovirtsdk4/types.rb', line 48423 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
48432 48433 48434 |
# File 'lib/ovirtsdk4/types.rb', line 48432 def description=(value) @description = value end |
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the disk_attachments
attribute.
48441 48442 48443 |
# File 'lib/ovirtsdk4/types.rb', line 48441 def @disk_attachments end |
#disk_attachments=(list) ⇒ Object
Sets the value of the disk_attachments
attribute.
48450 48451 48452 48453 48454 48455 48456 48457 48458 48459 48460 |
# File 'lib/ovirtsdk4/types.rb', line 48450 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.
48467 48468 48469 |
# File 'lib/ovirtsdk4/types.rb', line 48467 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.
48480 48481 48482 48483 48484 48485 |
# File 'lib/ovirtsdk4/types.rb', line 48480 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.
48492 48493 48494 |
# File 'lib/ovirtsdk4/types.rb', line 48492 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.
48505 48506 48507 48508 48509 48510 |
# File 'lib/ovirtsdk4/types.rb', line 48505 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.
48517 48518 48519 |
# File 'lib/ovirtsdk4/types.rb', line 48517 def graphics_consoles @graphics_consoles end |
#graphics_consoles=(list) ⇒ Object
Sets the value of the graphics_consoles
attribute.
48526 48527 48528 48529 48530 48531 48532 48533 48534 48535 48536 |
# File 'lib/ovirtsdk4/types.rb', line 48526 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.
49550 49551 49552 49553 49554 49555 49556 49557 49558 49559 49560 49561 49562 |
# File 'lib/ovirtsdk4/types.rb', line 49550 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.
48543 48544 48545 |
# File 'lib/ovirtsdk4/types.rb', line 48543 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.
48556 48557 48558 48559 48560 48561 |
# File 'lib/ovirtsdk4/types.rb', line 48556 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.
48568 48569 48570 |
# File 'lib/ovirtsdk4/types.rb', line 48568 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
48577 48578 48579 |
# File 'lib/ovirtsdk4/types.rb', line 48577 def id=(value) @id = value end |
#initialization ⇒ Initialization
Returns the value of the initialization
attribute.
48586 48587 48588 |
# File 'lib/ovirtsdk4/types.rb', line 48586 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.
48599 48600 48601 48602 48603 48604 |
# File 'lib/ovirtsdk4/types.rb', line 48599 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.
48611 48612 48613 |
# File 'lib/ovirtsdk4/types.rb', line 48611 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.
48624 48625 48626 48627 48628 48629 |
# File 'lib/ovirtsdk4/types.rb', line 48624 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.
48636 48637 48638 |
# File 'lib/ovirtsdk4/types.rb', line 48636 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.
48649 48650 48651 48652 48653 48654 |
# File 'lib/ovirtsdk4/types.rb', line 48649 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.
48661 48662 48663 |
# File 'lib/ovirtsdk4/types.rb', line 48661 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.
48674 48675 48676 48677 48678 48679 |
# File 'lib/ovirtsdk4/types.rb', line 48674 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.
48686 48687 48688 |
# File 'lib/ovirtsdk4/types.rb', line 48686 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory
attribute.
48695 48696 48697 |
# File 'lib/ovirtsdk4/types.rb', line 48695 def memory=(value) @memory = value end |
#memory_policy ⇒ MemoryPolicy
Returns the value of the memory_policy
attribute.
48704 48705 48706 |
# File 'lib/ovirtsdk4/types.rb', line 48704 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.
48717 48718 48719 48720 48721 48722 |
# File 'lib/ovirtsdk4/types.rb', line 48717 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.
48729 48730 48731 |
# File 'lib/ovirtsdk4/types.rb', line 48729 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.
48742 48743 48744 48745 48746 48747 |
# File 'lib/ovirtsdk4/types.rb', line 48742 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.
48754 48755 48756 |
# File 'lib/ovirtsdk4/types.rb', line 48754 def migration_downtime @migration_downtime end |
#migration_downtime=(value) ⇒ Object
Sets the value of the migration_downtime
attribute.
48763 48764 48765 |
# File 'lib/ovirtsdk4/types.rb', line 48763 def migration_downtime=(value) @migration_downtime = value end |
#multi_queues_enabled ⇒ Boolean
Returns the value of the multi_queues_enabled
attribute.
48772 48773 48774 |
# File 'lib/ovirtsdk4/types.rb', line 48772 def multi_queues_enabled @multi_queues_enabled end |
#multi_queues_enabled=(value) ⇒ Object
Sets the value of the multi_queues_enabled
attribute.
48781 48782 48783 |
# File 'lib/ovirtsdk4/types.rb', line 48781 def multi_queues_enabled=(value) @multi_queues_enabled = value end |
#name ⇒ String
Returns the value of the name
attribute.
48790 48791 48792 |
# File 'lib/ovirtsdk4/types.rb', line 48790 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
48799 48800 48801 |
# File 'lib/ovirtsdk4/types.rb', line 48799 def name=(value) @name = value end |
#nics ⇒ Array<Nic>
Returns the value of the nics
attribute.
48808 48809 48810 |
# File 'lib/ovirtsdk4/types.rb', line 48808 def nics @nics end |
#nics=(list) ⇒ Object
Sets the value of the nics
attribute.
48817 48818 48819 48820 48821 48822 48823 48824 48825 48826 48827 |
# File 'lib/ovirtsdk4/types.rb', line 48817 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.
48834 48835 48836 |
# File 'lib/ovirtsdk4/types.rb', line 48834 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin
attribute.
48843 48844 48845 |
# File 'lib/ovirtsdk4/types.rb', line 48843 def origin=(value) @origin = value end |
#os ⇒ OperatingSystem
Returns the value of the os
attribute.
48852 48853 48854 |
# File 'lib/ovirtsdk4/types.rb', line 48852 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.
48865 48866 48867 48868 48869 48870 |
# File 'lib/ovirtsdk4/types.rb', line 48865 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.
48877 48878 48879 |
# File 'lib/ovirtsdk4/types.rb', line 48877 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
48886 48887 48888 48889 48890 48891 48892 48893 48894 48895 48896 |
# File 'lib/ovirtsdk4/types.rb', line 48886 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.
48903 48904 48905 |
# File 'lib/ovirtsdk4/types.rb', line 48903 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.
48916 48917 48918 48919 48920 48921 |
# File 'lib/ovirtsdk4/types.rb', line 48916 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.
48928 48929 48930 |
# File 'lib/ovirtsdk4/types.rb', line 48928 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.
48941 48942 48943 48944 48945 48946 |
# File 'lib/ovirtsdk4/types.rb', line 48941 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.
48953 48954 48955 |
# File 'lib/ovirtsdk4/types.rb', line 48953 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.
48966 48967 48968 48969 48970 48971 |
# File 'lib/ovirtsdk4/types.rb', line 48966 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.
48978 48979 48980 |
# File 'lib/ovirtsdk4/types.rb', line 48978 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.
48991 48992 48993 48994 48995 48996 |
# File 'lib/ovirtsdk4/types.rb', line 48991 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.
49003 49004 49005 |
# File 'lib/ovirtsdk4/types.rb', line 49003 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.
49016 49017 49018 49019 49020 49021 |
# File 'lib/ovirtsdk4/types.rb', line 49016 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.
49028 49029 49030 |
# File 'lib/ovirtsdk4/types.rb', line 49028 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled
attribute.
49037 49038 49039 |
# File 'lib/ovirtsdk4/types.rb', line 49037 def soundcard_enabled=(value) @soundcard_enabled = value end |
#sso ⇒ Sso
Returns the value of the sso
attribute.
49046 49047 49048 |
# File 'lib/ovirtsdk4/types.rb', line 49046 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.
49059 49060 49061 49062 49063 49064 |
# File 'lib/ovirtsdk4/types.rb', line 49059 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.
49071 49072 49073 |
# File 'lib/ovirtsdk4/types.rb', line 49071 def start_paused @start_paused end |
#start_paused=(value) ⇒ Object
Sets the value of the start_paused
attribute.
49080 49081 49082 |
# File 'lib/ovirtsdk4/types.rb', line 49080 def start_paused=(value) @start_paused = value end |
#stateless ⇒ Boolean
Returns the value of the stateless
attribute.
49089 49090 49091 |
# File 'lib/ovirtsdk4/types.rb', line 49089 def stateless @stateless end |
#stateless=(value) ⇒ Object
Sets the value of the stateless
attribute.
49098 49099 49100 |
# File 'lib/ovirtsdk4/types.rb', line 49098 def stateless=(value) @stateless = value end |
#status ⇒ TemplateStatus
Returns the value of the status
attribute.
49107 49108 49109 |
# File 'lib/ovirtsdk4/types.rb', line 49107 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
49116 49117 49118 |
# File 'lib/ovirtsdk4/types.rb', line 49116 def status=(value) @status = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
49125 49126 49127 |
# File 'lib/ovirtsdk4/types.rb', line 49125 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.
49138 49139 49140 49141 49142 49143 |
# File 'lib/ovirtsdk4/types.rb', line 49138 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.
49150 49151 49152 |
# File 'lib/ovirtsdk4/types.rb', line 49150 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.
49159 49160 49161 |
# File 'lib/ovirtsdk4/types.rb', line 49159 def storage_error_resume_behaviour=(value) @storage_error_resume_behaviour = value end |
#tags ⇒ Array<Tag>
Returns the value of the tags
attribute.
49168 49169 49170 |
# File 'lib/ovirtsdk4/types.rb', line 49168 def @tags end |
#tags=(list) ⇒ Object
Sets the value of the tags
attribute.
49177 49178 49179 49180 49181 49182 49183 49184 49185 49186 49187 |
# File 'lib/ovirtsdk4/types.rb', line 49177 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.
49194 49195 49196 |
# File 'lib/ovirtsdk4/types.rb', line 49194 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.
49207 49208 49209 49210 49211 49212 |
# File 'lib/ovirtsdk4/types.rb', line 49207 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.
49219 49220 49221 |
# File 'lib/ovirtsdk4/types.rb', line 49219 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration
attribute.
49228 49229 49230 |
# File 'lib/ovirtsdk4/types.rb', line 49228 def tunnel_migration=(value) @tunnel_migration = value end |
#type ⇒ VmType
Returns the value of the type
attribute.
49237 49238 49239 |
# File 'lib/ovirtsdk4/types.rb', line 49237 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
49246 49247 49248 |
# File 'lib/ovirtsdk4/types.rb', line 49246 def type=(value) @type = value end |
#usb ⇒ Usb
Returns the value of the usb
attribute.
49255 49256 49257 |
# File 'lib/ovirtsdk4/types.rb', line 49255 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.
49268 49269 49270 49271 49272 49273 |
# File 'lib/ovirtsdk4/types.rb', line 49268 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.
49280 49281 49282 |
# File 'lib/ovirtsdk4/types.rb', line 49280 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.
49293 49294 49295 49296 49297 49298 |
# File 'lib/ovirtsdk4/types.rb', line 49293 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.
49305 49306 49307 |
# File 'lib/ovirtsdk4/types.rb', line 49305 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.
49318 49319 49320 49321 49322 49323 |
# File 'lib/ovirtsdk4/types.rb', line 49318 def virtio_scsi=(value) if value.is_a?(Hash) value = VirtioScsi.new(value) end @virtio_scsi = value end |
#virtio_scsi_multi_queues_enabled ⇒ Boolean
Returns the value of the virtio_scsi_multi_queues_enabled
attribute.
49330 49331 49332 |
# File 'lib/ovirtsdk4/types.rb', line 49330 def virtio_scsi_multi_queues_enabled @virtio_scsi_multi_queues_enabled end |
#virtio_scsi_multi_queues_enabled=(value) ⇒ Object
Sets the value of the virtio_scsi_multi_queues_enabled
attribute.
49339 49340 49341 |
# File 'lib/ovirtsdk4/types.rb', line 49339 def virtio_scsi_multi_queues_enabled=(value) @virtio_scsi_multi_queues_enabled = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
49348 49349 49350 |
# File 'lib/ovirtsdk4/types.rb', line 49348 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.
49361 49362 49363 49364 49365 49366 |
# File 'lib/ovirtsdk4/types.rb', line 49361 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.
49373 49374 49375 |
# File 'lib/ovirtsdk4/types.rb', line 49373 def watchdogs @watchdogs end |
#watchdogs=(list) ⇒ Object
Sets the value of the watchdogs
attribute.
49382 49383 49384 49385 49386 49387 49388 49389 49390 49391 49392 |
# File 'lib/ovirtsdk4/types.rb', line 49382 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 |