Class: OvirtSDK4::InstanceType
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#bios ⇒ Bios
Returns the value of the
bios
attribute. -
#bios=(value) ⇒ Object
Sets the value of the
bios
attribute. -
#cdroms ⇒ Array<Cdrom>
Returns the value of the
cdroms
attribute. -
#cdroms=(list) ⇒ Object
Sets the value of the
cdroms
attribute. -
#cluster ⇒ Cluster
Returns the value of the
cluster
attribute. -
#cluster=(value) ⇒ Object
Sets the value of the
cluster
attribute. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#console ⇒ Console
Returns the value of the
console
attribute. -
#console=(value) ⇒ Object
Sets the value of the
console
attribute. -
#cpu ⇒ Cpu
Returns the value of the
cpu
attribute. -
#cpu=(value) ⇒ Object
Sets the value of the
cpu
attribute. -
#cpu_profile ⇒ CpuProfile
Returns the value of the
cpu_profile
attribute. -
#cpu_profile=(value) ⇒ Object
Sets the value of the
cpu_profile
attribute. -
#cpu_shares ⇒ Integer
Returns the value of the
cpu_shares
attribute. -
#cpu_shares=(value) ⇒ Object
Sets the value of the
cpu_shares
attribute. -
#creation_time ⇒ DateTime
Returns the value of the
creation_time
attribute. -
#creation_time=(value) ⇒ Object
Sets the value of the
creation_time
attribute. -
#custom_compatibility_version ⇒ Version
Returns the value of the
custom_compatibility_version
attribute. -
#custom_compatibility_version=(value) ⇒ Object
Sets the value of the
custom_compatibility_version
attribute. -
#custom_cpu_model ⇒ String
Returns the value of the
custom_cpu_model
attribute. -
#custom_cpu_model=(value) ⇒ Object
Sets the value of the
custom_cpu_model
attribute. -
#custom_emulated_machine ⇒ String
Returns the value of the
custom_emulated_machine
attribute. -
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the
custom_emulated_machine
attribute. -
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the
custom_properties
attribute. -
#custom_properties=(list) ⇒ Object
Sets the value of the
custom_properties
attribute. -
#delete_protected ⇒ Boolean
Returns the value of the
delete_protected
attribute. -
#delete_protected=(value) ⇒ Object
Sets the value of the
delete_protected
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the
disk_attachments
attribute. -
#disk_attachments=(list) ⇒ Object
Sets the value of the
disk_attachments
attribute. -
#display ⇒ Display
Returns the value of the
display
attribute. -
#display=(value) ⇒ Object
Sets the value of the
display
attribute. -
#domain ⇒ Domain
Returns the value of the
domain
attribute. -
#domain=(value) ⇒ Object
Sets the value of the
domain
attribute. -
#graphics_consoles ⇒ Array<GraphicsConsole>
Returns the value of the
graphics_consoles
attribute. -
#graphics_consoles=(list) ⇒ Object
Sets the value of the
graphics_consoles
attribute. -
#high_availability ⇒ HighAvailability
Returns the value of the
high_availability
attribute. -
#high_availability=(value) ⇒ Object
Sets the value of the
high_availability
attribute. -
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialization ⇒ Initialization
Returns the value of the
initialization
attribute. -
#initialization=(value) ⇒ Object
Sets the value of the
initialization
attribute. -
#initialize(opts = {}) ⇒ InstanceType
constructor
Creates a new instance of the InstanceType class.
-
#io ⇒ Io
Returns the value of the
io
attribute. -
#io=(value) ⇒ Object
Sets the value of the
io
attribute. -
#large_icon ⇒ Icon
Returns the value of the
large_icon
attribute. -
#large_icon=(value) ⇒ Object
Sets the value of the
large_icon
attribute. -
#lease ⇒ StorageDomainLease
Returns the value of the
lease
attribute. -
#lease=(value) ⇒ Object
Sets the value of the
lease
attribute. -
#memory ⇒ Integer
Returns the value of the
memory
attribute. -
#memory=(value) ⇒ Object
Sets the value of the
memory
attribute. -
#memory_policy ⇒ MemoryPolicy
Returns the value of the
memory_policy
attribute. -
#memory_policy=(value) ⇒ Object
Sets the value of the
memory_policy
attribute. -
#migration ⇒ MigrationOptions
Returns the value of the
migration
attribute. -
#migration=(value) ⇒ Object
Sets the value of the
migration
attribute. -
#migration_downtime ⇒ Integer
Returns the value of the
migration_downtime
attribute. -
#migration_downtime=(value) ⇒ Object
Sets the value of the
migration_downtime
attribute. -
#multi_queues_enabled ⇒ Boolean
Returns the value of the
multi_queues_enabled
attribute. -
#multi_queues_enabled=(value) ⇒ Object
Sets the value of the
multi_queues_enabled
attribute. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#nics ⇒ Array<Nic>
Returns the value of the
nics
attribute. -
#nics=(list) ⇒ Object
Sets the value of the
nics
attribute. -
#origin ⇒ String
Returns the value of the
origin
attribute. -
#origin=(value) ⇒ Object
Sets the value of the
origin
attribute. -
#os ⇒ OperatingSystem
Returns the value of the
os
attribute. -
#os=(value) ⇒ Object
Sets the value of the
os
attribute. -
#permissions ⇒ Array<Permission>
Returns the value of the
permissions
attribute. -
#permissions=(list) ⇒ Object
Sets the value of the
permissions
attribute. -
#placement_policy ⇒ VmPlacementPolicy
Returns the value of the
placement_policy
attribute. -
#placement_policy=(value) ⇒ Object
Sets the value of the
placement_policy
attribute. -
#quota ⇒ Quota
Returns the value of the
quota
attribute. -
#quota=(value) ⇒ Object
Sets the value of the
quota
attribute. -
#rng_device ⇒ RngDevice
Returns the value of the
rng_device
attribute. -
#rng_device=(value) ⇒ Object
Sets the value of the
rng_device
attribute. -
#serial_number ⇒ SerialNumber
Returns the value of the
serial_number
attribute. -
#serial_number=(value) ⇒ Object
Sets the value of the
serial_number
attribute. -
#small_icon ⇒ Icon
Returns the value of the
small_icon
attribute. -
#small_icon=(value) ⇒ Object
Sets the value of the
small_icon
attribute. -
#soundcard_enabled ⇒ Boolean
Returns the value of the
soundcard_enabled
attribute. -
#soundcard_enabled=(value) ⇒ Object
Sets the value of the
soundcard_enabled
attribute. -
#sso ⇒ Sso
Returns the value of the
sso
attribute. -
#sso=(value) ⇒ Object
Sets the value of the
sso
attribute. -
#start_paused ⇒ Boolean
Returns the value of the
start_paused
attribute. -
#start_paused=(value) ⇒ Object
Sets the value of the
start_paused
attribute. -
#stateless ⇒ Boolean
Returns the value of the
stateless
attribute. -
#stateless=(value) ⇒ Object
Sets the value of the
stateless
attribute. -
#status ⇒ TemplateStatus
Returns the value of the
status
attribute. -
#status=(value) ⇒ Object
Sets the value of the
status
attribute. -
#storage_domain ⇒ StorageDomain
Returns the value of the
storage_domain
attribute. -
#storage_domain=(value) ⇒ Object
Sets the value of the
storage_domain
attribute. -
#storage_error_resume_behaviour ⇒ VmStorageErrorResumeBehaviour
Returns the value of the
storage_error_resume_behaviour
attribute. -
#storage_error_resume_behaviour=(value) ⇒ Object
Sets the value of the
storage_error_resume_behaviour
attribute. -
#tags ⇒ Array<Tag>
Returns the value of the
tags
attribute. -
#tags=(list) ⇒ Object
Sets the value of the
tags
attribute. -
#time_zone ⇒ TimeZone
Returns the value of the
time_zone
attribute. -
#time_zone=(value) ⇒ Object
Sets the value of the
time_zone
attribute. -
#tunnel_migration ⇒ Boolean
Returns the value of the
tunnel_migration
attribute. -
#tunnel_migration=(value) ⇒ Object
Sets the value of the
tunnel_migration
attribute. -
#type ⇒ VmType
Returns the value of the
type
attribute. -
#type=(value) ⇒ Object
Sets the value of the
type
attribute. -
#usb ⇒ Usb
Returns the value of the
usb
attribute. -
#usb=(value) ⇒ Object
Sets the value of the
usb
attribute. -
#version ⇒ TemplateVersion
Returns the value of the
version
attribute. -
#version=(value) ⇒ Object
Sets the value of the
version
attribute. -
#virtio_scsi ⇒ VirtioScsi
Returns the value of the
virtio_scsi
attribute. -
#virtio_scsi=(value) ⇒ Object
Sets the value of the
virtio_scsi
attribute. -
#vm ⇒ Vm
Returns the value of the
vm
attribute. -
#vm=(value) ⇒ Object
Sets the value of the
vm
attribute. -
#watchdogs ⇒ Array<Watchdog>
Returns the value of the
watchdogs
attribute. -
#watchdogs=(list) ⇒ Object
Sets the value of the
watchdogs
attribute.
Methods inherited from Template
Methods inherited from VmBase
Methods inherited from Identified
Methods inherited from Struct
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ InstanceType
Creates a new instance of the OvirtSDK4::InstanceType class.
52889 52890 52891 |
# File 'lib/ovirtsdk4/types.rb', line 52889 def initialize(opts = {}) super(opts) end |
Instance Method Details
#bios ⇒ Bios
Returns the value of the bios
attribute.
51506 51507 51508 |
# File 'lib/ovirtsdk4/types.rb', line 51506 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.
51519 51520 51521 51522 51523 51524 |
# File 'lib/ovirtsdk4/types.rb', line 51519 def bios=(value) if value.is_a?(Hash) value = Bios.new(value) end @bios = value end |
#cdroms ⇒ Array<Cdrom>
Returns the value of the cdroms
attribute.
51531 51532 51533 |
# File 'lib/ovirtsdk4/types.rb', line 51531 def cdroms @cdroms end |
#cdroms=(list) ⇒ Object
Sets the value of the cdroms
attribute.
51540 51541 51542 51543 51544 51545 51546 51547 51548 51549 51550 |
# File 'lib/ovirtsdk4/types.rb', line 51540 def cdroms=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Cdrom.new(value) end end end @cdroms = list end |
#cluster ⇒ Cluster
Returns the value of the cluster
attribute.
51557 51558 51559 |
# File 'lib/ovirtsdk4/types.rb', line 51557 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.
51570 51571 51572 51573 51574 51575 |
# File 'lib/ovirtsdk4/types.rb', line 51570 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.
51582 51583 51584 |
# File 'lib/ovirtsdk4/types.rb', line 51582 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
51591 51592 51593 |
# File 'lib/ovirtsdk4/types.rb', line 51591 def comment=(value) @comment = value end |
#console ⇒ Console
Returns the value of the console
attribute.
51600 51601 51602 |
# File 'lib/ovirtsdk4/types.rb', line 51600 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.
51613 51614 51615 51616 51617 51618 |
# File 'lib/ovirtsdk4/types.rb', line 51613 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.
51625 51626 51627 |
# File 'lib/ovirtsdk4/types.rb', line 51625 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.
51638 51639 51640 51641 51642 51643 |
# File 'lib/ovirtsdk4/types.rb', line 51638 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.
51650 51651 51652 |
# File 'lib/ovirtsdk4/types.rb', line 51650 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.
51663 51664 51665 51666 51667 51668 |
# File 'lib/ovirtsdk4/types.rb', line 51663 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.
51675 51676 51677 |
# File 'lib/ovirtsdk4/types.rb', line 51675 def cpu_shares @cpu_shares end |
#cpu_shares=(value) ⇒ Object
Sets the value of the cpu_shares
attribute.
51684 51685 51686 |
# File 'lib/ovirtsdk4/types.rb', line 51684 def cpu_shares=(value) @cpu_shares = value end |
#creation_time ⇒ DateTime
Returns the value of the creation_time
attribute.
51693 51694 51695 |
# File 'lib/ovirtsdk4/types.rb', line 51693 def creation_time @creation_time end |
#creation_time=(value) ⇒ Object
Sets the value of the creation_time
attribute.
51702 51703 51704 |
# File 'lib/ovirtsdk4/types.rb', line 51702 def creation_time=(value) @creation_time = value end |
#custom_compatibility_version ⇒ Version
Returns the value of the custom_compatibility_version
attribute.
51711 51712 51713 |
# File 'lib/ovirtsdk4/types.rb', line 51711 def custom_compatibility_version @custom_compatibility_version end |
#custom_compatibility_version=(value) ⇒ Object
Sets the value of the custom_compatibility_version
attribute.
The value
parameter can be an instance of Version or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
51724 51725 51726 51727 51728 51729 |
# File 'lib/ovirtsdk4/types.rb', line 51724 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.
51736 51737 51738 |
# File 'lib/ovirtsdk4/types.rb', line 51736 def custom_cpu_model @custom_cpu_model end |
#custom_cpu_model=(value) ⇒ Object
Sets the value of the custom_cpu_model
attribute.
51745 51746 51747 |
# File 'lib/ovirtsdk4/types.rb', line 51745 def custom_cpu_model=(value) @custom_cpu_model = value end |
#custom_emulated_machine ⇒ String
Returns the value of the custom_emulated_machine
attribute.
51754 51755 51756 |
# File 'lib/ovirtsdk4/types.rb', line 51754 def custom_emulated_machine @custom_emulated_machine end |
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the custom_emulated_machine
attribute.
51763 51764 51765 |
# File 'lib/ovirtsdk4/types.rb', line 51763 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the custom_properties
attribute.
51772 51773 51774 |
# File 'lib/ovirtsdk4/types.rb', line 51772 def custom_properties @custom_properties end |
#custom_properties=(list) ⇒ Object
Sets the value of the custom_properties
attribute.
51781 51782 51783 51784 51785 51786 51787 51788 51789 51790 51791 |
# File 'lib/ovirtsdk4/types.rb', line 51781 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.
51798 51799 51800 |
# File 'lib/ovirtsdk4/types.rb', line 51798 def delete_protected @delete_protected end |
#delete_protected=(value) ⇒ Object
Sets the value of the delete_protected
attribute.
51807 51808 51809 |
# File 'lib/ovirtsdk4/types.rb', line 51807 def delete_protected=(value) @delete_protected = value end |
#description ⇒ String
Returns the value of the description
attribute.
51816 51817 51818 |
# File 'lib/ovirtsdk4/types.rb', line 51816 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
51825 51826 51827 |
# File 'lib/ovirtsdk4/types.rb', line 51825 def description=(value) @description = value end |
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the disk_attachments
attribute.
51834 51835 51836 |
# File 'lib/ovirtsdk4/types.rb', line 51834 def end |
#disk_attachments=(list) ⇒ Object
Sets the value of the disk_attachments
attribute.
51843 51844 51845 51846 51847 51848 51849 51850 51851 51852 51853 |
# File 'lib/ovirtsdk4/types.rb', line 51843 def (list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = DiskAttachment.new(value) end end end = list end |
#display ⇒ Display
Returns the value of the display
attribute.
51860 51861 51862 |
# File 'lib/ovirtsdk4/types.rb', line 51860 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.
51873 51874 51875 51876 51877 51878 |
# File 'lib/ovirtsdk4/types.rb', line 51873 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.
51885 51886 51887 |
# File 'lib/ovirtsdk4/types.rb', line 51885 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.
51898 51899 51900 51901 51902 51903 |
# File 'lib/ovirtsdk4/types.rb', line 51898 def domain=(value) if value.is_a?(Hash) value = Domain.new(value) end @domain = value end |
#graphics_consoles ⇒ Array<GraphicsConsole>
Returns the value of the graphics_consoles
attribute.
51910 51911 51912 |
# File 'lib/ovirtsdk4/types.rb', line 51910 def graphics_consoles @graphics_consoles end |
#graphics_consoles=(list) ⇒ Object
Sets the value of the graphics_consoles
attribute.
51919 51920 51921 51922 51923 51924 51925 51926 51927 51928 51929 |
# File 'lib/ovirtsdk4/types.rb', line 51919 def graphics_consoles=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = GraphicsConsole.new(value) end end end @graphics_consoles = list end |
#high_availability ⇒ HighAvailability
Returns the value of the high_availability
attribute.
51936 51937 51938 |
# File 'lib/ovirtsdk4/types.rb', line 51936 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.
51949 51950 51951 51952 51953 51954 |
# File 'lib/ovirtsdk4/types.rb', line 51949 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.
51961 51962 51963 |
# File 'lib/ovirtsdk4/types.rb', line 51961 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
51970 51971 51972 |
# File 'lib/ovirtsdk4/types.rb', line 51970 def id=(value) @id = value end |
#initialization ⇒ Initialization
Returns the value of the initialization
attribute.
51979 51980 51981 |
# File 'lib/ovirtsdk4/types.rb', line 51979 def initialization @initialization end |
#initialization=(value) ⇒ Object
Sets the value of the initialization
attribute.
The value
parameter can be an instance of OvirtSDK4::Initialization or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
51992 51993 51994 51995 51996 51997 |
# File 'lib/ovirtsdk4/types.rb', line 51992 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.
52004 52005 52006 |
# File 'lib/ovirtsdk4/types.rb', line 52004 def io @io end |
#io=(value) ⇒ Object
Sets the value of the io
attribute.
The value
parameter can be an instance of OvirtSDK4::Io or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
52017 52018 52019 52020 52021 52022 |
# File 'lib/ovirtsdk4/types.rb', line 52017 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.
52029 52030 52031 |
# File 'lib/ovirtsdk4/types.rb', line 52029 def large_icon @large_icon end |
#large_icon=(value) ⇒ Object
Sets the value of the large_icon
attribute.
The value
parameter can be an instance of OvirtSDK4::Icon or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
52042 52043 52044 52045 52046 52047 |
# File 'lib/ovirtsdk4/types.rb', line 52042 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.
52054 52055 52056 |
# File 'lib/ovirtsdk4/types.rb', line 52054 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.
52067 52068 52069 52070 52071 52072 |
# File 'lib/ovirtsdk4/types.rb', line 52067 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.
52079 52080 52081 |
# File 'lib/ovirtsdk4/types.rb', line 52079 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory
attribute.
52088 52089 52090 |
# File 'lib/ovirtsdk4/types.rb', line 52088 def memory=(value) @memory = value end |
#memory_policy ⇒ MemoryPolicy
Returns the value of the memory_policy
attribute.
52097 52098 52099 |
# File 'lib/ovirtsdk4/types.rb', line 52097 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.
52110 52111 52112 52113 52114 52115 |
# File 'lib/ovirtsdk4/types.rb', line 52110 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.
52122 52123 52124 |
# File 'lib/ovirtsdk4/types.rb', line 52122 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.
52135 52136 52137 52138 52139 52140 |
# File 'lib/ovirtsdk4/types.rb', line 52135 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.
52147 52148 52149 |
# File 'lib/ovirtsdk4/types.rb', line 52147 def migration_downtime @migration_downtime end |
#migration_downtime=(value) ⇒ Object
Sets the value of the migration_downtime
attribute.
52156 52157 52158 |
# File 'lib/ovirtsdk4/types.rb', line 52156 def migration_downtime=(value) @migration_downtime = value end |
#multi_queues_enabled ⇒ Boolean
Returns the value of the multi_queues_enabled
attribute.
52165 52166 52167 |
# File 'lib/ovirtsdk4/types.rb', line 52165 def multi_queues_enabled @multi_queues_enabled end |
#multi_queues_enabled=(value) ⇒ Object
Sets the value of the multi_queues_enabled
attribute.
52174 52175 52176 |
# File 'lib/ovirtsdk4/types.rb', line 52174 def multi_queues_enabled=(value) @multi_queues_enabled = value end |
#name ⇒ String
Returns the value of the name
attribute.
52183 52184 52185 |
# File 'lib/ovirtsdk4/types.rb', line 52183 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
52192 52193 52194 |
# File 'lib/ovirtsdk4/types.rb', line 52192 def name=(value) @name = value end |
#nics ⇒ Array<Nic>
Returns the value of the nics
attribute.
52201 52202 52203 |
# File 'lib/ovirtsdk4/types.rb', line 52201 def nics @nics end |
#nics=(list) ⇒ Object
Sets the value of the nics
attribute.
52210 52211 52212 52213 52214 52215 52216 52217 52218 52219 52220 |
# File 'lib/ovirtsdk4/types.rb', line 52210 def nics=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Nic.new(value) end end end @nics = list end |
#origin ⇒ String
Returns the value of the origin
attribute.
52227 52228 52229 |
# File 'lib/ovirtsdk4/types.rb', line 52227 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin
attribute.
52236 52237 52238 |
# File 'lib/ovirtsdk4/types.rb', line 52236 def origin=(value) @origin = value end |
#os ⇒ OperatingSystem
Returns the value of the os
attribute.
52245 52246 52247 |
# File 'lib/ovirtsdk4/types.rb', line 52245 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.
52258 52259 52260 52261 52262 52263 |
# File 'lib/ovirtsdk4/types.rb', line 52258 def os=(value) if value.is_a?(Hash) value = .new(value) end @os = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions
attribute.
52270 52271 52272 |
# File 'lib/ovirtsdk4/types.rb', line 52270 def end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
52279 52280 52281 52282 52283 52284 52285 52286 52287 52288 52289 |
# File 'lib/ovirtsdk4/types.rb', line 52279 def (list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Permission.new(value) end end end = list end |
#placement_policy ⇒ VmPlacementPolicy
Returns the value of the placement_policy
attribute.
52296 52297 52298 |
# File 'lib/ovirtsdk4/types.rb', line 52296 def placement_policy @placement_policy end |
#placement_policy=(value) ⇒ Object
Sets the value of the placement_policy
attribute.
The value
parameter can be an instance of VmPlacementPolicy or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
52309 52310 52311 52312 52313 52314 |
# File 'lib/ovirtsdk4/types.rb', line 52309 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.
52321 52322 52323 |
# File 'lib/ovirtsdk4/types.rb', line 52321 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.
52334 52335 52336 52337 52338 52339 |
# File 'lib/ovirtsdk4/types.rb', line 52334 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.
52346 52347 52348 |
# File 'lib/ovirtsdk4/types.rb', line 52346 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.
52359 52360 52361 52362 52363 52364 |
# File 'lib/ovirtsdk4/types.rb', line 52359 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.
52371 52372 52373 |
# File 'lib/ovirtsdk4/types.rb', line 52371 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.
52384 52385 52386 52387 52388 52389 |
# File 'lib/ovirtsdk4/types.rb', line 52384 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.
52396 52397 52398 |
# File 'lib/ovirtsdk4/types.rb', line 52396 def small_icon @small_icon end |
#small_icon=(value) ⇒ Object
Sets the value of the small_icon
attribute.
The value
parameter can be an instance of OvirtSDK4::Icon or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
52409 52410 52411 52412 52413 52414 |
# File 'lib/ovirtsdk4/types.rb', line 52409 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.
52421 52422 52423 |
# File 'lib/ovirtsdk4/types.rb', line 52421 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled
attribute.
52430 52431 52432 |
# File 'lib/ovirtsdk4/types.rb', line 52430 def soundcard_enabled=(value) @soundcard_enabled = value end |
#sso ⇒ Sso
Returns the value of the sso
attribute.
52439 52440 52441 |
# File 'lib/ovirtsdk4/types.rb', line 52439 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.
52452 52453 52454 52455 52456 52457 |
# File 'lib/ovirtsdk4/types.rb', line 52452 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.
52464 52465 52466 |
# File 'lib/ovirtsdk4/types.rb', line 52464 def start_paused @start_paused end |
#start_paused=(value) ⇒ Object
Sets the value of the start_paused
attribute.
52473 52474 52475 |
# File 'lib/ovirtsdk4/types.rb', line 52473 def start_paused=(value) @start_paused = value end |
#stateless ⇒ Boolean
Returns the value of the stateless
attribute.
52482 52483 52484 |
# File 'lib/ovirtsdk4/types.rb', line 52482 def stateless @stateless end |
#stateless=(value) ⇒ Object
Sets the value of the stateless
attribute.
52491 52492 52493 |
# File 'lib/ovirtsdk4/types.rb', line 52491 def stateless=(value) @stateless = value end |
#status ⇒ TemplateStatus
Returns the value of the status
attribute.
52500 52501 52502 |
# File 'lib/ovirtsdk4/types.rb', line 52500 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
52509 52510 52511 |
# File 'lib/ovirtsdk4/types.rb', line 52509 def status=(value) @status = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
52518 52519 52520 |
# File 'lib/ovirtsdk4/types.rb', line 52518 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.
52531 52532 52533 52534 52535 52536 |
# File 'lib/ovirtsdk4/types.rb', line 52531 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.
52543 52544 52545 |
# File 'lib/ovirtsdk4/types.rb', line 52543 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.
52552 52553 52554 |
# File 'lib/ovirtsdk4/types.rb', line 52552 def storage_error_resume_behaviour=(value) @storage_error_resume_behaviour = value end |
#tags ⇒ Array<Tag>
Returns the value of the tags
attribute.
52561 52562 52563 |
# File 'lib/ovirtsdk4/types.rb', line 52561 def end |
#tags=(list) ⇒ Object
Sets the value of the tags
attribute.
52570 52571 52572 52573 52574 52575 52576 52577 52578 52579 52580 |
# File 'lib/ovirtsdk4/types.rb', line 52570 def (list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Tag.new(value) end end end = list end |
#time_zone ⇒ TimeZone
Returns the value of the time_zone
attribute.
52587 52588 52589 |
# File 'lib/ovirtsdk4/types.rb', line 52587 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.
52600 52601 52602 52603 52604 52605 |
# File 'lib/ovirtsdk4/types.rb', line 52600 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.
52612 52613 52614 |
# File 'lib/ovirtsdk4/types.rb', line 52612 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration
attribute.
52621 52622 52623 |
# File 'lib/ovirtsdk4/types.rb', line 52621 def tunnel_migration=(value) @tunnel_migration = value end |
#type ⇒ VmType
Returns the value of the type
attribute.
52630 52631 52632 |
# File 'lib/ovirtsdk4/types.rb', line 52630 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
52639 52640 52641 |
# File 'lib/ovirtsdk4/types.rb', line 52639 def type=(value) @type = value end |
#usb ⇒ Usb
Returns the value of the usb
attribute.
52648 52649 52650 |
# File 'lib/ovirtsdk4/types.rb', line 52648 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.
52661 52662 52663 52664 52665 52666 |
# File 'lib/ovirtsdk4/types.rb', line 52661 def usb=(value) if value.is_a?(Hash) value = Usb.new(value) end @usb = value end |
#version ⇒ TemplateVersion
Returns the value of the version
attribute.
52673 52674 52675 |
# File 'lib/ovirtsdk4/types.rb', line 52673 def version @version end |
#version=(value) ⇒ Object
Sets the value of the version
attribute.
The value
parameter can be an instance of TemplateVersion or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
52686 52687 52688 52689 52690 52691 |
# File 'lib/ovirtsdk4/types.rb', line 52686 def version=(value) if value.is_a?(Hash) value = TemplateVersion.new(value) end @version = value end |
#virtio_scsi ⇒ VirtioScsi
Returns the value of the virtio_scsi
attribute.
52698 52699 52700 |
# File 'lib/ovirtsdk4/types.rb', line 52698 def virtio_scsi @virtio_scsi end |
#virtio_scsi=(value) ⇒ Object
Sets the value of the virtio_scsi
attribute.
The value
parameter can be an instance of VirtioScsi or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
52711 52712 52713 52714 52715 52716 |
# File 'lib/ovirtsdk4/types.rb', line 52711 def virtio_scsi=(value) if value.is_a?(Hash) value = VirtioScsi.new(value) end @virtio_scsi = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
52723 52724 52725 |
# File 'lib/ovirtsdk4/types.rb', line 52723 def vm @vm end |
#vm=(value) ⇒ Object
Sets the value of the vm
attribute.
The value
parameter can be an instance of Vm or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
52736 52737 52738 52739 52740 52741 |
# File 'lib/ovirtsdk4/types.rb', line 52736 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |
#watchdogs ⇒ Array<Watchdog>
Returns the value of the watchdogs
attribute.
52748 52749 52750 |
# File 'lib/ovirtsdk4/types.rb', line 52748 def watchdogs @watchdogs end |
#watchdogs=(list) ⇒ Object
Sets the value of the watchdogs
attribute.
52757 52758 52759 52760 52761 52762 52763 52764 52765 52766 52767 |
# File 'lib/ovirtsdk4/types.rb', line 52757 def watchdogs=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Watchdog.new(value) end end end @watchdogs = list end |