Class: OvirtSDK4::VmBase
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::VmBase
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#auto_pinning_policy ⇒ AutoPinningPolicy
Returns the value of the
auto_pinning_policy
attribute. -
#auto_pinning_policy=(value) ⇒ Object
Sets the value of the
auto_pinning_policy
attribute. -
#bios ⇒ Bios
Returns the value of the
bios
attribute. -
#bios=(value) ⇒ Object
Sets the value of the
bios
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_pinning_policy ⇒ CpuPinningPolicy
Returns the value of the
cpu_pinning_policy
attribute. -
#cpu_pinning_policy=(value) ⇒ Object
Sets the value of the
cpu_pinning_policy
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. -
#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. -
#hash ⇒ Object
Generates a hash value for this object.
-
#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 = {}) ⇒ VmBase
constructor
Creates a new instance of the VmBase 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. -
#multi_queues_enabled ⇒ Boolean
Returns the value of the
multi_queues_enabled
attribute. -
#multi_queues_enabled=(value) ⇒ Object
Sets the value of the
multi_queues_enabled
attribute. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
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. -
#placement_policy ⇒ VmPlacementPolicy
Returns the value of the
placement_policy
attribute. -
#placement_policy=(value) ⇒ Object
Sets the value of the
placement_policy
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. -
#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. -
#time_zone ⇒ TimeZone
Returns the value of the
time_zone
attribute. -
#time_zone=(value) ⇒ Object
Sets the value of the
time_zone
attribute. -
#tpm_enabled ⇒ Boolean
Returns the value of the
tpm_enabled
attribute. -
#tpm_enabled=(value) ⇒ Object
Sets the value of the
tpm_enabled
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. -
#virtio_scsi ⇒ VirtioScsi
Returns the value of the
virtio_scsi
attribute. -
#virtio_scsi=(value) ⇒ Object
Sets the value of the
virtio_scsi
attribute. -
#virtio_scsi_multi_queues ⇒ Integer
Returns the value of the
virtio_scsi_multi_queues
attribute. -
#virtio_scsi_multi_queues=(value) ⇒ Object
Sets the value of the
virtio_scsi_multi_queues
attribute. -
#virtio_scsi_multi_queues_enabled ⇒ Boolean
Returns the value of the
virtio_scsi_multi_queues_enabled
attribute. -
#virtio_scsi_multi_queues_enabled=(value) ⇒ Object
Sets the value of the
virtio_scsi_multi_queues_enabled
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ VmBase
Creates a new instance of the OvirtSDK4::VmBase class.
26755 26756 26757 26758 26759 26760 26761 26762 26763 26764 26765 26766 26767 26768 26769 26770 26771 26772 26773 26774 26775 26776 26777 26778 26779 26780 26781 26782 26783 26784 26785 26786 26787 26788 26789 26790 26791 26792 26793 26794 26795 26796 26797 26798 26799 26800 26801 26802 26803 26804 |
# File 'lib/ovirtsdk4/types.rb', line 26755 def initialize(opts = {}) super(opts) self.auto_pinning_policy = opts[:auto_pinning_policy] self.bios = opts[:bios] self.cluster = opts[:cluster] self.console = opts[:console] self.cpu = opts[:cpu] self.cpu_pinning_policy = opts[:cpu_pinning_policy] 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.display = opts[:display] self.domain = opts[:domain] self.high_availability = opts[:high_availability] self.initialization = opts[:initialization] self.io = opts[:io] self.large_icon = opts[:large_icon] self.lease = opts[:lease] self.memory = opts[:memory] self.memory_policy = opts[:memory_policy] self.migration = opts[:migration] self.migration_downtime = opts[:migration_downtime] self.multi_queues_enabled = opts[:multi_queues_enabled] self.origin = opts[:origin] self.os = opts[:os] self.placement_policy = opts[:placement_policy] self.quota = opts[:quota] 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.storage_domain = opts[:storage_domain] self.storage_error_resume_behaviour = opts[:storage_error_resume_behaviour] self.time_zone = opts[:time_zone] self.tpm_enabled = opts[:tpm_enabled] self.tunnel_migration = opts[:tunnel_migration] self.type = opts[:type] self.usb = opts[:usb] self.virtio_scsi = opts[:virtio_scsi] self.virtio_scsi_multi_queues = opts[:virtio_scsi_multi_queues] self.virtio_scsi_multi_queues_enabled = opts[:virtio_scsi_multi_queues_enabled] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
26809 26810 26811 26812 26813 26814 26815 26816 26817 26818 26819 26820 26821 26822 26823 26824 26825 26826 26827 26828 26829 26830 26831 26832 26833 26834 26835 26836 26837 26838 26839 26840 26841 26842 26843 26844 26845 26846 26847 26848 26849 26850 26851 26852 26853 26854 26855 26856 26857 26858 |
# File 'lib/ovirtsdk4/types.rb', line 26809 def ==(other) super && @auto_pinning_policy == other.auto_pinning_policy && @bios == other.bios && @cluster == other.cluster && @console == other.console && @cpu == other.cpu && @cpu_pinning_policy == other.cpu_pinning_policy && @cpu_profile == other.cpu_profile && @cpu_shares == other.cpu_shares && @creation_time == other.creation_time && @custom_compatibility_version == other.custom_compatibility_version && @custom_cpu_model == other.custom_cpu_model && @custom_emulated_machine == other.custom_emulated_machine && @custom_properties == other.custom_properties && @delete_protected == other.delete_protected && @display == other.display && @domain == other.domain && @high_availability == other.high_availability && @initialization == other.initialization && @io == other.io && @large_icon == other.large_icon && @lease == other.lease && @memory == other.memory && @memory_policy == other.memory_policy && @migration == other.migration && @migration_downtime == other.migration_downtime && @multi_queues_enabled == other.multi_queues_enabled && @origin == other.origin && @os == other.os && @placement_policy == other.placement_policy && @quota == other.quota && @rng_device == other.rng_device && @serial_number == other.serial_number && @small_icon == other.small_icon && @soundcard_enabled == other.soundcard_enabled && @sso == other.sso && @start_paused == other.start_paused && @stateless == other.stateless && @storage_domain == other.storage_domain && @storage_error_resume_behaviour == other.storage_error_resume_behaviour && @time_zone == other.time_zone && @tpm_enabled == other.tpm_enabled && @tunnel_migration == other.tunnel_migration && @type == other.type && @usb == other.usb && @virtio_scsi == other.virtio_scsi && @virtio_scsi_multi_queues == other.virtio_scsi_multi_queues && @virtio_scsi_multi_queues_enabled == other.virtio_scsi_multi_queues_enabled end |
#auto_pinning_policy ⇒ AutoPinningPolicy
Returns the value of the auto_pinning_policy
attribute.
25542 25543 25544 |
# File 'lib/ovirtsdk4/types.rb', line 25542 def auto_pinning_policy @auto_pinning_policy end |
#auto_pinning_policy=(value) ⇒ Object
Sets the value of the auto_pinning_policy
attribute.
25551 25552 25553 |
# File 'lib/ovirtsdk4/types.rb', line 25551 def auto_pinning_policy=(value) @auto_pinning_policy = value end |
#bios ⇒ Bios
Returns the value of the bios
attribute.
25560 25561 25562 |
# File 'lib/ovirtsdk4/types.rb', line 25560 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.
25573 25574 25575 25576 25577 25578 |
# File 'lib/ovirtsdk4/types.rb', line 25573 def bios=(value) if value.is_a?(Hash) value = Bios.new(value) end @bios = value end |
#cluster ⇒ Cluster
Returns the value of the cluster
attribute.
25585 25586 25587 |
# File 'lib/ovirtsdk4/types.rb', line 25585 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.
25598 25599 25600 25601 25602 25603 |
# File 'lib/ovirtsdk4/types.rb', line 25598 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.
25610 25611 25612 |
# File 'lib/ovirtsdk4/types.rb', line 25610 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
25619 25620 25621 |
# File 'lib/ovirtsdk4/types.rb', line 25619 def comment=(value) @comment = value end |
#console ⇒ Console
Returns the value of the console
attribute.
25628 25629 25630 |
# File 'lib/ovirtsdk4/types.rb', line 25628 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.
25641 25642 25643 25644 25645 25646 |
# File 'lib/ovirtsdk4/types.rb', line 25641 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.
25653 25654 25655 |
# File 'lib/ovirtsdk4/types.rb', line 25653 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.
25666 25667 25668 25669 25670 25671 |
# File 'lib/ovirtsdk4/types.rb', line 25666 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.
25678 25679 25680 |
# File 'lib/ovirtsdk4/types.rb', line 25678 def cpu_pinning_policy @cpu_pinning_policy end |
#cpu_pinning_policy=(value) ⇒ Object
Sets the value of the cpu_pinning_policy
attribute.
25687 25688 25689 |
# File 'lib/ovirtsdk4/types.rb', line 25687 def cpu_pinning_policy=(value) @cpu_pinning_policy = value end |
#cpu_profile ⇒ CpuProfile
Returns the value of the cpu_profile
attribute.
25696 25697 25698 |
# File 'lib/ovirtsdk4/types.rb', line 25696 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.
25709 25710 25711 25712 25713 25714 |
# File 'lib/ovirtsdk4/types.rb', line 25709 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.
25721 25722 25723 |
# File 'lib/ovirtsdk4/types.rb', line 25721 def cpu_shares @cpu_shares end |
#cpu_shares=(value) ⇒ Object
Sets the value of the cpu_shares
attribute.
25730 25731 25732 |
# File 'lib/ovirtsdk4/types.rb', line 25730 def cpu_shares=(value) @cpu_shares = value end |
#creation_time ⇒ DateTime
Returns the value of the creation_time
attribute.
25739 25740 25741 |
# File 'lib/ovirtsdk4/types.rb', line 25739 def creation_time @creation_time end |
#creation_time=(value) ⇒ Object
Sets the value of the creation_time
attribute.
25748 25749 25750 |
# File 'lib/ovirtsdk4/types.rb', line 25748 def creation_time=(value) @creation_time = value end |
#custom_compatibility_version ⇒ Version
Returns the value of the custom_compatibility_version
attribute.
25757 25758 25759 |
# File 'lib/ovirtsdk4/types.rb', line 25757 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 OvirtSDK4::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.
25770 25771 25772 25773 25774 25775 |
# File 'lib/ovirtsdk4/types.rb', line 25770 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.
25782 25783 25784 |
# File 'lib/ovirtsdk4/types.rb', line 25782 def custom_cpu_model @custom_cpu_model end |
#custom_cpu_model=(value) ⇒ Object
Sets the value of the custom_cpu_model
attribute.
25791 25792 25793 |
# File 'lib/ovirtsdk4/types.rb', line 25791 def custom_cpu_model=(value) @custom_cpu_model = value end |
#custom_emulated_machine ⇒ String
Returns the value of the custom_emulated_machine
attribute.
25800 25801 25802 |
# File 'lib/ovirtsdk4/types.rb', line 25800 def custom_emulated_machine @custom_emulated_machine end |
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the custom_emulated_machine
attribute.
25809 25810 25811 |
# File 'lib/ovirtsdk4/types.rb', line 25809 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the custom_properties
attribute.
25818 25819 25820 |
# File 'lib/ovirtsdk4/types.rb', line 25818 def custom_properties @custom_properties end |
#custom_properties=(list) ⇒ Object
Sets the value of the custom_properties
attribute.
25827 25828 25829 25830 25831 25832 25833 25834 25835 25836 25837 |
# File 'lib/ovirtsdk4/types.rb', line 25827 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.
25844 25845 25846 |
# File 'lib/ovirtsdk4/types.rb', line 25844 def delete_protected @delete_protected end |
#delete_protected=(value) ⇒ Object
Sets the value of the delete_protected
attribute.
25853 25854 25855 |
# File 'lib/ovirtsdk4/types.rb', line 25853 def delete_protected=(value) @delete_protected = value end |
#description ⇒ String
Returns the value of the description
attribute.
25862 25863 25864 |
# File 'lib/ovirtsdk4/types.rb', line 25862 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
25871 25872 25873 |
# File 'lib/ovirtsdk4/types.rb', line 25871 def description=(value) @description = value end |
#display ⇒ Display
Returns the value of the display
attribute.
25880 25881 25882 |
# File 'lib/ovirtsdk4/types.rb', line 25880 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.
25893 25894 25895 25896 25897 25898 |
# File 'lib/ovirtsdk4/types.rb', line 25893 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.
25905 25906 25907 |
# File 'lib/ovirtsdk4/types.rb', line 25905 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.
25918 25919 25920 25921 25922 25923 |
# File 'lib/ovirtsdk4/types.rb', line 25918 def domain=(value) if value.is_a?(Hash) value = Domain.new(value) end @domain = value end |
#hash ⇒ Object
Generates a hash value for this object.
26863 26864 26865 26866 26867 26868 26869 26870 26871 26872 26873 26874 26875 26876 26877 26878 26879 26880 26881 26882 26883 26884 26885 26886 26887 26888 26889 26890 26891 26892 26893 26894 26895 26896 26897 26898 26899 26900 26901 26902 26903 26904 26905 26906 26907 26908 26909 26910 26911 26912 |
# File 'lib/ovirtsdk4/types.rb', line 26863 def hash super + @auto_pinning_policy.hash + @bios.hash + @cluster.hash + @console.hash + @cpu.hash + @cpu_pinning_policy.hash + @cpu_profile.hash + @cpu_shares.hash + @creation_time.hash + @custom_compatibility_version.hash + @custom_cpu_model.hash + @custom_emulated_machine.hash + @custom_properties.hash + @delete_protected.hash + @display.hash + @domain.hash + @high_availability.hash + @initialization.hash + @io.hash + @large_icon.hash + @lease.hash + @memory.hash + @memory_policy.hash + @migration.hash + @migration_downtime.hash + @multi_queues_enabled.hash + @origin.hash + @os.hash + @placement_policy.hash + @quota.hash + @rng_device.hash + @serial_number.hash + @small_icon.hash + @soundcard_enabled.hash + @sso.hash + @start_paused.hash + @stateless.hash + @storage_domain.hash + @storage_error_resume_behaviour.hash + @time_zone.hash + @tpm_enabled.hash + @tunnel_migration.hash + @type.hash + @usb.hash + @virtio_scsi.hash + @virtio_scsi_multi_queues.hash + @virtio_scsi_multi_queues_enabled.hash end |
#high_availability ⇒ HighAvailability
Returns the value of the high_availability
attribute.
25930 25931 25932 |
# File 'lib/ovirtsdk4/types.rb', line 25930 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.
25943 25944 25945 25946 25947 25948 |
# File 'lib/ovirtsdk4/types.rb', line 25943 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.
25955 25956 25957 |
# File 'lib/ovirtsdk4/types.rb', line 25955 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
25964 25965 25966 |
# File 'lib/ovirtsdk4/types.rb', line 25964 def id=(value) @id = value end |
#initialization ⇒ Initialization
Returns the value of the initialization
attribute.
25973 25974 25975 |
# File 'lib/ovirtsdk4/types.rb', line 25973 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.
25986 25987 25988 25989 25990 25991 |
# File 'lib/ovirtsdk4/types.rb', line 25986 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.
25998 25999 26000 |
# File 'lib/ovirtsdk4/types.rb', line 25998 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.
26011 26012 26013 26014 26015 26016 |
# File 'lib/ovirtsdk4/types.rb', line 26011 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.
26023 26024 26025 |
# File 'lib/ovirtsdk4/types.rb', line 26023 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.
26036 26037 26038 26039 26040 26041 |
# File 'lib/ovirtsdk4/types.rb', line 26036 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.
26048 26049 26050 |
# File 'lib/ovirtsdk4/types.rb', line 26048 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.
26061 26062 26063 26064 26065 26066 |
# File 'lib/ovirtsdk4/types.rb', line 26061 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.
26073 26074 26075 |
# File 'lib/ovirtsdk4/types.rb', line 26073 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory
attribute.
26082 26083 26084 |
# File 'lib/ovirtsdk4/types.rb', line 26082 def memory=(value) @memory = value end |
#memory_policy ⇒ MemoryPolicy
Returns the value of the memory_policy
attribute.
26091 26092 26093 |
# File 'lib/ovirtsdk4/types.rb', line 26091 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.
26104 26105 26106 26107 26108 26109 |
# File 'lib/ovirtsdk4/types.rb', line 26104 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.
26116 26117 26118 |
# File 'lib/ovirtsdk4/types.rb', line 26116 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.
26129 26130 26131 26132 26133 26134 |
# File 'lib/ovirtsdk4/types.rb', line 26129 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.
26141 26142 26143 |
# File 'lib/ovirtsdk4/types.rb', line 26141 def migration_downtime @migration_downtime end |
#migration_downtime=(value) ⇒ Object
Sets the value of the migration_downtime
attribute.
26150 26151 26152 |
# File 'lib/ovirtsdk4/types.rb', line 26150 def migration_downtime=(value) @migration_downtime = value end |
#multi_queues_enabled ⇒ Boolean
Returns the value of the multi_queues_enabled
attribute.
26159 26160 26161 |
# File 'lib/ovirtsdk4/types.rb', line 26159 def multi_queues_enabled @multi_queues_enabled end |
#multi_queues_enabled=(value) ⇒ Object
Sets the value of the multi_queues_enabled
attribute.
26168 26169 26170 |
# File 'lib/ovirtsdk4/types.rb', line 26168 def multi_queues_enabled=(value) @multi_queues_enabled = value end |
#name ⇒ String
Returns the value of the name
attribute.
26177 26178 26179 |
# File 'lib/ovirtsdk4/types.rb', line 26177 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
26186 26187 26188 |
# File 'lib/ovirtsdk4/types.rb', line 26186 def name=(value) @name = value end |
#origin ⇒ String
Returns the value of the origin
attribute.
26195 26196 26197 |
# File 'lib/ovirtsdk4/types.rb', line 26195 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin
attribute.
26204 26205 26206 |
# File 'lib/ovirtsdk4/types.rb', line 26204 def origin=(value) @origin = value end |
#os ⇒ OperatingSystem
Returns the value of the os
attribute.
26213 26214 26215 |
# File 'lib/ovirtsdk4/types.rb', line 26213 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.
26226 26227 26228 26229 26230 26231 |
# File 'lib/ovirtsdk4/types.rb', line 26226 def os=(value) if value.is_a?(Hash) value = OperatingSystem.new(value) end @os = value end |
#placement_policy ⇒ VmPlacementPolicy
Returns the value of the placement_policy
attribute.
26238 26239 26240 |
# File 'lib/ovirtsdk4/types.rb', line 26238 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 OvirtSDK4::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.
26251 26252 26253 26254 26255 26256 |
# File 'lib/ovirtsdk4/types.rb', line 26251 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.
26263 26264 26265 |
# File 'lib/ovirtsdk4/types.rb', line 26263 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.
26276 26277 26278 26279 26280 26281 |
# File 'lib/ovirtsdk4/types.rb', line 26276 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.
26288 26289 26290 |
# File 'lib/ovirtsdk4/types.rb', line 26288 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.
26301 26302 26303 26304 26305 26306 |
# File 'lib/ovirtsdk4/types.rb', line 26301 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.
26313 26314 26315 |
# File 'lib/ovirtsdk4/types.rb', line 26313 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.
26326 26327 26328 26329 26330 26331 |
# File 'lib/ovirtsdk4/types.rb', line 26326 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.
26338 26339 26340 |
# File 'lib/ovirtsdk4/types.rb', line 26338 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.
26351 26352 26353 26354 26355 26356 |
# File 'lib/ovirtsdk4/types.rb', line 26351 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.
26363 26364 26365 |
# File 'lib/ovirtsdk4/types.rb', line 26363 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled
attribute.
26372 26373 26374 |
# File 'lib/ovirtsdk4/types.rb', line 26372 def soundcard_enabled=(value) @soundcard_enabled = value end |
#sso ⇒ Sso
Returns the value of the sso
attribute.
26381 26382 26383 |
# File 'lib/ovirtsdk4/types.rb', line 26381 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.
26394 26395 26396 26397 26398 26399 |
# File 'lib/ovirtsdk4/types.rb', line 26394 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.
26406 26407 26408 |
# File 'lib/ovirtsdk4/types.rb', line 26406 def start_paused @start_paused end |
#start_paused=(value) ⇒ Object
Sets the value of the start_paused
attribute.
26415 26416 26417 |
# File 'lib/ovirtsdk4/types.rb', line 26415 def start_paused=(value) @start_paused = value end |
#stateless ⇒ Boolean
Returns the value of the stateless
attribute.
26424 26425 26426 |
# File 'lib/ovirtsdk4/types.rb', line 26424 def stateless @stateless end |
#stateless=(value) ⇒ Object
Sets the value of the stateless
attribute.
26433 26434 26435 |
# File 'lib/ovirtsdk4/types.rb', line 26433 def stateless=(value) @stateless = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
26442 26443 26444 |
# File 'lib/ovirtsdk4/types.rb', line 26442 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.
26455 26456 26457 26458 26459 26460 |
# File 'lib/ovirtsdk4/types.rb', line 26455 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.
26467 26468 26469 |
# File 'lib/ovirtsdk4/types.rb', line 26467 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.
26476 26477 26478 |
# File 'lib/ovirtsdk4/types.rb', line 26476 def storage_error_resume_behaviour=(value) @storage_error_resume_behaviour = value end |
#time_zone ⇒ TimeZone
Returns the value of the time_zone
attribute.
26485 26486 26487 |
# File 'lib/ovirtsdk4/types.rb', line 26485 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.
26498 26499 26500 26501 26502 26503 |
# File 'lib/ovirtsdk4/types.rb', line 26498 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.
26510 26511 26512 |
# File 'lib/ovirtsdk4/types.rb', line 26510 def tpm_enabled @tpm_enabled end |
#tpm_enabled=(value) ⇒ Object
Sets the value of the tpm_enabled
attribute.
26519 26520 26521 |
# File 'lib/ovirtsdk4/types.rb', line 26519 def tpm_enabled=(value) @tpm_enabled = value end |
#tunnel_migration ⇒ Boolean
Returns the value of the tunnel_migration
attribute.
26528 26529 26530 |
# File 'lib/ovirtsdk4/types.rb', line 26528 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration
attribute.
26537 26538 26539 |
# File 'lib/ovirtsdk4/types.rb', line 26537 def tunnel_migration=(value) @tunnel_migration = value end |
#type ⇒ VmType
Returns the value of the type
attribute.
26546 26547 26548 |
# File 'lib/ovirtsdk4/types.rb', line 26546 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
26555 26556 26557 |
# File 'lib/ovirtsdk4/types.rb', line 26555 def type=(value) @type = value end |
#usb ⇒ Usb
Returns the value of the usb
attribute.
26564 26565 26566 |
# File 'lib/ovirtsdk4/types.rb', line 26564 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.
26577 26578 26579 26580 26581 26582 |
# File 'lib/ovirtsdk4/types.rb', line 26577 def usb=(value) if value.is_a?(Hash) value = Usb.new(value) end @usb = value end |
#virtio_scsi ⇒ VirtioScsi
Returns the value of the virtio_scsi
attribute.
26589 26590 26591 |
# File 'lib/ovirtsdk4/types.rb', line 26589 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 OvirtSDK4::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.
26602 26603 26604 26605 26606 26607 |
# File 'lib/ovirtsdk4/types.rb', line 26602 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.
26614 26615 26616 |
# File 'lib/ovirtsdk4/types.rb', line 26614 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.
26623 26624 26625 |
# File 'lib/ovirtsdk4/types.rb', line 26623 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.
26632 26633 26634 |
# File 'lib/ovirtsdk4/types.rb', line 26632 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.
26641 26642 26643 |
# File 'lib/ovirtsdk4/types.rb', line 26641 def virtio_scsi_multi_queues_enabled=(value) @virtio_scsi_multi_queues_enabled = value end |