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.
51767 51768 51769 |
# File 'lib/ovirtsdk4/types.rb', line 51767 def initialize(opts = {}) super(opts) end |
Instance Method Details
#bios ⇒ Bios
Returns the value of the bios
attribute.
50431 50432 50433 |
# File 'lib/ovirtsdk4/types.rb', line 50431 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.
50444 50445 50446 50447 50448 50449 |
# File 'lib/ovirtsdk4/types.rb', line 50444 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.
50456 50457 50458 |
# File 'lib/ovirtsdk4/types.rb', line 50456 def cdroms @cdroms end |
#cdroms=(list) ⇒ Object
Sets the value of the cdroms
attribute.
50465 50466 50467 50468 50469 50470 50471 50472 50473 50474 50475 |
# File 'lib/ovirtsdk4/types.rb', line 50465 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.
50482 50483 50484 |
# File 'lib/ovirtsdk4/types.rb', line 50482 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.
50495 50496 50497 50498 50499 50500 |
# File 'lib/ovirtsdk4/types.rb', line 50495 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.
50507 50508 50509 |
# File 'lib/ovirtsdk4/types.rb', line 50507 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
50516 50517 50518 |
# File 'lib/ovirtsdk4/types.rb', line 50516 def comment=(value) @comment = value end |
#console ⇒ Console
Returns the value of the console
attribute.
50525 50526 50527 |
# File 'lib/ovirtsdk4/types.rb', line 50525 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.
50538 50539 50540 50541 50542 50543 |
# File 'lib/ovirtsdk4/types.rb', line 50538 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.
50550 50551 50552 |
# File 'lib/ovirtsdk4/types.rb', line 50550 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.
50563 50564 50565 50566 50567 50568 |
# File 'lib/ovirtsdk4/types.rb', line 50563 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.
50575 50576 50577 |
# File 'lib/ovirtsdk4/types.rb', line 50575 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.
50588 50589 50590 50591 50592 50593 |
# File 'lib/ovirtsdk4/types.rb', line 50588 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.
50600 50601 50602 |
# File 'lib/ovirtsdk4/types.rb', line 50600 def cpu_shares @cpu_shares end |
#cpu_shares=(value) ⇒ Object
Sets the value of the cpu_shares
attribute.
50609 50610 50611 |
# File 'lib/ovirtsdk4/types.rb', line 50609 def cpu_shares=(value) @cpu_shares = value end |
#creation_time ⇒ DateTime
Returns the value of the creation_time
attribute.
50618 50619 50620 |
# File 'lib/ovirtsdk4/types.rb', line 50618 def creation_time @creation_time end |
#creation_time=(value) ⇒ Object
Sets the value of the creation_time
attribute.
50627 50628 50629 |
# File 'lib/ovirtsdk4/types.rb', line 50627 def creation_time=(value) @creation_time = value end |
#custom_compatibility_version ⇒ Version
Returns the value of the custom_compatibility_version
attribute.
50636 50637 50638 |
# File 'lib/ovirtsdk4/types.rb', line 50636 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.
50649 50650 50651 50652 50653 50654 |
# File 'lib/ovirtsdk4/types.rb', line 50649 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.
50661 50662 50663 |
# File 'lib/ovirtsdk4/types.rb', line 50661 def custom_cpu_model @custom_cpu_model end |
#custom_cpu_model=(value) ⇒ Object
Sets the value of the custom_cpu_model
attribute.
50670 50671 50672 |
# File 'lib/ovirtsdk4/types.rb', line 50670 def custom_cpu_model=(value) @custom_cpu_model = value end |
#custom_emulated_machine ⇒ String
Returns the value of the custom_emulated_machine
attribute.
50679 50680 50681 |
# File 'lib/ovirtsdk4/types.rb', line 50679 def custom_emulated_machine @custom_emulated_machine end |
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the custom_emulated_machine
attribute.
50688 50689 50690 |
# File 'lib/ovirtsdk4/types.rb', line 50688 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the custom_properties
attribute.
50697 50698 50699 |
# File 'lib/ovirtsdk4/types.rb', line 50697 def custom_properties @custom_properties end |
#custom_properties=(list) ⇒ Object
Sets the value of the custom_properties
attribute.
50706 50707 50708 50709 50710 50711 50712 50713 50714 50715 50716 |
# File 'lib/ovirtsdk4/types.rb', line 50706 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.
50723 50724 50725 |
# File 'lib/ovirtsdk4/types.rb', line 50723 def delete_protected @delete_protected end |
#delete_protected=(value) ⇒ Object
Sets the value of the delete_protected
attribute.
50732 50733 50734 |
# File 'lib/ovirtsdk4/types.rb', line 50732 def delete_protected=(value) @delete_protected = value end |
#description ⇒ String
Returns the value of the description
attribute.
50741 50742 50743 |
# File 'lib/ovirtsdk4/types.rb', line 50741 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
50750 50751 50752 |
# File 'lib/ovirtsdk4/types.rb', line 50750 def description=(value) @description = value end |
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the disk_attachments
attribute.
50759 50760 50761 |
# File 'lib/ovirtsdk4/types.rb', line 50759 def @disk_attachments end |
#disk_attachments=(list) ⇒ Object
Sets the value of the disk_attachments
attribute.
50768 50769 50770 50771 50772 50773 50774 50775 50776 50777 50778 |
# File 'lib/ovirtsdk4/types.rb', line 50768 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.
50785 50786 50787 |
# File 'lib/ovirtsdk4/types.rb', line 50785 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.
50798 50799 50800 50801 50802 50803 |
# File 'lib/ovirtsdk4/types.rb', line 50798 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.
50810 50811 50812 |
# File 'lib/ovirtsdk4/types.rb', line 50810 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.
50823 50824 50825 50826 50827 50828 |
# File 'lib/ovirtsdk4/types.rb', line 50823 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.
50835 50836 50837 |
# File 'lib/ovirtsdk4/types.rb', line 50835 def graphics_consoles @graphics_consoles end |
#graphics_consoles=(list) ⇒ Object
Sets the value of the graphics_consoles
attribute.
50844 50845 50846 50847 50848 50849 50850 50851 50852 50853 50854 |
# File 'lib/ovirtsdk4/types.rb', line 50844 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.
50861 50862 50863 |
# File 'lib/ovirtsdk4/types.rb', line 50861 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.
50874 50875 50876 50877 50878 50879 |
# File 'lib/ovirtsdk4/types.rb', line 50874 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.
50886 50887 50888 |
# File 'lib/ovirtsdk4/types.rb', line 50886 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
50895 50896 50897 |
# File 'lib/ovirtsdk4/types.rb', line 50895 def id=(value) @id = value end |
#initialization ⇒ Initialization
Returns the value of the initialization
attribute.
50904 50905 50906 |
# File 'lib/ovirtsdk4/types.rb', line 50904 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.
50917 50918 50919 50920 50921 50922 |
# File 'lib/ovirtsdk4/types.rb', line 50917 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.
50929 50930 50931 |
# File 'lib/ovirtsdk4/types.rb', line 50929 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.
50942 50943 50944 50945 50946 50947 |
# File 'lib/ovirtsdk4/types.rb', line 50942 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.
50954 50955 50956 |
# File 'lib/ovirtsdk4/types.rb', line 50954 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.
50967 50968 50969 50970 50971 50972 |
# File 'lib/ovirtsdk4/types.rb', line 50967 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.
50979 50980 50981 |
# File 'lib/ovirtsdk4/types.rb', line 50979 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.
50992 50993 50994 50995 50996 50997 |
# File 'lib/ovirtsdk4/types.rb', line 50992 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.
51004 51005 51006 |
# File 'lib/ovirtsdk4/types.rb', line 51004 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory
attribute.
51013 51014 51015 |
# File 'lib/ovirtsdk4/types.rb', line 51013 def memory=(value) @memory = value end |
#memory_policy ⇒ MemoryPolicy
Returns the value of the memory_policy
attribute.
51022 51023 51024 |
# File 'lib/ovirtsdk4/types.rb', line 51022 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.
51035 51036 51037 51038 51039 51040 |
# File 'lib/ovirtsdk4/types.rb', line 51035 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.
51047 51048 51049 |
# File 'lib/ovirtsdk4/types.rb', line 51047 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.
51060 51061 51062 51063 51064 51065 |
# File 'lib/ovirtsdk4/types.rb', line 51060 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.
51072 51073 51074 |
# File 'lib/ovirtsdk4/types.rb', line 51072 def migration_downtime @migration_downtime end |
#migration_downtime=(value) ⇒ Object
Sets the value of the migration_downtime
attribute.
51081 51082 51083 |
# File 'lib/ovirtsdk4/types.rb', line 51081 def migration_downtime=(value) @migration_downtime = value end |
#name ⇒ String
Returns the value of the name
attribute.
51090 51091 51092 |
# File 'lib/ovirtsdk4/types.rb', line 51090 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
51099 51100 51101 |
# File 'lib/ovirtsdk4/types.rb', line 51099 def name=(value) @name = value end |
#nics ⇒ Array<Nic>
Returns the value of the nics
attribute.
51108 51109 51110 |
# File 'lib/ovirtsdk4/types.rb', line 51108 def nics @nics end |
#nics=(list) ⇒ Object
Sets the value of the nics
attribute.
51117 51118 51119 51120 51121 51122 51123 51124 51125 51126 51127 |
# File 'lib/ovirtsdk4/types.rb', line 51117 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.
51134 51135 51136 |
# File 'lib/ovirtsdk4/types.rb', line 51134 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin
attribute.
51143 51144 51145 |
# File 'lib/ovirtsdk4/types.rb', line 51143 def origin=(value) @origin = value end |
#os ⇒ OperatingSystem
Returns the value of the os
attribute.
51152 51153 51154 |
# File 'lib/ovirtsdk4/types.rb', line 51152 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.
51165 51166 51167 51168 51169 51170 |
# File 'lib/ovirtsdk4/types.rb', line 51165 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.
51177 51178 51179 |
# File 'lib/ovirtsdk4/types.rb', line 51177 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
51186 51187 51188 51189 51190 51191 51192 51193 51194 51195 51196 |
# File 'lib/ovirtsdk4/types.rb', line 51186 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.
51203 51204 51205 |
# File 'lib/ovirtsdk4/types.rb', line 51203 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.
51216 51217 51218 51219 51220 51221 |
# File 'lib/ovirtsdk4/types.rb', line 51216 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.
51228 51229 51230 |
# File 'lib/ovirtsdk4/types.rb', line 51228 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.
51241 51242 51243 51244 51245 51246 |
# File 'lib/ovirtsdk4/types.rb', line 51241 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.
51253 51254 51255 |
# File 'lib/ovirtsdk4/types.rb', line 51253 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.
51266 51267 51268 51269 51270 51271 |
# File 'lib/ovirtsdk4/types.rb', line 51266 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.
51278 51279 51280 |
# File 'lib/ovirtsdk4/types.rb', line 51278 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.
51291 51292 51293 51294 51295 51296 |
# File 'lib/ovirtsdk4/types.rb', line 51291 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.
51303 51304 51305 |
# File 'lib/ovirtsdk4/types.rb', line 51303 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled
attribute.
51312 51313 51314 |
# File 'lib/ovirtsdk4/types.rb', line 51312 def soundcard_enabled=(value) @soundcard_enabled = value end |
#sso ⇒ Sso
Returns the value of the sso
attribute.
51321 51322 51323 |
# File 'lib/ovirtsdk4/types.rb', line 51321 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.
51334 51335 51336 51337 51338 51339 |
# File 'lib/ovirtsdk4/types.rb', line 51334 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.
51346 51347 51348 |
# File 'lib/ovirtsdk4/types.rb', line 51346 def start_paused @start_paused end |
#start_paused=(value) ⇒ Object
Sets the value of the start_paused
attribute.
51355 51356 51357 |
# File 'lib/ovirtsdk4/types.rb', line 51355 def start_paused=(value) @start_paused = value end |
#stateless ⇒ Boolean
Returns the value of the stateless
attribute.
51364 51365 51366 |
# File 'lib/ovirtsdk4/types.rb', line 51364 def stateless @stateless end |
#stateless=(value) ⇒ Object
Sets the value of the stateless
attribute.
51373 51374 51375 |
# File 'lib/ovirtsdk4/types.rb', line 51373 def stateless=(value) @stateless = value end |
#status ⇒ TemplateStatus
Returns the value of the status
attribute.
51382 51383 51384 |
# File 'lib/ovirtsdk4/types.rb', line 51382 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
51391 51392 51393 |
# File 'lib/ovirtsdk4/types.rb', line 51391 def status=(value) @status = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
51400 51401 51402 |
# File 'lib/ovirtsdk4/types.rb', line 51400 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.
51413 51414 51415 51416 51417 51418 |
# File 'lib/ovirtsdk4/types.rb', line 51413 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.
51425 51426 51427 |
# File 'lib/ovirtsdk4/types.rb', line 51425 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.
51434 51435 51436 |
# File 'lib/ovirtsdk4/types.rb', line 51434 def storage_error_resume_behaviour=(value) @storage_error_resume_behaviour = value end |
#tags ⇒ Array<Tag>
Returns the value of the tags
attribute.
51443 51444 51445 |
# File 'lib/ovirtsdk4/types.rb', line 51443 def @tags end |
#tags=(list) ⇒ Object
Sets the value of the tags
attribute.
51452 51453 51454 51455 51456 51457 51458 51459 51460 51461 51462 |
# File 'lib/ovirtsdk4/types.rb', line 51452 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.
51469 51470 51471 |
# File 'lib/ovirtsdk4/types.rb', line 51469 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.
51482 51483 51484 51485 51486 51487 |
# File 'lib/ovirtsdk4/types.rb', line 51482 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.
51494 51495 51496 |
# File 'lib/ovirtsdk4/types.rb', line 51494 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration
attribute.
51503 51504 51505 |
# File 'lib/ovirtsdk4/types.rb', line 51503 def tunnel_migration=(value) @tunnel_migration = value end |
#type ⇒ VmType
Returns the value of the type
attribute.
51512 51513 51514 |
# File 'lib/ovirtsdk4/types.rb', line 51512 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
51521 51522 51523 |
# File 'lib/ovirtsdk4/types.rb', line 51521 def type=(value) @type = value end |
#usb ⇒ Usb
Returns the value of the usb
attribute.
51530 51531 51532 |
# File 'lib/ovirtsdk4/types.rb', line 51530 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.
51543 51544 51545 51546 51547 51548 |
# File 'lib/ovirtsdk4/types.rb', line 51543 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.
51555 51556 51557 |
# File 'lib/ovirtsdk4/types.rb', line 51555 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.
51568 51569 51570 51571 51572 51573 |
# File 'lib/ovirtsdk4/types.rb', line 51568 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.
51580 51581 51582 |
# File 'lib/ovirtsdk4/types.rb', line 51580 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.
51593 51594 51595 51596 51597 51598 |
# File 'lib/ovirtsdk4/types.rb', line 51593 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.
51605 51606 51607 |
# File 'lib/ovirtsdk4/types.rb', line 51605 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.
51618 51619 51620 51621 51622 51623 |
# File 'lib/ovirtsdk4/types.rb', line 51618 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.
51630 51631 51632 |
# File 'lib/ovirtsdk4/types.rb', line 51630 def watchdogs @watchdogs end |
#watchdogs=(list) ⇒ Object
Sets the value of the watchdogs
attribute.
51639 51640 51641 51642 51643 51644 51645 51646 51647 51648 51649 |
# File 'lib/ovirtsdk4/types.rb', line 51639 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 |