Class: OvirtSDK4::Template
- Inherits:
-
VmBase
- Object
- Struct
- Identified
- VmBase
- OvirtSDK4::Template
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Direct Known Subclasses
Instance Method Summary (collapse)
-
- (Bios) bios
Returns the value of the
bios
attribute. -
- (Object) bios=(value)
Sets the value of the
bios
attribute. -
- (Array<Cdrom>) cdroms
Returns the value of the
cdroms
attribute. -
- (Object) cdroms=(list)
Sets the value of the
cdroms
attribute. -
- (Cluster) cluster
Returns the value of the
cluster
attribute. -
- (Object) cluster=(value)
Sets the value of the
cluster
attribute. -
- (String) comment
Returns the value of the
comment
attribute. -
- (Object) comment=(value)
Sets the value of the
comment
attribute. -
- (Console) console
Returns the value of the
console
attribute. -
- (Object) console=(value)
Sets the value of the
console
attribute. -
- (Cpu) cpu
Returns the value of the
cpu
attribute. -
- (Object) cpu=(value)
Sets the value of the
cpu
attribute. -
- (CpuProfile) cpu_profile
Returns the value of the
cpu_profile
attribute. -
- (Object) cpu_profile=(value)
Sets the value of the
cpu_profile
attribute. -
- (Integer) cpu_shares
Returns the value of the
cpu_shares
attribute. -
- (Object) cpu_shares=(value)
Sets the value of the
cpu_shares
attribute. -
- (DateTime) creation_time
Returns the value of the
creation_time
attribute. -
- (Object) creation_time=(value)
Sets the value of the
creation_time
attribute. -
- (Version) custom_compatibility_version
Returns the value of the
custom_compatibility_version
attribute. -
- (Object) custom_compatibility_version=(value)
Sets the value of the
custom_compatibility_version
attribute. -
- (String) custom_cpu_model
Returns the value of the
custom_cpu_model
attribute. -
- (Object) custom_cpu_model=(value)
Sets the value of the
custom_cpu_model
attribute. -
- (String) custom_emulated_machine
Returns the value of the
custom_emulated_machine
attribute. -
- (Object) custom_emulated_machine=(value)
Sets the value of the
custom_emulated_machine
attribute. -
- (Array<CustomProperty>) custom_properties
Returns the value of the
custom_properties
attribute. -
- (Object) custom_properties=(list)
Sets the value of the
custom_properties
attribute. -
- (Boolean) delete_protected
Returns the value of the
delete_protected
attribute. -
- (Object) delete_protected=(value)
Sets the value of the
delete_protected
attribute. -
- (String) description
Returns the value of the
description
attribute. -
- (Object) description=(value)
Sets the value of the
description
attribute. -
- (Array<Disk>) disks
Returns the value of the
disks
attribute. -
- (Object) disks=(list)
Sets the value of the
disks
attribute. -
- (Display) display
Returns the value of the
display
attribute. -
- (Object) display=(value)
Sets the value of the
display
attribute. -
- (Domain) domain
Returns the value of the
domain
attribute. -
- (Object) domain=(value)
Sets the value of the
domain
attribute. -
- (Array<GraphicsConsole>) graphics_consoles
Returns the value of the
graphics_consoles
attribute. -
- (Object) graphics_consoles=(list)
Sets the value of the
graphics_consoles
attribute. -
- (HighAvailability) high_availability
Returns the value of the
high_availability
attribute. -
- (Object) high_availability=(value)
Sets the value of the
high_availability
attribute. -
- (String) id
Returns the value of the
id
attribute. -
- (Object) id=(value)
Sets the value of the
id
attribute. -
- (Initialization) initialization
Returns the value of the
initialization
attribute. -
- (Object) initialization=(value)
Sets the value of the
initialization
attribute. -
- (Template) initialize(opts = {})
constructor
Creates a new instance of the Template class.
-
- (Io) io
Returns the value of the
io
attribute. -
- (Object) io=(value)
Sets the value of the
io
attribute. -
- (Icon) large_icon
Returns the value of the
large_icon
attribute. -
- (Object) large_icon=(value)
Sets the value of the
large_icon
attribute. -
- (Integer) memory
Returns the value of the
memory
attribute. -
- (Object) memory=(value)
Sets the value of the
memory
attribute. -
- (MemoryPolicy) memory_policy
Returns the value of the
memory_policy
attribute. -
- (Object) memory_policy=(value)
Sets the value of the
memory_policy
attribute. -
- (MigrationOptions) migration
Returns the value of the
migration
attribute. -
- (Object) migration=(value)
Sets the value of the
migration
attribute. -
- (Integer) migration_downtime
Returns the value of the
migration_downtime
attribute. -
- (Object) migration_downtime=(value)
Sets the value of the
migration_downtime
attribute. -
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (Array<Nic>) nics
Returns the value of the
nics
attribute. -
- (Object) nics=(list)
Sets the value of the
nics
attribute. -
- (String) origin
Returns the value of the
origin
attribute. -
- (Object) origin=(value)
Sets the value of the
origin
attribute. -
- (OperatingSystem) os
Returns the value of the
os
attribute. -
- (Object) os=(value)
Sets the value of the
os
attribute. -
- (Array<Permission>) permissions
Returns the value of the
permissions
attribute. -
- (Object) permissions=(list)
Sets the value of the
permissions
attribute. -
- (RngDevice) rng_device
Returns the value of the
rng_device
attribute. -
- (Object) rng_device=(value)
Sets the value of the
rng_device
attribute. -
- (SerialNumber) serial_number
Returns the value of the
serial_number
attribute. -
- (Object) serial_number=(value)
Sets the value of the
serial_number
attribute. -
- (Icon) small_icon
Returns the value of the
small_icon
attribute. -
- (Object) small_icon=(value)
Sets the value of the
small_icon
attribute. -
- (Boolean) soundcard_enabled
Returns the value of the
soundcard_enabled
attribute. -
- (Object) soundcard_enabled=(value)
Sets the value of the
soundcard_enabled
attribute. -
- (Sso) sso
Returns the value of the
sso
attribute. -
- (Object) sso=(value)
Sets the value of the
sso
attribute. -
- (Boolean) start_paused
Returns the value of the
start_paused
attribute. -
- (Object) start_paused=(value)
Sets the value of the
start_paused
attribute. -
- (Boolean) stateless
Returns the value of the
stateless
attribute. -
- (Object) stateless=(value)
Sets the value of the
stateless
attribute. -
- (TemplateStatus) status
Returns the value of the
status
attribute. -
- (Object) status=(value)
Sets the value of the
status
attribute. -
- (StorageDomain) storage_domain
Returns the value of the
storage_domain
attribute. -
- (Object) storage_domain=(value)
Sets the value of the
storage_domain
attribute. -
- (Array<Tag>) tags
Returns the value of the
tags
attribute. -
- (Object) tags=(list)
Sets the value of the
tags
attribute. -
- (TimeZone) time_zone
Returns the value of the
time_zone
attribute. -
- (Object) time_zone=(value)
Sets the value of the
time_zone
attribute. -
- (Boolean) tunnel_migration
Returns the value of the
tunnel_migration
attribute. -
- (Object) tunnel_migration=(value)
Sets the value of the
tunnel_migration
attribute. -
- (VmType) type
Returns the value of the
type
attribute. -
- (Object) type=(value)
Sets the value of the
type
attribute. -
- (Usb) usb
Returns the value of the
usb
attribute. -
- (Object) usb=(value)
Sets the value of the
usb
attribute. -
- (TemplateVersion) version
Returns the value of the
version
attribute. -
- (Object) version=(value)
Sets the value of the
version
attribute. -
- (VirtioScsi) virtio_scsi
Returns the value of the
virtio_scsi
attribute. -
- (Object) virtio_scsi=(value)
Sets the value of the
virtio_scsi
attribute. -
- (Vm) vm
Returns the value of the
vm
attribute. -
- (Object) vm=(value)
Sets the value of the
vm
attribute. -
- (Array<Watchdog>) watchdogs
Returns the value of the
watchdogs
attribute. -
- (Object) watchdogs=(list)
Sets the value of the
watchdogs
attribute.
Methods included from Type
Constructor Details
- (Template) initialize(opts = {})
Creates a new instance of the OvirtSDK4::Template class.
37837 37838 37839 37840 37841 37842 37843 37844 37845 37846 37847 37848 37849 37850 37851 37852 37853 37854 37855 37856 37857 37858 37859 37860 37861 37862 37863 37864 37865 37866 37867 37868 37869 37870 37871 37872 37873 37874 37875 37876 37877 37878 37879 37880 37881 37882 37883 37884 37885 37886 37887 37888 37889 37890 |
# File 'lib/ovirtsdk4/types.rb', line 37837 def initialize(opts = {}) super(opts) self.bios = opts[:bios] self.cdroms = opts[:cdroms] self.cluster = opts[:cluster] self.comment = opts[:comment] self.console = opts[:console] self.cpu = opts[:cpu] self.cpu_profile = opts[:cpu_profile] self.cpu_shares = opts[:cpu_shares] self.creation_time = opts[:creation_time] self.custom_compatibility_version = opts[:custom_compatibility_version] self.custom_cpu_model = opts[:custom_cpu_model] self.custom_emulated_machine = opts[:custom_emulated_machine] self.custom_properties = opts[:custom_properties] self.delete_protected = opts[:delete_protected] self.description = opts[:description] self.disks = opts[:disks] self.display = opts[:display] self.domain = opts[:domain] self.graphics_consoles = opts[:graphics_consoles] self.high_availability = opts[:high_availability] self.id = opts[:id] self.initialization = opts[:initialization] self.io = opts[:io] self.large_icon = opts[:large_icon] self.memory = opts[:memory] self.memory_policy = opts[:memory_policy] self.migration = opts[:migration] self.migration_downtime = opts[:migration_downtime] self.name = opts[:name] self.nics = opts[:nics] self.origin = opts[:origin] self.os = opts[:os] self. = opts[:permissions] self.rng_device = opts[:rng_device] self.serial_number = opts[:serial_number] self.small_icon = opts[:small_icon] self.soundcard_enabled = opts[:soundcard_enabled] self.sso = opts[:sso] self.start_paused = opts[:start_paused] self.stateless = opts[:stateless] self.status = opts[:status] self.storage_domain = opts[:storage_domain] self. = opts[:tags] self.time_zone = opts[:time_zone] self.tunnel_migration = opts[:tunnel_migration] self.type = opts[:type] self.usb = opts[:usb] self.version = opts[:version] self.virtio_scsi = opts[:virtio_scsi] self.vm = opts[:vm] self.watchdogs = opts[:watchdogs] end |
Instance Method Details
- (Bios) bios
Returns the value of the bios
attribute.
36583 36584 36585 |
# File 'lib/ovirtsdk4/types.rb', line 36583 def bios return @bios end |
- (Object) bios=(value)
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.
36596 36597 36598 36599 36600 36601 |
# File 'lib/ovirtsdk4/types.rb', line 36596 def bios=(value) if value.is_a?(Hash) value = Bios.new(value) end @bios = value end |
- (Array<Cdrom>) cdroms
Returns the value of the cdroms
attribute.
36608 36609 36610 |
# File 'lib/ovirtsdk4/types.rb', line 36608 def cdroms return @cdroms end |
- (Object) cdroms=(list)
Sets the value of the cdroms
attribute.
36616 36617 36618 36619 36620 36621 36622 36623 36624 36625 36626 |
# File 'lib/ovirtsdk4/types.rb', line 36616 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.
36633 36634 36635 |
# File 'lib/ovirtsdk4/types.rb', line 36633 def cluster return @cluster end |
- (Object) cluster=(value)
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.
36646 36647 36648 36649 36650 36651 |
# File 'lib/ovirtsdk4/types.rb', line 36646 def cluster=(value) if value.is_a?(Hash) value = Cluster.new(value) end @cluster = value end |
- (String) comment
Returns the value of the comment
attribute.
36658 36659 36660 |
# File 'lib/ovirtsdk4/types.rb', line 36658 def comment return @comment end |
- (Object) comment=(value)
Sets the value of the comment
attribute.
36667 36668 36669 |
# File 'lib/ovirtsdk4/types.rb', line 36667 def comment=(value) @comment = value end |
- (Console) console
Returns the value of the console
attribute.
36676 36677 36678 |
# File 'lib/ovirtsdk4/types.rb', line 36676 def console return @console end |
- (Object) console=(value)
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.
36689 36690 36691 36692 36693 36694 |
# File 'lib/ovirtsdk4/types.rb', line 36689 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.
36701 36702 36703 |
# File 'lib/ovirtsdk4/types.rb', line 36701 def cpu return @cpu end |
- (Object) cpu=(value)
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.
36714 36715 36716 36717 36718 36719 |
# File 'lib/ovirtsdk4/types.rb', line 36714 def cpu=(value) if value.is_a?(Hash) value = Cpu.new(value) end @cpu = value end |
- (CpuProfile) cpu_profile
Returns the value of the cpu_profile
attribute.
36726 36727 36728 |
# File 'lib/ovirtsdk4/types.rb', line 36726 def cpu_profile return @cpu_profile end |
- (Object) cpu_profile=(value)
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.
36739 36740 36741 36742 36743 36744 |
# File 'lib/ovirtsdk4/types.rb', line 36739 def cpu_profile=(value) if value.is_a?(Hash) value = CpuProfile.new(value) end @cpu_profile = value end |
- (Integer) cpu_shares
Returns the value of the cpu_shares
attribute.
36751 36752 36753 |
# File 'lib/ovirtsdk4/types.rb', line 36751 def cpu_shares return @cpu_shares end |
- (Object) cpu_shares=(value)
Sets the value of the cpu_shares
attribute.
36760 36761 36762 |
# File 'lib/ovirtsdk4/types.rb', line 36760 def cpu_shares=(value) @cpu_shares = value end |
- (DateTime) creation_time
Returns the value of the creation_time
attribute.
36769 36770 36771 |
# File 'lib/ovirtsdk4/types.rb', line 36769 def creation_time return @creation_time end |
- (Object) creation_time=(value)
Sets the value of the creation_time
attribute.
36778 36779 36780 |
# File 'lib/ovirtsdk4/types.rb', line 36778 def creation_time=(value) @creation_time = value end |
- (Version) custom_compatibility_version
Returns the value of the custom_compatibility_version
attribute.
36787 36788 36789 |
# File 'lib/ovirtsdk4/types.rb', line 36787 def custom_compatibility_version return @custom_compatibility_version end |
- (Object) custom_compatibility_version=(value)
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.
36800 36801 36802 36803 36804 36805 |
# File 'lib/ovirtsdk4/types.rb', line 36800 def custom_compatibility_version=(value) if value.is_a?(Hash) value = Version.new(value) end @custom_compatibility_version = value end |
- (String) custom_cpu_model
Returns the value of the custom_cpu_model
attribute.
36812 36813 36814 |
# File 'lib/ovirtsdk4/types.rb', line 36812 def custom_cpu_model return @custom_cpu_model end |
- (Object) custom_cpu_model=(value)
Sets the value of the custom_cpu_model
attribute.
36821 36822 36823 |
# File 'lib/ovirtsdk4/types.rb', line 36821 def custom_cpu_model=(value) @custom_cpu_model = value end |
- (String) custom_emulated_machine
Returns the value of the custom_emulated_machine
attribute.
36830 36831 36832 |
# File 'lib/ovirtsdk4/types.rb', line 36830 def custom_emulated_machine return @custom_emulated_machine end |
- (Object) custom_emulated_machine=(value)
Sets the value of the custom_emulated_machine
attribute.
36839 36840 36841 |
# File 'lib/ovirtsdk4/types.rb', line 36839 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
- (Array<CustomProperty>) custom_properties
Returns the value of the custom_properties
attribute.
36848 36849 36850 |
# File 'lib/ovirtsdk4/types.rb', line 36848 def custom_properties return @custom_properties end |
- (Object) custom_properties=(list)
Sets the value of the custom_properties
attribute.
36856 36857 36858 36859 36860 36861 36862 36863 36864 36865 36866 |
# File 'lib/ovirtsdk4/types.rb', line 36856 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 |
- (Boolean) delete_protected
Returns the value of the delete_protected
attribute.
36873 36874 36875 |
# File 'lib/ovirtsdk4/types.rb', line 36873 def delete_protected return @delete_protected end |
- (Object) delete_protected=(value)
Sets the value of the delete_protected
attribute.
36882 36883 36884 |
# File 'lib/ovirtsdk4/types.rb', line 36882 def delete_protected=(value) @delete_protected = value end |
- (String) description
Returns the value of the description
attribute.
36891 36892 36893 |
# File 'lib/ovirtsdk4/types.rb', line 36891 def description return @description end |
- (Object) description=(value)
Sets the value of the description
attribute.
36900 36901 36902 |
# File 'lib/ovirtsdk4/types.rb', line 36900 def description=(value) @description = value end |
- (Array<Disk>) disks
Returns the value of the disks
attribute.
36909 36910 36911 |
# File 'lib/ovirtsdk4/types.rb', line 36909 def disks return @disks end |
- (Object) disks=(list)
Sets the value of the disks
attribute.
36917 36918 36919 36920 36921 36922 36923 36924 36925 36926 36927 |
# File 'lib/ovirtsdk4/types.rb', line 36917 def disks=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Disk.new(value) end end end @disks = list end |
- (Display) display
Returns the value of the display
attribute.
36934 36935 36936 |
# File 'lib/ovirtsdk4/types.rb', line 36934 def display return @display end |
- (Object) display=(value)
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.
36947 36948 36949 36950 36951 36952 |
# File 'lib/ovirtsdk4/types.rb', line 36947 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.
36959 36960 36961 |
# File 'lib/ovirtsdk4/types.rb', line 36959 def domain return @domain end |
- (Object) domain=(value)
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.
36972 36973 36974 36975 36976 36977 |
# File 'lib/ovirtsdk4/types.rb', line 36972 def domain=(value) if value.is_a?(Hash) value = Domain.new(value) end @domain = value end |
- (Array<GraphicsConsole>) graphics_consoles
Returns the value of the graphics_consoles
attribute.
36984 36985 36986 |
# File 'lib/ovirtsdk4/types.rb', line 36984 def graphics_consoles return @graphics_consoles end |
- (Object) graphics_consoles=(list)
Sets the value of the graphics_consoles
attribute.
36992 36993 36994 36995 36996 36997 36998 36999 37000 37001 37002 |
# File 'lib/ovirtsdk4/types.rb', line 36992 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 |
- (HighAvailability) high_availability
Returns the value of the high_availability
attribute.
37009 37010 37011 |
# File 'lib/ovirtsdk4/types.rb', line 37009 def high_availability return @high_availability end |
- (Object) high_availability=(value)
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.
37022 37023 37024 37025 37026 37027 |
# File 'lib/ovirtsdk4/types.rb', line 37022 def high_availability=(value) if value.is_a?(Hash) value = HighAvailability.new(value) end @high_availability = value end |
- (String) id
Returns the value of the id
attribute.
37034 37035 37036 |
# File 'lib/ovirtsdk4/types.rb', line 37034 def id return @id end |
- (Object) id=(value)
Sets the value of the id
attribute.
37043 37044 37045 |
# File 'lib/ovirtsdk4/types.rb', line 37043 def id=(value) @id = value end |
- (Initialization) initialization
Returns the value of the initialization
attribute.
37052 37053 37054 |
# File 'lib/ovirtsdk4/types.rb', line 37052 def initialization return @initialization end |
- (Object) initialization=(value)
Sets the value of the initialization
attribute.
The value
parameter can be an instance of Initialization or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
37065 37066 37067 37068 37069 37070 |
# File 'lib/ovirtsdk4/types.rb', line 37065 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.
37077 37078 37079 |
# File 'lib/ovirtsdk4/types.rb', line 37077 def io return @io end |
- (Object) io=(value)
Sets the value of the io
attribute.
The value
parameter can be an instance of Io or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
37090 37091 37092 37093 37094 37095 |
# File 'lib/ovirtsdk4/types.rb', line 37090 def io=(value) if value.is_a?(Hash) value = Io.new(value) end @io = value end |
- (Icon) large_icon
Returns the value of the large_icon
attribute.
37102 37103 37104 |
# File 'lib/ovirtsdk4/types.rb', line 37102 def large_icon return @large_icon end |
- (Object) large_icon=(value)
Sets the value of the large_icon
attribute.
The value
parameter can be an instance of Icon or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
37115 37116 37117 37118 37119 37120 |
# File 'lib/ovirtsdk4/types.rb', line 37115 def large_icon=(value) if value.is_a?(Hash) value = Icon.new(value) end @large_icon = value end |
- (Integer) memory
Returns the value of the memory
attribute.
37127 37128 37129 |
# File 'lib/ovirtsdk4/types.rb', line 37127 def memory return @memory end |
- (Object) memory=(value)
Sets the value of the memory
attribute.
37136 37137 37138 |
# File 'lib/ovirtsdk4/types.rb', line 37136 def memory=(value) @memory = value end |
- (MemoryPolicy) memory_policy
Returns the value of the memory_policy
attribute.
37145 37146 37147 |
# File 'lib/ovirtsdk4/types.rb', line 37145 def memory_policy return @memory_policy end |
- (Object) memory_policy=(value)
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.
37158 37159 37160 37161 37162 37163 |
# File 'lib/ovirtsdk4/types.rb', line 37158 def memory_policy=(value) if value.is_a?(Hash) value = MemoryPolicy.new(value) end @memory_policy = value end |
- (MigrationOptions) migration
Returns the value of the migration
attribute.
37170 37171 37172 |
# File 'lib/ovirtsdk4/types.rb', line 37170 def migration return @migration end |
- (Object) migration=(value)
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.
37183 37184 37185 37186 37187 37188 |
# File 'lib/ovirtsdk4/types.rb', line 37183 def migration=(value) if value.is_a?(Hash) value = MigrationOptions.new(value) end @migration = value end |
- (Integer) migration_downtime
Returns the value of the migration_downtime
attribute.
37195 37196 37197 |
# File 'lib/ovirtsdk4/types.rb', line 37195 def migration_downtime return @migration_downtime end |
- (Object) migration_downtime=(value)
Sets the value of the migration_downtime
attribute.
37204 37205 37206 |
# File 'lib/ovirtsdk4/types.rb', line 37204 def migration_downtime=(value) @migration_downtime = value end |
- (String) name
Returns the value of the name
attribute.
37213 37214 37215 |
# File 'lib/ovirtsdk4/types.rb', line 37213 def name return @name end |
- (Object) name=(value)
Sets the value of the name
attribute.
37222 37223 37224 |
# File 'lib/ovirtsdk4/types.rb', line 37222 def name=(value) @name = value end |
- (Array<Nic>) nics
Returns the value of the nics
attribute.
37231 37232 37233 |
# File 'lib/ovirtsdk4/types.rb', line 37231 def nics return @nics end |
- (Object) nics=(list)
Sets the value of the nics
attribute.
37239 37240 37241 37242 37243 37244 37245 37246 37247 37248 37249 |
# File 'lib/ovirtsdk4/types.rb', line 37239 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 |
- (String) origin
Returns the value of the origin
attribute.
37256 37257 37258 |
# File 'lib/ovirtsdk4/types.rb', line 37256 def origin return @origin end |
- (Object) origin=(value)
Sets the value of the origin
attribute.
37265 37266 37267 |
# File 'lib/ovirtsdk4/types.rb', line 37265 def origin=(value) @origin = value end |
- (OperatingSystem) os
Returns the value of the os
attribute.
37274 37275 37276 |
# File 'lib/ovirtsdk4/types.rb', line 37274 def os return @os end |
- (Object) os=(value)
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.
37287 37288 37289 37290 37291 37292 |
# File 'lib/ovirtsdk4/types.rb', line 37287 def os=(value) if value.is_a?(Hash) value = OperatingSystem.new(value) end @os = value end |
- (Array<Permission>) permissions
Returns the value of the permissions
attribute.
37299 37300 37301 |
# File 'lib/ovirtsdk4/types.rb', line 37299 def return @permissions end |
- (Object) permissions=(list)
Sets the value of the permissions
attribute.
37307 37308 37309 37310 37311 37312 37313 37314 37315 37316 37317 |
# File 'lib/ovirtsdk4/types.rb', line 37307 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 |
- (RngDevice) rng_device
Returns the value of the rng_device
attribute.
37324 37325 37326 |
# File 'lib/ovirtsdk4/types.rb', line 37324 def rng_device return @rng_device end |
- (Object) rng_device=(value)
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.
37337 37338 37339 37340 37341 37342 |
# File 'lib/ovirtsdk4/types.rb', line 37337 def rng_device=(value) if value.is_a?(Hash) value = RngDevice.new(value) end @rng_device = value end |
- (SerialNumber) serial_number
Returns the value of the serial_number
attribute.
37349 37350 37351 |
# File 'lib/ovirtsdk4/types.rb', line 37349 def serial_number return @serial_number end |
- (Object) serial_number=(value)
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.
37362 37363 37364 37365 37366 37367 |
# File 'lib/ovirtsdk4/types.rb', line 37362 def serial_number=(value) if value.is_a?(Hash) value = SerialNumber.new(value) end @serial_number = value end |
- (Icon) small_icon
Returns the value of the small_icon
attribute.
37374 37375 37376 |
# File 'lib/ovirtsdk4/types.rb', line 37374 def small_icon return @small_icon end |
- (Object) small_icon=(value)
Sets the value of the small_icon
attribute.
The value
parameter can be an instance of Icon or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
37387 37388 37389 37390 37391 37392 |
# File 'lib/ovirtsdk4/types.rb', line 37387 def small_icon=(value) if value.is_a?(Hash) value = Icon.new(value) end @small_icon = value end |
- (Boolean) soundcard_enabled
Returns the value of the soundcard_enabled
attribute.
37399 37400 37401 |
# File 'lib/ovirtsdk4/types.rb', line 37399 def soundcard_enabled return @soundcard_enabled end |
- (Object) soundcard_enabled=(value)
Sets the value of the soundcard_enabled
attribute.
37408 37409 37410 |
# File 'lib/ovirtsdk4/types.rb', line 37408 def soundcard_enabled=(value) @soundcard_enabled = value end |
- (Sso) sso
Returns the value of the sso
attribute.
37417 37418 37419 |
# File 'lib/ovirtsdk4/types.rb', line 37417 def sso return @sso end |
- (Object) sso=(value)
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.
37430 37431 37432 37433 37434 37435 |
# File 'lib/ovirtsdk4/types.rb', line 37430 def sso=(value) if value.is_a?(Hash) value = Sso.new(value) end @sso = value end |
- (Boolean) start_paused
Returns the value of the start_paused
attribute.
37442 37443 37444 |
# File 'lib/ovirtsdk4/types.rb', line 37442 def start_paused return @start_paused end |
- (Object) start_paused=(value)
Sets the value of the start_paused
attribute.
37451 37452 37453 |
# File 'lib/ovirtsdk4/types.rb', line 37451 def start_paused=(value) @start_paused = value end |
- (Boolean) stateless
Returns the value of the stateless
attribute.
37460 37461 37462 |
# File 'lib/ovirtsdk4/types.rb', line 37460 def stateless return @stateless end |
- (Object) stateless=(value)
Sets the value of the stateless
attribute.
37469 37470 37471 |
# File 'lib/ovirtsdk4/types.rb', line 37469 def stateless=(value) @stateless = value end |
- (TemplateStatus) status
Returns the value of the status
attribute.
37478 37479 37480 |
# File 'lib/ovirtsdk4/types.rb', line 37478 def status return @status end |
- (Object) status=(value)
Sets the value of the status
attribute.
37487 37488 37489 |
# File 'lib/ovirtsdk4/types.rb', line 37487 def status=(value) @status = value end |
- (StorageDomain) storage_domain
Returns the value of the storage_domain
attribute.
37496 37497 37498 |
# File 'lib/ovirtsdk4/types.rb', line 37496 def storage_domain return @storage_domain end |
- (Object) storage_domain=(value)
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.
37509 37510 37511 37512 37513 37514 |
# File 'lib/ovirtsdk4/types.rb', line 37509 def storage_domain=(value) if value.is_a?(Hash) value = StorageDomain.new(value) end @storage_domain = value end |
- (Array<Tag>) tags
Returns the value of the tags
attribute.
37521 37522 37523 |
# File 'lib/ovirtsdk4/types.rb', line 37521 def return @tags end |
- (Object) tags=(list)
Sets the value of the tags
attribute.
37529 37530 37531 37532 37533 37534 37535 37536 37537 37538 37539 |
# File 'lib/ovirtsdk4/types.rb', line 37529 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 |
- (TimeZone) time_zone
Returns the value of the time_zone
attribute.
37546 37547 37548 |
# File 'lib/ovirtsdk4/types.rb', line 37546 def time_zone return @time_zone end |
- (Object) time_zone=(value)
Sets the value of the time_zone
attribute.
The value
parameter can be an instance of OvirtSDK4::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.
37559 37560 37561 37562 37563 37564 |
# File 'lib/ovirtsdk4/types.rb', line 37559 def time_zone=(value) if value.is_a?(Hash) value = TimeZone.new(value) end @time_zone = value end |
- (Boolean) tunnel_migration
Returns the value of the tunnel_migration
attribute.
37571 37572 37573 |
# File 'lib/ovirtsdk4/types.rb', line 37571 def tunnel_migration return @tunnel_migration end |
- (Object) tunnel_migration=(value)
Sets the value of the tunnel_migration
attribute.
37580 37581 37582 |
# File 'lib/ovirtsdk4/types.rb', line 37580 def tunnel_migration=(value) @tunnel_migration = value end |
- (VmType) type
Returns the value of the type
attribute.
37589 37590 37591 |
# File 'lib/ovirtsdk4/types.rb', line 37589 def type return @type end |
- (Object) type=(value)
Sets the value of the type
attribute.
37598 37599 37600 |
# File 'lib/ovirtsdk4/types.rb', line 37598 def type=(value) @type = value end |
- (Usb) usb
Returns the value of the usb
attribute.
37607 37608 37609 |
# File 'lib/ovirtsdk4/types.rb', line 37607 def usb return @usb end |
- (Object) usb=(value)
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.
37620 37621 37622 37623 37624 37625 |
# File 'lib/ovirtsdk4/types.rb', line 37620 def usb=(value) if value.is_a?(Hash) value = Usb.new(value) end @usb = value end |
- (TemplateVersion) version
Returns the value of the version
attribute.
37632 37633 37634 |
# File 'lib/ovirtsdk4/types.rb', line 37632 def version return @version end |
- (Object) version=(value)
Sets the value of the version
attribute.
The value
parameter can be an instance of OvirtSDK4::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.
37645 37646 37647 37648 37649 37650 |
# File 'lib/ovirtsdk4/types.rb', line 37645 def version=(value) if value.is_a?(Hash) value = TemplateVersion.new(value) end @version = value end |
- (VirtioScsi) virtio_scsi
Returns the value of the virtio_scsi
attribute.
37657 37658 37659 |
# File 'lib/ovirtsdk4/types.rb', line 37657 def virtio_scsi return @virtio_scsi end |
- (Object) virtio_scsi=(value)
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.
37670 37671 37672 37673 37674 37675 |
# File 'lib/ovirtsdk4/types.rb', line 37670 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.
37682 37683 37684 |
# File 'lib/ovirtsdk4/types.rb', line 37682 def vm return @vm end |
- (Object) vm=(value)
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.
37695 37696 37697 37698 37699 37700 |
# File 'lib/ovirtsdk4/types.rb', line 37695 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |
- (Array<Watchdog>) watchdogs
Returns the value of the watchdogs
attribute.
37707 37708 37709 |
# File 'lib/ovirtsdk4/types.rb', line 37707 def watchdogs return @watchdogs end |
- (Object) watchdogs=(list)
Sets the value of the watchdogs
attribute.
37715 37716 37717 37718 37719 37720 37721 37722 37723 37724 37725 |
# File 'lib/ovirtsdk4/types.rb', line 37715 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 |