Class: OvirtSDK4::InstanceType
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#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. -
#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 = {}) ⇒ InstanceType
constructor
Creates a new instance of the InstanceType 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 inherited from Template
Methods inherited from VmBase
Methods inherited from Identified
Methods inherited from Struct
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ InstanceType
Creates a new instance of the OvirtSDK4::InstanceType class.
52281 52282 52283 |
# File 'lib/ovirtsdk4/types.rb', line 52281 def initialize(opts = {}) super(opts) end |
Instance Method Details
#bios ⇒ Bios
Returns the value of the bios
attribute.
50898 50899 50900 |
# File 'lib/ovirtsdk4/types.rb', line 50898 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.
50911 50912 50913 50914 50915 50916 |
# File 'lib/ovirtsdk4/types.rb', line 50911 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.
50923 50924 50925 |
# File 'lib/ovirtsdk4/types.rb', line 50923 def cdroms @cdroms end |
#cdroms=(list) ⇒ Object
Sets the value of the cdroms
attribute.
50932 50933 50934 50935 50936 50937 50938 50939 50940 50941 50942 |
# File 'lib/ovirtsdk4/types.rb', line 50932 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.
50949 50950 50951 |
# File 'lib/ovirtsdk4/types.rb', line 50949 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.
50962 50963 50964 50965 50966 50967 |
# File 'lib/ovirtsdk4/types.rb', line 50962 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.
50974 50975 50976 |
# File 'lib/ovirtsdk4/types.rb', line 50974 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
50983 50984 50985 |
# File 'lib/ovirtsdk4/types.rb', line 50983 def comment=(value) @comment = value end |
#console ⇒ Console
Returns the value of the console
attribute.
50992 50993 50994 |
# File 'lib/ovirtsdk4/types.rb', line 50992 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.
51005 51006 51007 51008 51009 51010 |
# File 'lib/ovirtsdk4/types.rb', line 51005 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.
51017 51018 51019 |
# File 'lib/ovirtsdk4/types.rb', line 51017 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.
51030 51031 51032 51033 51034 51035 |
# File 'lib/ovirtsdk4/types.rb', line 51030 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.
51042 51043 51044 |
# File 'lib/ovirtsdk4/types.rb', line 51042 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.
51055 51056 51057 51058 51059 51060 |
# File 'lib/ovirtsdk4/types.rb', line 51055 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.
51067 51068 51069 |
# File 'lib/ovirtsdk4/types.rb', line 51067 def cpu_shares @cpu_shares end |
#cpu_shares=(value) ⇒ Object
Sets the value of the cpu_shares
attribute.
51076 51077 51078 |
# File 'lib/ovirtsdk4/types.rb', line 51076 def cpu_shares=(value) @cpu_shares = value end |
#creation_time ⇒ DateTime
Returns the value of the creation_time
attribute.
51085 51086 51087 |
# File 'lib/ovirtsdk4/types.rb', line 51085 def creation_time @creation_time end |
#creation_time=(value) ⇒ Object
Sets the value of the creation_time
attribute.
51094 51095 51096 |
# File 'lib/ovirtsdk4/types.rb', line 51094 def creation_time=(value) @creation_time = value end |
#custom_compatibility_version ⇒ Version
Returns the value of the custom_compatibility_version
attribute.
51103 51104 51105 |
# File 'lib/ovirtsdk4/types.rb', line 51103 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.
51116 51117 51118 51119 51120 51121 |
# File 'lib/ovirtsdk4/types.rb', line 51116 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.
51128 51129 51130 |
# File 'lib/ovirtsdk4/types.rb', line 51128 def custom_cpu_model @custom_cpu_model end |
#custom_cpu_model=(value) ⇒ Object
Sets the value of the custom_cpu_model
attribute.
51137 51138 51139 |
# File 'lib/ovirtsdk4/types.rb', line 51137 def custom_cpu_model=(value) @custom_cpu_model = value end |
#custom_emulated_machine ⇒ String
Returns the value of the custom_emulated_machine
attribute.
51146 51147 51148 |
# File 'lib/ovirtsdk4/types.rb', line 51146 def custom_emulated_machine @custom_emulated_machine end |
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the custom_emulated_machine
attribute.
51155 51156 51157 |
# File 'lib/ovirtsdk4/types.rb', line 51155 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the custom_properties
attribute.
51164 51165 51166 |
# File 'lib/ovirtsdk4/types.rb', line 51164 def custom_properties @custom_properties end |
#custom_properties=(list) ⇒ Object
Sets the value of the custom_properties
attribute.
51173 51174 51175 51176 51177 51178 51179 51180 51181 51182 51183 |
# File 'lib/ovirtsdk4/types.rb', line 51173 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.
51190 51191 51192 |
# File 'lib/ovirtsdk4/types.rb', line 51190 def delete_protected @delete_protected end |
#delete_protected=(value) ⇒ Object
Sets the value of the delete_protected
attribute.
51199 51200 51201 |
# File 'lib/ovirtsdk4/types.rb', line 51199 def delete_protected=(value) @delete_protected = value end |
#description ⇒ String
Returns the value of the description
attribute.
51208 51209 51210 |
# File 'lib/ovirtsdk4/types.rb', line 51208 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
51217 51218 51219 |
# File 'lib/ovirtsdk4/types.rb', line 51217 def description=(value) @description = value end |
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the disk_attachments
attribute.
51226 51227 51228 |
# File 'lib/ovirtsdk4/types.rb', line 51226 def @disk_attachments end |
#disk_attachments=(list) ⇒ Object
Sets the value of the disk_attachments
attribute.
51235 51236 51237 51238 51239 51240 51241 51242 51243 51244 51245 |
# File 'lib/ovirtsdk4/types.rb', line 51235 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.
51252 51253 51254 |
# File 'lib/ovirtsdk4/types.rb', line 51252 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.
51265 51266 51267 51268 51269 51270 |
# File 'lib/ovirtsdk4/types.rb', line 51265 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.
51277 51278 51279 |
# File 'lib/ovirtsdk4/types.rb', line 51277 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.
51290 51291 51292 51293 51294 51295 |
# File 'lib/ovirtsdk4/types.rb', line 51290 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.
51302 51303 51304 |
# File 'lib/ovirtsdk4/types.rb', line 51302 def graphics_consoles @graphics_consoles end |
#graphics_consoles=(list) ⇒ Object
Sets the value of the graphics_consoles
attribute.
51311 51312 51313 51314 51315 51316 51317 51318 51319 51320 51321 |
# File 'lib/ovirtsdk4/types.rb', line 51311 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 |
#high_availability ⇒ HighAvailability
Returns the value of the high_availability
attribute.
51328 51329 51330 |
# File 'lib/ovirtsdk4/types.rb', line 51328 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.
51341 51342 51343 51344 51345 51346 |
# File 'lib/ovirtsdk4/types.rb', line 51341 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.
51353 51354 51355 |
# File 'lib/ovirtsdk4/types.rb', line 51353 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
51362 51363 51364 |
# File 'lib/ovirtsdk4/types.rb', line 51362 def id=(value) @id = value end |
#initialization ⇒ Initialization
Returns the value of the initialization
attribute.
51371 51372 51373 |
# File 'lib/ovirtsdk4/types.rb', line 51371 def initialization @initialization end |
#initialization=(value) ⇒ Object
Sets the value of the initialization
attribute.
The value
parameter can be an instance of OvirtSDK4::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.
51384 51385 51386 51387 51388 51389 |
# File 'lib/ovirtsdk4/types.rb', line 51384 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.
51396 51397 51398 |
# File 'lib/ovirtsdk4/types.rb', line 51396 def io @io end |
#io=(value) ⇒ Object
Sets the value of the io
attribute.
The value
parameter can be an instance of OvirtSDK4::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.
51409 51410 51411 51412 51413 51414 |
# File 'lib/ovirtsdk4/types.rb', line 51409 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.
51421 51422 51423 |
# File 'lib/ovirtsdk4/types.rb', line 51421 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 OvirtSDK4::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.
51434 51435 51436 51437 51438 51439 |
# File 'lib/ovirtsdk4/types.rb', line 51434 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.
51446 51447 51448 |
# File 'lib/ovirtsdk4/types.rb', line 51446 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.
51459 51460 51461 51462 51463 51464 |
# File 'lib/ovirtsdk4/types.rb', line 51459 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.
51471 51472 51473 |
# File 'lib/ovirtsdk4/types.rb', line 51471 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory
attribute.
51480 51481 51482 |
# File 'lib/ovirtsdk4/types.rb', line 51480 def memory=(value) @memory = value end |
#memory_policy ⇒ MemoryPolicy
Returns the value of the memory_policy
attribute.
51489 51490 51491 |
# File 'lib/ovirtsdk4/types.rb', line 51489 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.
51502 51503 51504 51505 51506 51507 |
# File 'lib/ovirtsdk4/types.rb', line 51502 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.
51514 51515 51516 |
# File 'lib/ovirtsdk4/types.rb', line 51514 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.
51527 51528 51529 51530 51531 51532 |
# File 'lib/ovirtsdk4/types.rb', line 51527 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.
51539 51540 51541 |
# File 'lib/ovirtsdk4/types.rb', line 51539 def migration_downtime @migration_downtime end |
#migration_downtime=(value) ⇒ Object
Sets the value of the migration_downtime
attribute.
51548 51549 51550 |
# File 'lib/ovirtsdk4/types.rb', line 51548 def migration_downtime=(value) @migration_downtime = value end |
#multi_queues_enabled ⇒ Boolean
Returns the value of the multi_queues_enabled
attribute.
51557 51558 51559 |
# File 'lib/ovirtsdk4/types.rb', line 51557 def multi_queues_enabled @multi_queues_enabled end |
#multi_queues_enabled=(value) ⇒ Object
Sets the value of the multi_queues_enabled
attribute.
51566 51567 51568 |
# File 'lib/ovirtsdk4/types.rb', line 51566 def multi_queues_enabled=(value) @multi_queues_enabled = value end |
#name ⇒ String
Returns the value of the name
attribute.
51575 51576 51577 |
# File 'lib/ovirtsdk4/types.rb', line 51575 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
51584 51585 51586 |
# File 'lib/ovirtsdk4/types.rb', line 51584 def name=(value) @name = value end |
#nics ⇒ Array<Nic>
Returns the value of the nics
attribute.
51593 51594 51595 |
# File 'lib/ovirtsdk4/types.rb', line 51593 def nics @nics end |
#nics=(list) ⇒ Object
Sets the value of the nics
attribute.
51602 51603 51604 51605 51606 51607 51608 51609 51610 51611 51612 |
# File 'lib/ovirtsdk4/types.rb', line 51602 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.
51619 51620 51621 |
# File 'lib/ovirtsdk4/types.rb', line 51619 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin
attribute.
51628 51629 51630 |
# File 'lib/ovirtsdk4/types.rb', line 51628 def origin=(value) @origin = value end |
#os ⇒ OperatingSystem
Returns the value of the os
attribute.
51637 51638 51639 |
# File 'lib/ovirtsdk4/types.rb', line 51637 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.
51650 51651 51652 51653 51654 51655 |
# File 'lib/ovirtsdk4/types.rb', line 51650 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.
51662 51663 51664 |
# File 'lib/ovirtsdk4/types.rb', line 51662 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
51671 51672 51673 51674 51675 51676 51677 51678 51679 51680 51681 |
# File 'lib/ovirtsdk4/types.rb', line 51671 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.
51688 51689 51690 |
# File 'lib/ovirtsdk4/types.rb', line 51688 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.
51701 51702 51703 51704 51705 51706 |
# File 'lib/ovirtsdk4/types.rb', line 51701 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.
51713 51714 51715 |
# File 'lib/ovirtsdk4/types.rb', line 51713 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.
51726 51727 51728 51729 51730 51731 |
# File 'lib/ovirtsdk4/types.rb', line 51726 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.
51738 51739 51740 |
# File 'lib/ovirtsdk4/types.rb', line 51738 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.
51751 51752 51753 51754 51755 51756 |
# File 'lib/ovirtsdk4/types.rb', line 51751 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.
51763 51764 51765 |
# File 'lib/ovirtsdk4/types.rb', line 51763 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.
51776 51777 51778 51779 51780 51781 |
# File 'lib/ovirtsdk4/types.rb', line 51776 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.
51788 51789 51790 |
# File 'lib/ovirtsdk4/types.rb', line 51788 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 OvirtSDK4::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.
51801 51802 51803 51804 51805 51806 |
# File 'lib/ovirtsdk4/types.rb', line 51801 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.
51813 51814 51815 |
# File 'lib/ovirtsdk4/types.rb', line 51813 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled
attribute.
51822 51823 51824 |
# File 'lib/ovirtsdk4/types.rb', line 51822 def soundcard_enabled=(value) @soundcard_enabled = value end |
#sso ⇒ Sso
Returns the value of the sso
attribute.
51831 51832 51833 |
# File 'lib/ovirtsdk4/types.rb', line 51831 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.
51844 51845 51846 51847 51848 51849 |
# File 'lib/ovirtsdk4/types.rb', line 51844 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.
51856 51857 51858 |
# File 'lib/ovirtsdk4/types.rb', line 51856 def start_paused @start_paused end |
#start_paused=(value) ⇒ Object
Sets the value of the start_paused
attribute.
51865 51866 51867 |
# File 'lib/ovirtsdk4/types.rb', line 51865 def start_paused=(value) @start_paused = value end |
#stateless ⇒ Boolean
Returns the value of the stateless
attribute.
51874 51875 51876 |
# File 'lib/ovirtsdk4/types.rb', line 51874 def stateless @stateless end |
#stateless=(value) ⇒ Object
Sets the value of the stateless
attribute.
51883 51884 51885 |
# File 'lib/ovirtsdk4/types.rb', line 51883 def stateless=(value) @stateless = value end |
#status ⇒ TemplateStatus
Returns the value of the status
attribute.
51892 51893 51894 |
# File 'lib/ovirtsdk4/types.rb', line 51892 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
51901 51902 51903 |
# File 'lib/ovirtsdk4/types.rb', line 51901 def status=(value) @status = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
51910 51911 51912 |
# File 'lib/ovirtsdk4/types.rb', line 51910 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.
51923 51924 51925 51926 51927 51928 |
# File 'lib/ovirtsdk4/types.rb', line 51923 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.
51935 51936 51937 |
# File 'lib/ovirtsdk4/types.rb', line 51935 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.
51944 51945 51946 |
# File 'lib/ovirtsdk4/types.rb', line 51944 def storage_error_resume_behaviour=(value) @storage_error_resume_behaviour = value end |
#tags ⇒ Array<Tag>
Returns the value of the tags
attribute.
51953 51954 51955 |
# File 'lib/ovirtsdk4/types.rb', line 51953 def @tags end |
#tags=(list) ⇒ Object
Sets the value of the tags
attribute.
51962 51963 51964 51965 51966 51967 51968 51969 51970 51971 51972 |
# File 'lib/ovirtsdk4/types.rb', line 51962 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.
51979 51980 51981 |
# File 'lib/ovirtsdk4/types.rb', line 51979 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 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.
51992 51993 51994 51995 51996 51997 |
# File 'lib/ovirtsdk4/types.rb', line 51992 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.
52004 52005 52006 |
# File 'lib/ovirtsdk4/types.rb', line 52004 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration
attribute.
52013 52014 52015 |
# File 'lib/ovirtsdk4/types.rb', line 52013 def tunnel_migration=(value) @tunnel_migration = value end |
#type ⇒ VmType
Returns the value of the type
attribute.
52022 52023 52024 |
# File 'lib/ovirtsdk4/types.rb', line 52022 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
52031 52032 52033 |
# File 'lib/ovirtsdk4/types.rb', line 52031 def type=(value) @type = value end |
#usb ⇒ Usb
Returns the value of the usb
attribute.
52040 52041 52042 |
# File 'lib/ovirtsdk4/types.rb', line 52040 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.
52053 52054 52055 52056 52057 52058 |
# File 'lib/ovirtsdk4/types.rb', line 52053 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.
52065 52066 52067 |
# File 'lib/ovirtsdk4/types.rb', line 52065 def version @version end |
#version=(value) ⇒ Object
Sets the value of the version
attribute.
The value
parameter can be an instance of 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.
52078 52079 52080 52081 52082 52083 |
# File 'lib/ovirtsdk4/types.rb', line 52078 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.
52090 52091 52092 |
# File 'lib/ovirtsdk4/types.rb', line 52090 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.
52103 52104 52105 52106 52107 52108 |
# File 'lib/ovirtsdk4/types.rb', line 52103 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.
52115 52116 52117 |
# File 'lib/ovirtsdk4/types.rb', line 52115 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.
52128 52129 52130 52131 52132 52133 |
# File 'lib/ovirtsdk4/types.rb', line 52128 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.
52140 52141 52142 |
# File 'lib/ovirtsdk4/types.rb', line 52140 def watchdogs @watchdogs end |
#watchdogs=(list) ⇒ Object
Sets the value of the watchdogs
attribute.
52149 52150 52151 52152 52153 52154 52155 52156 52157 52158 52159 |
# File 'lib/ovirtsdk4/types.rb', line 52149 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 |