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. -
#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. -
#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.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ VmBase
Creates a new instance of the OvirtSDK4::VmBase class.
25282 25283 25284 25285 25286 25287 25288 25289 25290 25291 25292 25293 25294 25295 25296 25297 25298 25299 25300 25301 25302 25303 25304 25305 25306 25307 25308 25309 25310 25311 25312 25313 25314 25315 25316 25317 25318 25319 25320 25321 25322 25323 25324 |
# File 'lib/ovirtsdk4/types.rb', line 25282 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.origin = opts[:origin] self.os = opts[:os] 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] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
25329 25330 25331 25332 25333 25334 25335 25336 25337 25338 25339 25340 25341 25342 25343 25344 25345 25346 25347 25348 25349 25350 25351 25352 25353 25354 25355 25356 25357 25358 25359 25360 25361 25362 25363 25364 25365 25366 25367 25368 25369 25370 25371 |
# File 'lib/ovirtsdk4/types.rb', line 25329 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 && @origin == other.origin && @os == other.os && @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 end |
#bios ⇒ Bios
Returns the value of the bios
attribute.
24216 24217 24218 |
# File 'lib/ovirtsdk4/types.rb', line 24216 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.
24229 24230 24231 24232 24233 24234 |
# File 'lib/ovirtsdk4/types.rb', line 24229 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.
24241 24242 24243 |
# File 'lib/ovirtsdk4/types.rb', line 24241 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.
24254 24255 24256 24257 24258 24259 |
# File 'lib/ovirtsdk4/types.rb', line 24254 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.
24266 24267 24268 |
# File 'lib/ovirtsdk4/types.rb', line 24266 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
24275 24276 24277 |
# File 'lib/ovirtsdk4/types.rb', line 24275 def comment=(value) @comment = value end |
#console ⇒ Console
Returns the value of the console
attribute.
24284 24285 24286 |
# File 'lib/ovirtsdk4/types.rb', line 24284 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.
24297 24298 24299 24300 24301 24302 |
# File 'lib/ovirtsdk4/types.rb', line 24297 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.
24309 24310 24311 |
# File 'lib/ovirtsdk4/types.rb', line 24309 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.
24322 24323 24324 24325 24326 24327 |
# File 'lib/ovirtsdk4/types.rb', line 24322 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.
24334 24335 24336 |
# File 'lib/ovirtsdk4/types.rb', line 24334 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.
24347 24348 24349 24350 24351 24352 |
# File 'lib/ovirtsdk4/types.rb', line 24347 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.
24359 24360 24361 |
# File 'lib/ovirtsdk4/types.rb', line 24359 def cpu_shares @cpu_shares end |
#cpu_shares=(value) ⇒ Object
Sets the value of the cpu_shares
attribute.
24368 24369 24370 |
# File 'lib/ovirtsdk4/types.rb', line 24368 def cpu_shares=(value) @cpu_shares = value end |
#creation_time ⇒ DateTime
Returns the value of the creation_time
attribute.
24377 24378 24379 |
# File 'lib/ovirtsdk4/types.rb', line 24377 def creation_time @creation_time end |
#creation_time=(value) ⇒ Object
Sets the value of the creation_time
attribute.
24386 24387 24388 |
# File 'lib/ovirtsdk4/types.rb', line 24386 def creation_time=(value) @creation_time = value end |
#custom_compatibility_version ⇒ Version
Returns the value of the custom_compatibility_version
attribute.
24395 24396 24397 |
# File 'lib/ovirtsdk4/types.rb', line 24395 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.
24408 24409 24410 24411 24412 24413 |
# File 'lib/ovirtsdk4/types.rb', line 24408 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.
24420 24421 24422 |
# File 'lib/ovirtsdk4/types.rb', line 24420 def custom_cpu_model @custom_cpu_model end |
#custom_cpu_model=(value) ⇒ Object
Sets the value of the custom_cpu_model
attribute.
24429 24430 24431 |
# File 'lib/ovirtsdk4/types.rb', line 24429 def custom_cpu_model=(value) @custom_cpu_model = value end |
#custom_emulated_machine ⇒ String
Returns the value of the custom_emulated_machine
attribute.
24438 24439 24440 |
# File 'lib/ovirtsdk4/types.rb', line 24438 def custom_emulated_machine @custom_emulated_machine end |
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the custom_emulated_machine
attribute.
24447 24448 24449 |
# File 'lib/ovirtsdk4/types.rb', line 24447 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the custom_properties
attribute.
24456 24457 24458 |
# File 'lib/ovirtsdk4/types.rb', line 24456 def custom_properties @custom_properties end |
#custom_properties=(list) ⇒ Object
Sets the value of the custom_properties
attribute.
24465 24466 24467 24468 24469 24470 24471 24472 24473 24474 24475 |
# File 'lib/ovirtsdk4/types.rb', line 24465 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.
24482 24483 24484 |
# File 'lib/ovirtsdk4/types.rb', line 24482 def delete_protected @delete_protected end |
#delete_protected=(value) ⇒ Object
Sets the value of the delete_protected
attribute.
24491 24492 24493 |
# File 'lib/ovirtsdk4/types.rb', line 24491 def delete_protected=(value) @delete_protected = value end |
#description ⇒ String
Returns the value of the description
attribute.
24500 24501 24502 |
# File 'lib/ovirtsdk4/types.rb', line 24500 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
24509 24510 24511 |
# File 'lib/ovirtsdk4/types.rb', line 24509 def description=(value) @description = value end |
#display ⇒ Display
Returns the value of the display
attribute.
24518 24519 24520 |
# File 'lib/ovirtsdk4/types.rb', line 24518 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.
24531 24532 24533 24534 24535 24536 |
# File 'lib/ovirtsdk4/types.rb', line 24531 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.
24543 24544 24545 |
# File 'lib/ovirtsdk4/types.rb', line 24543 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.
24556 24557 24558 24559 24560 24561 |
# File 'lib/ovirtsdk4/types.rb', line 24556 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.
25376 25377 25378 25379 25380 25381 25382 25383 25384 25385 25386 25387 25388 25389 25390 25391 25392 25393 25394 25395 25396 25397 25398 25399 25400 25401 25402 25403 25404 25405 25406 25407 25408 25409 25410 25411 25412 25413 25414 25415 25416 25417 25418 |
# File 'lib/ovirtsdk4/types.rb', line 25376 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 + @origin.hash + @os.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 end |
#high_availability ⇒ HighAvailability
Returns the value of the high_availability
attribute.
24568 24569 24570 |
# File 'lib/ovirtsdk4/types.rb', line 24568 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.
24581 24582 24583 24584 24585 24586 |
# File 'lib/ovirtsdk4/types.rb', line 24581 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.
24593 24594 24595 |
# File 'lib/ovirtsdk4/types.rb', line 24593 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
24602 24603 24604 |
# File 'lib/ovirtsdk4/types.rb', line 24602 def id=(value) @id = value end |
#initialization ⇒ Initialization
Returns the value of the initialization
attribute.
24611 24612 24613 |
# File 'lib/ovirtsdk4/types.rb', line 24611 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.
24624 24625 24626 24627 24628 24629 |
# File 'lib/ovirtsdk4/types.rb', line 24624 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.
24636 24637 24638 |
# File 'lib/ovirtsdk4/types.rb', line 24636 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.
24649 24650 24651 24652 24653 24654 |
# File 'lib/ovirtsdk4/types.rb', line 24649 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.
24661 24662 24663 |
# File 'lib/ovirtsdk4/types.rb', line 24661 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.
24674 24675 24676 24677 24678 24679 |
# File 'lib/ovirtsdk4/types.rb', line 24674 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.
24686 24687 24688 |
# File 'lib/ovirtsdk4/types.rb', line 24686 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.
24699 24700 24701 24702 24703 24704 |
# File 'lib/ovirtsdk4/types.rb', line 24699 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.
24711 24712 24713 |
# File 'lib/ovirtsdk4/types.rb', line 24711 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory
attribute.
24720 24721 24722 |
# File 'lib/ovirtsdk4/types.rb', line 24720 def memory=(value) @memory = value end |
#memory_policy ⇒ MemoryPolicy
Returns the value of the memory_policy
attribute.
24729 24730 24731 |
# File 'lib/ovirtsdk4/types.rb', line 24729 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.
24742 24743 24744 24745 24746 24747 |
# File 'lib/ovirtsdk4/types.rb', line 24742 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.
24754 24755 24756 |
# File 'lib/ovirtsdk4/types.rb', line 24754 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.
24767 24768 24769 24770 24771 24772 |
# File 'lib/ovirtsdk4/types.rb', line 24767 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.
24779 24780 24781 |
# File 'lib/ovirtsdk4/types.rb', line 24779 def migration_downtime @migration_downtime end |
#migration_downtime=(value) ⇒ Object
Sets the value of the migration_downtime
attribute.
24788 24789 24790 |
# File 'lib/ovirtsdk4/types.rb', line 24788 def migration_downtime=(value) @migration_downtime = value end |
#name ⇒ String
Returns the value of the name
attribute.
24797 24798 24799 |
# File 'lib/ovirtsdk4/types.rb', line 24797 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
24806 24807 24808 |
# File 'lib/ovirtsdk4/types.rb', line 24806 def name=(value) @name = value end |
#origin ⇒ String
Returns the value of the origin
attribute.
24815 24816 24817 |
# File 'lib/ovirtsdk4/types.rb', line 24815 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin
attribute.
24824 24825 24826 |
# File 'lib/ovirtsdk4/types.rb', line 24824 def origin=(value) @origin = value end |
#os ⇒ OperatingSystem
Returns the value of the os
attribute.
24833 24834 24835 |
# File 'lib/ovirtsdk4/types.rb', line 24833 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.
24846 24847 24848 24849 24850 24851 |
# File 'lib/ovirtsdk4/types.rb', line 24846 def os=(value) if value.is_a?(Hash) value = OperatingSystem.new(value) end @os = value end |
#quota ⇒ Quota
Returns the value of the quota
attribute.
24858 24859 24860 |
# File 'lib/ovirtsdk4/types.rb', line 24858 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.
24871 24872 24873 24874 24875 24876 |
# File 'lib/ovirtsdk4/types.rb', line 24871 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.
24883 24884 24885 |
# File 'lib/ovirtsdk4/types.rb', line 24883 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.
24896 24897 24898 24899 24900 24901 |
# File 'lib/ovirtsdk4/types.rb', line 24896 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.
24908 24909 24910 |
# File 'lib/ovirtsdk4/types.rb', line 24908 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.
24921 24922 24923 24924 24925 24926 |
# File 'lib/ovirtsdk4/types.rb', line 24921 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.
24933 24934 24935 |
# File 'lib/ovirtsdk4/types.rb', line 24933 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.
24946 24947 24948 24949 24950 24951 |
# File 'lib/ovirtsdk4/types.rb', line 24946 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.
24958 24959 24960 |
# File 'lib/ovirtsdk4/types.rb', line 24958 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled
attribute.
24967 24968 24969 |
# File 'lib/ovirtsdk4/types.rb', line 24967 def soundcard_enabled=(value) @soundcard_enabled = value end |
#sso ⇒ Sso
Returns the value of the sso
attribute.
24976 24977 24978 |
# File 'lib/ovirtsdk4/types.rb', line 24976 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.
24989 24990 24991 24992 24993 24994 |
# File 'lib/ovirtsdk4/types.rb', line 24989 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.
25001 25002 25003 |
# File 'lib/ovirtsdk4/types.rb', line 25001 def start_paused @start_paused end |
#start_paused=(value) ⇒ Object
Sets the value of the start_paused
attribute.
25010 25011 25012 |
# File 'lib/ovirtsdk4/types.rb', line 25010 def start_paused=(value) @start_paused = value end |
#stateless ⇒ Boolean
Returns the value of the stateless
attribute.
25019 25020 25021 |
# File 'lib/ovirtsdk4/types.rb', line 25019 def stateless @stateless end |
#stateless=(value) ⇒ Object
Sets the value of the stateless
attribute.
25028 25029 25030 |
# File 'lib/ovirtsdk4/types.rb', line 25028 def stateless=(value) @stateless = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
25037 25038 25039 |
# File 'lib/ovirtsdk4/types.rb', line 25037 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.
25050 25051 25052 25053 25054 25055 |
# File 'lib/ovirtsdk4/types.rb', line 25050 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.
25062 25063 25064 |
# File 'lib/ovirtsdk4/types.rb', line 25062 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.
25071 25072 25073 |
# File 'lib/ovirtsdk4/types.rb', line 25071 def storage_error_resume_behaviour=(value) @storage_error_resume_behaviour = value end |
#time_zone ⇒ TimeZone
Returns the value of the time_zone
attribute.
25080 25081 25082 |
# File 'lib/ovirtsdk4/types.rb', line 25080 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.
25093 25094 25095 25096 25097 25098 |
# File 'lib/ovirtsdk4/types.rb', line 25093 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.
25105 25106 25107 |
# File 'lib/ovirtsdk4/types.rb', line 25105 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration
attribute.
25114 25115 25116 |
# File 'lib/ovirtsdk4/types.rb', line 25114 def tunnel_migration=(value) @tunnel_migration = value end |
#type ⇒ VmType
Returns the value of the type
attribute.
25123 25124 25125 |
# File 'lib/ovirtsdk4/types.rb', line 25123 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
25132 25133 25134 |
# File 'lib/ovirtsdk4/types.rb', line 25132 def type=(value) @type = value end |
#usb ⇒ Usb
Returns the value of the usb
attribute.
25141 25142 25143 |
# File 'lib/ovirtsdk4/types.rb', line 25141 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.
25154 25155 25156 25157 25158 25159 |
# File 'lib/ovirtsdk4/types.rb', line 25154 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.
25166 25167 25168 |
# File 'lib/ovirtsdk4/types.rb', line 25166 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.
25179 25180 25181 25182 25183 25184 |
# File 'lib/ovirtsdk4/types.rb', line 25179 def virtio_scsi=(value) if value.is_a?(Hash) value = VirtioScsi.new(value) end @virtio_scsi = value end |