Class: OvirtSDK4::Cluster
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::Cluster
- 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. -
#affinity_groups ⇒ Array<AffinityGroup>
Returns the value of the
affinity_groups
attribute. -
#affinity_groups=(list) ⇒ Object
Sets the value of the
affinity_groups
attribute. -
#ballooning_enabled ⇒ Boolean
Returns the value of the
ballooning_enabled
attribute. -
#ballooning_enabled=(value) ⇒ Object
Sets the value of the
ballooning_enabled
attribute. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#cpu ⇒ Cpu
Returns the value of the
cpu
attribute. -
#cpu=(value) ⇒ Object
Sets the value of the
cpu
attribute. -
#cpu_profiles ⇒ Array<CpuProfile>
Returns the value of the
cpu_profiles
attribute. -
#cpu_profiles=(list) ⇒ Object
Sets the value of the
cpu_profiles
attribute. -
#custom_scheduling_policy_properties ⇒ Array<Property>
Returns the value of the
custom_scheduling_policy_properties
attribute. -
#custom_scheduling_policy_properties=(list) ⇒ Object
Sets the value of the
custom_scheduling_policy_properties
attribute. -
#data_center ⇒ DataCenter
Returns the value of the
data_center
attribute. -
#data_center=(value) ⇒ Object
Sets the value of the
data_center
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. -
#enabled_features ⇒ Array<ClusterFeature>
Returns the value of the
enabled_features
attribute. -
#enabled_features=(list) ⇒ Object
Sets the value of the
enabled_features
attribute. -
#error_handling ⇒ ErrorHandling
Returns the value of the
error_handling
attribute. -
#error_handling=(value) ⇒ Object
Sets the value of the
error_handling
attribute. -
#external_network_providers ⇒ Array<ExternalProvider>
Returns the value of the
external_network_providers
attribute. -
#external_network_providers=(list) ⇒ Object
Sets the value of the
external_network_providers
attribute. -
#fencing_policy ⇒ FencingPolicy
Returns the value of the
fencing_policy
attribute. -
#fencing_policy=(value) ⇒ Object
Sets the value of the
fencing_policy
attribute. -
#firewall_type ⇒ FirewallType
Returns the value of the
firewall_type
attribute. -
#firewall_type=(value) ⇒ Object
Sets the value of the
firewall_type
attribute. -
#gluster_hooks ⇒ Array<GlusterHook>
Returns the value of the
gluster_hooks
attribute. -
#gluster_hooks=(list) ⇒ Object
Sets the value of the
gluster_hooks
attribute. -
#gluster_service ⇒ Boolean
Returns the value of the
gluster_service
attribute. -
#gluster_service=(value) ⇒ Object
Sets the value of the
gluster_service
attribute. -
#gluster_tuned_profile ⇒ String
Returns the value of the
gluster_tuned_profile
attribute. -
#gluster_tuned_profile=(value) ⇒ Object
Sets the value of the
gluster_tuned_profile
attribute. -
#gluster_volumes ⇒ Array<GlusterVolume>
Returns the value of the
gluster_volumes
attribute. -
#gluster_volumes=(list) ⇒ Object
Sets the value of the
gluster_volumes
attribute. -
#ha_reservation ⇒ Boolean
Returns the value of the
ha_reservation
attribute. -
#ha_reservation=(value) ⇒ Object
Sets the value of the
ha_reservation
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ Cluster
constructor
Creates a new instance of the Cluster class.
-
#ksm ⇒ Ksm
Returns the value of the
ksm
attribute. -
#ksm=(value) ⇒ Object
Sets the value of the
ksm
attribute. -
#mac_pool ⇒ MacPool
Returns the value of the
mac_pool
attribute. -
#mac_pool=(value) ⇒ Object
Sets the value of the
mac_pool
attribute. -
#maintenance_reason_required ⇒ Boolean
Returns the value of the
maintenance_reason_required
attribute. -
#maintenance_reason_required=(value) ⇒ Object
Sets the value of the
maintenance_reason_required
attribute. -
#management_network ⇒ Network
Returns the value of the
management_network
attribute. -
#management_network=(value) ⇒ Object
Sets the value of the
management_network
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. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#network_filters ⇒ Array<NetworkFilter>
Returns the value of the
network_filters
attribute. -
#network_filters=(list) ⇒ Object
Sets the value of the
network_filters
attribute. -
#networks ⇒ Array<Network>
Returns the value of the
networks
attribute. -
#networks=(list) ⇒ Object
Sets the value of the
networks
attribute. -
#optional_reason ⇒ Boolean
Returns the value of the
optional_reason
attribute. -
#optional_reason=(value) ⇒ Object
Sets the value of the
optional_reason
attribute. -
#permissions ⇒ Array<Permission>
Returns the value of the
permissions
attribute. -
#permissions=(list) ⇒ Object
Sets the value of the
permissions
attribute. -
#required_rng_sources ⇒ Array<RngSource>
Returns the value of the
required_rng_sources
attribute. -
#required_rng_sources=(list) ⇒ Object
Sets the value of the
required_rng_sources
attribute. -
#scheduling_policy ⇒ SchedulingPolicy
Returns the value of the
scheduling_policy
attribute. -
#scheduling_policy=(value) ⇒ Object
Sets the value of the
scheduling_policy
attribute. -
#serial_number ⇒ SerialNumber
Returns the value of the
serial_number
attribute. -
#serial_number=(value) ⇒ Object
Sets the value of the
serial_number
attribute. -
#supported_versions ⇒ Array<Version>
Returns the value of the
supported_versions
attribute. -
#supported_versions=(list) ⇒ Object
Sets the value of the
supported_versions
attribute. -
#switch_type ⇒ SwitchType
Returns the value of the
switch_type
attribute. -
#switch_type=(value) ⇒ Object
Sets the value of the
switch_type
attribute. -
#threads_as_cores ⇒ Boolean
Returns the value of the
threads_as_cores
attribute. -
#threads_as_cores=(value) ⇒ Object
Sets the value of the
threads_as_cores
attribute. -
#trusted_service ⇒ Boolean
Returns the value of the
trusted_service
attribute. -
#trusted_service=(value) ⇒ Object
Sets the value of the
trusted_service
attribute. -
#tunnel_migration ⇒ Boolean
Returns the value of the
tunnel_migration
attribute. -
#tunnel_migration=(value) ⇒ Object
Sets the value of the
tunnel_migration
attribute. -
#version ⇒ Version
Returns the value of the
version
attribute. -
#version=(value) ⇒ Object
Sets the value of the
version
attribute. -
#virt_service ⇒ Boolean
Returns the value of the
virt_service
attribute. -
#virt_service=(value) ⇒ Object
Sets the value of the
virt_service
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Cluster
Creates a new instance of the OvirtSDK4::Cluster class.
32135 32136 32137 32138 32139 32140 32141 32142 32143 32144 32145 32146 32147 32148 32149 32150 32151 32152 32153 32154 32155 32156 32157 32158 32159 32160 32161 32162 32163 32164 32165 32166 32167 32168 32169 32170 32171 32172 32173 32174 |
# File 'lib/ovirtsdk4/types.rb', line 32135 def initialize(opts = {}) super(opts) self.affinity_groups = opts[:affinity_groups] self.ballooning_enabled = opts[:ballooning_enabled] self.cpu = opts[:cpu] self.cpu_profiles = opts[:cpu_profiles] self.custom_scheduling_policy_properties = opts[:custom_scheduling_policy_properties] self.data_center = opts[:data_center] self.display = opts[:display] self.enabled_features = opts[:enabled_features] self.error_handling = opts[:error_handling] self.external_network_providers = opts[:external_network_providers] self.fencing_policy = opts[:fencing_policy] self.firewall_type = opts[:firewall_type] self.gluster_hooks = opts[:gluster_hooks] self.gluster_service = opts[:gluster_service] self.gluster_tuned_profile = opts[:gluster_tuned_profile] self.gluster_volumes = opts[:gluster_volumes] self.ha_reservation = opts[:ha_reservation] self.ksm = opts[:ksm] self.mac_pool = opts[:mac_pool] self.maintenance_reason_required = opts[:maintenance_reason_required] self.management_network = opts[:management_network] self.memory_policy = opts[:memory_policy] self.migration = opts[:migration] self.network_filters = opts[:network_filters] self.networks = opts[:networks] self.optional_reason = opts[:optional_reason] self. = opts[:permissions] self.required_rng_sources = opts[:required_rng_sources] self.scheduling_policy = opts[:scheduling_policy] self.serial_number = opts[:serial_number] self.supported_versions = opts[:supported_versions] self.switch_type = opts[:switch_type] self.threads_as_cores = opts[:threads_as_cores] self.trusted_service = opts[:trusted_service] self.tunnel_migration = opts[:tunnel_migration] self.version = opts[:version] self.virt_service = opts[:virt_service] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
32179 32180 32181 32182 32183 32184 32185 32186 32187 32188 32189 32190 32191 32192 32193 32194 32195 32196 32197 32198 32199 32200 32201 32202 32203 32204 32205 32206 32207 32208 32209 32210 32211 32212 32213 32214 32215 32216 32217 32218 |
# File 'lib/ovirtsdk4/types.rb', line 32179 def ==(other) super && @affinity_groups == other.affinity_groups && @ballooning_enabled == other.ballooning_enabled && @cpu == other.cpu && @cpu_profiles == other.cpu_profiles && @custom_scheduling_policy_properties == other.custom_scheduling_policy_properties && @data_center == other.data_center && @display == other.display && @enabled_features == other.enabled_features && @error_handling == other.error_handling && @external_network_providers == other.external_network_providers && @fencing_policy == other.fencing_policy && @firewall_type == other.firewall_type && @gluster_hooks == other.gluster_hooks && @gluster_service == other.gluster_service && @gluster_tuned_profile == other.gluster_tuned_profile && @gluster_volumes == other.gluster_volumes && @ha_reservation == other.ha_reservation && @ksm == other.ksm && @mac_pool == other.mac_pool && @maintenance_reason_required == other.maintenance_reason_required && @management_network == other.management_network && @memory_policy == other.memory_policy && @migration == other.migration && @network_filters == other.network_filters && @networks == other.networks && @optional_reason == other.optional_reason && @permissions == other. && @required_rng_sources == other.required_rng_sources && @scheduling_policy == other.scheduling_policy && @serial_number == other.serial_number && @supported_versions == other.supported_versions && @switch_type == other.switch_type && @threads_as_cores == other.threads_as_cores && @trusted_service == other.trusted_service && @tunnel_migration == other.tunnel_migration && @version == other.version && @virt_service == other.virt_service end |
#affinity_groups ⇒ Array<AffinityGroup>
Returns the value of the affinity_groups
attribute.
31133 31134 31135 |
# File 'lib/ovirtsdk4/types.rb', line 31133 def affinity_groups @affinity_groups end |
#affinity_groups=(list) ⇒ Object
Sets the value of the affinity_groups
attribute.
31142 31143 31144 31145 31146 31147 31148 31149 31150 31151 31152 |
# File 'lib/ovirtsdk4/types.rb', line 31142 def affinity_groups=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = AffinityGroup.new(value) end end end @affinity_groups = list end |
#ballooning_enabled ⇒ Boolean
Returns the value of the ballooning_enabled
attribute.
31159 31160 31161 |
# File 'lib/ovirtsdk4/types.rb', line 31159 def ballooning_enabled @ballooning_enabled end |
#ballooning_enabled=(value) ⇒ Object
Sets the value of the ballooning_enabled
attribute.
31168 31169 31170 |
# File 'lib/ovirtsdk4/types.rb', line 31168 def ballooning_enabled=(value) @ballooning_enabled = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
31177 31178 31179 |
# File 'lib/ovirtsdk4/types.rb', line 31177 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
31186 31187 31188 |
# File 'lib/ovirtsdk4/types.rb', line 31186 def comment=(value) @comment = value end |
#cpu ⇒ Cpu
Returns the value of the cpu
attribute.
31195 31196 31197 |
# File 'lib/ovirtsdk4/types.rb', line 31195 def cpu @cpu end |
#cpu=(value) ⇒ Object
Sets the value of the cpu
attribute.
The value
parameter can be an instance of OvirtSDK4::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.
31208 31209 31210 31211 31212 31213 |
# File 'lib/ovirtsdk4/types.rb', line 31208 def cpu=(value) if value.is_a?(Hash) value = Cpu.new(value) end @cpu = value end |
#cpu_profiles ⇒ Array<CpuProfile>
Returns the value of the cpu_profiles
attribute.
31220 31221 31222 |
# File 'lib/ovirtsdk4/types.rb', line 31220 def cpu_profiles @cpu_profiles end |
#cpu_profiles=(list) ⇒ Object
Sets the value of the cpu_profiles
attribute.
31229 31230 31231 31232 31233 31234 31235 31236 31237 31238 31239 |
# File 'lib/ovirtsdk4/types.rb', line 31229 def cpu_profiles=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = CpuProfile.new(value) end end end @cpu_profiles = list end |
#custom_scheduling_policy_properties ⇒ Array<Property>
Returns the value of the custom_scheduling_policy_properties
attribute.
31246 31247 31248 |
# File 'lib/ovirtsdk4/types.rb', line 31246 def custom_scheduling_policy_properties @custom_scheduling_policy_properties end |
#custom_scheduling_policy_properties=(list) ⇒ Object
Sets the value of the custom_scheduling_policy_properties
attribute.
31255 31256 31257 31258 31259 31260 31261 31262 31263 31264 31265 |
# File 'lib/ovirtsdk4/types.rb', line 31255 def custom_scheduling_policy_properties=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Property.new(value) end end end @custom_scheduling_policy_properties = list end |
#data_center ⇒ DataCenter
Returns the value of the data_center
attribute.
31272 31273 31274 |
# File 'lib/ovirtsdk4/types.rb', line 31272 def data_center @data_center end |
#data_center=(value) ⇒ Object
Sets the value of the data_center
attribute.
The value
parameter can be an instance of DataCenter 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.
31285 31286 31287 31288 31289 31290 |
# File 'lib/ovirtsdk4/types.rb', line 31285 def data_center=(value) if value.is_a?(Hash) value = DataCenter.new(value) end @data_center = value end |
#description ⇒ String
Returns the value of the description
attribute.
31297 31298 31299 |
# File 'lib/ovirtsdk4/types.rb', line 31297 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
31306 31307 31308 |
# File 'lib/ovirtsdk4/types.rb', line 31306 def description=(value) @description = value end |
#display ⇒ Display
Returns the value of the display
attribute.
31315 31316 31317 |
# File 'lib/ovirtsdk4/types.rb', line 31315 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.
31328 31329 31330 31331 31332 31333 |
# File 'lib/ovirtsdk4/types.rb', line 31328 def display=(value) if value.is_a?(Hash) value = Display.new(value) end @display = value end |
#enabled_features ⇒ Array<ClusterFeature>
Returns the value of the enabled_features
attribute.
31340 31341 31342 |
# File 'lib/ovirtsdk4/types.rb', line 31340 def enabled_features @enabled_features end |
#enabled_features=(list) ⇒ Object
Sets the value of the enabled_features
attribute.
31349 31350 31351 31352 31353 31354 31355 31356 31357 31358 31359 |
# File 'lib/ovirtsdk4/types.rb', line 31349 def enabled_features=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = ClusterFeature.new(value) end end end @enabled_features = list end |
#error_handling ⇒ ErrorHandling
Returns the value of the error_handling
attribute.
31366 31367 31368 |
# File 'lib/ovirtsdk4/types.rb', line 31366 def error_handling @error_handling end |
#error_handling=(value) ⇒ Object
Sets the value of the error_handling
attribute.
The value
parameter can be an instance of ErrorHandling 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.
31379 31380 31381 31382 31383 31384 |
# File 'lib/ovirtsdk4/types.rb', line 31379 def error_handling=(value) if value.is_a?(Hash) value = ErrorHandling.new(value) end @error_handling = value end |
#external_network_providers ⇒ Array<ExternalProvider>
Returns the value of the external_network_providers
attribute.
31391 31392 31393 |
# File 'lib/ovirtsdk4/types.rb', line 31391 def external_network_providers @external_network_providers end |
#external_network_providers=(list) ⇒ Object
Sets the value of the external_network_providers
attribute.
31400 31401 31402 31403 31404 31405 31406 31407 31408 31409 31410 |
# File 'lib/ovirtsdk4/types.rb', line 31400 def external_network_providers=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = ExternalProvider.new(value) end end end @external_network_providers = list end |
#fencing_policy ⇒ FencingPolicy
Returns the value of the fencing_policy
attribute.
31417 31418 31419 |
# File 'lib/ovirtsdk4/types.rb', line 31417 def fencing_policy @fencing_policy end |
#fencing_policy=(value) ⇒ Object
Sets the value of the fencing_policy
attribute.
The value
parameter can be an instance of FencingPolicy 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.
31430 31431 31432 31433 31434 31435 |
# File 'lib/ovirtsdk4/types.rb', line 31430 def fencing_policy=(value) if value.is_a?(Hash) value = FencingPolicy.new(value) end @fencing_policy = value end |
#firewall_type ⇒ FirewallType
Returns the value of the firewall_type
attribute.
31442 31443 31444 |
# File 'lib/ovirtsdk4/types.rb', line 31442 def firewall_type @firewall_type end |
#firewall_type=(value) ⇒ Object
Sets the value of the firewall_type
attribute.
31451 31452 31453 |
# File 'lib/ovirtsdk4/types.rb', line 31451 def firewall_type=(value) @firewall_type = value end |
#gluster_hooks ⇒ Array<GlusterHook>
Returns the value of the gluster_hooks
attribute.
31460 31461 31462 |
# File 'lib/ovirtsdk4/types.rb', line 31460 def gluster_hooks @gluster_hooks end |
#gluster_hooks=(list) ⇒ Object
Sets the value of the gluster_hooks
attribute.
31469 31470 31471 31472 31473 31474 31475 31476 31477 31478 31479 |
# File 'lib/ovirtsdk4/types.rb', line 31469 def gluster_hooks=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = GlusterHook.new(value) end end end @gluster_hooks = list end |
#gluster_service ⇒ Boolean
Returns the value of the gluster_service
attribute.
31486 31487 31488 |
# File 'lib/ovirtsdk4/types.rb', line 31486 def gluster_service @gluster_service end |
#gluster_service=(value) ⇒ Object
Sets the value of the gluster_service
attribute.
31495 31496 31497 |
# File 'lib/ovirtsdk4/types.rb', line 31495 def gluster_service=(value) @gluster_service = value end |
#gluster_tuned_profile ⇒ String
Returns the value of the gluster_tuned_profile
attribute.
31504 31505 31506 |
# File 'lib/ovirtsdk4/types.rb', line 31504 def gluster_tuned_profile @gluster_tuned_profile end |
#gluster_tuned_profile=(value) ⇒ Object
Sets the value of the gluster_tuned_profile
attribute.
31513 31514 31515 |
# File 'lib/ovirtsdk4/types.rb', line 31513 def gluster_tuned_profile=(value) @gluster_tuned_profile = value end |
#gluster_volumes ⇒ Array<GlusterVolume>
Returns the value of the gluster_volumes
attribute.
31522 31523 31524 |
# File 'lib/ovirtsdk4/types.rb', line 31522 def gluster_volumes @gluster_volumes end |
#gluster_volumes=(list) ⇒ Object
Sets the value of the gluster_volumes
attribute.
31531 31532 31533 31534 31535 31536 31537 31538 31539 31540 31541 |
# File 'lib/ovirtsdk4/types.rb', line 31531 def gluster_volumes=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = GlusterVolume.new(value) end end end @gluster_volumes = list end |
#ha_reservation ⇒ Boolean
Returns the value of the ha_reservation
attribute.
31548 31549 31550 |
# File 'lib/ovirtsdk4/types.rb', line 31548 def ha_reservation @ha_reservation end |
#ha_reservation=(value) ⇒ Object
Sets the value of the ha_reservation
attribute.
31557 31558 31559 |
# File 'lib/ovirtsdk4/types.rb', line 31557 def ha_reservation=(value) @ha_reservation = value end |
#hash ⇒ Object
Generates a hash value for this object.
32223 32224 32225 32226 32227 32228 32229 32230 32231 32232 32233 32234 32235 32236 32237 32238 32239 32240 32241 32242 32243 32244 32245 32246 32247 32248 32249 32250 32251 32252 32253 32254 32255 32256 32257 32258 32259 32260 32261 32262 |
# File 'lib/ovirtsdk4/types.rb', line 32223 def hash super + @affinity_groups.hash + @ballooning_enabled.hash + @cpu.hash + @cpu_profiles.hash + @custom_scheduling_policy_properties.hash + @data_center.hash + @display.hash + @enabled_features.hash + @error_handling.hash + @external_network_providers.hash + @fencing_policy.hash + @firewall_type.hash + @gluster_hooks.hash + @gluster_service.hash + @gluster_tuned_profile.hash + @gluster_volumes.hash + @ha_reservation.hash + @ksm.hash + @mac_pool.hash + @maintenance_reason_required.hash + @management_network.hash + @memory_policy.hash + @migration.hash + @network_filters.hash + @networks.hash + @optional_reason.hash + @permissions.hash + @required_rng_sources.hash + @scheduling_policy.hash + @serial_number.hash + @supported_versions.hash + @switch_type.hash + @threads_as_cores.hash + @trusted_service.hash + @tunnel_migration.hash + @version.hash + @virt_service.hash end |
#id ⇒ String
Returns the value of the id
attribute.
31566 31567 31568 |
# File 'lib/ovirtsdk4/types.rb', line 31566 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
31575 31576 31577 |
# File 'lib/ovirtsdk4/types.rb', line 31575 def id=(value) @id = value end |
#ksm ⇒ Ksm
Returns the value of the ksm
attribute.
31584 31585 31586 |
# File 'lib/ovirtsdk4/types.rb', line 31584 def ksm @ksm end |
#ksm=(value) ⇒ Object
Sets the value of the ksm
attribute.
The value
parameter can be an instance of Ksm 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.
31597 31598 31599 31600 31601 31602 |
# File 'lib/ovirtsdk4/types.rb', line 31597 def ksm=(value) if value.is_a?(Hash) value = Ksm.new(value) end @ksm = value end |
#mac_pool ⇒ MacPool
Returns the value of the mac_pool
attribute.
31609 31610 31611 |
# File 'lib/ovirtsdk4/types.rb', line 31609 def mac_pool @mac_pool end |
#mac_pool=(value) ⇒ Object
Sets the value of the mac_pool
attribute.
The value
parameter can be an instance of MacPool 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.
31622 31623 31624 31625 31626 31627 |
# File 'lib/ovirtsdk4/types.rb', line 31622 def mac_pool=(value) if value.is_a?(Hash) value = MacPool.new(value) end @mac_pool = value end |
#maintenance_reason_required ⇒ Boolean
Returns the value of the maintenance_reason_required
attribute.
31634 31635 31636 |
# File 'lib/ovirtsdk4/types.rb', line 31634 def maintenance_reason_required @maintenance_reason_required end |
#maintenance_reason_required=(value) ⇒ Object
Sets the value of the maintenance_reason_required
attribute.
31643 31644 31645 |
# File 'lib/ovirtsdk4/types.rb', line 31643 def maintenance_reason_required=(value) @maintenance_reason_required = value end |
#management_network ⇒ Network
Returns the value of the management_network
attribute.
31652 31653 31654 |
# File 'lib/ovirtsdk4/types.rb', line 31652 def management_network @management_network end |
#management_network=(value) ⇒ Object
Sets the value of the management_network
attribute.
The value
parameter can be an instance of Network 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.
31665 31666 31667 31668 31669 31670 |
# File 'lib/ovirtsdk4/types.rb', line 31665 def management_network=(value) if value.is_a?(Hash) value = Network.new(value) end @management_network = value end |
#memory_policy ⇒ MemoryPolicy
Returns the value of the memory_policy
attribute.
31677 31678 31679 |
# File 'lib/ovirtsdk4/types.rb', line 31677 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.
31690 31691 31692 31693 31694 31695 |
# File 'lib/ovirtsdk4/types.rb', line 31690 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.
31702 31703 31704 |
# File 'lib/ovirtsdk4/types.rb', line 31702 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.
31715 31716 31717 31718 31719 31720 |
# File 'lib/ovirtsdk4/types.rb', line 31715 def migration=(value) if value.is_a?(Hash) value = MigrationOptions.new(value) end @migration = value end |
#name ⇒ String
Returns the value of the name
attribute.
31727 31728 31729 |
# File 'lib/ovirtsdk4/types.rb', line 31727 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
31736 31737 31738 |
# File 'lib/ovirtsdk4/types.rb', line 31736 def name=(value) @name = value end |
#network_filters ⇒ Array<NetworkFilter>
Returns the value of the network_filters
attribute.
31745 31746 31747 |
# File 'lib/ovirtsdk4/types.rb', line 31745 def network_filters @network_filters end |
#network_filters=(list) ⇒ Object
Sets the value of the network_filters
attribute.
31754 31755 31756 31757 31758 31759 31760 31761 31762 31763 31764 |
# File 'lib/ovirtsdk4/types.rb', line 31754 def network_filters=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = NetworkFilter.new(value) end end end @network_filters = list end |
#networks ⇒ Array<Network>
Returns the value of the networks
attribute.
31771 31772 31773 |
# File 'lib/ovirtsdk4/types.rb', line 31771 def networks @networks end |
#networks=(list) ⇒ Object
Sets the value of the networks
attribute.
31780 31781 31782 31783 31784 31785 31786 31787 31788 31789 31790 |
# File 'lib/ovirtsdk4/types.rb', line 31780 def networks=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Network.new(value) end end end @networks = list end |
#optional_reason ⇒ Boolean
Returns the value of the optional_reason
attribute.
31797 31798 31799 |
# File 'lib/ovirtsdk4/types.rb', line 31797 def optional_reason @optional_reason end |
#optional_reason=(value) ⇒ Object
Sets the value of the optional_reason
attribute.
31806 31807 31808 |
# File 'lib/ovirtsdk4/types.rb', line 31806 def optional_reason=(value) @optional_reason = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions
attribute.
31815 31816 31817 |
# File 'lib/ovirtsdk4/types.rb', line 31815 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
31824 31825 31826 31827 31828 31829 31830 31831 31832 31833 31834 |
# File 'lib/ovirtsdk4/types.rb', line 31824 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 |
#required_rng_sources ⇒ Array<RngSource>
Returns the value of the required_rng_sources
attribute.
31841 31842 31843 |
# File 'lib/ovirtsdk4/types.rb', line 31841 def required_rng_sources @required_rng_sources end |
#required_rng_sources=(list) ⇒ Object
Sets the value of the required_rng_sources
attribute.
31850 31851 31852 |
# File 'lib/ovirtsdk4/types.rb', line 31850 def required_rng_sources=(list) @required_rng_sources = list end |
#scheduling_policy ⇒ SchedulingPolicy
Returns the value of the scheduling_policy
attribute.
31859 31860 31861 |
# File 'lib/ovirtsdk4/types.rb', line 31859 def scheduling_policy @scheduling_policy end |
#scheduling_policy=(value) ⇒ Object
Sets the value of the scheduling_policy
attribute.
The value
parameter can be an instance of SchedulingPolicy 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.
31872 31873 31874 31875 31876 31877 |
# File 'lib/ovirtsdk4/types.rb', line 31872 def scheduling_policy=(value) if value.is_a?(Hash) value = SchedulingPolicy.new(value) end @scheduling_policy = value end |
#serial_number ⇒ SerialNumber
Returns the value of the serial_number
attribute.
31884 31885 31886 |
# File 'lib/ovirtsdk4/types.rb', line 31884 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.
31897 31898 31899 31900 31901 31902 |
# File 'lib/ovirtsdk4/types.rb', line 31897 def serial_number=(value) if value.is_a?(Hash) value = SerialNumber.new(value) end @serial_number = value end |
#supported_versions ⇒ Array<Version>
Returns the value of the supported_versions
attribute.
31909 31910 31911 |
# File 'lib/ovirtsdk4/types.rb', line 31909 def supported_versions @supported_versions end |
#supported_versions=(list) ⇒ Object
Sets the value of the supported_versions
attribute.
31918 31919 31920 31921 31922 31923 31924 31925 31926 31927 31928 |
# File 'lib/ovirtsdk4/types.rb', line 31918 def supported_versions=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Version.new(value) end end end @supported_versions = list end |
#switch_type ⇒ SwitchType
Returns the value of the switch_type
attribute.
31935 31936 31937 |
# File 'lib/ovirtsdk4/types.rb', line 31935 def switch_type @switch_type end |
#switch_type=(value) ⇒ Object
Sets the value of the switch_type
attribute.
31944 31945 31946 |
# File 'lib/ovirtsdk4/types.rb', line 31944 def switch_type=(value) @switch_type = value end |
#threads_as_cores ⇒ Boolean
Returns the value of the threads_as_cores
attribute.
31953 31954 31955 |
# File 'lib/ovirtsdk4/types.rb', line 31953 def threads_as_cores @threads_as_cores end |
#threads_as_cores=(value) ⇒ Object
Sets the value of the threads_as_cores
attribute.
31962 31963 31964 |
# File 'lib/ovirtsdk4/types.rb', line 31962 def threads_as_cores=(value) @threads_as_cores = value end |
#trusted_service ⇒ Boolean
Returns the value of the trusted_service
attribute.
31971 31972 31973 |
# File 'lib/ovirtsdk4/types.rb', line 31971 def trusted_service @trusted_service end |
#trusted_service=(value) ⇒ Object
Sets the value of the trusted_service
attribute.
31980 31981 31982 |
# File 'lib/ovirtsdk4/types.rb', line 31980 def trusted_service=(value) @trusted_service = value end |
#tunnel_migration ⇒ Boolean
Returns the value of the tunnel_migration
attribute.
31989 31990 31991 |
# File 'lib/ovirtsdk4/types.rb', line 31989 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration
attribute.
31998 31999 32000 |
# File 'lib/ovirtsdk4/types.rb', line 31998 def tunnel_migration=(value) @tunnel_migration = value end |
#version ⇒ Version
Returns the value of the version
attribute.
32007 32008 32009 |
# File 'lib/ovirtsdk4/types.rb', line 32007 def version @version end |
#version=(value) ⇒ Object
Sets the value of the 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.
32020 32021 32022 32023 32024 32025 |
# File 'lib/ovirtsdk4/types.rb', line 32020 def version=(value) if value.is_a?(Hash) value = Version.new(value) end @version = value end |
#virt_service ⇒ Boolean
Returns the value of the virt_service
attribute.
32032 32033 32034 |
# File 'lib/ovirtsdk4/types.rb', line 32032 def virt_service @virt_service end |
#virt_service=(value) ⇒ Object
Sets the value of the virt_service
attribute.
32041 32042 32043 |
# File 'lib/ovirtsdk4/types.rb', line 32041 def virt_service=(value) @virt_service = value end |