Class: OvirtSDK4::VmBase
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::VmBase
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
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. -
#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. -
#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. -
#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 = {}) ⇒ VmBase
constructor
Creates a new instance of the VmBase 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. -
#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. -
#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. -
#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. -
#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. -
#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.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ VmBase
Creates a new instance of the OvirtSDK4::VmBase class.
26202 26203 26204 26205 26206 26207 26208 26209 26210 26211 26212 26213 26214 26215 26216 26217 26218 26219 26220 26221 26222 26223 26224 26225 26226 26227 26228 26229 26230 26231 26232 26233 26234 26235 26236 26237 26238 26239 26240 26241 26242 26243 26244 26245 26246 26247 |
# File 'lib/ovirtsdk4/types.rb', line 26202 def initialize(opts = {}) super(opts) self.bios = opts[:bios] self.cluster = opts[:cluster] self.console = opts[:console] self.cpu = opts[:cpu] self.cpu_profile = opts[:cpu_profile] self.cpu_shares = opts[:cpu_shares] self.creation_time = opts[:creation_time] self.custom_compatibility_version = opts[:custom_compatibility_version] self.custom_cpu_model = opts[:custom_cpu_model] self.custom_emulated_machine = opts[:custom_emulated_machine] self.custom_properties = opts[:custom_properties] self.delete_protected = opts[:delete_protected] self.display = opts[:display] self.domain = opts[:domain] self.high_availability = opts[:high_availability] self.initialization = opts[:initialization] self.io = opts[:io] self.large_icon = opts[:large_icon] self.lease = opts[:lease] self.memory = opts[:memory] self.memory_policy = opts[:memory_policy] self.migration = opts[:migration] self.migration_downtime = opts[:migration_downtime] self.multi_queues_enabled = opts[:multi_queues_enabled] self.origin = opts[:origin] self.os = opts[:os] self.placement_policy = opts[:placement_policy] self.quota = opts[:quota] self.rng_device = opts[:rng_device] self.serial_number = opts[:serial_number] self.small_icon = opts[:small_icon] self.soundcard_enabled = opts[:soundcard_enabled] self.sso = opts[:sso] self.start_paused = opts[:start_paused] self.stateless = opts[:stateless] self.storage_domain = opts[:storage_domain] self.storage_error_resume_behaviour = opts[:storage_error_resume_behaviour] self.time_zone = opts[:time_zone] self.tunnel_migration = opts[:tunnel_migration] self.type = opts[:type] self.usb = opts[:usb] self.virtio_scsi = opts[:virtio_scsi] self.virtio_scsi_multi_queues_enabled = opts[:virtio_scsi_multi_queues_enabled] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
26252 26253 26254 26255 26256 26257 26258 26259 26260 26261 26262 26263 26264 26265 26266 26267 26268 26269 26270 26271 26272 26273 26274 26275 26276 26277 26278 26279 26280 26281 26282 26283 26284 26285 26286 26287 26288 26289 26290 26291 26292 26293 26294 26295 26296 26297 |
# File 'lib/ovirtsdk4/types.rb', line 26252 def ==(other) super && @bios == other.bios && @cluster == other.cluster && @console == other.console && @cpu == other.cpu && @cpu_profile == other.cpu_profile && @cpu_shares == other.cpu_shares && @creation_time == other.creation_time && @custom_compatibility_version == other.custom_compatibility_version && @custom_cpu_model == other.custom_cpu_model && @custom_emulated_machine == other.custom_emulated_machine && @custom_properties == other.custom_properties && @delete_protected == other.delete_protected && @display == other.display && @domain == other.domain && @high_availability == other.high_availability && @initialization == other.initialization && @io == other.io && @large_icon == other.large_icon && @lease == other.lease && @memory == other.memory && @memory_policy == other.memory_policy && @migration == other.migration && @migration_downtime == other.migration_downtime && @multi_queues_enabled == other.multi_queues_enabled && @origin == other.origin && @os == other.os && @placement_policy == other.placement_policy && @quota == other.quota && @rng_device == other.rng_device && @serial_number == other.serial_number && @small_icon == other.small_icon && @soundcard_enabled == other.soundcard_enabled && @sso == other.sso && @start_paused == other.start_paused && @stateless == other.stateless && @storage_domain == other.storage_domain && @storage_error_resume_behaviour == other.storage_error_resume_behaviour && @time_zone == other.time_zone && @tunnel_migration == other.tunnel_migration && @type == other.type && @usb == other.usb && @virtio_scsi == other.virtio_scsi && @virtio_scsi_multi_queues_enabled == other.virtio_scsi_multi_queues_enabled end |
#bios ⇒ Bios
Returns the value of the bios
attribute.
25069 25070 25071 |
# File 'lib/ovirtsdk4/types.rb', line 25069 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.
25082 25083 25084 25085 25086 25087 |
# File 'lib/ovirtsdk4/types.rb', line 25082 def bios=(value) if value.is_a?(Hash) value = Bios.new(value) end @bios = value end |
#cluster ⇒ Cluster
Returns the value of the cluster
attribute.
25094 25095 25096 |
# File 'lib/ovirtsdk4/types.rb', line 25094 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.
25107 25108 25109 25110 25111 25112 |
# File 'lib/ovirtsdk4/types.rb', line 25107 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.
25119 25120 25121 |
# File 'lib/ovirtsdk4/types.rb', line 25119 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
25128 25129 25130 |
# File 'lib/ovirtsdk4/types.rb', line 25128 def comment=(value) @comment = value end |
#console ⇒ Console
Returns the value of the console
attribute.
25137 25138 25139 |
# File 'lib/ovirtsdk4/types.rb', line 25137 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.
25150 25151 25152 25153 25154 25155 |
# File 'lib/ovirtsdk4/types.rb', line 25150 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.
25162 25163 25164 |
# File 'lib/ovirtsdk4/types.rb', line 25162 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.
25175 25176 25177 25178 25179 25180 |
# File 'lib/ovirtsdk4/types.rb', line 25175 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.
25187 25188 25189 |
# File 'lib/ovirtsdk4/types.rb', line 25187 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.
25200 25201 25202 25203 25204 25205 |
# File 'lib/ovirtsdk4/types.rb', line 25200 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.
25212 25213 25214 |
# File 'lib/ovirtsdk4/types.rb', line 25212 def cpu_shares @cpu_shares end |
#cpu_shares=(value) ⇒ Object
Sets the value of the cpu_shares
attribute.
25221 25222 25223 |
# File 'lib/ovirtsdk4/types.rb', line 25221 def cpu_shares=(value) @cpu_shares = value end |
#creation_time ⇒ DateTime
Returns the value of the creation_time
attribute.
25230 25231 25232 |
# File 'lib/ovirtsdk4/types.rb', line 25230 def creation_time @creation_time end |
#creation_time=(value) ⇒ Object
Sets the value of the creation_time
attribute.
25239 25240 25241 |
# File 'lib/ovirtsdk4/types.rb', line 25239 def creation_time=(value) @creation_time = value end |
#custom_compatibility_version ⇒ Version
Returns the value of the custom_compatibility_version
attribute.
25248 25249 25250 |
# File 'lib/ovirtsdk4/types.rb', line 25248 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 OvirtSDK4::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.
25261 25262 25263 25264 25265 25266 |
# File 'lib/ovirtsdk4/types.rb', line 25261 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.
25273 25274 25275 |
# File 'lib/ovirtsdk4/types.rb', line 25273 def custom_cpu_model @custom_cpu_model end |
#custom_cpu_model=(value) ⇒ Object
Sets the value of the custom_cpu_model
attribute.
25282 25283 25284 |
# File 'lib/ovirtsdk4/types.rb', line 25282 def custom_cpu_model=(value) @custom_cpu_model = value end |
#custom_emulated_machine ⇒ String
Returns the value of the custom_emulated_machine
attribute.
25291 25292 25293 |
# File 'lib/ovirtsdk4/types.rb', line 25291 def custom_emulated_machine @custom_emulated_machine end |
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the custom_emulated_machine
attribute.
25300 25301 25302 |
# File 'lib/ovirtsdk4/types.rb', line 25300 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the custom_properties
attribute.
25309 25310 25311 |
# File 'lib/ovirtsdk4/types.rb', line 25309 def custom_properties @custom_properties end |
#custom_properties=(list) ⇒ Object
Sets the value of the custom_properties
attribute.
25318 25319 25320 25321 25322 25323 25324 25325 25326 25327 25328 |
# File 'lib/ovirtsdk4/types.rb', line 25318 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.
25335 25336 25337 |
# File 'lib/ovirtsdk4/types.rb', line 25335 def delete_protected @delete_protected end |
#delete_protected=(value) ⇒ Object
Sets the value of the delete_protected
attribute.
25344 25345 25346 |
# File 'lib/ovirtsdk4/types.rb', line 25344 def delete_protected=(value) @delete_protected = value end |
#description ⇒ String
Returns the value of the description
attribute.
25353 25354 25355 |
# File 'lib/ovirtsdk4/types.rb', line 25353 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
25362 25363 25364 |
# File 'lib/ovirtsdk4/types.rb', line 25362 def description=(value) @description = value end |
#display ⇒ Display
Returns the value of the display
attribute.
25371 25372 25373 |
# File 'lib/ovirtsdk4/types.rb', line 25371 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.
25384 25385 25386 25387 25388 25389 |
# File 'lib/ovirtsdk4/types.rb', line 25384 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.
25396 25397 25398 |
# File 'lib/ovirtsdk4/types.rb', line 25396 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.
25409 25410 25411 25412 25413 25414 |
# File 'lib/ovirtsdk4/types.rb', line 25409 def domain=(value) if value.is_a?(Hash) value = Domain.new(value) end @domain = value end |
#hash ⇒ Object
Generates a hash value for this object.
26302 26303 26304 26305 26306 26307 26308 26309 26310 26311 26312 26313 26314 26315 26316 26317 26318 26319 26320 26321 26322 26323 26324 26325 26326 26327 26328 26329 26330 26331 26332 26333 26334 26335 26336 26337 26338 26339 26340 26341 26342 26343 26344 26345 26346 26347 |
# File 'lib/ovirtsdk4/types.rb', line 26302 def hash super + @bios.hash + @cluster.hash + @console.hash + @cpu.hash + @cpu_profile.hash + @cpu_shares.hash + @creation_time.hash + @custom_compatibility_version.hash + @custom_cpu_model.hash + @custom_emulated_machine.hash + @custom_properties.hash + @delete_protected.hash + @display.hash + @domain.hash + @high_availability.hash + @initialization.hash + @io.hash + @large_icon.hash + @lease.hash + @memory.hash + @memory_policy.hash + @migration.hash + @migration_downtime.hash + @multi_queues_enabled.hash + @origin.hash + @os.hash + @placement_policy.hash + @quota.hash + @rng_device.hash + @serial_number.hash + @small_icon.hash + @soundcard_enabled.hash + @sso.hash + @start_paused.hash + @stateless.hash + @storage_domain.hash + @storage_error_resume_behaviour.hash + @time_zone.hash + @tunnel_migration.hash + @type.hash + @usb.hash + @virtio_scsi.hash + @virtio_scsi_multi_queues_enabled.hash end |
#high_availability ⇒ HighAvailability
Returns the value of the high_availability
attribute.
25421 25422 25423 |
# File 'lib/ovirtsdk4/types.rb', line 25421 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.
25434 25435 25436 25437 25438 25439 |
# File 'lib/ovirtsdk4/types.rb', line 25434 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.
25446 25447 25448 |
# File 'lib/ovirtsdk4/types.rb', line 25446 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
25455 25456 25457 |
# File 'lib/ovirtsdk4/types.rb', line 25455 def id=(value) @id = value end |
#initialization ⇒ Initialization
Returns the value of the initialization
attribute.
25464 25465 25466 |
# File 'lib/ovirtsdk4/types.rb', line 25464 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.
25477 25478 25479 25480 25481 25482 |
# File 'lib/ovirtsdk4/types.rb', line 25477 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.
25489 25490 25491 |
# File 'lib/ovirtsdk4/types.rb', line 25489 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.
25502 25503 25504 25505 25506 25507 |
# File 'lib/ovirtsdk4/types.rb', line 25502 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.
25514 25515 25516 |
# File 'lib/ovirtsdk4/types.rb', line 25514 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.
25527 25528 25529 25530 25531 25532 |
# File 'lib/ovirtsdk4/types.rb', line 25527 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.
25539 25540 25541 |
# File 'lib/ovirtsdk4/types.rb', line 25539 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.
25552 25553 25554 25555 25556 25557 |
# File 'lib/ovirtsdk4/types.rb', line 25552 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.
25564 25565 25566 |
# File 'lib/ovirtsdk4/types.rb', line 25564 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory
attribute.
25573 25574 25575 |
# File 'lib/ovirtsdk4/types.rb', line 25573 def memory=(value) @memory = value end |
#memory_policy ⇒ MemoryPolicy
Returns the value of the memory_policy
attribute.
25582 25583 25584 |
# File 'lib/ovirtsdk4/types.rb', line 25582 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.
25595 25596 25597 25598 25599 25600 |
# File 'lib/ovirtsdk4/types.rb', line 25595 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.
25607 25608 25609 |
# File 'lib/ovirtsdk4/types.rb', line 25607 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.
25620 25621 25622 25623 25624 25625 |
# File 'lib/ovirtsdk4/types.rb', line 25620 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.
25632 25633 25634 |
# File 'lib/ovirtsdk4/types.rb', line 25632 def migration_downtime @migration_downtime end |
#migration_downtime=(value) ⇒ Object
Sets the value of the migration_downtime
attribute.
25641 25642 25643 |
# File 'lib/ovirtsdk4/types.rb', line 25641 def migration_downtime=(value) @migration_downtime = value end |
#multi_queues_enabled ⇒ Boolean
Returns the value of the multi_queues_enabled
attribute.
25650 25651 25652 |
# File 'lib/ovirtsdk4/types.rb', line 25650 def multi_queues_enabled @multi_queues_enabled end |
#multi_queues_enabled=(value) ⇒ Object
Sets the value of the multi_queues_enabled
attribute.
25659 25660 25661 |
# File 'lib/ovirtsdk4/types.rb', line 25659 def multi_queues_enabled=(value) @multi_queues_enabled = value end |
#name ⇒ String
Returns the value of the name
attribute.
25668 25669 25670 |
# File 'lib/ovirtsdk4/types.rb', line 25668 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
25677 25678 25679 |
# File 'lib/ovirtsdk4/types.rb', line 25677 def name=(value) @name = value end |
#origin ⇒ String
Returns the value of the origin
attribute.
25686 25687 25688 |
# File 'lib/ovirtsdk4/types.rb', line 25686 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin
attribute.
25695 25696 25697 |
# File 'lib/ovirtsdk4/types.rb', line 25695 def origin=(value) @origin = value end |
#os ⇒ OperatingSystem
Returns the value of the os
attribute.
25704 25705 25706 |
# File 'lib/ovirtsdk4/types.rb', line 25704 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.
25717 25718 25719 25720 25721 25722 |
# File 'lib/ovirtsdk4/types.rb', line 25717 def os=(value) if value.is_a?(Hash) value = OperatingSystem.new(value) end @os = value end |
#placement_policy ⇒ VmPlacementPolicy
Returns the value of the placement_policy
attribute.
25729 25730 25731 |
# File 'lib/ovirtsdk4/types.rb', line 25729 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 OvirtSDK4::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.
25742 25743 25744 25745 25746 25747 |
# File 'lib/ovirtsdk4/types.rb', line 25742 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.
25754 25755 25756 |
# File 'lib/ovirtsdk4/types.rb', line 25754 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.
25767 25768 25769 25770 25771 25772 |
# File 'lib/ovirtsdk4/types.rb', line 25767 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.
25779 25780 25781 |
# File 'lib/ovirtsdk4/types.rb', line 25779 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.
25792 25793 25794 25795 25796 25797 |
# File 'lib/ovirtsdk4/types.rb', line 25792 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.
25804 25805 25806 |
# File 'lib/ovirtsdk4/types.rb', line 25804 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.
25817 25818 25819 25820 25821 25822 |
# File 'lib/ovirtsdk4/types.rb', line 25817 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.
25829 25830 25831 |
# File 'lib/ovirtsdk4/types.rb', line 25829 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.
25842 25843 25844 25845 25846 25847 |
# File 'lib/ovirtsdk4/types.rb', line 25842 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.
25854 25855 25856 |
# File 'lib/ovirtsdk4/types.rb', line 25854 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled
attribute.
25863 25864 25865 |
# File 'lib/ovirtsdk4/types.rb', line 25863 def soundcard_enabled=(value) @soundcard_enabled = value end |
#sso ⇒ Sso
Returns the value of the sso
attribute.
25872 25873 25874 |
# File 'lib/ovirtsdk4/types.rb', line 25872 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.
25885 25886 25887 25888 25889 25890 |
# File 'lib/ovirtsdk4/types.rb', line 25885 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.
25897 25898 25899 |
# File 'lib/ovirtsdk4/types.rb', line 25897 def start_paused @start_paused end |
#start_paused=(value) ⇒ Object
Sets the value of the start_paused
attribute.
25906 25907 25908 |
# File 'lib/ovirtsdk4/types.rb', line 25906 def start_paused=(value) @start_paused = value end |
#stateless ⇒ Boolean
Returns the value of the stateless
attribute.
25915 25916 25917 |
# File 'lib/ovirtsdk4/types.rb', line 25915 def stateless @stateless end |
#stateless=(value) ⇒ Object
Sets the value of the stateless
attribute.
25924 25925 25926 |
# File 'lib/ovirtsdk4/types.rb', line 25924 def stateless=(value) @stateless = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
25933 25934 25935 |
# File 'lib/ovirtsdk4/types.rb', line 25933 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.
25946 25947 25948 25949 25950 25951 |
# File 'lib/ovirtsdk4/types.rb', line 25946 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.
25958 25959 25960 |
# File 'lib/ovirtsdk4/types.rb', line 25958 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.
25967 25968 25969 |
# File 'lib/ovirtsdk4/types.rb', line 25967 def storage_error_resume_behaviour=(value) @storage_error_resume_behaviour = value end |
#time_zone ⇒ TimeZone
Returns the value of the time_zone
attribute.
25976 25977 25978 |
# File 'lib/ovirtsdk4/types.rb', line 25976 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.
25989 25990 25991 25992 25993 25994 |
# File 'lib/ovirtsdk4/types.rb', line 25989 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.
26001 26002 26003 |
# File 'lib/ovirtsdk4/types.rb', line 26001 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration
attribute.
26010 26011 26012 |
# File 'lib/ovirtsdk4/types.rb', line 26010 def tunnel_migration=(value) @tunnel_migration = value end |
#type ⇒ VmType
Returns the value of the type
attribute.
26019 26020 26021 |
# File 'lib/ovirtsdk4/types.rb', line 26019 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
26028 26029 26030 |
# File 'lib/ovirtsdk4/types.rb', line 26028 def type=(value) @type = value end |
#usb ⇒ Usb
Returns the value of the usb
attribute.
26037 26038 26039 |
# File 'lib/ovirtsdk4/types.rb', line 26037 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.
26050 26051 26052 26053 26054 26055 |
# File 'lib/ovirtsdk4/types.rb', line 26050 def usb=(value) if value.is_a?(Hash) value = Usb.new(value) end @usb = value end |
#virtio_scsi ⇒ VirtioScsi
Returns the value of the virtio_scsi
attribute.
26062 26063 26064 |
# File 'lib/ovirtsdk4/types.rb', line 26062 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 OvirtSDK4::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.
26075 26076 26077 26078 26079 26080 |
# File 'lib/ovirtsdk4/types.rb', line 26075 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.
26087 26088 26089 |
# File 'lib/ovirtsdk4/types.rb', line 26087 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.
26096 26097 26098 |
# File 'lib/ovirtsdk4/types.rb', line 26096 def virtio_scsi_multi_queues_enabled=(value) @virtio_scsi_multi_queues_enabled = value end |