Class: OvirtSDK4::InstanceType
- Inherits:
-
Template
- Object
- Struct
- Identified
- VmBase
- Template
- OvirtSDK4::InstanceType
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (Bios) bios
Returns the value of the
biosattribute. -
- (Object) bios=(value)
Sets the value of the
biosattribute. -
- (Array<Cdrom>) cdroms
Returns the value of the
cdromsattribute. -
- (Object) cdroms=(list)
Sets the value of the
cdromsattribute. -
- (Cluster) cluster
Returns the value of the
clusterattribute. -
- (Object) cluster=(value)
Sets the value of the
clusterattribute. -
- (String) comment
Returns the value of the
commentattribute. -
- (Object) comment=(value)
Sets the value of the
commentattribute. -
- (Console) console
Returns the value of the
consoleattribute. -
- (Object) console=(value)
Sets the value of the
consoleattribute. -
- (Cpu) cpu
Returns the value of the
cpuattribute. -
- (Object) cpu=(value)
Sets the value of the
cpuattribute. -
- (CpuProfile) cpu_profile
Returns the value of the
cpu_profileattribute. -
- (Object) cpu_profile=(value)
Sets the value of the
cpu_profileattribute. -
- (Integer) cpu_shares
Returns the value of the
cpu_sharesattribute. -
- (Object) cpu_shares=(value)
Sets the value of the
cpu_sharesattribute. -
- (DateTime) creation_time
Returns the value of the
creation_timeattribute. -
- (Object) creation_time=(value)
Sets the value of the
creation_timeattribute. -
- (Version) custom_compatibility_version
Returns the value of the
custom_compatibility_versionattribute. -
- (Object) custom_compatibility_version=(value)
Sets the value of the
custom_compatibility_versionattribute. -
- (String) custom_cpu_model
Returns the value of the
custom_cpu_modelattribute. -
- (Object) custom_cpu_model=(value)
Sets the value of the
custom_cpu_modelattribute. -
- (String) custom_emulated_machine
Returns the value of the
custom_emulated_machineattribute. -
- (Object) custom_emulated_machine=(value)
Sets the value of the
custom_emulated_machineattribute. -
- (Array<CustomProperty>) custom_properties
Returns the value of the
custom_propertiesattribute. -
- (Object) custom_properties=(list)
Sets the value of the
custom_propertiesattribute. -
- (Boolean) delete_protected
Returns the value of the
delete_protectedattribute. -
- (Object) delete_protected=(value)
Sets the value of the
delete_protectedattribute. -
- (String) description
Returns the value of the
descriptionattribute. -
- (Object) description=(value)
Sets the value of the
descriptionattribute. -
- (Array<Disk>) disks
Returns the value of the
disksattribute. -
- (Object) disks=(list)
Sets the value of the
disksattribute. -
- (Display) display
Returns the value of the
displayattribute. -
- (Object) display=(value)
Sets the value of the
displayattribute. -
- (Domain) domain
Returns the value of the
domainattribute. -
- (Object) domain=(value)
Sets the value of the
domainattribute. -
- (Array<GraphicsConsole>) graphics_consoles
Returns the value of the
graphics_consolesattribute. -
- (Object) graphics_consoles=(list)
Sets the value of the
graphics_consolesattribute. -
- (HighAvailability) high_availability
Returns the value of the
high_availabilityattribute. -
- (Object) high_availability=(value)
Sets the value of the
high_availabilityattribute. -
- (String) id
Returns the value of the
idattribute. -
- (Object) id=(value)
Sets the value of the
idattribute. -
- (Initialization) initialization
Returns the value of the
initializationattribute. -
- (Object) initialization=(value)
Sets the value of the
initializationattribute. -
- (InstanceType) initialize(opts = {})
constructor
Creates a new instance of the InstanceType class.
-
- (Io) io
Returns the value of the
ioattribute. -
- (Object) io=(value)
Sets the value of the
ioattribute. -
- (Icon) large_icon
Returns the value of the
large_iconattribute. -
- (Object) large_icon=(value)
Sets the value of the
large_iconattribute. -
- (Integer) memory
Returns the value of the
memoryattribute. -
- (Object) memory=(value)
Sets the value of the
memoryattribute. -
- (MemoryPolicy) memory_policy
Returns the value of the
memory_policyattribute. -
- (Object) memory_policy=(value)
Sets the value of the
memory_policyattribute. -
- (MigrationOptions) migration
Returns the value of the
migrationattribute. -
- (Object) migration=(value)
Sets the value of the
migrationattribute. -
- (Integer) migration_downtime
Returns the value of the
migration_downtimeattribute. -
- (Object) migration_downtime=(value)
Sets the value of the
migration_downtimeattribute. -
- (String) name
Returns the value of the
nameattribute. -
- (Object) name=(value)
Sets the value of the
nameattribute. -
- (Array<Nic>) nics
Returns the value of the
nicsattribute. -
- (Object) nics=(list)
Sets the value of the
nicsattribute. -
- (String) origin
Returns the value of the
originattribute. -
- (Object) origin=(value)
Sets the value of the
originattribute. -
- (OperatingSystem) os
Returns the value of the
osattribute. -
- (Object) os=(value)
Sets the value of the
osattribute. -
- (Array<Permission>) permissions
Returns the value of the
permissionsattribute. -
- (Object) permissions=(list)
Sets the value of the
permissionsattribute. -
- (RngDevice) rng_device
Returns the value of the
rng_deviceattribute. -
- (Object) rng_device=(value)
Sets the value of the
rng_deviceattribute. -
- (SerialNumber) serial_number
Returns the value of the
serial_numberattribute. -
- (Object) serial_number=(value)
Sets the value of the
serial_numberattribute. -
- (Icon) small_icon
Returns the value of the
small_iconattribute. -
- (Object) small_icon=(value)
Sets the value of the
small_iconattribute. -
- (Boolean) soundcard_enabled
Returns the value of the
soundcard_enabledattribute. -
- (Object) soundcard_enabled=(value)
Sets the value of the
soundcard_enabledattribute. -
- (Sso) sso
Returns the value of the
ssoattribute. -
- (Object) sso=(value)
Sets the value of the
ssoattribute. -
- (Boolean) start_paused
Returns the value of the
start_pausedattribute. -
- (Object) start_paused=(value)
Sets the value of the
start_pausedattribute. -
- (Boolean) stateless
Returns the value of the
statelessattribute. -
- (Object) stateless=(value)
Sets the value of the
statelessattribute. -
- (TemplateStatus) status
Returns the value of the
statusattribute. -
- (Object) status=(value)
Sets the value of the
statusattribute. -
- (StorageDomain) storage_domain
Returns the value of the
storage_domainattribute. -
- (Object) storage_domain=(value)
Sets the value of the
storage_domainattribute. -
- (Array<Tag>) tags
Returns the value of the
tagsattribute. -
- (Object) tags=(list)
Sets the value of the
tagsattribute. -
- (TimeZone) time_zone
Returns the value of the
time_zoneattribute. -
- (Object) time_zone=(value)
Sets the value of the
time_zoneattribute. -
- (Boolean) tunnel_migration
Returns the value of the
tunnel_migrationattribute. -
- (Object) tunnel_migration=(value)
Sets the value of the
tunnel_migrationattribute. -
- (VmType) type
Returns the value of the
typeattribute. -
- (Object) type=(value)
Sets the value of the
typeattribute. -
- (Usb) usb
Returns the value of the
usbattribute. -
- (Object) usb=(value)
Sets the value of the
usbattribute. -
- (TemplateVersion) version
Returns the value of the
versionattribute. -
- (Object) version=(value)
Sets the value of the
versionattribute. -
- (VirtioScsi) virtio_scsi
Returns the value of the
virtio_scsiattribute. -
- (Object) virtio_scsi=(value)
Sets the value of the
virtio_scsiattribute. -
- (Vm) vm
Returns the value of the
vmattribute. -
- (Object) vm=(value)
Sets the value of the
vmattribute. -
- (Array<Watchdog>) watchdogs
Returns the value of the
watchdogsattribute. -
- (Object) watchdogs=(list)
Sets the value of the
watchdogsattribute.
Methods included from Type
Constructor Details
- (InstanceType) initialize(opts = {})
Creates a new instance of the OvirtSDK4::InstanceType class.
42553 42554 42555 42556 42557 42558 42559 42560 42561 42562 42563 42564 42565 42566 42567 42568 42569 42570 42571 42572 42573 42574 42575 42576 42577 42578 42579 42580 42581 42582 42583 42584 42585 42586 42587 42588 42589 42590 42591 42592 42593 42594 42595 42596 42597 42598 42599 42600 42601 42602 42603 42604 42605 42606 |
# File 'lib/ovirtsdk4/types.rb', line 42553 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.
41299 41300 41301 |
# File 'lib/ovirtsdk4/types.rb', line 41299 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.
41312 41313 41314 41315 41316 41317 |
# File 'lib/ovirtsdk4/types.rb', line 41312 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.
41324 41325 41326 |
# File 'lib/ovirtsdk4/types.rb', line 41324 def cdroms return @cdroms end |
- (Object) cdroms=(list)
Sets the value of the cdroms attribute.
41332 41333 41334 41335 41336 41337 41338 41339 41340 41341 41342 |
# File 'lib/ovirtsdk4/types.rb', line 41332 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.
41349 41350 41351 |
# File 'lib/ovirtsdk4/types.rb', line 41349 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.
41362 41363 41364 41365 41366 41367 |
# File 'lib/ovirtsdk4/types.rb', line 41362 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.
41374 41375 41376 |
# File 'lib/ovirtsdk4/types.rb', line 41374 def comment return @comment end |
- (Object) comment=(value)
Sets the value of the comment attribute.
41383 41384 41385 |
# File 'lib/ovirtsdk4/types.rb', line 41383 def comment=(value) @comment = value end |
- (Console) console
Returns the value of the console attribute.
41392 41393 41394 |
# File 'lib/ovirtsdk4/types.rb', line 41392 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.
41405 41406 41407 41408 41409 41410 |
# File 'lib/ovirtsdk4/types.rb', line 41405 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.
41417 41418 41419 |
# File 'lib/ovirtsdk4/types.rb', line 41417 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.
41430 41431 41432 41433 41434 41435 |
# File 'lib/ovirtsdk4/types.rb', line 41430 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.
41442 41443 41444 |
# File 'lib/ovirtsdk4/types.rb', line 41442 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.
41455 41456 41457 41458 41459 41460 |
# File 'lib/ovirtsdk4/types.rb', line 41455 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.
41467 41468 41469 |
# File 'lib/ovirtsdk4/types.rb', line 41467 def cpu_shares return @cpu_shares end |
- (Object) cpu_shares=(value)
Sets the value of the cpu_shares attribute.
41476 41477 41478 |
# File 'lib/ovirtsdk4/types.rb', line 41476 def cpu_shares=(value) @cpu_shares = value end |
- (DateTime) creation_time
Returns the value of the creation_time attribute.
41485 41486 41487 |
# File 'lib/ovirtsdk4/types.rb', line 41485 def creation_time return @creation_time end |
- (Object) creation_time=(value)
Sets the value of the creation_time attribute.
41494 41495 41496 |
# File 'lib/ovirtsdk4/types.rb', line 41494 def creation_time=(value) @creation_time = value end |
- (Version) custom_compatibility_version
Returns the value of the custom_compatibility_version attribute.
41503 41504 41505 |
# File 'lib/ovirtsdk4/types.rb', line 41503 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.
41516 41517 41518 41519 41520 41521 |
# File 'lib/ovirtsdk4/types.rb', line 41516 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.
41528 41529 41530 |
# File 'lib/ovirtsdk4/types.rb', line 41528 def custom_cpu_model return @custom_cpu_model end |
- (Object) custom_cpu_model=(value)
Sets the value of the custom_cpu_model attribute.
41537 41538 41539 |
# File 'lib/ovirtsdk4/types.rb', line 41537 def custom_cpu_model=(value) @custom_cpu_model = value end |
- (String) custom_emulated_machine
Returns the value of the custom_emulated_machine attribute.
41546 41547 41548 |
# File 'lib/ovirtsdk4/types.rb', line 41546 def custom_emulated_machine return @custom_emulated_machine end |
- (Object) custom_emulated_machine=(value)
Sets the value of the custom_emulated_machine attribute.
41555 41556 41557 |
# File 'lib/ovirtsdk4/types.rb', line 41555 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
- (Array<CustomProperty>) custom_properties
Returns the value of the custom_properties attribute.
41564 41565 41566 |
# File 'lib/ovirtsdk4/types.rb', line 41564 def custom_properties return @custom_properties end |
- (Object) custom_properties=(list)
Sets the value of the custom_properties attribute.
41572 41573 41574 41575 41576 41577 41578 41579 41580 41581 41582 |
# File 'lib/ovirtsdk4/types.rb', line 41572 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.
41589 41590 41591 |
# File 'lib/ovirtsdk4/types.rb', line 41589 def delete_protected return @delete_protected end |
- (Object) delete_protected=(value)
Sets the value of the delete_protected attribute.
41598 41599 41600 |
# File 'lib/ovirtsdk4/types.rb', line 41598 def delete_protected=(value) @delete_protected = value end |
- (String) description
Returns the value of the description attribute.
41607 41608 41609 |
# File 'lib/ovirtsdk4/types.rb', line 41607 def description return @description end |
- (Object) description=(value)
Sets the value of the description attribute.
41616 41617 41618 |
# File 'lib/ovirtsdk4/types.rb', line 41616 def description=(value) @description = value end |
- (Array<Disk>) disks
Returns the value of the disks attribute.
41625 41626 41627 |
# File 'lib/ovirtsdk4/types.rb', line 41625 def disks return @disks end |
- (Object) disks=(list)
Sets the value of the disks attribute.
41633 41634 41635 41636 41637 41638 41639 41640 41641 41642 41643 |
# File 'lib/ovirtsdk4/types.rb', line 41633 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.
41650 41651 41652 |
# File 'lib/ovirtsdk4/types.rb', line 41650 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.
41663 41664 41665 41666 41667 41668 |
# File 'lib/ovirtsdk4/types.rb', line 41663 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.
41675 41676 41677 |
# File 'lib/ovirtsdk4/types.rb', line 41675 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.
41688 41689 41690 41691 41692 41693 |
# File 'lib/ovirtsdk4/types.rb', line 41688 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.
41700 41701 41702 |
# File 'lib/ovirtsdk4/types.rb', line 41700 def graphics_consoles return @graphics_consoles end |
- (Object) graphics_consoles=(list)
Sets the value of the graphics_consoles attribute.
41708 41709 41710 41711 41712 41713 41714 41715 41716 41717 41718 |
# File 'lib/ovirtsdk4/types.rb', line 41708 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.
41725 41726 41727 |
# File 'lib/ovirtsdk4/types.rb', line 41725 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.
41738 41739 41740 41741 41742 41743 |
# File 'lib/ovirtsdk4/types.rb', line 41738 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.
41750 41751 41752 |
# File 'lib/ovirtsdk4/types.rb', line 41750 def id return @id end |
- (Object) id=(value)
Sets the value of the id attribute.
41759 41760 41761 |
# File 'lib/ovirtsdk4/types.rb', line 41759 def id=(value) @id = value end |
- (Initialization) initialization
Returns the value of the initialization attribute.
41768 41769 41770 |
# File 'lib/ovirtsdk4/types.rb', line 41768 def initialization return @initialization end |
- (Object) initialization=(value)
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.
41781 41782 41783 41784 41785 41786 |
# File 'lib/ovirtsdk4/types.rb', line 41781 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.
41793 41794 41795 |
# File 'lib/ovirtsdk4/types.rb', line 41793 def io return @io end |
- (Object) io=(value)
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.
41806 41807 41808 41809 41810 41811 |
# File 'lib/ovirtsdk4/types.rb', line 41806 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.
41818 41819 41820 |
# File 'lib/ovirtsdk4/types.rb', line 41818 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 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.
41831 41832 41833 41834 41835 41836 |
# File 'lib/ovirtsdk4/types.rb', line 41831 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.
41843 41844 41845 |
# File 'lib/ovirtsdk4/types.rb', line 41843 def memory return @memory end |
- (Object) memory=(value)
Sets the value of the memory attribute.
41852 41853 41854 |
# File 'lib/ovirtsdk4/types.rb', line 41852 def memory=(value) @memory = value end |
- (MemoryPolicy) memory_policy
Returns the value of the memory_policy attribute.
41861 41862 41863 |
# File 'lib/ovirtsdk4/types.rb', line 41861 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.
41874 41875 41876 41877 41878 41879 |
# File 'lib/ovirtsdk4/types.rb', line 41874 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.
41886 41887 41888 |
# File 'lib/ovirtsdk4/types.rb', line 41886 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.
41899 41900 41901 41902 41903 41904 |
# File 'lib/ovirtsdk4/types.rb', line 41899 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.
41911 41912 41913 |
# File 'lib/ovirtsdk4/types.rb', line 41911 def migration_downtime return @migration_downtime end |
- (Object) migration_downtime=(value)
Sets the value of the migration_downtime attribute.
41920 41921 41922 |
# File 'lib/ovirtsdk4/types.rb', line 41920 def migration_downtime=(value) @migration_downtime = value end |
- (String) name
Returns the value of the name attribute.
41929 41930 41931 |
# File 'lib/ovirtsdk4/types.rb', line 41929 def name return @name end |
- (Object) name=(value)
Sets the value of the name attribute.
41938 41939 41940 |
# File 'lib/ovirtsdk4/types.rb', line 41938 def name=(value) @name = value end |
- (Array<Nic>) nics
Returns the value of the nics attribute.
41947 41948 41949 |
# File 'lib/ovirtsdk4/types.rb', line 41947 def nics return @nics end |
- (Object) nics=(list)
Sets the value of the nics attribute.
41955 41956 41957 41958 41959 41960 41961 41962 41963 41964 41965 |
# File 'lib/ovirtsdk4/types.rb', line 41955 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.
41972 41973 41974 |
# File 'lib/ovirtsdk4/types.rb', line 41972 def origin return @origin end |
- (Object) origin=(value)
Sets the value of the origin attribute.
41981 41982 41983 |
# File 'lib/ovirtsdk4/types.rb', line 41981 def origin=(value) @origin = value end |
- (OperatingSystem) os
Returns the value of the os attribute.
41990 41991 41992 |
# File 'lib/ovirtsdk4/types.rb', line 41990 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.
42003 42004 42005 42006 42007 42008 |
# File 'lib/ovirtsdk4/types.rb', line 42003 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.
42015 42016 42017 |
# File 'lib/ovirtsdk4/types.rb', line 42015 def return @permissions end |
- (Object) permissions=(list)
Sets the value of the permissions attribute.
42023 42024 42025 42026 42027 42028 42029 42030 42031 42032 42033 |
# File 'lib/ovirtsdk4/types.rb', line 42023 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.
42040 42041 42042 |
# File 'lib/ovirtsdk4/types.rb', line 42040 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.
42053 42054 42055 42056 42057 42058 |
# File 'lib/ovirtsdk4/types.rb', line 42053 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.
42065 42066 42067 |
# File 'lib/ovirtsdk4/types.rb', line 42065 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.
42078 42079 42080 42081 42082 42083 |
# File 'lib/ovirtsdk4/types.rb', line 42078 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.
42090 42091 42092 |
# File 'lib/ovirtsdk4/types.rb', line 42090 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 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.
42103 42104 42105 42106 42107 42108 |
# File 'lib/ovirtsdk4/types.rb', line 42103 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.
42115 42116 42117 |
# File 'lib/ovirtsdk4/types.rb', line 42115 def soundcard_enabled return @soundcard_enabled end |
- (Object) soundcard_enabled=(value)
Sets the value of the soundcard_enabled attribute.
42124 42125 42126 |
# File 'lib/ovirtsdk4/types.rb', line 42124 def soundcard_enabled=(value) @soundcard_enabled = value end |
- (Sso) sso
Returns the value of the sso attribute.
42133 42134 42135 |
# File 'lib/ovirtsdk4/types.rb', line 42133 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.
42146 42147 42148 42149 42150 42151 |
# File 'lib/ovirtsdk4/types.rb', line 42146 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.
42158 42159 42160 |
# File 'lib/ovirtsdk4/types.rb', line 42158 def start_paused return @start_paused end |
- (Object) start_paused=(value)
Sets the value of the start_paused attribute.
42167 42168 42169 |
# File 'lib/ovirtsdk4/types.rb', line 42167 def start_paused=(value) @start_paused = value end |
- (Boolean) stateless
Returns the value of the stateless attribute.
42176 42177 42178 |
# File 'lib/ovirtsdk4/types.rb', line 42176 def stateless return @stateless end |
- (Object) stateless=(value)
Sets the value of the stateless attribute.
42185 42186 42187 |
# File 'lib/ovirtsdk4/types.rb', line 42185 def stateless=(value) @stateless = value end |
- (TemplateStatus) status
Returns the value of the status attribute.
42194 42195 42196 |
# File 'lib/ovirtsdk4/types.rb', line 42194 def status return @status end |
- (Object) status=(value)
Sets the value of the status attribute.
42203 42204 42205 |
# File 'lib/ovirtsdk4/types.rb', line 42203 def status=(value) @status = value end |
- (StorageDomain) storage_domain
Returns the value of the storage_domain attribute.
42212 42213 42214 |
# File 'lib/ovirtsdk4/types.rb', line 42212 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.
42225 42226 42227 42228 42229 42230 |
# File 'lib/ovirtsdk4/types.rb', line 42225 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.
42237 42238 42239 |
# File 'lib/ovirtsdk4/types.rb', line 42237 def return @tags end |
- (Object) tags=(list)
Sets the value of the tags attribute.
42245 42246 42247 42248 42249 42250 42251 42252 42253 42254 42255 |
# File 'lib/ovirtsdk4/types.rb', line 42245 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.
42262 42263 42264 |
# File 'lib/ovirtsdk4/types.rb', line 42262 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 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.
42275 42276 42277 42278 42279 42280 |
# File 'lib/ovirtsdk4/types.rb', line 42275 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.
42287 42288 42289 |
# File 'lib/ovirtsdk4/types.rb', line 42287 def tunnel_migration return @tunnel_migration end |
- (Object) tunnel_migration=(value)
Sets the value of the tunnel_migration attribute.
42296 42297 42298 |
# File 'lib/ovirtsdk4/types.rb', line 42296 def tunnel_migration=(value) @tunnel_migration = value end |
- (VmType) type
Returns the value of the type attribute.
42305 42306 42307 |
# File 'lib/ovirtsdk4/types.rb', line 42305 def type return @type end |
- (Object) type=(value)
Sets the value of the type attribute.
42314 42315 42316 |
# File 'lib/ovirtsdk4/types.rb', line 42314 def type=(value) @type = value end |
- (Usb) usb
Returns the value of the usb attribute.
42323 42324 42325 |
# File 'lib/ovirtsdk4/types.rb', line 42323 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.
42336 42337 42338 42339 42340 42341 |
# File 'lib/ovirtsdk4/types.rb', line 42336 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.
42348 42349 42350 |
# File 'lib/ovirtsdk4/types.rb', line 42348 def version return @version end |
- (Object) version=(value)
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.
42361 42362 42363 42364 42365 42366 |
# File 'lib/ovirtsdk4/types.rb', line 42361 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.
42373 42374 42375 |
# File 'lib/ovirtsdk4/types.rb', line 42373 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.
42386 42387 42388 42389 42390 42391 |
# File 'lib/ovirtsdk4/types.rb', line 42386 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.
42398 42399 42400 |
# File 'lib/ovirtsdk4/types.rb', line 42398 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.
42411 42412 42413 42414 42415 42416 |
# File 'lib/ovirtsdk4/types.rb', line 42411 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.
42423 42424 42425 |
# File 'lib/ovirtsdk4/types.rb', line 42423 def watchdogs return @watchdogs end |
- (Object) watchdogs=(list)
Sets the value of the watchdogs attribute.
42431 42432 42433 42434 42435 42436 42437 42438 42439 42440 42441 |
# File 'lib/ovirtsdk4/types.rb', line 42431 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 |