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
trueifselfandotherhave the same attributes and values. -
#bios ⇒ Bios
Returns the value of the
biosattribute. -
#bios=(value) ⇒ Object
Sets the value of the
biosattribute. -
#cluster ⇒ Cluster
Returns the value of the
clusterattribute. -
#cluster=(value) ⇒ Object
Sets the value of the
clusterattribute. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#console ⇒ Console
Returns the value of the
consoleattribute. -
#console=(value) ⇒ Object
Sets the value of the
consoleattribute. -
#cpu ⇒ Cpu
Returns the value of the
cpuattribute. -
#cpu=(value) ⇒ Object
Sets the value of the
cpuattribute. -
#cpu_profile ⇒ CpuProfile
Returns the value of the
cpu_profileattribute. -
#cpu_profile=(value) ⇒ Object
Sets the value of the
cpu_profileattribute. -
#cpu_shares ⇒ Integer
Returns the value of the
cpu_sharesattribute. -
#cpu_shares=(value) ⇒ Object
Sets the value of the
cpu_sharesattribute. -
#creation_time ⇒ DateTime
Returns the value of the
creation_timeattribute. -
#creation_time=(value) ⇒ Object
Sets the value of the
creation_timeattribute. -
#custom_compatibility_version ⇒ Version
Returns the value of the
custom_compatibility_versionattribute. -
#custom_compatibility_version=(value) ⇒ Object
Sets the value of the
custom_compatibility_versionattribute. -
#custom_cpu_model ⇒ String
Returns the value of the
custom_cpu_modelattribute. -
#custom_cpu_model=(value) ⇒ Object
Sets the value of the
custom_cpu_modelattribute. -
#custom_emulated_machine ⇒ String
Returns the value of the
custom_emulated_machineattribute. -
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the
custom_emulated_machineattribute. -
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the
custom_propertiesattribute. -
#custom_properties=(list) ⇒ Object
Sets the value of the
custom_propertiesattribute. -
#delete_protected ⇒ Boolean
Returns the value of the
delete_protectedattribute. -
#delete_protected=(value) ⇒ Object
Sets the value of the
delete_protectedattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#display ⇒ Display
Returns the value of the
displayattribute. -
#display=(value) ⇒ Object
Sets the value of the
displayattribute. -
#domain ⇒ Domain
Returns the value of the
domainattribute. -
#domain=(value) ⇒ Object
Sets the value of the
domainattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#high_availability ⇒ HighAvailability
Returns the value of the
high_availabilityattribute. -
#high_availability=(value) ⇒ Object
Sets the value of the
high_availabilityattribute. -
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialization ⇒ Initialization
Returns the value of the
initializationattribute. -
#initialization=(value) ⇒ Object
Sets the value of the
initializationattribute. -
#initialize(opts = {}) ⇒ VmBase
constructor
Creates a new instance of the VmBase class.
-
#io ⇒ Io
Returns the value of the
ioattribute. -
#io=(value) ⇒ Object
Sets the value of the
ioattribute. -
#large_icon ⇒ Icon
Returns the value of the
large_iconattribute. -
#large_icon=(value) ⇒ Object
Sets the value of the
large_iconattribute. -
#lease ⇒ StorageDomainLease
Returns the value of the
leaseattribute. -
#lease=(value) ⇒ Object
Sets the value of the
leaseattribute. -
#memory ⇒ Integer
Returns the value of the
memoryattribute. -
#memory=(value) ⇒ Object
Sets the value of the
memoryattribute. -
#memory_policy ⇒ MemoryPolicy
Returns the value of the
memory_policyattribute. -
#memory_policy=(value) ⇒ Object
Sets the value of the
memory_policyattribute. -
#migration ⇒ MigrationOptions
Returns the value of the
migrationattribute. -
#migration=(value) ⇒ Object
Sets the value of the
migrationattribute. -
#migration_downtime ⇒ Integer
Returns the value of the
migration_downtimeattribute. -
#migration_downtime=(value) ⇒ Object
Sets the value of the
migration_downtimeattribute. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#origin ⇒ String
Returns the value of the
originattribute. -
#origin=(value) ⇒ Object
Sets the value of the
originattribute. -
#os ⇒ OperatingSystem
Returns the value of the
osattribute. -
#os=(value) ⇒ Object
Sets the value of the
osattribute. -
#placement_policy ⇒ VmPlacementPolicy
Returns the value of the
placement_policyattribute. -
#placement_policy=(value) ⇒ Object
Sets the value of the
placement_policyattribute. -
#quota ⇒ Quota
Returns the value of the
quotaattribute. -
#quota=(value) ⇒ Object
Sets the value of the
quotaattribute. -
#rng_device ⇒ RngDevice
Returns the value of the
rng_deviceattribute. -
#rng_device=(value) ⇒ Object
Sets the value of the
rng_deviceattribute. -
#serial_number ⇒ SerialNumber
Returns the value of the
serial_numberattribute. -
#serial_number=(value) ⇒ Object
Sets the value of the
serial_numberattribute. -
#small_icon ⇒ Icon
Returns the value of the
small_iconattribute. -
#small_icon=(value) ⇒ Object
Sets the value of the
small_iconattribute. -
#soundcard_enabled ⇒ Boolean
Returns the value of the
soundcard_enabledattribute. -
#soundcard_enabled=(value) ⇒ Object
Sets the value of the
soundcard_enabledattribute. -
#sso ⇒ Sso
Returns the value of the
ssoattribute. -
#sso=(value) ⇒ Object
Sets the value of the
ssoattribute. -
#start_paused ⇒ Boolean
Returns the value of the
start_pausedattribute. -
#start_paused=(value) ⇒ Object
Sets the value of the
start_pausedattribute. -
#stateless ⇒ Boolean
Returns the value of the
statelessattribute. -
#stateless=(value) ⇒ Object
Sets the value of the
statelessattribute. -
#storage_domain ⇒ StorageDomain
Returns the value of the
storage_domainattribute. -
#storage_domain=(value) ⇒ Object
Sets the value of the
storage_domainattribute. -
#storage_error_resume_behaviour ⇒ VmStorageErrorResumeBehaviour
Returns the value of the
storage_error_resume_behaviourattribute. -
#storage_error_resume_behaviour=(value) ⇒ Object
Sets the value of the
storage_error_resume_behaviourattribute. -
#time_zone ⇒ TimeZone
Returns the value of the
time_zoneattribute. -
#time_zone=(value) ⇒ Object
Sets the value of the
time_zoneattribute. -
#tunnel_migration ⇒ Boolean
Returns the value of the
tunnel_migrationattribute. -
#tunnel_migration=(value) ⇒ Object
Sets the value of the
tunnel_migrationattribute. -
#type ⇒ VmType
Returns the value of the
typeattribute. -
#type=(value) ⇒ Object
Sets the value of the
typeattribute. -
#usb ⇒ Usb
Returns the value of the
usbattribute. -
#usb=(value) ⇒ Object
Sets the value of the
usbattribute. -
#virtio_scsi ⇒ VirtioScsi
Returns the value of the
virtio_scsiattribute. -
#virtio_scsi=(value) ⇒ Object
Sets the value of the
virtio_scsiattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ VmBase
Creates a new instance of the OvirtSDK4::VmBase class.
25433 25434 25435 25436 25437 25438 25439 25440 25441 25442 25443 25444 25445 25446 25447 25448 25449 25450 25451 25452 25453 25454 25455 25456 25457 25458 25459 25460 25461 25462 25463 25464 25465 25466 25467 25468 25469 25470 25471 25472 25473 25474 25475 25476 |
# File 'lib/ovirtsdk4/types.rb', line 25433 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.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] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
25481 25482 25483 25484 25485 25486 25487 25488 25489 25490 25491 25492 25493 25494 25495 25496 25497 25498 25499 25500 25501 25502 25503 25504 25505 25506 25507 25508 25509 25510 25511 25512 25513 25514 25515 25516 25517 25518 25519 25520 25521 25522 25523 25524 |
# File 'lib/ovirtsdk4/types.rb', line 25481 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 && @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 end |
#bios ⇒ Bios
Returns the value of the bios attribute.
24340 24341 24342 |
# File 'lib/ovirtsdk4/types.rb', line 24340 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.
24353 24354 24355 24356 24357 24358 |
# File 'lib/ovirtsdk4/types.rb', line 24353 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.
24365 24366 24367 |
# File 'lib/ovirtsdk4/types.rb', line 24365 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.
24378 24379 24380 24381 24382 24383 |
# File 'lib/ovirtsdk4/types.rb', line 24378 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.
24390 24391 24392 |
# File 'lib/ovirtsdk4/types.rb', line 24390 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
24399 24400 24401 |
# File 'lib/ovirtsdk4/types.rb', line 24399 def comment=(value) @comment = value end |
#console ⇒ Console
Returns the value of the console attribute.
24408 24409 24410 |
# File 'lib/ovirtsdk4/types.rb', line 24408 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.
24421 24422 24423 24424 24425 24426 |
# File 'lib/ovirtsdk4/types.rb', line 24421 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.
24433 24434 24435 |
# File 'lib/ovirtsdk4/types.rb', line 24433 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.
24446 24447 24448 24449 24450 24451 |
# File 'lib/ovirtsdk4/types.rb', line 24446 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.
24458 24459 24460 |
# File 'lib/ovirtsdk4/types.rb', line 24458 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.
24471 24472 24473 24474 24475 24476 |
# File 'lib/ovirtsdk4/types.rb', line 24471 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.
24483 24484 24485 |
# File 'lib/ovirtsdk4/types.rb', line 24483 def cpu_shares @cpu_shares end |
#cpu_shares=(value) ⇒ Object
Sets the value of the cpu_shares attribute.
24492 24493 24494 |
# File 'lib/ovirtsdk4/types.rb', line 24492 def cpu_shares=(value) @cpu_shares = value end |
#creation_time ⇒ DateTime
Returns the value of the creation_time attribute.
24501 24502 24503 |
# File 'lib/ovirtsdk4/types.rb', line 24501 def creation_time @creation_time end |
#creation_time=(value) ⇒ Object
Sets the value of the creation_time attribute.
24510 24511 24512 |
# File 'lib/ovirtsdk4/types.rb', line 24510 def creation_time=(value) @creation_time = value end |
#custom_compatibility_version ⇒ Version
Returns the value of the custom_compatibility_version attribute.
24519 24520 24521 |
# File 'lib/ovirtsdk4/types.rb', line 24519 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.
24532 24533 24534 24535 24536 24537 |
# File 'lib/ovirtsdk4/types.rb', line 24532 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.
24544 24545 24546 |
# File 'lib/ovirtsdk4/types.rb', line 24544 def custom_cpu_model @custom_cpu_model end |
#custom_cpu_model=(value) ⇒ Object
Sets the value of the custom_cpu_model attribute.
24553 24554 24555 |
# File 'lib/ovirtsdk4/types.rb', line 24553 def custom_cpu_model=(value) @custom_cpu_model = value end |
#custom_emulated_machine ⇒ String
Returns the value of the custom_emulated_machine attribute.
24562 24563 24564 |
# File 'lib/ovirtsdk4/types.rb', line 24562 def custom_emulated_machine @custom_emulated_machine end |
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the custom_emulated_machine attribute.
24571 24572 24573 |
# File 'lib/ovirtsdk4/types.rb', line 24571 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the custom_properties attribute.
24580 24581 24582 |
# File 'lib/ovirtsdk4/types.rb', line 24580 def custom_properties @custom_properties end |
#custom_properties=(list) ⇒ Object
Sets the value of the custom_properties attribute.
24589 24590 24591 24592 24593 24594 24595 24596 24597 24598 24599 |
# File 'lib/ovirtsdk4/types.rb', line 24589 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.
24606 24607 24608 |
# File 'lib/ovirtsdk4/types.rb', line 24606 def delete_protected @delete_protected end |
#delete_protected=(value) ⇒ Object
Sets the value of the delete_protected attribute.
24615 24616 24617 |
# File 'lib/ovirtsdk4/types.rb', line 24615 def delete_protected=(value) @delete_protected = value end |
#description ⇒ String
Returns the value of the description attribute.
24624 24625 24626 |
# File 'lib/ovirtsdk4/types.rb', line 24624 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
24633 24634 24635 |
# File 'lib/ovirtsdk4/types.rb', line 24633 def description=(value) @description = value end |
#display ⇒ Display
Returns the value of the display attribute.
24642 24643 24644 |
# File 'lib/ovirtsdk4/types.rb', line 24642 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.
24655 24656 24657 24658 24659 24660 |
# File 'lib/ovirtsdk4/types.rb', line 24655 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.
24667 24668 24669 |
# File 'lib/ovirtsdk4/types.rb', line 24667 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.
24680 24681 24682 24683 24684 24685 |
# File 'lib/ovirtsdk4/types.rb', line 24680 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.
25529 25530 25531 25532 25533 25534 25535 25536 25537 25538 25539 25540 25541 25542 25543 25544 25545 25546 25547 25548 25549 25550 25551 25552 25553 25554 25555 25556 25557 25558 25559 25560 25561 25562 25563 25564 25565 25566 25567 25568 25569 25570 25571 25572 |
# File 'lib/ovirtsdk4/types.rb', line 25529 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 + @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 end |
#high_availability ⇒ HighAvailability
Returns the value of the high_availability attribute.
24692 24693 24694 |
# File 'lib/ovirtsdk4/types.rb', line 24692 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.
24705 24706 24707 24708 24709 24710 |
# File 'lib/ovirtsdk4/types.rb', line 24705 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.
24717 24718 24719 |
# File 'lib/ovirtsdk4/types.rb', line 24717 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
24726 24727 24728 |
# File 'lib/ovirtsdk4/types.rb', line 24726 def id=(value) @id = value end |
#initialization ⇒ Initialization
Returns the value of the initialization attribute.
24735 24736 24737 |
# File 'lib/ovirtsdk4/types.rb', line 24735 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.
24748 24749 24750 24751 24752 24753 |
# File 'lib/ovirtsdk4/types.rb', line 24748 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.
24760 24761 24762 |
# File 'lib/ovirtsdk4/types.rb', line 24760 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.
24773 24774 24775 24776 24777 24778 |
# File 'lib/ovirtsdk4/types.rb', line 24773 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.
24785 24786 24787 |
# File 'lib/ovirtsdk4/types.rb', line 24785 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.
24798 24799 24800 24801 24802 24803 |
# File 'lib/ovirtsdk4/types.rb', line 24798 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.
24810 24811 24812 |
# File 'lib/ovirtsdk4/types.rb', line 24810 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.
24823 24824 24825 24826 24827 24828 |
# File 'lib/ovirtsdk4/types.rb', line 24823 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.
24835 24836 24837 |
# File 'lib/ovirtsdk4/types.rb', line 24835 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory attribute.
24844 24845 24846 |
# File 'lib/ovirtsdk4/types.rb', line 24844 def memory=(value) @memory = value end |
#memory_policy ⇒ MemoryPolicy
Returns the value of the memory_policy attribute.
24853 24854 24855 |
# File 'lib/ovirtsdk4/types.rb', line 24853 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.
24866 24867 24868 24869 24870 24871 |
# File 'lib/ovirtsdk4/types.rb', line 24866 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.
24878 24879 24880 |
# File 'lib/ovirtsdk4/types.rb', line 24878 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.
24891 24892 24893 24894 24895 24896 |
# File 'lib/ovirtsdk4/types.rb', line 24891 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.
24903 24904 24905 |
# File 'lib/ovirtsdk4/types.rb', line 24903 def migration_downtime @migration_downtime end |
#migration_downtime=(value) ⇒ Object
Sets the value of the migration_downtime attribute.
24912 24913 24914 |
# File 'lib/ovirtsdk4/types.rb', line 24912 def migration_downtime=(value) @migration_downtime = value end |
#name ⇒ String
Returns the value of the name attribute.
24921 24922 24923 |
# File 'lib/ovirtsdk4/types.rb', line 24921 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
24930 24931 24932 |
# File 'lib/ovirtsdk4/types.rb', line 24930 def name=(value) @name = value end |
#origin ⇒ String
Returns the value of the origin attribute.
24939 24940 24941 |
# File 'lib/ovirtsdk4/types.rb', line 24939 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin attribute.
24948 24949 24950 |
# File 'lib/ovirtsdk4/types.rb', line 24948 def origin=(value) @origin = value end |
#os ⇒ OperatingSystem
Returns the value of the os attribute.
24957 24958 24959 |
# File 'lib/ovirtsdk4/types.rb', line 24957 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.
24970 24971 24972 24973 24974 24975 |
# File 'lib/ovirtsdk4/types.rb', line 24970 def os=(value) if value.is_a?(Hash) value = .new(value) end @os = value end |
#placement_policy ⇒ VmPlacementPolicy
Returns the value of the placement_policy attribute.
24982 24983 24984 |
# File 'lib/ovirtsdk4/types.rb', line 24982 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.
24995 24996 24997 24998 24999 25000 |
# File 'lib/ovirtsdk4/types.rb', line 24995 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.
25007 25008 25009 |
# File 'lib/ovirtsdk4/types.rb', line 25007 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.
25020 25021 25022 25023 25024 25025 |
# File 'lib/ovirtsdk4/types.rb', line 25020 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.
25032 25033 25034 |
# File 'lib/ovirtsdk4/types.rb', line 25032 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.
25045 25046 25047 25048 25049 25050 |
# File 'lib/ovirtsdk4/types.rb', line 25045 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.
25057 25058 25059 |
# File 'lib/ovirtsdk4/types.rb', line 25057 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.
25070 25071 25072 25073 25074 25075 |
# File 'lib/ovirtsdk4/types.rb', line 25070 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.
25082 25083 25084 |
# File 'lib/ovirtsdk4/types.rb', line 25082 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.
25095 25096 25097 25098 25099 25100 |
# File 'lib/ovirtsdk4/types.rb', line 25095 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.
25107 25108 25109 |
# File 'lib/ovirtsdk4/types.rb', line 25107 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled attribute.
25116 25117 25118 |
# File 'lib/ovirtsdk4/types.rb', line 25116 def soundcard_enabled=(value) @soundcard_enabled = value end |
#sso ⇒ Sso
Returns the value of the sso attribute.
25125 25126 25127 |
# File 'lib/ovirtsdk4/types.rb', line 25125 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.
25138 25139 25140 25141 25142 25143 |
# File 'lib/ovirtsdk4/types.rb', line 25138 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.
25150 25151 25152 |
# File 'lib/ovirtsdk4/types.rb', line 25150 def start_paused @start_paused end |
#start_paused=(value) ⇒ Object
Sets the value of the start_paused attribute.
25159 25160 25161 |
# File 'lib/ovirtsdk4/types.rb', line 25159 def start_paused=(value) @start_paused = value end |
#stateless ⇒ Boolean
Returns the value of the stateless attribute.
25168 25169 25170 |
# File 'lib/ovirtsdk4/types.rb', line 25168 def stateless @stateless end |
#stateless=(value) ⇒ Object
Sets the value of the stateless attribute.
25177 25178 25179 |
# File 'lib/ovirtsdk4/types.rb', line 25177 def stateless=(value) @stateless = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain attribute.
25186 25187 25188 |
# File 'lib/ovirtsdk4/types.rb', line 25186 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.
25199 25200 25201 25202 25203 25204 |
# File 'lib/ovirtsdk4/types.rb', line 25199 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.
25211 25212 25213 |
# File 'lib/ovirtsdk4/types.rb', line 25211 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.
25220 25221 25222 |
# File 'lib/ovirtsdk4/types.rb', line 25220 def storage_error_resume_behaviour=(value) @storage_error_resume_behaviour = value end |
#time_zone ⇒ TimeZone
Returns the value of the time_zone attribute.
25229 25230 25231 |
# File 'lib/ovirtsdk4/types.rb', line 25229 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.
25242 25243 25244 25245 25246 25247 |
# File 'lib/ovirtsdk4/types.rb', line 25242 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.
25254 25255 25256 |
# File 'lib/ovirtsdk4/types.rb', line 25254 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration attribute.
25263 25264 25265 |
# File 'lib/ovirtsdk4/types.rb', line 25263 def tunnel_migration=(value) @tunnel_migration = value end |
#type ⇒ VmType
Returns the value of the type attribute.
25272 25273 25274 |
# File 'lib/ovirtsdk4/types.rb', line 25272 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type attribute.
25281 25282 25283 |
# File 'lib/ovirtsdk4/types.rb', line 25281 def type=(value) @type = value end |
#usb ⇒ Usb
Returns the value of the usb attribute.
25290 25291 25292 |
# File 'lib/ovirtsdk4/types.rb', line 25290 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.
25303 25304 25305 25306 25307 25308 |
# File 'lib/ovirtsdk4/types.rb', line 25303 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.
25315 25316 25317 |
# File 'lib/ovirtsdk4/types.rb', line 25315 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.
25328 25329 25330 25331 25332 25333 |
# File 'lib/ovirtsdk4/types.rb', line 25328 def virtio_scsi=(value) if value.is_a?(Hash) value = VirtioScsi.new(value) end @virtio_scsi = value end |