Class: OvirtSDK4::InstanceType
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#auto_pinning_policy ⇒ AutoPinningPolicy
Returns the value of the
auto_pinning_policy
attribute. -
#auto_pinning_policy=(value) ⇒ Object
Sets the value of the
auto_pinning_policy
attribute. -
#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_pinning_policy ⇒ CpuPinningPolicy
Returns the value of the
cpu_pinning_policy
attribute. -
#cpu_pinning_policy=(value) ⇒ Object
Sets the value of the
cpu_pinning_policy
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. -
#mediated_devices ⇒ Array<VmMediatedDevice>
Returns the value of the
mediated_devices
attribute. -
#mediated_devices=(list) ⇒ Object
Sets the value of the
mediated_devices
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. -
#tpm_enabled ⇒ Boolean
Returns the value of the
tpm_enabled
attribute. -
#tpm_enabled=(value) ⇒ Object
Sets the value of the
tpm_enabled
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 ⇒ Integer
Returns the value of the
virtio_scsi_multi_queues
attribute. -
#virtio_scsi_multi_queues=(value) ⇒ Object
Sets the value of the
virtio_scsi_multi_queues
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 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.
56374 56375 56376 |
# File 'lib/ovirtsdk4/types.rb', line 56374 def initialize(opts = {}) super(opts) end |
Instance Method Details
#auto_pinning_policy ⇒ AutoPinningPolicy
Returns the value of the auto_pinning_policy
attribute.
54863 54864 54865 |
# File 'lib/ovirtsdk4/types.rb', line 54863 def auto_pinning_policy @auto_pinning_policy end |
#auto_pinning_policy=(value) ⇒ Object
Sets the value of the auto_pinning_policy
attribute.
54872 54873 54874 |
# File 'lib/ovirtsdk4/types.rb', line 54872 def auto_pinning_policy=(value) @auto_pinning_policy = value end |
#bios ⇒ Bios
Returns the value of the bios
attribute.
54881 54882 54883 |
# File 'lib/ovirtsdk4/types.rb', line 54881 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.
54894 54895 54896 54897 54898 54899 |
# File 'lib/ovirtsdk4/types.rb', line 54894 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.
54906 54907 54908 |
# File 'lib/ovirtsdk4/types.rb', line 54906 def cdroms @cdroms end |
#cdroms=(list) ⇒ Object
Sets the value of the cdroms
attribute.
54915 54916 54917 54918 54919 54920 54921 54922 54923 54924 54925 |
# File 'lib/ovirtsdk4/types.rb', line 54915 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.
54932 54933 54934 |
# File 'lib/ovirtsdk4/types.rb', line 54932 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.
54945 54946 54947 54948 54949 54950 |
# File 'lib/ovirtsdk4/types.rb', line 54945 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.
54957 54958 54959 |
# File 'lib/ovirtsdk4/types.rb', line 54957 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
54966 54967 54968 |
# File 'lib/ovirtsdk4/types.rb', line 54966 def comment=(value) @comment = value end |
#console ⇒ Console
Returns the value of the console
attribute.
54975 54976 54977 |
# File 'lib/ovirtsdk4/types.rb', line 54975 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.
54988 54989 54990 54991 54992 54993 |
# File 'lib/ovirtsdk4/types.rb', line 54988 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.
55000 55001 55002 |
# File 'lib/ovirtsdk4/types.rb', line 55000 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.
55013 55014 55015 55016 55017 55018 |
# File 'lib/ovirtsdk4/types.rb', line 55013 def cpu=(value) if value.is_a?(Hash) value = Cpu.new(value) end @cpu = value end |
#cpu_pinning_policy ⇒ CpuPinningPolicy
Returns the value of the cpu_pinning_policy
attribute.
55025 55026 55027 |
# File 'lib/ovirtsdk4/types.rb', line 55025 def cpu_pinning_policy @cpu_pinning_policy end |
#cpu_pinning_policy=(value) ⇒ Object
Sets the value of the cpu_pinning_policy
attribute.
55034 55035 55036 |
# File 'lib/ovirtsdk4/types.rb', line 55034 def cpu_pinning_policy=(value) @cpu_pinning_policy = value end |
#cpu_profile ⇒ CpuProfile
Returns the value of the cpu_profile
attribute.
55043 55044 55045 |
# File 'lib/ovirtsdk4/types.rb', line 55043 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.
55056 55057 55058 55059 55060 55061 |
# File 'lib/ovirtsdk4/types.rb', line 55056 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.
55068 55069 55070 |
# File 'lib/ovirtsdk4/types.rb', line 55068 def cpu_shares @cpu_shares end |
#cpu_shares=(value) ⇒ Object
Sets the value of the cpu_shares
attribute.
55077 55078 55079 |
# File 'lib/ovirtsdk4/types.rb', line 55077 def cpu_shares=(value) @cpu_shares = value end |
#creation_time ⇒ DateTime
Returns the value of the creation_time
attribute.
55086 55087 55088 |
# File 'lib/ovirtsdk4/types.rb', line 55086 def creation_time @creation_time end |
#creation_time=(value) ⇒ Object
Sets the value of the creation_time
attribute.
55095 55096 55097 |
# File 'lib/ovirtsdk4/types.rb', line 55095 def creation_time=(value) @creation_time = value end |
#custom_compatibility_version ⇒ Version
Returns the value of the custom_compatibility_version
attribute.
55104 55105 55106 |
# File 'lib/ovirtsdk4/types.rb', line 55104 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.
55117 55118 55119 55120 55121 55122 |
# File 'lib/ovirtsdk4/types.rb', line 55117 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.
55129 55130 55131 |
# File 'lib/ovirtsdk4/types.rb', line 55129 def custom_cpu_model @custom_cpu_model end |
#custom_cpu_model=(value) ⇒ Object
Sets the value of the custom_cpu_model
attribute.
55138 55139 55140 |
# File 'lib/ovirtsdk4/types.rb', line 55138 def custom_cpu_model=(value) @custom_cpu_model = value end |
#custom_emulated_machine ⇒ String
Returns the value of the custom_emulated_machine
attribute.
55147 55148 55149 |
# File 'lib/ovirtsdk4/types.rb', line 55147 def custom_emulated_machine @custom_emulated_machine end |
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the custom_emulated_machine
attribute.
55156 55157 55158 |
# File 'lib/ovirtsdk4/types.rb', line 55156 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the custom_properties
attribute.
55165 55166 55167 |
# File 'lib/ovirtsdk4/types.rb', line 55165 def custom_properties @custom_properties end |
#custom_properties=(list) ⇒ Object
Sets the value of the custom_properties
attribute.
55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 |
# File 'lib/ovirtsdk4/types.rb', line 55174 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.
55191 55192 55193 |
# File 'lib/ovirtsdk4/types.rb', line 55191 def delete_protected @delete_protected end |
#delete_protected=(value) ⇒ Object
Sets the value of the delete_protected
attribute.
55200 55201 55202 |
# File 'lib/ovirtsdk4/types.rb', line 55200 def delete_protected=(value) @delete_protected = value end |
#description ⇒ String
Returns the value of the description
attribute.
55209 55210 55211 |
# File 'lib/ovirtsdk4/types.rb', line 55209 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
55218 55219 55220 |
# File 'lib/ovirtsdk4/types.rb', line 55218 def description=(value) @description = value end |
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the disk_attachments
attribute.
55227 55228 55229 |
# File 'lib/ovirtsdk4/types.rb', line 55227 def @disk_attachments end |
#disk_attachments=(list) ⇒ Object
Sets the value of the disk_attachments
attribute.
55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 |
# File 'lib/ovirtsdk4/types.rb', line 55236 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.
55253 55254 55255 |
# File 'lib/ovirtsdk4/types.rb', line 55253 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.
55266 55267 55268 55269 55270 55271 |
# File 'lib/ovirtsdk4/types.rb', line 55266 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.
55278 55279 55280 |
# File 'lib/ovirtsdk4/types.rb', line 55278 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.
55291 55292 55293 55294 55295 55296 |
# File 'lib/ovirtsdk4/types.rb', line 55291 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.
55303 55304 55305 |
# File 'lib/ovirtsdk4/types.rb', line 55303 def graphics_consoles @graphics_consoles end |
#graphics_consoles=(list) ⇒ Object
Sets the value of the graphics_consoles
attribute.
55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 |
# File 'lib/ovirtsdk4/types.rb', line 55312 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.
55329 55330 55331 |
# File 'lib/ovirtsdk4/types.rb', line 55329 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.
55342 55343 55344 55345 55346 55347 |
# File 'lib/ovirtsdk4/types.rb', line 55342 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.
55354 55355 55356 |
# File 'lib/ovirtsdk4/types.rb', line 55354 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
55363 55364 55365 |
# File 'lib/ovirtsdk4/types.rb', line 55363 def id=(value) @id = value end |
#initialization ⇒ Initialization
Returns the value of the initialization
attribute.
55372 55373 55374 |
# File 'lib/ovirtsdk4/types.rb', line 55372 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.
55385 55386 55387 55388 55389 55390 |
# File 'lib/ovirtsdk4/types.rb', line 55385 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.
55397 55398 55399 |
# File 'lib/ovirtsdk4/types.rb', line 55397 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.
55410 55411 55412 55413 55414 55415 |
# File 'lib/ovirtsdk4/types.rb', line 55410 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.
55422 55423 55424 |
# File 'lib/ovirtsdk4/types.rb', line 55422 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.
55435 55436 55437 55438 55439 55440 |
# File 'lib/ovirtsdk4/types.rb', line 55435 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.
55447 55448 55449 |
# File 'lib/ovirtsdk4/types.rb', line 55447 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.
55460 55461 55462 55463 55464 55465 |
# File 'lib/ovirtsdk4/types.rb', line 55460 def lease=(value) if value.is_a?(Hash) value = StorageDomainLease.new(value) end @lease = value end |
#mediated_devices ⇒ Array<VmMediatedDevice>
Returns the value of the mediated_devices
attribute.
55472 55473 55474 |
# File 'lib/ovirtsdk4/types.rb', line 55472 def mediated_devices @mediated_devices end |
#mediated_devices=(list) ⇒ Object
Sets the value of the mediated_devices
attribute.
55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 |
# File 'lib/ovirtsdk4/types.rb', line 55481 def mediated_devices=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = VmMediatedDevice.new(value) end end end @mediated_devices = list end |
#memory ⇒ Integer
Returns the value of the memory
attribute.
55498 55499 55500 |
# File 'lib/ovirtsdk4/types.rb', line 55498 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory
attribute.
55507 55508 55509 |
# File 'lib/ovirtsdk4/types.rb', line 55507 def memory=(value) @memory = value end |
#memory_policy ⇒ MemoryPolicy
Returns the value of the memory_policy
attribute.
55516 55517 55518 |
# File 'lib/ovirtsdk4/types.rb', line 55516 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.
55529 55530 55531 55532 55533 55534 |
# File 'lib/ovirtsdk4/types.rb', line 55529 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.
55541 55542 55543 |
# File 'lib/ovirtsdk4/types.rb', line 55541 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.
55554 55555 55556 55557 55558 55559 |
# File 'lib/ovirtsdk4/types.rb', line 55554 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.
55566 55567 55568 |
# File 'lib/ovirtsdk4/types.rb', line 55566 def migration_downtime @migration_downtime end |
#migration_downtime=(value) ⇒ Object
Sets the value of the migration_downtime
attribute.
55575 55576 55577 |
# File 'lib/ovirtsdk4/types.rb', line 55575 def migration_downtime=(value) @migration_downtime = value end |
#multi_queues_enabled ⇒ Boolean
Returns the value of the multi_queues_enabled
attribute.
55584 55585 55586 |
# File 'lib/ovirtsdk4/types.rb', line 55584 def multi_queues_enabled @multi_queues_enabled end |
#multi_queues_enabled=(value) ⇒ Object
Sets the value of the multi_queues_enabled
attribute.
55593 55594 55595 |
# File 'lib/ovirtsdk4/types.rb', line 55593 def multi_queues_enabled=(value) @multi_queues_enabled = value end |
#name ⇒ String
Returns the value of the name
attribute.
55602 55603 55604 |
# File 'lib/ovirtsdk4/types.rb', line 55602 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
55611 55612 55613 |
# File 'lib/ovirtsdk4/types.rb', line 55611 def name=(value) @name = value end |
#nics ⇒ Array<Nic>
Returns the value of the nics
attribute.
55620 55621 55622 |
# File 'lib/ovirtsdk4/types.rb', line 55620 def nics @nics end |
#nics=(list) ⇒ Object
Sets the value of the nics
attribute.
55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 |
# File 'lib/ovirtsdk4/types.rb', line 55629 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.
55646 55647 55648 |
# File 'lib/ovirtsdk4/types.rb', line 55646 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin
attribute.
55655 55656 55657 |
# File 'lib/ovirtsdk4/types.rb', line 55655 def origin=(value) @origin = value end |
#os ⇒ OperatingSystem
Returns the value of the os
attribute.
55664 55665 55666 |
# File 'lib/ovirtsdk4/types.rb', line 55664 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.
55677 55678 55679 55680 55681 55682 |
# File 'lib/ovirtsdk4/types.rb', line 55677 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.
55689 55690 55691 |
# File 'lib/ovirtsdk4/types.rb', line 55689 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 |
# File 'lib/ovirtsdk4/types.rb', line 55698 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.
55715 55716 55717 |
# File 'lib/ovirtsdk4/types.rb', line 55715 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.
55728 55729 55730 55731 55732 55733 |
# File 'lib/ovirtsdk4/types.rb', line 55728 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.
55740 55741 55742 |
# File 'lib/ovirtsdk4/types.rb', line 55740 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.
55753 55754 55755 55756 55757 55758 |
# File 'lib/ovirtsdk4/types.rb', line 55753 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.
55765 55766 55767 |
# File 'lib/ovirtsdk4/types.rb', line 55765 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.
55778 55779 55780 55781 55782 55783 |
# File 'lib/ovirtsdk4/types.rb', line 55778 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.
55790 55791 55792 |
# File 'lib/ovirtsdk4/types.rb', line 55790 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.
55803 55804 55805 55806 55807 55808 |
# File 'lib/ovirtsdk4/types.rb', line 55803 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.
55815 55816 55817 |
# File 'lib/ovirtsdk4/types.rb', line 55815 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.
55828 55829 55830 55831 55832 55833 |
# File 'lib/ovirtsdk4/types.rb', line 55828 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.
55840 55841 55842 |
# File 'lib/ovirtsdk4/types.rb', line 55840 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled
attribute.
55849 55850 55851 |
# File 'lib/ovirtsdk4/types.rb', line 55849 def soundcard_enabled=(value) @soundcard_enabled = value end |
#sso ⇒ Sso
Returns the value of the sso
attribute.
55858 55859 55860 |
# File 'lib/ovirtsdk4/types.rb', line 55858 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.
55871 55872 55873 55874 55875 55876 |
# File 'lib/ovirtsdk4/types.rb', line 55871 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.
55883 55884 55885 |
# File 'lib/ovirtsdk4/types.rb', line 55883 def start_paused @start_paused end |
#start_paused=(value) ⇒ Object
Sets the value of the start_paused
attribute.
55892 55893 55894 |
# File 'lib/ovirtsdk4/types.rb', line 55892 def start_paused=(value) @start_paused = value end |
#stateless ⇒ Boolean
Returns the value of the stateless
attribute.
55901 55902 55903 |
# File 'lib/ovirtsdk4/types.rb', line 55901 def stateless @stateless end |
#stateless=(value) ⇒ Object
Sets the value of the stateless
attribute.
55910 55911 55912 |
# File 'lib/ovirtsdk4/types.rb', line 55910 def stateless=(value) @stateless = value end |
#status ⇒ TemplateStatus
Returns the value of the status
attribute.
55919 55920 55921 |
# File 'lib/ovirtsdk4/types.rb', line 55919 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
55928 55929 55930 |
# File 'lib/ovirtsdk4/types.rb', line 55928 def status=(value) @status = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
55937 55938 55939 |
# File 'lib/ovirtsdk4/types.rb', line 55937 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.
55950 55951 55952 55953 55954 55955 |
# File 'lib/ovirtsdk4/types.rb', line 55950 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.
55962 55963 55964 |
# File 'lib/ovirtsdk4/types.rb', line 55962 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.
55971 55972 55973 |
# File 'lib/ovirtsdk4/types.rb', line 55971 def storage_error_resume_behaviour=(value) @storage_error_resume_behaviour = value end |
#tags ⇒ Array<Tag>
Returns the value of the tags
attribute.
55980 55981 55982 |
# File 'lib/ovirtsdk4/types.rb', line 55980 def @tags end |
#tags=(list) ⇒ Object
Sets the value of the tags
attribute.
55989 55990 55991 55992 55993 55994 55995 55996 55997 55998 55999 |
# File 'lib/ovirtsdk4/types.rb', line 55989 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.
56006 56007 56008 |
# File 'lib/ovirtsdk4/types.rb', line 56006 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.
56019 56020 56021 56022 56023 56024 |
# File 'lib/ovirtsdk4/types.rb', line 56019 def time_zone=(value) if value.is_a?(Hash) value = TimeZone.new(value) end @time_zone = value end |
#tpm_enabled ⇒ Boolean
Returns the value of the tpm_enabled
attribute.
56031 56032 56033 |
# File 'lib/ovirtsdk4/types.rb', line 56031 def tpm_enabled @tpm_enabled end |
#tpm_enabled=(value) ⇒ Object
Sets the value of the tpm_enabled
attribute.
56040 56041 56042 |
# File 'lib/ovirtsdk4/types.rb', line 56040 def tpm_enabled=(value) @tpm_enabled = value end |
#tunnel_migration ⇒ Boolean
Returns the value of the tunnel_migration
attribute.
56049 56050 56051 |
# File 'lib/ovirtsdk4/types.rb', line 56049 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration
attribute.
56058 56059 56060 |
# File 'lib/ovirtsdk4/types.rb', line 56058 def tunnel_migration=(value) @tunnel_migration = value end |
#type ⇒ VmType
Returns the value of the type
attribute.
56067 56068 56069 |
# File 'lib/ovirtsdk4/types.rb', line 56067 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
56076 56077 56078 |
# File 'lib/ovirtsdk4/types.rb', line 56076 def type=(value) @type = value end |
#usb ⇒ Usb
Returns the value of the usb
attribute.
56085 56086 56087 |
# File 'lib/ovirtsdk4/types.rb', line 56085 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.
56098 56099 56100 56101 56102 56103 |
# File 'lib/ovirtsdk4/types.rb', line 56098 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.
56110 56111 56112 |
# File 'lib/ovirtsdk4/types.rb', line 56110 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.
56123 56124 56125 56126 56127 56128 |
# File 'lib/ovirtsdk4/types.rb', line 56123 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.
56135 56136 56137 |
# File 'lib/ovirtsdk4/types.rb', line 56135 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.
56148 56149 56150 56151 56152 56153 |
# File 'lib/ovirtsdk4/types.rb', line 56148 def virtio_scsi=(value) if value.is_a?(Hash) value = VirtioScsi.new(value) end @virtio_scsi = value end |
#virtio_scsi_multi_queues ⇒ Integer
Returns the value of the virtio_scsi_multi_queues
attribute.
56160 56161 56162 |
# File 'lib/ovirtsdk4/types.rb', line 56160 def virtio_scsi_multi_queues @virtio_scsi_multi_queues end |
#virtio_scsi_multi_queues=(value) ⇒ Object
Sets the value of the virtio_scsi_multi_queues
attribute.
56169 56170 56171 |
# File 'lib/ovirtsdk4/types.rb', line 56169 def virtio_scsi_multi_queues=(value) @virtio_scsi_multi_queues = value end |
#virtio_scsi_multi_queues_enabled ⇒ Boolean
Returns the value of the virtio_scsi_multi_queues_enabled
attribute.
56178 56179 56180 |
# File 'lib/ovirtsdk4/types.rb', line 56178 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.
56187 56188 56189 |
# File 'lib/ovirtsdk4/types.rb', line 56187 def virtio_scsi_multi_queues_enabled=(value) @virtio_scsi_multi_queues_enabled = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
56196 56197 56198 |
# File 'lib/ovirtsdk4/types.rb', line 56196 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.
56209 56210 56211 56212 56213 56214 |
# File 'lib/ovirtsdk4/types.rb', line 56209 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.
56221 56222 56223 |
# File 'lib/ovirtsdk4/types.rb', line 56221 def watchdogs @watchdogs end |
#watchdogs=(list) ⇒ Object
Sets the value of the watchdogs
attribute.
56230 56231 56232 56233 56234 56235 56236 56237 56238 56239 56240 |
# File 'lib/ovirtsdk4/types.rb', line 56230 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 |