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
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#auto_pinning_policy ⇒ AutoPinningPolicy
Returns the value of the
auto_pinning_policyattribute. -
#auto_pinning_policy=(value) ⇒ Object
Sets the value of the
auto_pinning_policyattribute. -
#bios ⇒ Bios
Returns the value of the
biosattribute. -
#bios=(value) ⇒ Object
Sets the value of the
biosattribute. -
#cdroms ⇒ Array<Cdrom>
Returns the value of the
cdromsattribute. -
#cdroms=(list) ⇒ Object
Sets the value of the
cdromsattribute. -
#cluster ⇒ Cluster
Returns the value of the
clusterattribute. -
#cluster=(value) ⇒ Object
Sets the value of the
clusterattribute. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#console ⇒ Console
Returns the value of the
consoleattribute. -
#console=(value) ⇒ Object
Sets the value of the
consoleattribute. -
#cpu ⇒ Cpu
Returns the value of the
cpuattribute. -
#cpu=(value) ⇒ Object
Sets the value of the
cpuattribute. -
#cpu_pinning_policy ⇒ CpuPinningPolicy
Returns the value of the
cpu_pinning_policyattribute. -
#cpu_pinning_policy=(value) ⇒ Object
Sets the value of the
cpu_pinning_policyattribute. -
#cpu_profile ⇒ CpuProfile
Returns the value of the
cpu_profileattribute. -
#cpu_profile=(value) ⇒ Object
Sets the value of the
cpu_profileattribute. -
#cpu_shares ⇒ Integer
Returns the value of the
cpu_sharesattribute. -
#cpu_shares=(value) ⇒ Object
Sets the value of the
cpu_sharesattribute. -
#creation_time ⇒ DateTime
Returns the value of the
creation_timeattribute. -
#creation_time=(value) ⇒ Object
Sets the value of the
creation_timeattribute. -
#custom_compatibility_version ⇒ Version
Returns the value of the
custom_compatibility_versionattribute. -
#custom_compatibility_version=(value) ⇒ Object
Sets the value of the
custom_compatibility_versionattribute. -
#custom_cpu_model ⇒ String
Returns the value of the
custom_cpu_modelattribute. -
#custom_cpu_model=(value) ⇒ Object
Sets the value of the
custom_cpu_modelattribute. -
#custom_emulated_machine ⇒ String
Returns the value of the
custom_emulated_machineattribute. -
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the
custom_emulated_machineattribute. -
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the
custom_propertiesattribute. -
#custom_properties=(list) ⇒ Object
Sets the value of the
custom_propertiesattribute. -
#delete_protected ⇒ Boolean
Returns the value of the
delete_protectedattribute. -
#delete_protected=(value) ⇒ Object
Sets the value of the
delete_protectedattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the
disk_attachmentsattribute. -
#disk_attachments=(list) ⇒ Object
Sets the value of the
disk_attachmentsattribute. -
#display ⇒ Display
Returns the value of the
displayattribute. -
#display=(value) ⇒ Object
Sets the value of the
displayattribute. -
#domain ⇒ Domain
Returns the value of the
domainattribute. -
#domain=(value) ⇒ Object
Sets the value of the
domainattribute. -
#graphics_consoles ⇒ Array<GraphicsConsole>
Returns the value of the
graphics_consolesattribute. -
#graphics_consoles=(list) ⇒ Object
Sets the value of the
graphics_consolesattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#high_availability ⇒ HighAvailability
Returns the value of the
high_availabilityattribute. -
#high_availability=(value) ⇒ Object
Sets the value of the
high_availabilityattribute. -
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialization ⇒ Initialization
Returns the value of the
initializationattribute. -
#initialization=(value) ⇒ Object
Sets the value of the
initializationattribute. -
#initialize(opts = {}) ⇒ Template
constructor
Creates a new instance of the Template class.
-
#io ⇒ Io
Returns the value of the
ioattribute. -
#io=(value) ⇒ Object
Sets the value of the
ioattribute. -
#large_icon ⇒ Icon
Returns the value of the
large_iconattribute. -
#large_icon=(value) ⇒ Object
Sets the value of the
large_iconattribute. -
#lease ⇒ StorageDomainLease
Returns the value of the
leaseattribute. -
#lease=(value) ⇒ Object
Sets the value of the
leaseattribute. -
#mediated_devices ⇒ Array<VmMediatedDevice>
Returns the value of the
mediated_devicesattribute. -
#mediated_devices=(list) ⇒ Object
Sets the value of the
mediated_devicesattribute. -
#memory ⇒ Integer
Returns the value of the
memoryattribute. -
#memory=(value) ⇒ Object
Sets the value of the
memoryattribute. -
#memory_policy ⇒ MemoryPolicy
Returns the value of the
memory_policyattribute. -
#memory_policy=(value) ⇒ Object
Sets the value of the
memory_policyattribute. -
#migration ⇒ MigrationOptions
Returns the value of the
migrationattribute. -
#migration=(value) ⇒ Object
Sets the value of the
migrationattribute. -
#migration_downtime ⇒ Integer
Returns the value of the
migration_downtimeattribute. -
#migration_downtime=(value) ⇒ Object
Sets the value of the
migration_downtimeattribute. -
#multi_queues_enabled ⇒ Boolean
Returns the value of the
multi_queues_enabledattribute. -
#multi_queues_enabled=(value) ⇒ Object
Sets the value of the
multi_queues_enabledattribute. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#nics ⇒ Array<Nic>
Returns the value of the
nicsattribute. -
#nics=(list) ⇒ Object
Sets the value of the
nicsattribute. -
#origin ⇒ String
Returns the value of the
originattribute. -
#origin=(value) ⇒ Object
Sets the value of the
originattribute. -
#os ⇒ OperatingSystem
Returns the value of the
osattribute. -
#os=(value) ⇒ Object
Sets the value of the
osattribute. -
#permissions ⇒ Array<Permission>
Returns the value of the
permissionsattribute. -
#permissions=(list) ⇒ Object
Sets the value of the
permissionsattribute. -
#placement_policy ⇒ VmPlacementPolicy
Returns the value of the
placement_policyattribute. -
#placement_policy=(value) ⇒ Object
Sets the value of the
placement_policyattribute. -
#quota ⇒ Quota
Returns the value of the
quotaattribute. -
#quota=(value) ⇒ Object
Sets the value of the
quotaattribute. -
#rng_device ⇒ RngDevice
Returns the value of the
rng_deviceattribute. -
#rng_device=(value) ⇒ Object
Sets the value of the
rng_deviceattribute. -
#serial_number ⇒ SerialNumber
Returns the value of the
serial_numberattribute. -
#serial_number=(value) ⇒ Object
Sets the value of the
serial_numberattribute. -
#small_icon ⇒ Icon
Returns the value of the
small_iconattribute. -
#small_icon=(value) ⇒ Object
Sets the value of the
small_iconattribute. -
#soundcard_enabled ⇒ Boolean
Returns the value of the
soundcard_enabledattribute. -
#soundcard_enabled=(value) ⇒ Object
Sets the value of the
soundcard_enabledattribute. -
#sso ⇒ Sso
Returns the value of the
ssoattribute. -
#sso=(value) ⇒ Object
Sets the value of the
ssoattribute. -
#start_paused ⇒ Boolean
Returns the value of the
start_pausedattribute. -
#start_paused=(value) ⇒ Object
Sets the value of the
start_pausedattribute. -
#stateless ⇒ Boolean
Returns the value of the
statelessattribute. -
#stateless=(value) ⇒ Object
Sets the value of the
statelessattribute. -
#status ⇒ TemplateStatus
Returns the value of the
statusattribute. -
#status=(value) ⇒ Object
Sets the value of the
statusattribute. -
#storage_domain ⇒ StorageDomain
Returns the value of the
storage_domainattribute. -
#storage_domain=(value) ⇒ Object
Sets the value of the
storage_domainattribute. -
#storage_error_resume_behaviour ⇒ VmStorageErrorResumeBehaviour
Returns the value of the
storage_error_resume_behaviourattribute. -
#storage_error_resume_behaviour=(value) ⇒ Object
Sets the value of the
storage_error_resume_behaviourattribute. -
#tags ⇒ Array<Tag>
Returns the value of the
tagsattribute. -
#tags=(list) ⇒ Object
Sets the value of the
tagsattribute. -
#time_zone ⇒ TimeZone
Returns the value of the
time_zoneattribute. -
#time_zone=(value) ⇒ Object
Sets the value of the
time_zoneattribute. -
#tpm_enabled ⇒ Boolean
Returns the value of the
tpm_enabledattribute. -
#tpm_enabled=(value) ⇒ Object
Sets the value of the
tpm_enabledattribute. -
#tunnel_migration ⇒ Boolean
Returns the value of the
tunnel_migrationattribute. -
#tunnel_migration=(value) ⇒ Object
Sets the value of the
tunnel_migrationattribute. -
#type ⇒ VmType
Returns the value of the
typeattribute. -
#type=(value) ⇒ Object
Sets the value of the
typeattribute. -
#usb ⇒ Usb
Returns the value of the
usbattribute. -
#usb=(value) ⇒ Object
Sets the value of the
usbattribute. -
#version ⇒ TemplateVersion
Returns the value of the
versionattribute. -
#version=(value) ⇒ Object
Sets the value of the
versionattribute. -
#virtio_scsi ⇒ VirtioScsi
Returns the value of the
virtio_scsiattribute. -
#virtio_scsi=(value) ⇒ Object
Sets the value of the
virtio_scsiattribute. -
#virtio_scsi_multi_queues ⇒ Integer
Returns the value of the
virtio_scsi_multi_queuesattribute. -
#virtio_scsi_multi_queues=(value) ⇒ Object
Sets the value of the
virtio_scsi_multi_queuesattribute. -
#virtio_scsi_multi_queues_enabled ⇒ Boolean
Returns the value of the
virtio_scsi_multi_queues_enabledattribute. -
#virtio_scsi_multi_queues_enabled=(value) ⇒ Object
Sets the value of the
virtio_scsi_multi_queues_enabledattribute. -
#vm ⇒ Vm
Returns the value of the
vmattribute. -
#vm=(value) ⇒ Object
Sets the value of the
vmattribute. -
#watchdogs ⇒ Array<Watchdog>
Returns the value of the
watchdogsattribute. -
#watchdogs=(list) ⇒ Object
Sets the value of the
watchdogsattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Template
Creates a new instance of the OvirtSDK4::Template class.
51082 51083 51084 51085 51086 51087 51088 51089 51090 51091 51092 51093 51094 51095 |
# File 'lib/ovirtsdk4/types.rb', line 51082 def initialize(opts = {}) super(opts) self.cdroms = opts[:cdroms] self. = opts[:disk_attachments] self.graphics_consoles = opts[:graphics_consoles] self.mediated_devices = opts[:mediated_devices] self.nics = opts[:nics] self. = opts[:permissions] self.status = opts[:status] self. = opts[:tags] self.version = opts[:version] self.vm = opts[:vm] self.watchdogs = opts[:watchdogs] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
51100 51101 51102 51103 51104 51105 51106 51107 51108 51109 51110 51111 51112 51113 |
# File 'lib/ovirtsdk4/types.rb', line 51100 def ==(other) super && @cdroms == other.cdroms && @disk_attachments == other. && @graphics_consoles == other.graphics_consoles && @mediated_devices == other.mediated_devices && @nics == other.nics && @permissions == other. && @status == other.status && @tags == other. && @version == other.version && @vm == other.vm && @watchdogs == other.watchdogs end |
#auto_pinning_policy ⇒ AutoPinningPolicy
Returns the value of the auto_pinning_policy attribute.
49571 49572 49573 |
# File 'lib/ovirtsdk4/types.rb', line 49571 def auto_pinning_policy @auto_pinning_policy end |
#auto_pinning_policy=(value) ⇒ Object
Sets the value of the auto_pinning_policy attribute.
49580 49581 49582 |
# File 'lib/ovirtsdk4/types.rb', line 49580 def auto_pinning_policy=(value) @auto_pinning_policy = value end |
#bios ⇒ Bios
Returns the value of the bios attribute.
49589 49590 49591 |
# File 'lib/ovirtsdk4/types.rb', line 49589 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.
49602 49603 49604 49605 49606 49607 |
# File 'lib/ovirtsdk4/types.rb', line 49602 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.
49614 49615 49616 |
# File 'lib/ovirtsdk4/types.rb', line 49614 def cdroms @cdroms end |
#cdroms=(list) ⇒ Object
Sets the value of the cdroms attribute.
49623 49624 49625 49626 49627 49628 49629 49630 49631 49632 49633 |
# File 'lib/ovirtsdk4/types.rb', line 49623 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.
49640 49641 49642 |
# File 'lib/ovirtsdk4/types.rb', line 49640 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.
49653 49654 49655 49656 49657 49658 |
# File 'lib/ovirtsdk4/types.rb', line 49653 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.
49665 49666 49667 |
# File 'lib/ovirtsdk4/types.rb', line 49665 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
49674 49675 49676 |
# File 'lib/ovirtsdk4/types.rb', line 49674 def comment=(value) @comment = value end |
#console ⇒ Console
Returns the value of the console attribute.
49683 49684 49685 |
# File 'lib/ovirtsdk4/types.rb', line 49683 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.
49696 49697 49698 49699 49700 49701 |
# File 'lib/ovirtsdk4/types.rb', line 49696 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.
49708 49709 49710 |
# File 'lib/ovirtsdk4/types.rb', line 49708 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.
49721 49722 49723 49724 49725 49726 |
# File 'lib/ovirtsdk4/types.rb', line 49721 def cpu=(value) if value.is_a?(Hash) value = Cpu.new(value) end @cpu = value end |
#cpu_pinning_policy ⇒ CpuPinningPolicy
Returns the value of the cpu_pinning_policy attribute.
49733 49734 49735 |
# File 'lib/ovirtsdk4/types.rb', line 49733 def cpu_pinning_policy @cpu_pinning_policy end |
#cpu_pinning_policy=(value) ⇒ Object
Sets the value of the cpu_pinning_policy attribute.
49742 49743 49744 |
# File 'lib/ovirtsdk4/types.rb', line 49742 def cpu_pinning_policy=(value) @cpu_pinning_policy = value end |
#cpu_profile ⇒ CpuProfile
Returns the value of the cpu_profile attribute.
49751 49752 49753 |
# File 'lib/ovirtsdk4/types.rb', line 49751 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.
49764 49765 49766 49767 49768 49769 |
# File 'lib/ovirtsdk4/types.rb', line 49764 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.
49776 49777 49778 |
# File 'lib/ovirtsdk4/types.rb', line 49776 def cpu_shares @cpu_shares end |
#cpu_shares=(value) ⇒ Object
Sets the value of the cpu_shares attribute.
49785 49786 49787 |
# File 'lib/ovirtsdk4/types.rb', line 49785 def cpu_shares=(value) @cpu_shares = value end |
#creation_time ⇒ DateTime
Returns the value of the creation_time attribute.
49794 49795 49796 |
# File 'lib/ovirtsdk4/types.rb', line 49794 def creation_time @creation_time end |
#creation_time=(value) ⇒ Object
Sets the value of the creation_time attribute.
49803 49804 49805 |
# File 'lib/ovirtsdk4/types.rb', line 49803 def creation_time=(value) @creation_time = value end |
#custom_compatibility_version ⇒ Version
Returns the value of the custom_compatibility_version attribute.
49812 49813 49814 |
# File 'lib/ovirtsdk4/types.rb', line 49812 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.
49825 49826 49827 49828 49829 49830 |
# File 'lib/ovirtsdk4/types.rb', line 49825 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.
49837 49838 49839 |
# File 'lib/ovirtsdk4/types.rb', line 49837 def custom_cpu_model @custom_cpu_model end |
#custom_cpu_model=(value) ⇒ Object
Sets the value of the custom_cpu_model attribute.
49846 49847 49848 |
# File 'lib/ovirtsdk4/types.rb', line 49846 def custom_cpu_model=(value) @custom_cpu_model = value end |
#custom_emulated_machine ⇒ String
Returns the value of the custom_emulated_machine attribute.
49855 49856 49857 |
# File 'lib/ovirtsdk4/types.rb', line 49855 def custom_emulated_machine @custom_emulated_machine end |
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the custom_emulated_machine attribute.
49864 49865 49866 |
# File 'lib/ovirtsdk4/types.rb', line 49864 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the custom_properties attribute.
49873 49874 49875 |
# File 'lib/ovirtsdk4/types.rb', line 49873 def custom_properties @custom_properties end |
#custom_properties=(list) ⇒ Object
Sets the value of the custom_properties attribute.
49882 49883 49884 49885 49886 49887 49888 49889 49890 49891 49892 |
# File 'lib/ovirtsdk4/types.rb', line 49882 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.
49899 49900 49901 |
# File 'lib/ovirtsdk4/types.rb', line 49899 def delete_protected @delete_protected end |
#delete_protected=(value) ⇒ Object
Sets the value of the delete_protected attribute.
49908 49909 49910 |
# File 'lib/ovirtsdk4/types.rb', line 49908 def delete_protected=(value) @delete_protected = value end |
#description ⇒ String
Returns the value of the description attribute.
49917 49918 49919 |
# File 'lib/ovirtsdk4/types.rb', line 49917 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
49926 49927 49928 |
# File 'lib/ovirtsdk4/types.rb', line 49926 def description=(value) @description = value end |
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the disk_attachments attribute.
49935 49936 49937 |
# File 'lib/ovirtsdk4/types.rb', line 49935 def @disk_attachments end |
#disk_attachments=(list) ⇒ Object
Sets the value of the disk_attachments attribute.
49944 49945 49946 49947 49948 49949 49950 49951 49952 49953 49954 |
# File 'lib/ovirtsdk4/types.rb', line 49944 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.
49961 49962 49963 |
# File 'lib/ovirtsdk4/types.rb', line 49961 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.
49974 49975 49976 49977 49978 49979 |
# File 'lib/ovirtsdk4/types.rb', line 49974 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.
49986 49987 49988 |
# File 'lib/ovirtsdk4/types.rb', line 49986 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.
49999 50000 50001 50002 50003 50004 |
# File 'lib/ovirtsdk4/types.rb', line 49999 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.
50011 50012 50013 |
# File 'lib/ovirtsdk4/types.rb', line 50011 def graphics_consoles @graphics_consoles end |
#graphics_consoles=(list) ⇒ Object
Sets the value of the graphics_consoles attribute.
50020 50021 50022 50023 50024 50025 50026 50027 50028 50029 50030 |
# File 'lib/ovirtsdk4/types.rb', line 50020 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 |
#hash ⇒ Object
Generates a hash value for this object.
51118 51119 51120 51121 51122 51123 51124 51125 51126 51127 51128 51129 51130 51131 |
# File 'lib/ovirtsdk4/types.rb', line 51118 def hash super + @cdroms.hash + @disk_attachments.hash + @graphics_consoles.hash + @mediated_devices.hash + @nics.hash + @permissions.hash + @status.hash + @tags.hash + @version.hash + @vm.hash + @watchdogs.hash end |
#high_availability ⇒ HighAvailability
Returns the value of the high_availability attribute.
50037 50038 50039 |
# File 'lib/ovirtsdk4/types.rb', line 50037 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.
50050 50051 50052 50053 50054 50055 |
# File 'lib/ovirtsdk4/types.rb', line 50050 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.
50062 50063 50064 |
# File 'lib/ovirtsdk4/types.rb', line 50062 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
50071 50072 50073 |
# File 'lib/ovirtsdk4/types.rb', line 50071 def id=(value) @id = value end |
#initialization ⇒ Initialization
Returns the value of the initialization attribute.
50080 50081 50082 |
# File 'lib/ovirtsdk4/types.rb', line 50080 def initialization @initialization end |
#initialization=(value) ⇒ Object
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.
50093 50094 50095 50096 50097 50098 |
# File 'lib/ovirtsdk4/types.rb', line 50093 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.
50105 50106 50107 |
# File 'lib/ovirtsdk4/types.rb', line 50105 def io @io end |
#io=(value) ⇒ Object
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.
50118 50119 50120 50121 50122 50123 |
# File 'lib/ovirtsdk4/types.rb', line 50118 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.
50130 50131 50132 |
# File 'lib/ovirtsdk4/types.rb', line 50130 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 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.
50143 50144 50145 50146 50147 50148 |
# File 'lib/ovirtsdk4/types.rb', line 50143 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.
50155 50156 50157 |
# File 'lib/ovirtsdk4/types.rb', line 50155 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.
50168 50169 50170 50171 50172 50173 |
# File 'lib/ovirtsdk4/types.rb', line 50168 def lease=(value) if value.is_a?(Hash) value = StorageDomainLease.new(value) end @lease = value end |
#mediated_devices ⇒ Array<VmMediatedDevice>
Returns the value of the mediated_devices attribute.
50180 50181 50182 |
# File 'lib/ovirtsdk4/types.rb', line 50180 def mediated_devices @mediated_devices end |
#mediated_devices=(list) ⇒ Object
Sets the value of the mediated_devices attribute.
50189 50190 50191 50192 50193 50194 50195 50196 50197 50198 50199 |
# File 'lib/ovirtsdk4/types.rb', line 50189 def mediated_devices=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = VmMediatedDevice.new(value) end end end @mediated_devices = list end |
#memory ⇒ Integer
Returns the value of the memory attribute.
50206 50207 50208 |
# File 'lib/ovirtsdk4/types.rb', line 50206 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory attribute.
50215 50216 50217 |
# File 'lib/ovirtsdk4/types.rb', line 50215 def memory=(value) @memory = value end |
#memory_policy ⇒ MemoryPolicy
Returns the value of the memory_policy attribute.
50224 50225 50226 |
# File 'lib/ovirtsdk4/types.rb', line 50224 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.
50237 50238 50239 50240 50241 50242 |
# File 'lib/ovirtsdk4/types.rb', line 50237 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.
50249 50250 50251 |
# File 'lib/ovirtsdk4/types.rb', line 50249 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.
50262 50263 50264 50265 50266 50267 |
# File 'lib/ovirtsdk4/types.rb', line 50262 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.
50274 50275 50276 |
# File 'lib/ovirtsdk4/types.rb', line 50274 def migration_downtime @migration_downtime end |
#migration_downtime=(value) ⇒ Object
Sets the value of the migration_downtime attribute.
50283 50284 50285 |
# File 'lib/ovirtsdk4/types.rb', line 50283 def migration_downtime=(value) @migration_downtime = value end |
#multi_queues_enabled ⇒ Boolean
Returns the value of the multi_queues_enabled attribute.
50292 50293 50294 |
# File 'lib/ovirtsdk4/types.rb', line 50292 def multi_queues_enabled @multi_queues_enabled end |
#multi_queues_enabled=(value) ⇒ Object
Sets the value of the multi_queues_enabled attribute.
50301 50302 50303 |
# File 'lib/ovirtsdk4/types.rb', line 50301 def multi_queues_enabled=(value) @multi_queues_enabled = value end |
#name ⇒ String
Returns the value of the name attribute.
50310 50311 50312 |
# File 'lib/ovirtsdk4/types.rb', line 50310 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
50319 50320 50321 |
# File 'lib/ovirtsdk4/types.rb', line 50319 def name=(value) @name = value end |
#nics ⇒ Array<Nic>
Returns the value of the nics attribute.
50328 50329 50330 |
# File 'lib/ovirtsdk4/types.rb', line 50328 def nics @nics end |
#nics=(list) ⇒ Object
Sets the value of the nics attribute.
50337 50338 50339 50340 50341 50342 50343 50344 50345 50346 50347 |
# File 'lib/ovirtsdk4/types.rb', line 50337 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.
50354 50355 50356 |
# File 'lib/ovirtsdk4/types.rb', line 50354 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin attribute.
50363 50364 50365 |
# File 'lib/ovirtsdk4/types.rb', line 50363 def origin=(value) @origin = value end |
#os ⇒ OperatingSystem
Returns the value of the os attribute.
50372 50373 50374 |
# File 'lib/ovirtsdk4/types.rb', line 50372 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.
50385 50386 50387 50388 50389 50390 |
# File 'lib/ovirtsdk4/types.rb', line 50385 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.
50397 50398 50399 |
# File 'lib/ovirtsdk4/types.rb', line 50397 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions attribute.
50406 50407 50408 50409 50410 50411 50412 50413 50414 50415 50416 |
# File 'lib/ovirtsdk4/types.rb', line 50406 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 |
#placement_policy ⇒ VmPlacementPolicy
Returns the value of the placement_policy attribute.
50423 50424 50425 |
# File 'lib/ovirtsdk4/types.rb', line 50423 def placement_policy @placement_policy end |
#placement_policy=(value) ⇒ Object
Sets the value of the placement_policy attribute.
The value parameter can be an instance of VmPlacementPolicy or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
50436 50437 50438 50439 50440 50441 |
# File 'lib/ovirtsdk4/types.rb', line 50436 def placement_policy=(value) if value.is_a?(Hash) value = VmPlacementPolicy.new(value) end @placement_policy = value end |
#quota ⇒ Quota
Returns the value of the quota attribute.
50448 50449 50450 |
# File 'lib/ovirtsdk4/types.rb', line 50448 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.
50461 50462 50463 50464 50465 50466 |
# File 'lib/ovirtsdk4/types.rb', line 50461 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.
50473 50474 50475 |
# File 'lib/ovirtsdk4/types.rb', line 50473 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.
50486 50487 50488 50489 50490 50491 |
# File 'lib/ovirtsdk4/types.rb', line 50486 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.
50498 50499 50500 |
# File 'lib/ovirtsdk4/types.rb', line 50498 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.
50511 50512 50513 50514 50515 50516 |
# File 'lib/ovirtsdk4/types.rb', line 50511 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.
50523 50524 50525 |
# File 'lib/ovirtsdk4/types.rb', line 50523 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 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.
50536 50537 50538 50539 50540 50541 |
# File 'lib/ovirtsdk4/types.rb', line 50536 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.
50548 50549 50550 |
# File 'lib/ovirtsdk4/types.rb', line 50548 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled attribute.
50557 50558 50559 |
# File 'lib/ovirtsdk4/types.rb', line 50557 def soundcard_enabled=(value) @soundcard_enabled = value end |
#sso ⇒ Sso
Returns the value of the sso attribute.
50566 50567 50568 |
# File 'lib/ovirtsdk4/types.rb', line 50566 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.
50579 50580 50581 50582 50583 50584 |
# File 'lib/ovirtsdk4/types.rb', line 50579 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.
50591 50592 50593 |
# File 'lib/ovirtsdk4/types.rb', line 50591 def start_paused @start_paused end |
#start_paused=(value) ⇒ Object
Sets the value of the start_paused attribute.
50600 50601 50602 |
# File 'lib/ovirtsdk4/types.rb', line 50600 def start_paused=(value) @start_paused = value end |
#stateless ⇒ Boolean
Returns the value of the stateless attribute.
50609 50610 50611 |
# File 'lib/ovirtsdk4/types.rb', line 50609 def stateless @stateless end |
#stateless=(value) ⇒ Object
Sets the value of the stateless attribute.
50618 50619 50620 |
# File 'lib/ovirtsdk4/types.rb', line 50618 def stateless=(value) @stateless = value end |
#status ⇒ TemplateStatus
Returns the value of the status attribute.
50627 50628 50629 |
# File 'lib/ovirtsdk4/types.rb', line 50627 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status attribute.
50636 50637 50638 |
# File 'lib/ovirtsdk4/types.rb', line 50636 def status=(value) @status = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain attribute.
50645 50646 50647 |
# File 'lib/ovirtsdk4/types.rb', line 50645 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.
50658 50659 50660 50661 50662 50663 |
# File 'lib/ovirtsdk4/types.rb', line 50658 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.
50670 50671 50672 |
# File 'lib/ovirtsdk4/types.rb', line 50670 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.
50679 50680 50681 |
# File 'lib/ovirtsdk4/types.rb', line 50679 def storage_error_resume_behaviour=(value) @storage_error_resume_behaviour = value end |
#tags ⇒ Array<Tag>
Returns the value of the tags attribute.
50688 50689 50690 |
# File 'lib/ovirtsdk4/types.rb', line 50688 def @tags end |
#tags=(list) ⇒ Object
Sets the value of the tags attribute.
50697 50698 50699 50700 50701 50702 50703 50704 50705 50706 50707 |
# File 'lib/ovirtsdk4/types.rb', line 50697 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.
50714 50715 50716 |
# File 'lib/ovirtsdk4/types.rb', line 50714 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 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.
50727 50728 50729 50730 50731 50732 |
# File 'lib/ovirtsdk4/types.rb', line 50727 def time_zone=(value) if value.is_a?(Hash) value = TimeZone.new(value) end @time_zone = value end |
#tpm_enabled ⇒ Boolean
Returns the value of the tpm_enabled attribute.
50739 50740 50741 |
# File 'lib/ovirtsdk4/types.rb', line 50739 def tpm_enabled @tpm_enabled end |
#tpm_enabled=(value) ⇒ Object
Sets the value of the tpm_enabled attribute.
50748 50749 50750 |
# File 'lib/ovirtsdk4/types.rb', line 50748 def tpm_enabled=(value) @tpm_enabled = value end |
#tunnel_migration ⇒ Boolean
Returns the value of the tunnel_migration attribute.
50757 50758 50759 |
# File 'lib/ovirtsdk4/types.rb', line 50757 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration attribute.
50766 50767 50768 |
# File 'lib/ovirtsdk4/types.rb', line 50766 def tunnel_migration=(value) @tunnel_migration = value end |
#type ⇒ VmType
Returns the value of the type attribute.
50775 50776 50777 |
# File 'lib/ovirtsdk4/types.rb', line 50775 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type attribute.
50784 50785 50786 |
# File 'lib/ovirtsdk4/types.rb', line 50784 def type=(value) @type = value end |
#usb ⇒ Usb
Returns the value of the usb attribute.
50793 50794 50795 |
# File 'lib/ovirtsdk4/types.rb', line 50793 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.
50806 50807 50808 50809 50810 50811 |
# File 'lib/ovirtsdk4/types.rb', line 50806 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.
50818 50819 50820 |
# File 'lib/ovirtsdk4/types.rb', line 50818 def version @version end |
#version=(value) ⇒ Object
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.
50831 50832 50833 50834 50835 50836 |
# File 'lib/ovirtsdk4/types.rb', line 50831 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.
50843 50844 50845 |
# File 'lib/ovirtsdk4/types.rb', line 50843 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.
50856 50857 50858 50859 50860 50861 |
# File 'lib/ovirtsdk4/types.rb', line 50856 def virtio_scsi=(value) if value.is_a?(Hash) value = VirtioScsi.new(value) end @virtio_scsi = value end |
#virtio_scsi_multi_queues ⇒ Integer
Returns the value of the virtio_scsi_multi_queues attribute.
50868 50869 50870 |
# File 'lib/ovirtsdk4/types.rb', line 50868 def virtio_scsi_multi_queues @virtio_scsi_multi_queues end |
#virtio_scsi_multi_queues=(value) ⇒ Object
Sets the value of the virtio_scsi_multi_queues attribute.
50877 50878 50879 |
# File 'lib/ovirtsdk4/types.rb', line 50877 def virtio_scsi_multi_queues=(value) @virtio_scsi_multi_queues = value end |
#virtio_scsi_multi_queues_enabled ⇒ Boolean
Returns the value of the virtio_scsi_multi_queues_enabled attribute.
50886 50887 50888 |
# File 'lib/ovirtsdk4/types.rb', line 50886 def virtio_scsi_multi_queues_enabled @virtio_scsi_multi_queues_enabled end |
#virtio_scsi_multi_queues_enabled=(value) ⇒ Object
Sets the value of the virtio_scsi_multi_queues_enabled attribute.
50895 50896 50897 |
# File 'lib/ovirtsdk4/types.rb', line 50895 def virtio_scsi_multi_queues_enabled=(value) @virtio_scsi_multi_queues_enabled = value end |
#vm ⇒ Vm
Returns the value of the vm attribute.
50904 50905 50906 |
# File 'lib/ovirtsdk4/types.rb', line 50904 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.
50917 50918 50919 50920 50921 50922 |
# File 'lib/ovirtsdk4/types.rb', line 50917 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.
50929 50930 50931 |
# File 'lib/ovirtsdk4/types.rb', line 50929 def watchdogs @watchdogs end |
#watchdogs=(list) ⇒ Object
Sets the value of the watchdogs attribute.
50938 50939 50940 50941 50942 50943 50944 50945 50946 50947 50948 |
# File 'lib/ovirtsdk4/types.rb', line 50938 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 |