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
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. -
#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. -
#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. -
#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 = {}) ⇒ VmBase
constructor
Creates a new instance of the VmBase 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. -
#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. -
#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. -
#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. -
#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. -
#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. -
#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.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ VmBase
Creates a new instance of the OvirtSDK4::VmBase class.
27025 27026 27027 27028 27029 27030 27031 27032 27033 27034 27035 27036 27037 27038 27039 27040 27041 27042 27043 27044 27045 27046 27047 27048 27049 27050 27051 27052 27053 27054 27055 27056 27057 27058 27059 27060 27061 27062 27063 27064 27065 27066 27067 27068 27069 27070 27071 27072 27073 27074 |
# File 'lib/ovirtsdk4/types.rb', line 27025 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.
27079 27080 27081 27082 27083 27084 27085 27086 27087 27088 27089 27090 27091 27092 27093 27094 27095 27096 27097 27098 27099 27100 27101 27102 27103 27104 27105 27106 27107 27108 27109 27110 27111 27112 27113 27114 27115 27116 27117 27118 27119 27120 27121 27122 27123 27124 27125 27126 27127 27128 |
# File 'lib/ovirtsdk4/types.rb', line 27079 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.
25812 25813 25814 |
# File 'lib/ovirtsdk4/types.rb', line 25812 def auto_pinning_policy @auto_pinning_policy end |
#auto_pinning_policy=(value) ⇒ Object
Sets the value of the auto_pinning_policy attribute.
25821 25822 25823 |
# File 'lib/ovirtsdk4/types.rb', line 25821 def auto_pinning_policy=(value) @auto_pinning_policy = value end |
#bios ⇒ Bios
Returns the value of the bios attribute.
25830 25831 25832 |
# File 'lib/ovirtsdk4/types.rb', line 25830 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.
25843 25844 25845 25846 25847 25848 |
# File 'lib/ovirtsdk4/types.rb', line 25843 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.
25855 25856 25857 |
# File 'lib/ovirtsdk4/types.rb', line 25855 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.
25868 25869 25870 25871 25872 25873 |
# File 'lib/ovirtsdk4/types.rb', line 25868 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.
25880 25881 25882 |
# File 'lib/ovirtsdk4/types.rb', line 25880 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
25889 25890 25891 |
# File 'lib/ovirtsdk4/types.rb', line 25889 def comment=(value) @comment = value end |
#console ⇒ Console
Returns the value of the console attribute.
25898 25899 25900 |
# File 'lib/ovirtsdk4/types.rb', line 25898 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.
25911 25912 25913 25914 25915 25916 |
# File 'lib/ovirtsdk4/types.rb', line 25911 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.
25923 25924 25925 |
# File 'lib/ovirtsdk4/types.rb', line 25923 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.
25936 25937 25938 25939 25940 25941 |
# File 'lib/ovirtsdk4/types.rb', line 25936 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.
25948 25949 25950 |
# File 'lib/ovirtsdk4/types.rb', line 25948 def cpu_pinning_policy @cpu_pinning_policy end |
#cpu_pinning_policy=(value) ⇒ Object
Sets the value of the cpu_pinning_policy attribute.
25957 25958 25959 |
# File 'lib/ovirtsdk4/types.rb', line 25957 def cpu_pinning_policy=(value) @cpu_pinning_policy = value end |
#cpu_profile ⇒ CpuProfile
Returns the value of the cpu_profile attribute.
25966 25967 25968 |
# File 'lib/ovirtsdk4/types.rb', line 25966 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.
25979 25980 25981 25982 25983 25984 |
# File 'lib/ovirtsdk4/types.rb', line 25979 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.
25991 25992 25993 |
# File 'lib/ovirtsdk4/types.rb', line 25991 def cpu_shares @cpu_shares end |
#cpu_shares=(value) ⇒ Object
Sets the value of the cpu_shares attribute.
26000 26001 26002 |
# File 'lib/ovirtsdk4/types.rb', line 26000 def cpu_shares=(value) @cpu_shares = value end |
#creation_time ⇒ DateTime
Returns the value of the creation_time attribute.
26009 26010 26011 |
# File 'lib/ovirtsdk4/types.rb', line 26009 def creation_time @creation_time end |
#creation_time=(value) ⇒ Object
Sets the value of the creation_time attribute.
26018 26019 26020 |
# File 'lib/ovirtsdk4/types.rb', line 26018 def creation_time=(value) @creation_time = value end |
#custom_compatibility_version ⇒ Version
Returns the value of the custom_compatibility_version attribute.
26027 26028 26029 |
# File 'lib/ovirtsdk4/types.rb', line 26027 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.
26040 26041 26042 26043 26044 26045 |
# File 'lib/ovirtsdk4/types.rb', line 26040 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.
26052 26053 26054 |
# File 'lib/ovirtsdk4/types.rb', line 26052 def custom_cpu_model @custom_cpu_model end |
#custom_cpu_model=(value) ⇒ Object
Sets the value of the custom_cpu_model attribute.
26061 26062 26063 |
# File 'lib/ovirtsdk4/types.rb', line 26061 def custom_cpu_model=(value) @custom_cpu_model = value end |
#custom_emulated_machine ⇒ String
Returns the value of the custom_emulated_machine attribute.
26070 26071 26072 |
# File 'lib/ovirtsdk4/types.rb', line 26070 def custom_emulated_machine @custom_emulated_machine end |
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the custom_emulated_machine attribute.
26079 26080 26081 |
# File 'lib/ovirtsdk4/types.rb', line 26079 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the custom_properties attribute.
26088 26089 26090 |
# File 'lib/ovirtsdk4/types.rb', line 26088 def custom_properties @custom_properties end |
#custom_properties=(list) ⇒ Object
Sets the value of the custom_properties attribute.
26097 26098 26099 26100 26101 26102 26103 26104 26105 26106 26107 |
# File 'lib/ovirtsdk4/types.rb', line 26097 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.
26114 26115 26116 |
# File 'lib/ovirtsdk4/types.rb', line 26114 def delete_protected @delete_protected end |
#delete_protected=(value) ⇒ Object
Sets the value of the delete_protected attribute.
26123 26124 26125 |
# File 'lib/ovirtsdk4/types.rb', line 26123 def delete_protected=(value) @delete_protected = value end |
#description ⇒ String
Returns the value of the description attribute.
26132 26133 26134 |
# File 'lib/ovirtsdk4/types.rb', line 26132 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
26141 26142 26143 |
# File 'lib/ovirtsdk4/types.rb', line 26141 def description=(value) @description = value end |
#display ⇒ Display
Returns the value of the display attribute.
26150 26151 26152 |
# File 'lib/ovirtsdk4/types.rb', line 26150 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.
26163 26164 26165 26166 26167 26168 |
# File 'lib/ovirtsdk4/types.rb', line 26163 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.
26175 26176 26177 |
# File 'lib/ovirtsdk4/types.rb', line 26175 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.
26188 26189 26190 26191 26192 26193 |
# File 'lib/ovirtsdk4/types.rb', line 26188 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.
27133 27134 27135 27136 27137 27138 27139 27140 27141 27142 27143 27144 27145 27146 27147 27148 27149 27150 27151 27152 27153 27154 27155 27156 27157 27158 27159 27160 27161 27162 27163 27164 27165 27166 27167 27168 27169 27170 27171 27172 27173 27174 27175 27176 27177 27178 27179 27180 27181 27182 |
# File 'lib/ovirtsdk4/types.rb', line 27133 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.
26200 26201 26202 |
# File 'lib/ovirtsdk4/types.rb', line 26200 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.
26213 26214 26215 26216 26217 26218 |
# File 'lib/ovirtsdk4/types.rb', line 26213 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.
26225 26226 26227 |
# File 'lib/ovirtsdk4/types.rb', line 26225 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
26234 26235 26236 |
# File 'lib/ovirtsdk4/types.rb', line 26234 def id=(value) @id = value end |
#initialization ⇒ Initialization
Returns the value of the initialization attribute.
26243 26244 26245 |
# File 'lib/ovirtsdk4/types.rb', line 26243 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.
26256 26257 26258 26259 26260 26261 |
# File 'lib/ovirtsdk4/types.rb', line 26256 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.
26268 26269 26270 |
# File 'lib/ovirtsdk4/types.rb', line 26268 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.
26281 26282 26283 26284 26285 26286 |
# File 'lib/ovirtsdk4/types.rb', line 26281 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.
26293 26294 26295 |
# File 'lib/ovirtsdk4/types.rb', line 26293 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.
26306 26307 26308 26309 26310 26311 |
# File 'lib/ovirtsdk4/types.rb', line 26306 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.
26318 26319 26320 |
# File 'lib/ovirtsdk4/types.rb', line 26318 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.
26331 26332 26333 26334 26335 26336 |
# File 'lib/ovirtsdk4/types.rb', line 26331 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.
26343 26344 26345 |
# File 'lib/ovirtsdk4/types.rb', line 26343 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory attribute.
26352 26353 26354 |
# File 'lib/ovirtsdk4/types.rb', line 26352 def memory=(value) @memory = value end |
#memory_policy ⇒ MemoryPolicy
Returns the value of the memory_policy attribute.
26361 26362 26363 |
# File 'lib/ovirtsdk4/types.rb', line 26361 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.
26374 26375 26376 26377 26378 26379 |
# File 'lib/ovirtsdk4/types.rb', line 26374 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.
26386 26387 26388 |
# File 'lib/ovirtsdk4/types.rb', line 26386 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.
26399 26400 26401 26402 26403 26404 |
# File 'lib/ovirtsdk4/types.rb', line 26399 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.
26411 26412 26413 |
# File 'lib/ovirtsdk4/types.rb', line 26411 def migration_downtime @migration_downtime end |
#migration_downtime=(value) ⇒ Object
Sets the value of the migration_downtime attribute.
26420 26421 26422 |
# File 'lib/ovirtsdk4/types.rb', line 26420 def migration_downtime=(value) @migration_downtime = value end |
#multi_queues_enabled ⇒ Boolean
Returns the value of the multi_queues_enabled attribute.
26429 26430 26431 |
# File 'lib/ovirtsdk4/types.rb', line 26429 def multi_queues_enabled @multi_queues_enabled end |
#multi_queues_enabled=(value) ⇒ Object
Sets the value of the multi_queues_enabled attribute.
26438 26439 26440 |
# File 'lib/ovirtsdk4/types.rb', line 26438 def multi_queues_enabled=(value) @multi_queues_enabled = value end |
#name ⇒ String
Returns the value of the name attribute.
26447 26448 26449 |
# File 'lib/ovirtsdk4/types.rb', line 26447 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
26456 26457 26458 |
# File 'lib/ovirtsdk4/types.rb', line 26456 def name=(value) @name = value end |
#origin ⇒ String
Returns the value of the origin attribute.
26465 26466 26467 |
# File 'lib/ovirtsdk4/types.rb', line 26465 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin attribute.
26474 26475 26476 |
# File 'lib/ovirtsdk4/types.rb', line 26474 def origin=(value) @origin = value end |
#os ⇒ OperatingSystem
Returns the value of the os attribute.
26483 26484 26485 |
# File 'lib/ovirtsdk4/types.rb', line 26483 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.
26496 26497 26498 26499 26500 26501 |
# File 'lib/ovirtsdk4/types.rb', line 26496 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.
26508 26509 26510 |
# File 'lib/ovirtsdk4/types.rb', line 26508 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.
26521 26522 26523 26524 26525 26526 |
# File 'lib/ovirtsdk4/types.rb', line 26521 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.
26533 26534 26535 |
# File 'lib/ovirtsdk4/types.rb', line 26533 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.
26546 26547 26548 26549 26550 26551 |
# File 'lib/ovirtsdk4/types.rb', line 26546 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.
26558 26559 26560 |
# File 'lib/ovirtsdk4/types.rb', line 26558 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.
26571 26572 26573 26574 26575 26576 |
# File 'lib/ovirtsdk4/types.rb', line 26571 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.
26583 26584 26585 |
# File 'lib/ovirtsdk4/types.rb', line 26583 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.
26596 26597 26598 26599 26600 26601 |
# File 'lib/ovirtsdk4/types.rb', line 26596 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.
26608 26609 26610 |
# File 'lib/ovirtsdk4/types.rb', line 26608 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.
26621 26622 26623 26624 26625 26626 |
# File 'lib/ovirtsdk4/types.rb', line 26621 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.
26633 26634 26635 |
# File 'lib/ovirtsdk4/types.rb', line 26633 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled attribute.
26642 26643 26644 |
# File 'lib/ovirtsdk4/types.rb', line 26642 def soundcard_enabled=(value) @soundcard_enabled = value end |
#sso ⇒ Sso
Returns the value of the sso attribute.
26651 26652 26653 |
# File 'lib/ovirtsdk4/types.rb', line 26651 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.
26664 26665 26666 26667 26668 26669 |
# File 'lib/ovirtsdk4/types.rb', line 26664 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.
26676 26677 26678 |
# File 'lib/ovirtsdk4/types.rb', line 26676 def start_paused @start_paused end |
#start_paused=(value) ⇒ Object
Sets the value of the start_paused attribute.
26685 26686 26687 |
# File 'lib/ovirtsdk4/types.rb', line 26685 def start_paused=(value) @start_paused = value end |
#stateless ⇒ Boolean
Returns the value of the stateless attribute.
26694 26695 26696 |
# File 'lib/ovirtsdk4/types.rb', line 26694 def stateless @stateless end |
#stateless=(value) ⇒ Object
Sets the value of the stateless attribute.
26703 26704 26705 |
# File 'lib/ovirtsdk4/types.rb', line 26703 def stateless=(value) @stateless = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain attribute.
26712 26713 26714 |
# File 'lib/ovirtsdk4/types.rb', line 26712 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.
26725 26726 26727 26728 26729 26730 |
# File 'lib/ovirtsdk4/types.rb', line 26725 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.
26737 26738 26739 |
# File 'lib/ovirtsdk4/types.rb', line 26737 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.
26746 26747 26748 |
# File 'lib/ovirtsdk4/types.rb', line 26746 def storage_error_resume_behaviour=(value) @storage_error_resume_behaviour = value end |
#time_zone ⇒ TimeZone
Returns the value of the time_zone attribute.
26755 26756 26757 |
# File 'lib/ovirtsdk4/types.rb', line 26755 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.
26768 26769 26770 26771 26772 26773 |
# File 'lib/ovirtsdk4/types.rb', line 26768 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.
26780 26781 26782 |
# File 'lib/ovirtsdk4/types.rb', line 26780 def tpm_enabled @tpm_enabled end |
#tpm_enabled=(value) ⇒ Object
Sets the value of the tpm_enabled attribute.
26789 26790 26791 |
# File 'lib/ovirtsdk4/types.rb', line 26789 def tpm_enabled=(value) @tpm_enabled = value end |
#tunnel_migration ⇒ Boolean
Returns the value of the tunnel_migration attribute.
26798 26799 26800 |
# File 'lib/ovirtsdk4/types.rb', line 26798 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration attribute.
26807 26808 26809 |
# File 'lib/ovirtsdk4/types.rb', line 26807 def tunnel_migration=(value) @tunnel_migration = value end |
#type ⇒ VmType
Returns the value of the type attribute.
26816 26817 26818 |
# File 'lib/ovirtsdk4/types.rb', line 26816 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type attribute.
26825 26826 26827 |
# File 'lib/ovirtsdk4/types.rb', line 26825 def type=(value) @type = value end |
#usb ⇒ Usb
Returns the value of the usb attribute.
26834 26835 26836 |
# File 'lib/ovirtsdk4/types.rb', line 26834 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.
26847 26848 26849 26850 26851 26852 |
# File 'lib/ovirtsdk4/types.rb', line 26847 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.
26859 26860 26861 |
# File 'lib/ovirtsdk4/types.rb', line 26859 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.
26872 26873 26874 26875 26876 26877 |
# File 'lib/ovirtsdk4/types.rb', line 26872 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.
26884 26885 26886 |
# File 'lib/ovirtsdk4/types.rb', line 26884 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.
26893 26894 26895 |
# File 'lib/ovirtsdk4/types.rb', line 26893 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.
26902 26903 26904 |
# File 'lib/ovirtsdk4/types.rb', line 26902 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.
26911 26912 26913 |
# File 'lib/ovirtsdk4/types.rb', line 26911 def virtio_scsi_multi_queues_enabled=(value) @virtio_scsi_multi_queues_enabled = value end |