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. -
#fencing_policy ⇒ FencingPolicy
Returns the value of the
fencing_policy
attribute. -
#fencing_policy=(value) ⇒ Object
Sets the value of the
fencing_policy
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.
29832 29833 29834 29835 29836 29837 29838 29839 29840 29841 29842 29843 29844 29845 29846 29847 29848 29849 29850 29851 29852 29853 29854 29855 29856 29857 29858 29859 29860 29861 29862 29863 29864 29865 29866 29867 29868 29869 |
# File 'lib/ovirtsdk4/types.rb', line 29832 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.fencing_policy = opts[:fencing_policy] 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.
29874 29875 29876 29877 29878 29879 29880 29881 29882 29883 29884 29885 29886 29887 29888 29889 29890 29891 29892 29893 29894 29895 29896 29897 29898 29899 29900 29901 29902 29903 29904 29905 29906 29907 29908 29909 29910 29911 |
# File 'lib/ovirtsdk4/types.rb', line 29874 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 && @fencing_policy == other.fencing_policy && @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.
28878 28879 28880 |
# File 'lib/ovirtsdk4/types.rb', line 28878 def affinity_groups @affinity_groups end |
#affinity_groups=(list) ⇒ Object
Sets the value of the affinity_groups
attribute.
28887 28888 28889 28890 28891 28892 28893 28894 28895 28896 28897 |
# File 'lib/ovirtsdk4/types.rb', line 28887 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.
28904 28905 28906 |
# File 'lib/ovirtsdk4/types.rb', line 28904 def ballooning_enabled @ballooning_enabled end |
#ballooning_enabled=(value) ⇒ Object
Sets the value of the ballooning_enabled
attribute.
28913 28914 28915 |
# File 'lib/ovirtsdk4/types.rb', line 28913 def ballooning_enabled=(value) @ballooning_enabled = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
28922 28923 28924 |
# File 'lib/ovirtsdk4/types.rb', line 28922 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
28931 28932 28933 |
# File 'lib/ovirtsdk4/types.rb', line 28931 def comment=(value) @comment = value end |
#cpu ⇒ Cpu
Returns the value of the cpu
attribute.
28940 28941 28942 |
# File 'lib/ovirtsdk4/types.rb', line 28940 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.
28953 28954 28955 28956 28957 28958 |
# File 'lib/ovirtsdk4/types.rb', line 28953 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.
28965 28966 28967 |
# File 'lib/ovirtsdk4/types.rb', line 28965 def cpu_profiles @cpu_profiles end |
#cpu_profiles=(list) ⇒ Object
Sets the value of the cpu_profiles
attribute.
28974 28975 28976 28977 28978 28979 28980 28981 28982 28983 28984 |
# File 'lib/ovirtsdk4/types.rb', line 28974 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.
28991 28992 28993 |
# File 'lib/ovirtsdk4/types.rb', line 28991 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.
29000 29001 29002 29003 29004 29005 29006 29007 29008 29009 29010 |
# File 'lib/ovirtsdk4/types.rb', line 29000 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.
29017 29018 29019 |
# File 'lib/ovirtsdk4/types.rb', line 29017 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.
29030 29031 29032 29033 29034 29035 |
# File 'lib/ovirtsdk4/types.rb', line 29030 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.
29042 29043 29044 |
# File 'lib/ovirtsdk4/types.rb', line 29042 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
29051 29052 29053 |
# File 'lib/ovirtsdk4/types.rb', line 29051 def description=(value) @description = value end |
#display ⇒ Display
Returns the value of the display
attribute.
29060 29061 29062 |
# File 'lib/ovirtsdk4/types.rb', line 29060 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.
29073 29074 29075 29076 29077 29078 |
# File 'lib/ovirtsdk4/types.rb', line 29073 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.
29085 29086 29087 |
# File 'lib/ovirtsdk4/types.rb', line 29085 def enabled_features @enabled_features end |
#enabled_features=(list) ⇒ Object
Sets the value of the enabled_features
attribute.
29094 29095 29096 29097 29098 29099 29100 29101 29102 29103 29104 |
# File 'lib/ovirtsdk4/types.rb', line 29094 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.
29111 29112 29113 |
# File 'lib/ovirtsdk4/types.rb', line 29111 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.
29124 29125 29126 29127 29128 29129 |
# File 'lib/ovirtsdk4/types.rb', line 29124 def error_handling=(value) if value.is_a?(Hash) value = ErrorHandling.new(value) end @error_handling = value end |
#fencing_policy ⇒ FencingPolicy
Returns the value of the fencing_policy
attribute.
29136 29137 29138 |
# File 'lib/ovirtsdk4/types.rb', line 29136 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.
29149 29150 29151 29152 29153 29154 |
# File 'lib/ovirtsdk4/types.rb', line 29149 def fencing_policy=(value) if value.is_a?(Hash) value = FencingPolicy.new(value) end @fencing_policy = value end |
#gluster_hooks ⇒ Array<GlusterHook>
Returns the value of the gluster_hooks
attribute.
29161 29162 29163 |
# File 'lib/ovirtsdk4/types.rb', line 29161 def gluster_hooks @gluster_hooks end |
#gluster_hooks=(list) ⇒ Object
Sets the value of the gluster_hooks
attribute.
29170 29171 29172 29173 29174 29175 29176 29177 29178 29179 29180 |
# File 'lib/ovirtsdk4/types.rb', line 29170 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.
29187 29188 29189 |
# File 'lib/ovirtsdk4/types.rb', line 29187 def gluster_service @gluster_service end |
#gluster_service=(value) ⇒ Object
Sets the value of the gluster_service
attribute.
29196 29197 29198 |
# File 'lib/ovirtsdk4/types.rb', line 29196 def gluster_service=(value) @gluster_service = value end |
#gluster_tuned_profile ⇒ String
Returns the value of the gluster_tuned_profile
attribute.
29205 29206 29207 |
# File 'lib/ovirtsdk4/types.rb', line 29205 def gluster_tuned_profile @gluster_tuned_profile end |
#gluster_tuned_profile=(value) ⇒ Object
Sets the value of the gluster_tuned_profile
attribute.
29214 29215 29216 |
# File 'lib/ovirtsdk4/types.rb', line 29214 def gluster_tuned_profile=(value) @gluster_tuned_profile = value end |
#gluster_volumes ⇒ Array<GlusterVolume>
Returns the value of the gluster_volumes
attribute.
29223 29224 29225 |
# File 'lib/ovirtsdk4/types.rb', line 29223 def gluster_volumes @gluster_volumes end |
#gluster_volumes=(list) ⇒ Object
Sets the value of the gluster_volumes
attribute.
29232 29233 29234 29235 29236 29237 29238 29239 29240 29241 29242 |
# File 'lib/ovirtsdk4/types.rb', line 29232 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.
29249 29250 29251 |
# File 'lib/ovirtsdk4/types.rb', line 29249 def ha_reservation @ha_reservation end |
#ha_reservation=(value) ⇒ Object
Sets the value of the ha_reservation
attribute.
29258 29259 29260 |
# File 'lib/ovirtsdk4/types.rb', line 29258 def ha_reservation=(value) @ha_reservation = value end |
#hash ⇒ Object
Generates a hash value for this object.
29916 29917 29918 29919 29920 29921 29922 29923 29924 29925 29926 29927 29928 29929 29930 29931 29932 29933 29934 29935 29936 29937 29938 29939 29940 29941 29942 29943 29944 29945 29946 29947 29948 29949 29950 29951 29952 29953 |
# File 'lib/ovirtsdk4/types.rb', line 29916 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 + @fencing_policy.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.
29267 29268 29269 |
# File 'lib/ovirtsdk4/types.rb', line 29267 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
29276 29277 29278 |
# File 'lib/ovirtsdk4/types.rb', line 29276 def id=(value) @id = value end |
#ksm ⇒ Ksm
Returns the value of the ksm
attribute.
29285 29286 29287 |
# File 'lib/ovirtsdk4/types.rb', line 29285 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.
29298 29299 29300 29301 29302 29303 |
# File 'lib/ovirtsdk4/types.rb', line 29298 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.
29310 29311 29312 |
# File 'lib/ovirtsdk4/types.rb', line 29310 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.
29323 29324 29325 29326 29327 29328 |
# File 'lib/ovirtsdk4/types.rb', line 29323 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.
29335 29336 29337 |
# File 'lib/ovirtsdk4/types.rb', line 29335 def maintenance_reason_required @maintenance_reason_required end |
#maintenance_reason_required=(value) ⇒ Object
Sets the value of the maintenance_reason_required
attribute.
29344 29345 29346 |
# File 'lib/ovirtsdk4/types.rb', line 29344 def maintenance_reason_required=(value) @maintenance_reason_required = value end |
#management_network ⇒ Network
Returns the value of the management_network
attribute.
29353 29354 29355 |
# File 'lib/ovirtsdk4/types.rb', line 29353 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.
29366 29367 29368 29369 29370 29371 |
# File 'lib/ovirtsdk4/types.rb', line 29366 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.
29378 29379 29380 |
# File 'lib/ovirtsdk4/types.rb', line 29378 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.
29391 29392 29393 29394 29395 29396 |
# File 'lib/ovirtsdk4/types.rb', line 29391 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.
29403 29404 29405 |
# File 'lib/ovirtsdk4/types.rb', line 29403 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.
29416 29417 29418 29419 29420 29421 |
# File 'lib/ovirtsdk4/types.rb', line 29416 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.
29428 29429 29430 |
# File 'lib/ovirtsdk4/types.rb', line 29428 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
29437 29438 29439 |
# File 'lib/ovirtsdk4/types.rb', line 29437 def name=(value) @name = value end |
#network_filters ⇒ Array<NetworkFilter>
Returns the value of the network_filters
attribute.
29446 29447 29448 |
# File 'lib/ovirtsdk4/types.rb', line 29446 def network_filters @network_filters end |
#network_filters=(list) ⇒ Object
Sets the value of the network_filters
attribute.
29455 29456 29457 29458 29459 29460 29461 29462 29463 29464 29465 |
# File 'lib/ovirtsdk4/types.rb', line 29455 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.
29472 29473 29474 |
# File 'lib/ovirtsdk4/types.rb', line 29472 def networks @networks end |
#networks=(list) ⇒ Object
Sets the value of the networks
attribute.
29481 29482 29483 29484 29485 29486 29487 29488 29489 29490 29491 |
# File 'lib/ovirtsdk4/types.rb', line 29481 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.
29498 29499 29500 |
# File 'lib/ovirtsdk4/types.rb', line 29498 def optional_reason @optional_reason end |
#optional_reason=(value) ⇒ Object
Sets the value of the optional_reason
attribute.
29507 29508 29509 |
# File 'lib/ovirtsdk4/types.rb', line 29507 def optional_reason=(value) @optional_reason = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions
attribute.
29516 29517 29518 |
# File 'lib/ovirtsdk4/types.rb', line 29516 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
29525 29526 29527 29528 29529 29530 29531 29532 29533 29534 29535 |
# File 'lib/ovirtsdk4/types.rb', line 29525 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.
29542 29543 29544 |
# File 'lib/ovirtsdk4/types.rb', line 29542 def required_rng_sources @required_rng_sources end |
#required_rng_sources=(list) ⇒ Object
Sets the value of the required_rng_sources
attribute.
29551 29552 29553 |
# File 'lib/ovirtsdk4/types.rb', line 29551 def required_rng_sources=(list) @required_rng_sources = list end |
#scheduling_policy ⇒ SchedulingPolicy
Returns the value of the scheduling_policy
attribute.
29560 29561 29562 |
# File 'lib/ovirtsdk4/types.rb', line 29560 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.
29573 29574 29575 29576 29577 29578 |
# File 'lib/ovirtsdk4/types.rb', line 29573 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.
29585 29586 29587 |
# File 'lib/ovirtsdk4/types.rb', line 29585 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.
29598 29599 29600 29601 29602 29603 |
# File 'lib/ovirtsdk4/types.rb', line 29598 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.
29610 29611 29612 |
# File 'lib/ovirtsdk4/types.rb', line 29610 def supported_versions @supported_versions end |
#supported_versions=(list) ⇒ Object
Sets the value of the supported_versions
attribute.
29619 29620 29621 29622 29623 29624 29625 29626 29627 29628 29629 |
# File 'lib/ovirtsdk4/types.rb', line 29619 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.
29636 29637 29638 |
# File 'lib/ovirtsdk4/types.rb', line 29636 def switch_type @switch_type end |
#switch_type=(value) ⇒ Object
Sets the value of the switch_type
attribute.
29645 29646 29647 |
# File 'lib/ovirtsdk4/types.rb', line 29645 def switch_type=(value) @switch_type = value end |
#threads_as_cores ⇒ Boolean
Returns the value of the threads_as_cores
attribute.
29654 29655 29656 |
# File 'lib/ovirtsdk4/types.rb', line 29654 def threads_as_cores @threads_as_cores end |
#threads_as_cores=(value) ⇒ Object
Sets the value of the threads_as_cores
attribute.
29663 29664 29665 |
# File 'lib/ovirtsdk4/types.rb', line 29663 def threads_as_cores=(value) @threads_as_cores = value end |
#trusted_service ⇒ Boolean
Returns the value of the trusted_service
attribute.
29672 29673 29674 |
# File 'lib/ovirtsdk4/types.rb', line 29672 def trusted_service @trusted_service end |
#trusted_service=(value) ⇒ Object
Sets the value of the trusted_service
attribute.
29681 29682 29683 |
# File 'lib/ovirtsdk4/types.rb', line 29681 def trusted_service=(value) @trusted_service = value end |
#tunnel_migration ⇒ Boolean
Returns the value of the tunnel_migration
attribute.
29690 29691 29692 |
# File 'lib/ovirtsdk4/types.rb', line 29690 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration
attribute.
29699 29700 29701 |
# File 'lib/ovirtsdk4/types.rb', line 29699 def tunnel_migration=(value) @tunnel_migration = value end |
#version ⇒ Version
Returns the value of the version
attribute.
29708 29709 29710 |
# File 'lib/ovirtsdk4/types.rb', line 29708 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.
29721 29722 29723 29724 29725 29726 |
# File 'lib/ovirtsdk4/types.rb', line 29721 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.
29733 29734 29735 |
# File 'lib/ovirtsdk4/types.rb', line 29733 def virt_service @virt_service end |
#virt_service=(value) ⇒ Object
Sets the value of the virt_service
attribute.
29742 29743 29744 |
# File 'lib/ovirtsdk4/types.rb', line 29742 def virt_service=(value) @virt_service = value end |