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. -
#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. -
#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.
51965 51966 51967 |
# File 'lib/ovirtsdk4/types.rb', line 51965 def initialize(opts = {}) super(opts) end |
Instance Method Details
#bios ⇒ Bios
Returns the value of the bios
attribute.
50629 50630 50631 |
# File 'lib/ovirtsdk4/types.rb', line 50629 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.
50642 50643 50644 50645 50646 50647 |
# File 'lib/ovirtsdk4/types.rb', line 50642 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.
50654 50655 50656 |
# File 'lib/ovirtsdk4/types.rb', line 50654 def cdroms @cdroms end |
#cdroms=(list) ⇒ Object
Sets the value of the cdroms
attribute.
50663 50664 50665 50666 50667 50668 50669 50670 50671 50672 50673 |
# File 'lib/ovirtsdk4/types.rb', line 50663 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.
50680 50681 50682 |
# File 'lib/ovirtsdk4/types.rb', line 50680 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.
50693 50694 50695 50696 50697 50698 |
# File 'lib/ovirtsdk4/types.rb', line 50693 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.
50705 50706 50707 |
# File 'lib/ovirtsdk4/types.rb', line 50705 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
50714 50715 50716 |
# File 'lib/ovirtsdk4/types.rb', line 50714 def comment=(value) @comment = value end |
#console ⇒ Console
Returns the value of the console
attribute.
50723 50724 50725 |
# File 'lib/ovirtsdk4/types.rb', line 50723 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.
50736 50737 50738 50739 50740 50741 |
# File 'lib/ovirtsdk4/types.rb', line 50736 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.
50748 50749 50750 |
# File 'lib/ovirtsdk4/types.rb', line 50748 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.
50761 50762 50763 50764 50765 50766 |
# File 'lib/ovirtsdk4/types.rb', line 50761 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.
50773 50774 50775 |
# File 'lib/ovirtsdk4/types.rb', line 50773 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.
50786 50787 50788 50789 50790 50791 |
# File 'lib/ovirtsdk4/types.rb', line 50786 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.
50798 50799 50800 |
# File 'lib/ovirtsdk4/types.rb', line 50798 def cpu_shares @cpu_shares end |
#cpu_shares=(value) ⇒ Object
Sets the value of the cpu_shares
attribute.
50807 50808 50809 |
# File 'lib/ovirtsdk4/types.rb', line 50807 def cpu_shares=(value) @cpu_shares = value end |
#creation_time ⇒ DateTime
Returns the value of the creation_time
attribute.
50816 50817 50818 |
# File 'lib/ovirtsdk4/types.rb', line 50816 def creation_time @creation_time end |
#creation_time=(value) ⇒ Object
Sets the value of the creation_time
attribute.
50825 50826 50827 |
# File 'lib/ovirtsdk4/types.rb', line 50825 def creation_time=(value) @creation_time = value end |
#custom_compatibility_version ⇒ Version
Returns the value of the custom_compatibility_version
attribute.
50834 50835 50836 |
# File 'lib/ovirtsdk4/types.rb', line 50834 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.
50847 50848 50849 50850 50851 50852 |
# File 'lib/ovirtsdk4/types.rb', line 50847 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.
50859 50860 50861 |
# File 'lib/ovirtsdk4/types.rb', line 50859 def custom_cpu_model @custom_cpu_model end |
#custom_cpu_model=(value) ⇒ Object
Sets the value of the custom_cpu_model
attribute.
50868 50869 50870 |
# File 'lib/ovirtsdk4/types.rb', line 50868 def custom_cpu_model=(value) @custom_cpu_model = value end |
#custom_emulated_machine ⇒ String
Returns the value of the custom_emulated_machine
attribute.
50877 50878 50879 |
# File 'lib/ovirtsdk4/types.rb', line 50877 def custom_emulated_machine @custom_emulated_machine end |
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the custom_emulated_machine
attribute.
50886 50887 50888 |
# File 'lib/ovirtsdk4/types.rb', line 50886 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the custom_properties
attribute.
50895 50896 50897 |
# File 'lib/ovirtsdk4/types.rb', line 50895 def custom_properties @custom_properties end |
#custom_properties=(list) ⇒ Object
Sets the value of the custom_properties
attribute.
50904 50905 50906 50907 50908 50909 50910 50911 50912 50913 50914 |
# File 'lib/ovirtsdk4/types.rb', line 50904 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.
50921 50922 50923 |
# File 'lib/ovirtsdk4/types.rb', line 50921 def delete_protected @delete_protected end |
#delete_protected=(value) ⇒ Object
Sets the value of the delete_protected
attribute.
50930 50931 50932 |
# File 'lib/ovirtsdk4/types.rb', line 50930 def delete_protected=(value) @delete_protected = value end |
#description ⇒ String
Returns the value of the description
attribute.
50939 50940 50941 |
# File 'lib/ovirtsdk4/types.rb', line 50939 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
50948 50949 50950 |
# File 'lib/ovirtsdk4/types.rb', line 50948 def description=(value) @description = value end |
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the disk_attachments
attribute.
50957 50958 50959 |
# File 'lib/ovirtsdk4/types.rb', line 50957 def @disk_attachments end |
#disk_attachments=(list) ⇒ Object
Sets the value of the disk_attachments
attribute.
50966 50967 50968 50969 50970 50971 50972 50973 50974 50975 50976 |
# File 'lib/ovirtsdk4/types.rb', line 50966 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 @disk_attachments = list end |
#display ⇒ Display
Returns the value of the display
attribute.
50983 50984 50985 |
# File 'lib/ovirtsdk4/types.rb', line 50983 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.
50996 50997 50998 50999 51000 51001 |
# File 'lib/ovirtsdk4/types.rb', line 50996 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.
51008 51009 51010 |
# File 'lib/ovirtsdk4/types.rb', line 51008 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.
51021 51022 51023 51024 51025 51026 |
# File 'lib/ovirtsdk4/types.rb', line 51021 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.
51033 51034 51035 |
# File 'lib/ovirtsdk4/types.rb', line 51033 def graphics_consoles @graphics_consoles end |
#graphics_consoles=(list) ⇒ Object
Sets the value of the graphics_consoles
attribute.
51042 51043 51044 51045 51046 51047 51048 51049 51050 51051 51052 |
# File 'lib/ovirtsdk4/types.rb', line 51042 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.
51059 51060 51061 |
# File 'lib/ovirtsdk4/types.rb', line 51059 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.
51072 51073 51074 51075 51076 51077 |
# File 'lib/ovirtsdk4/types.rb', line 51072 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.
51084 51085 51086 |
# File 'lib/ovirtsdk4/types.rb', line 51084 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
51093 51094 51095 |
# File 'lib/ovirtsdk4/types.rb', line 51093 def id=(value) @id = value end |
#initialization ⇒ Initialization
Returns the value of the initialization
attribute.
51102 51103 51104 |
# File 'lib/ovirtsdk4/types.rb', line 51102 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.
51115 51116 51117 51118 51119 51120 |
# File 'lib/ovirtsdk4/types.rb', line 51115 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.
51127 51128 51129 |
# File 'lib/ovirtsdk4/types.rb', line 51127 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.
51140 51141 51142 51143 51144 51145 |
# File 'lib/ovirtsdk4/types.rb', line 51140 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.
51152 51153 51154 |
# File 'lib/ovirtsdk4/types.rb', line 51152 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.
51165 51166 51167 51168 51169 51170 |
# File 'lib/ovirtsdk4/types.rb', line 51165 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.
51177 51178 51179 |
# File 'lib/ovirtsdk4/types.rb', line 51177 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.
51190 51191 51192 51193 51194 51195 |
# File 'lib/ovirtsdk4/types.rb', line 51190 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.
51202 51203 51204 |
# File 'lib/ovirtsdk4/types.rb', line 51202 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory
attribute.
51211 51212 51213 |
# File 'lib/ovirtsdk4/types.rb', line 51211 def memory=(value) @memory = value end |
#memory_policy ⇒ MemoryPolicy
Returns the value of the memory_policy
attribute.
51220 51221 51222 |
# File 'lib/ovirtsdk4/types.rb', line 51220 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.
51233 51234 51235 51236 51237 51238 |
# File 'lib/ovirtsdk4/types.rb', line 51233 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.
51245 51246 51247 |
# File 'lib/ovirtsdk4/types.rb', line 51245 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.
51258 51259 51260 51261 51262 51263 |
# File 'lib/ovirtsdk4/types.rb', line 51258 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.
51270 51271 51272 |
# File 'lib/ovirtsdk4/types.rb', line 51270 def migration_downtime @migration_downtime end |
#migration_downtime=(value) ⇒ Object
Sets the value of the migration_downtime
attribute.
51279 51280 51281 |
# File 'lib/ovirtsdk4/types.rb', line 51279 def migration_downtime=(value) @migration_downtime = value end |
#name ⇒ String
Returns the value of the name
attribute.
51288 51289 51290 |
# File 'lib/ovirtsdk4/types.rb', line 51288 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
51297 51298 51299 |
# File 'lib/ovirtsdk4/types.rb', line 51297 def name=(value) @name = value end |
#nics ⇒ Array<Nic>
Returns the value of the nics
attribute.
51306 51307 51308 |
# File 'lib/ovirtsdk4/types.rb', line 51306 def nics @nics end |
#nics=(list) ⇒ Object
Sets the value of the nics
attribute.
51315 51316 51317 51318 51319 51320 51321 51322 51323 51324 51325 |
# File 'lib/ovirtsdk4/types.rb', line 51315 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.
51332 51333 51334 |
# File 'lib/ovirtsdk4/types.rb', line 51332 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin
attribute.
51341 51342 51343 |
# File 'lib/ovirtsdk4/types.rb', line 51341 def origin=(value) @origin = value end |
#os ⇒ OperatingSystem
Returns the value of the os
attribute.
51350 51351 51352 |
# File 'lib/ovirtsdk4/types.rb', line 51350 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.
51363 51364 51365 51366 51367 51368 |
# File 'lib/ovirtsdk4/types.rb', line 51363 def os=(value) if value.is_a?(Hash) value = OperatingSystem.new(value) end @os = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions
attribute.
51375 51376 51377 |
# File 'lib/ovirtsdk4/types.rb', line 51375 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
51384 51385 51386 51387 51388 51389 51390 51391 51392 51393 51394 |
# File 'lib/ovirtsdk4/types.rb', line 51384 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 @permissions = list end |
#quota ⇒ Quota
Returns the value of the quota
attribute.
51401 51402 51403 |
# File 'lib/ovirtsdk4/types.rb', line 51401 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.
51414 51415 51416 51417 51418 51419 |
# File 'lib/ovirtsdk4/types.rb', line 51414 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.
51426 51427 51428 |
# File 'lib/ovirtsdk4/types.rb', line 51426 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.
51439 51440 51441 51442 51443 51444 |
# File 'lib/ovirtsdk4/types.rb', line 51439 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.
51451 51452 51453 |
# File 'lib/ovirtsdk4/types.rb', line 51451 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.
51464 51465 51466 51467 51468 51469 |
# File 'lib/ovirtsdk4/types.rb', line 51464 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.
51476 51477 51478 |
# File 'lib/ovirtsdk4/types.rb', line 51476 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.
51489 51490 51491 51492 51493 51494 |
# File 'lib/ovirtsdk4/types.rb', line 51489 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.
51501 51502 51503 |
# File 'lib/ovirtsdk4/types.rb', line 51501 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled
attribute.
51510 51511 51512 |
# File 'lib/ovirtsdk4/types.rb', line 51510 def soundcard_enabled=(value) @soundcard_enabled = value end |
#sso ⇒ Sso
Returns the value of the sso
attribute.
51519 51520 51521 |
# File 'lib/ovirtsdk4/types.rb', line 51519 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.
51532 51533 51534 51535 51536 51537 |
# File 'lib/ovirtsdk4/types.rb', line 51532 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.
51544 51545 51546 |
# File 'lib/ovirtsdk4/types.rb', line 51544 def start_paused @start_paused end |
#start_paused=(value) ⇒ Object
Sets the value of the start_paused
attribute.
51553 51554 51555 |
# File 'lib/ovirtsdk4/types.rb', line 51553 def start_paused=(value) @start_paused = value end |
#stateless ⇒ Boolean
Returns the value of the stateless
attribute.
51562 51563 51564 |
# File 'lib/ovirtsdk4/types.rb', line 51562 def stateless @stateless end |
#stateless=(value) ⇒ Object
Sets the value of the stateless
attribute.
51571 51572 51573 |
# File 'lib/ovirtsdk4/types.rb', line 51571 def stateless=(value) @stateless = value end |
#status ⇒ TemplateStatus
Returns the value of the status
attribute.
51580 51581 51582 |
# File 'lib/ovirtsdk4/types.rb', line 51580 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
51589 51590 51591 |
# File 'lib/ovirtsdk4/types.rb', line 51589 def status=(value) @status = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
51598 51599 51600 |
# File 'lib/ovirtsdk4/types.rb', line 51598 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.
51611 51612 51613 51614 51615 51616 |
# File 'lib/ovirtsdk4/types.rb', line 51611 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.
51623 51624 51625 |
# File 'lib/ovirtsdk4/types.rb', line 51623 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.
51632 51633 51634 |
# File 'lib/ovirtsdk4/types.rb', line 51632 def storage_error_resume_behaviour=(value) @storage_error_resume_behaviour = value end |
#tags ⇒ Array<Tag>
Returns the value of the tags
attribute.
51641 51642 51643 |
# File 'lib/ovirtsdk4/types.rb', line 51641 def @tags end |
#tags=(list) ⇒ Object
Sets the value of the tags
attribute.
51650 51651 51652 51653 51654 51655 51656 51657 51658 51659 51660 |
# File 'lib/ovirtsdk4/types.rb', line 51650 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 @tags = list end |
#time_zone ⇒ TimeZone
Returns the value of the time_zone
attribute.
51667 51668 51669 |
# File 'lib/ovirtsdk4/types.rb', line 51667 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.
51680 51681 51682 51683 51684 51685 |
# File 'lib/ovirtsdk4/types.rb', line 51680 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.
51692 51693 51694 |
# File 'lib/ovirtsdk4/types.rb', line 51692 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration
attribute.
51701 51702 51703 |
# File 'lib/ovirtsdk4/types.rb', line 51701 def tunnel_migration=(value) @tunnel_migration = value end |
#type ⇒ VmType
Returns the value of the type
attribute.
51710 51711 51712 |
# File 'lib/ovirtsdk4/types.rb', line 51710 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
51719 51720 51721 |
# File 'lib/ovirtsdk4/types.rb', line 51719 def type=(value) @type = value end |
#usb ⇒ Usb
Returns the value of the usb
attribute.
51728 51729 51730 |
# File 'lib/ovirtsdk4/types.rb', line 51728 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.
51741 51742 51743 51744 51745 51746 |
# File 'lib/ovirtsdk4/types.rb', line 51741 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.
51753 51754 51755 |
# File 'lib/ovirtsdk4/types.rb', line 51753 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.
51766 51767 51768 51769 51770 51771 |
# File 'lib/ovirtsdk4/types.rb', line 51766 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.
51778 51779 51780 |
# File 'lib/ovirtsdk4/types.rb', line 51778 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.
51791 51792 51793 51794 51795 51796 |
# File 'lib/ovirtsdk4/types.rb', line 51791 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.
51803 51804 51805 |
# File 'lib/ovirtsdk4/types.rb', line 51803 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.
51816 51817 51818 51819 51820 51821 |
# File 'lib/ovirtsdk4/types.rb', line 51816 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.
51828 51829 51830 |
# File 'lib/ovirtsdk4/types.rb', line 51828 def watchdogs @watchdogs end |
#watchdogs=(list) ⇒ Object
Sets the value of the watchdogs
attribute.
51837 51838 51839 51840 51841 51842 51843 51844 51845 51846 51847 |
# File 'lib/ovirtsdk4/types.rb', line 51837 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 |