Class: OvirtSDK4::InstanceType
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#bios ⇒ Bios
Returns the value of the
biosattribute. -
#bios=(value) ⇒ Object
Sets the value of the
biosattribute. -
#cdroms ⇒ Array<Cdrom>
Returns the value of the
cdromsattribute. -
#cdroms=(list) ⇒ Object
Sets the value of the
cdromsattribute. -
#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. -
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the
disk_attachmentsattribute. -
#disk_attachments=(list) ⇒ Object
Sets the value of the
disk_attachmentsattribute. -
#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. -
#graphics_consoles ⇒ Array<GraphicsConsole>
Returns the value of the
graphics_consolesattribute. -
#graphics_consoles=(list) ⇒ Object
Sets the value of the
graphics_consolesattribute. -
#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 = {}) ⇒ InstanceType
constructor
Creates a new instance of the InstanceType 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. -
#nics ⇒ Array<Nic>
Returns the value of the
nicsattribute. -
#nics=(list) ⇒ Object
Sets the value of the
nicsattribute. -
#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. -
#permissions ⇒ Array<Permission>
Returns the value of the
permissionsattribute. -
#permissions=(list) ⇒ Object
Sets the value of the
permissionsattribute. -
#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. -
#status ⇒ TemplateStatus
Returns the value of the
statusattribute. -
#status=(value) ⇒ Object
Sets the value of the
statusattribute. -
#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. -
#tags ⇒ Array<Tag>
Returns the value of the
tagsattribute. -
#tags=(list) ⇒ Object
Sets the value of the
tagsattribute. -
#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. -
#version ⇒ TemplateVersion
Returns the value of the
versionattribute. -
#version=(value) ⇒ Object
Sets the value of the
versionattribute. -
#virtio_scsi ⇒ VirtioScsi
Returns the value of the
virtio_scsiattribute. -
#virtio_scsi=(value) ⇒ Object
Sets the value of the
virtio_scsiattribute. -
#vm ⇒ Vm
Returns the value of the
vmattribute. -
#vm=(value) ⇒ Object
Sets the value of the
vmattribute. -
#watchdogs ⇒ Array<Watchdog>
Returns the value of the
watchdogsattribute. -
#watchdogs=(list) ⇒ Object
Sets the value of the
watchdogsattribute.
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.
52076 52077 52078 |
# File 'lib/ovirtsdk4/types.rb', line 52076 def initialize(opts = {}) super(opts) end |
Instance Method Details
#bios ⇒ Bios
Returns the value of the bios attribute.
50713 50714 50715 |
# File 'lib/ovirtsdk4/types.rb', line 50713 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.
50726 50727 50728 50729 50730 50731 |
# File 'lib/ovirtsdk4/types.rb', line 50726 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.
50738 50739 50740 |
# File 'lib/ovirtsdk4/types.rb', line 50738 def cdroms @cdroms end |
#cdroms=(list) ⇒ Object
Sets the value of the cdroms attribute.
50747 50748 50749 50750 50751 50752 50753 50754 50755 50756 50757 |
# File 'lib/ovirtsdk4/types.rb', line 50747 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.
50764 50765 50766 |
# File 'lib/ovirtsdk4/types.rb', line 50764 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.
50777 50778 50779 50780 50781 50782 |
# File 'lib/ovirtsdk4/types.rb', line 50777 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.
50789 50790 50791 |
# File 'lib/ovirtsdk4/types.rb', line 50789 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
50798 50799 50800 |
# File 'lib/ovirtsdk4/types.rb', line 50798 def comment=(value) @comment = value end |
#console ⇒ Console
Returns the value of the console attribute.
50807 50808 50809 |
# File 'lib/ovirtsdk4/types.rb', line 50807 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.
50820 50821 50822 50823 50824 50825 |
# File 'lib/ovirtsdk4/types.rb', line 50820 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.
50832 50833 50834 |
# File 'lib/ovirtsdk4/types.rb', line 50832 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.
50845 50846 50847 50848 50849 50850 |
# File 'lib/ovirtsdk4/types.rb', line 50845 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.
50857 50858 50859 |
# File 'lib/ovirtsdk4/types.rb', line 50857 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.
50870 50871 50872 50873 50874 50875 |
# File 'lib/ovirtsdk4/types.rb', line 50870 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.
50882 50883 50884 |
# File 'lib/ovirtsdk4/types.rb', line 50882 def cpu_shares @cpu_shares end |
#cpu_shares=(value) ⇒ Object
Sets the value of the cpu_shares attribute.
50891 50892 50893 |
# File 'lib/ovirtsdk4/types.rb', line 50891 def cpu_shares=(value) @cpu_shares = value end |
#creation_time ⇒ DateTime
Returns the value of the creation_time attribute.
50900 50901 50902 |
# File 'lib/ovirtsdk4/types.rb', line 50900 def creation_time @creation_time end |
#creation_time=(value) ⇒ Object
Sets the value of the creation_time attribute.
50909 50910 50911 |
# File 'lib/ovirtsdk4/types.rb', line 50909 def creation_time=(value) @creation_time = value end |
#custom_compatibility_version ⇒ Version
Returns the value of the custom_compatibility_version attribute.
50918 50919 50920 |
# File 'lib/ovirtsdk4/types.rb', line 50918 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.
50931 50932 50933 50934 50935 50936 |
# File 'lib/ovirtsdk4/types.rb', line 50931 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.
50943 50944 50945 |
# File 'lib/ovirtsdk4/types.rb', line 50943 def custom_cpu_model @custom_cpu_model end |
#custom_cpu_model=(value) ⇒ Object
Sets the value of the custom_cpu_model attribute.
50952 50953 50954 |
# File 'lib/ovirtsdk4/types.rb', line 50952 def custom_cpu_model=(value) @custom_cpu_model = value end |
#custom_emulated_machine ⇒ String
Returns the value of the custom_emulated_machine attribute.
50961 50962 50963 |
# File 'lib/ovirtsdk4/types.rb', line 50961 def custom_emulated_machine @custom_emulated_machine end |
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the custom_emulated_machine attribute.
50970 50971 50972 |
# File 'lib/ovirtsdk4/types.rb', line 50970 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the custom_properties attribute.
50979 50980 50981 |
# File 'lib/ovirtsdk4/types.rb', line 50979 def custom_properties @custom_properties end |
#custom_properties=(list) ⇒ Object
Sets the value of the custom_properties attribute.
50988 50989 50990 50991 50992 50993 50994 50995 50996 50997 50998 |
# File 'lib/ovirtsdk4/types.rb', line 50988 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.
51005 51006 51007 |
# File 'lib/ovirtsdk4/types.rb', line 51005 def delete_protected @delete_protected end |
#delete_protected=(value) ⇒ Object
Sets the value of the delete_protected attribute.
51014 51015 51016 |
# File 'lib/ovirtsdk4/types.rb', line 51014 def delete_protected=(value) @delete_protected = value end |
#description ⇒ String
Returns the value of the description attribute.
51023 51024 51025 |
# File 'lib/ovirtsdk4/types.rb', line 51023 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
51032 51033 51034 |
# File 'lib/ovirtsdk4/types.rb', line 51032 def description=(value) @description = value end |
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the disk_attachments attribute.
51041 51042 51043 |
# File 'lib/ovirtsdk4/types.rb', line 51041 def end |
#disk_attachments=(list) ⇒ Object
Sets the value of the disk_attachments attribute.
51050 51051 51052 51053 51054 51055 51056 51057 51058 51059 51060 |
# File 'lib/ovirtsdk4/types.rb', line 51050 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.
51067 51068 51069 |
# File 'lib/ovirtsdk4/types.rb', line 51067 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.
51080 51081 51082 51083 51084 51085 |
# File 'lib/ovirtsdk4/types.rb', line 51080 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.
51092 51093 51094 |
# File 'lib/ovirtsdk4/types.rb', line 51092 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.
51105 51106 51107 51108 51109 51110 |
# File 'lib/ovirtsdk4/types.rb', line 51105 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.
51117 51118 51119 |
# File 'lib/ovirtsdk4/types.rb', line 51117 def graphics_consoles @graphics_consoles end |
#graphics_consoles=(list) ⇒ Object
Sets the value of the graphics_consoles attribute.
51126 51127 51128 51129 51130 51131 51132 51133 51134 51135 51136 |
# File 'lib/ovirtsdk4/types.rb', line 51126 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.
51143 51144 51145 |
# File 'lib/ovirtsdk4/types.rb', line 51143 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.
51156 51157 51158 51159 51160 51161 |
# File 'lib/ovirtsdk4/types.rb', line 51156 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.
51168 51169 51170 |
# File 'lib/ovirtsdk4/types.rb', line 51168 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
51177 51178 51179 |
# File 'lib/ovirtsdk4/types.rb', line 51177 def id=(value) @id = value end |
#initialization ⇒ Initialization
Returns the value of the initialization attribute.
51186 51187 51188 |
# File 'lib/ovirtsdk4/types.rb', line 51186 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.
51199 51200 51201 51202 51203 51204 |
# File 'lib/ovirtsdk4/types.rb', line 51199 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.
51211 51212 51213 |
# File 'lib/ovirtsdk4/types.rb', line 51211 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.
51224 51225 51226 51227 51228 51229 |
# File 'lib/ovirtsdk4/types.rb', line 51224 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.
51236 51237 51238 |
# File 'lib/ovirtsdk4/types.rb', line 51236 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.
51249 51250 51251 51252 51253 51254 |
# File 'lib/ovirtsdk4/types.rb', line 51249 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.
51261 51262 51263 |
# File 'lib/ovirtsdk4/types.rb', line 51261 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.
51274 51275 51276 51277 51278 51279 |
# File 'lib/ovirtsdk4/types.rb', line 51274 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.
51286 51287 51288 |
# File 'lib/ovirtsdk4/types.rb', line 51286 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory attribute.
51295 51296 51297 |
# File 'lib/ovirtsdk4/types.rb', line 51295 def memory=(value) @memory = value end |
#memory_policy ⇒ MemoryPolicy
Returns the value of the memory_policy attribute.
51304 51305 51306 |
# File 'lib/ovirtsdk4/types.rb', line 51304 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.
51317 51318 51319 51320 51321 51322 |
# File 'lib/ovirtsdk4/types.rb', line 51317 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.
51329 51330 51331 |
# File 'lib/ovirtsdk4/types.rb', line 51329 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.
51342 51343 51344 51345 51346 51347 |
# File 'lib/ovirtsdk4/types.rb', line 51342 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.
51354 51355 51356 |
# File 'lib/ovirtsdk4/types.rb', line 51354 def migration_downtime @migration_downtime end |
#migration_downtime=(value) ⇒ Object
Sets the value of the migration_downtime attribute.
51363 51364 51365 |
# File 'lib/ovirtsdk4/types.rb', line 51363 def migration_downtime=(value) @migration_downtime = value end |
#name ⇒ String
Returns the value of the name attribute.
51372 51373 51374 |
# File 'lib/ovirtsdk4/types.rb', line 51372 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
51381 51382 51383 |
# File 'lib/ovirtsdk4/types.rb', line 51381 def name=(value) @name = value end |
#nics ⇒ Array<Nic>
Returns the value of the nics attribute.
51390 51391 51392 |
# File 'lib/ovirtsdk4/types.rb', line 51390 def nics @nics end |
#nics=(list) ⇒ Object
Sets the value of the nics attribute.
51399 51400 51401 51402 51403 51404 51405 51406 51407 51408 51409 |
# File 'lib/ovirtsdk4/types.rb', line 51399 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.
51416 51417 51418 |
# File 'lib/ovirtsdk4/types.rb', line 51416 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin attribute.
51425 51426 51427 |
# File 'lib/ovirtsdk4/types.rb', line 51425 def origin=(value) @origin = value end |
#os ⇒ OperatingSystem
Returns the value of the os attribute.
51434 51435 51436 |
# File 'lib/ovirtsdk4/types.rb', line 51434 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.
51447 51448 51449 51450 51451 51452 |
# File 'lib/ovirtsdk4/types.rb', line 51447 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.
51459 51460 51461 |
# File 'lib/ovirtsdk4/types.rb', line 51459 def end |
#permissions=(list) ⇒ Object
Sets the value of the permissions attribute.
51468 51469 51470 51471 51472 51473 51474 51475 51476 51477 51478 |
# File 'lib/ovirtsdk4/types.rb', line 51468 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.
51485 51486 51487 |
# File 'lib/ovirtsdk4/types.rb', line 51485 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.
51498 51499 51500 51501 51502 51503 |
# File 'lib/ovirtsdk4/types.rb', line 51498 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.
51510 51511 51512 |
# File 'lib/ovirtsdk4/types.rb', line 51510 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.
51523 51524 51525 51526 51527 51528 |
# File 'lib/ovirtsdk4/types.rb', line 51523 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.
51535 51536 51537 |
# File 'lib/ovirtsdk4/types.rb', line 51535 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.
51548 51549 51550 51551 51552 51553 |
# File 'lib/ovirtsdk4/types.rb', line 51548 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.
51560 51561 51562 |
# File 'lib/ovirtsdk4/types.rb', line 51560 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.
51573 51574 51575 51576 51577 51578 |
# File 'lib/ovirtsdk4/types.rb', line 51573 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.
51585 51586 51587 |
# File 'lib/ovirtsdk4/types.rb', line 51585 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.
51598 51599 51600 51601 51602 51603 |
# File 'lib/ovirtsdk4/types.rb', line 51598 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.
51610 51611 51612 |
# File 'lib/ovirtsdk4/types.rb', line 51610 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled attribute.
51619 51620 51621 |
# File 'lib/ovirtsdk4/types.rb', line 51619 def soundcard_enabled=(value) @soundcard_enabled = value end |
#sso ⇒ Sso
Returns the value of the sso attribute.
51628 51629 51630 |
# File 'lib/ovirtsdk4/types.rb', line 51628 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.
51641 51642 51643 51644 51645 51646 |
# File 'lib/ovirtsdk4/types.rb', line 51641 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.
51653 51654 51655 |
# File 'lib/ovirtsdk4/types.rb', line 51653 def start_paused @start_paused end |
#start_paused=(value) ⇒ Object
Sets the value of the start_paused attribute.
51662 51663 51664 |
# File 'lib/ovirtsdk4/types.rb', line 51662 def start_paused=(value) @start_paused = value end |
#stateless ⇒ Boolean
Returns the value of the stateless attribute.
51671 51672 51673 |
# File 'lib/ovirtsdk4/types.rb', line 51671 def stateless @stateless end |
#stateless=(value) ⇒ Object
Sets the value of the stateless attribute.
51680 51681 51682 |
# File 'lib/ovirtsdk4/types.rb', line 51680 def stateless=(value) @stateless = value end |
#status ⇒ TemplateStatus
Returns the value of the status attribute.
51689 51690 51691 |
# File 'lib/ovirtsdk4/types.rb', line 51689 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status attribute.
51698 51699 51700 |
# File 'lib/ovirtsdk4/types.rb', line 51698 def status=(value) @status = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain attribute.
51707 51708 51709 |
# File 'lib/ovirtsdk4/types.rb', line 51707 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.
51720 51721 51722 51723 51724 51725 |
# File 'lib/ovirtsdk4/types.rb', line 51720 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.
51732 51733 51734 |
# File 'lib/ovirtsdk4/types.rb', line 51732 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.
51741 51742 51743 |
# File 'lib/ovirtsdk4/types.rb', line 51741 def storage_error_resume_behaviour=(value) @storage_error_resume_behaviour = value end |
#tags ⇒ Array<Tag>
Returns the value of the tags attribute.
51750 51751 51752 |
# File 'lib/ovirtsdk4/types.rb', line 51750 def end |
#tags=(list) ⇒ Object
Sets the value of the tags attribute.
51759 51760 51761 51762 51763 51764 51765 51766 51767 51768 51769 |
# File 'lib/ovirtsdk4/types.rb', line 51759 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.
51776 51777 51778 |
# File 'lib/ovirtsdk4/types.rb', line 51776 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.
51789 51790 51791 51792 51793 51794 |
# File 'lib/ovirtsdk4/types.rb', line 51789 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.
51801 51802 51803 |
# File 'lib/ovirtsdk4/types.rb', line 51801 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration attribute.
51810 51811 51812 |
# File 'lib/ovirtsdk4/types.rb', line 51810 def tunnel_migration=(value) @tunnel_migration = value end |
#type ⇒ VmType
Returns the value of the type attribute.
51819 51820 51821 |
# File 'lib/ovirtsdk4/types.rb', line 51819 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type attribute.
51828 51829 51830 |
# File 'lib/ovirtsdk4/types.rb', line 51828 def type=(value) @type = value end |
#usb ⇒ Usb
Returns the value of the usb attribute.
51837 51838 51839 |
# File 'lib/ovirtsdk4/types.rb', line 51837 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.
51850 51851 51852 51853 51854 51855 |
# File 'lib/ovirtsdk4/types.rb', line 51850 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.
51862 51863 51864 |
# File 'lib/ovirtsdk4/types.rb', line 51862 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.
51875 51876 51877 51878 51879 51880 |
# File 'lib/ovirtsdk4/types.rb', line 51875 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.
51887 51888 51889 |
# File 'lib/ovirtsdk4/types.rb', line 51887 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.
51900 51901 51902 51903 51904 51905 |
# File 'lib/ovirtsdk4/types.rb', line 51900 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.
51912 51913 51914 |
# File 'lib/ovirtsdk4/types.rb', line 51912 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.
51925 51926 51927 51928 51929 51930 |
# File 'lib/ovirtsdk4/types.rb', line 51925 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.
51937 51938 51939 |
# File 'lib/ovirtsdk4/types.rb', line 51937 def watchdogs @watchdogs end |
#watchdogs=(list) ⇒ Object
Sets the value of the watchdogs attribute.
51946 51947 51948 51949 51950 51951 51952 51953 51954 51955 51956 |
# File 'lib/ovirtsdk4/types.rb', line 51946 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 |