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. -
#log_max_memory_used_threshold ⇒ Integer
Returns the value of the
log_max_memory_used_threshold
attribute. -
#log_max_memory_used_threshold=(value) ⇒ Object
Sets the value of the
log_max_memory_used_threshold
attribute. -
#log_max_memory_used_threshold_type ⇒ LogMaxMemoryUsedThresholdType
Returns the value of the
log_max_memory_used_threshold_type
attribute. -
#log_max_memory_used_threshold_type=(value) ⇒ Object
Sets the value of the
log_max_memory_used_threshold_type
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.
32809 32810 32811 32812 32813 32814 32815 32816 32817 32818 32819 32820 32821 32822 32823 32824 32825 32826 32827 32828 32829 32830 32831 32832 32833 32834 32835 32836 32837 32838 32839 32840 32841 32842 32843 32844 32845 32846 32847 32848 32849 32850 |
# File 'lib/ovirtsdk4/types.rb', line 32809 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.log_max_memory_used_threshold = opts[:log_max_memory_used_threshold] self.log_max_memory_used_threshold_type = opts[:log_max_memory_used_threshold_type] 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.
32855 32856 32857 32858 32859 32860 32861 32862 32863 32864 32865 32866 32867 32868 32869 32870 32871 32872 32873 32874 32875 32876 32877 32878 32879 32880 32881 32882 32883 32884 32885 32886 32887 32888 32889 32890 32891 32892 32893 32894 32895 32896 |
# File 'lib/ovirtsdk4/types.rb', line 32855 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 && @log_max_memory_used_threshold == other.log_max_memory_used_threshold && @log_max_memory_used_threshold_type == other.log_max_memory_used_threshold_type && @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.
31767 31768 31769 |
# File 'lib/ovirtsdk4/types.rb', line 31767 def affinity_groups @affinity_groups end |
#affinity_groups=(list) ⇒ Object
Sets the value of the affinity_groups
attribute.
31776 31777 31778 31779 31780 31781 31782 31783 31784 31785 31786 |
# File 'lib/ovirtsdk4/types.rb', line 31776 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.
31793 31794 31795 |
# File 'lib/ovirtsdk4/types.rb', line 31793 def ballooning_enabled @ballooning_enabled end |
#ballooning_enabled=(value) ⇒ Object
Sets the value of the ballooning_enabled
attribute.
31802 31803 31804 |
# File 'lib/ovirtsdk4/types.rb', line 31802 def ballooning_enabled=(value) @ballooning_enabled = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
31811 31812 31813 |
# File 'lib/ovirtsdk4/types.rb', line 31811 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
31820 31821 31822 |
# File 'lib/ovirtsdk4/types.rb', line 31820 def comment=(value) @comment = value end |
#cpu ⇒ Cpu
Returns the value of the cpu
attribute.
31829 31830 31831 |
# File 'lib/ovirtsdk4/types.rb', line 31829 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.
31842 31843 31844 31845 31846 31847 |
# File 'lib/ovirtsdk4/types.rb', line 31842 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.
31854 31855 31856 |
# File 'lib/ovirtsdk4/types.rb', line 31854 def cpu_profiles @cpu_profiles end |
#cpu_profiles=(list) ⇒ Object
Sets the value of the cpu_profiles
attribute.
31863 31864 31865 31866 31867 31868 31869 31870 31871 31872 31873 |
# File 'lib/ovirtsdk4/types.rb', line 31863 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.
31880 31881 31882 |
# File 'lib/ovirtsdk4/types.rb', line 31880 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.
31889 31890 31891 31892 31893 31894 31895 31896 31897 31898 31899 |
# File 'lib/ovirtsdk4/types.rb', line 31889 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.
31906 31907 31908 |
# File 'lib/ovirtsdk4/types.rb', line 31906 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.
31919 31920 31921 31922 31923 31924 |
# File 'lib/ovirtsdk4/types.rb', line 31919 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.
31931 31932 31933 |
# File 'lib/ovirtsdk4/types.rb', line 31931 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
31940 31941 31942 |
# File 'lib/ovirtsdk4/types.rb', line 31940 def description=(value) @description = value end |
#display ⇒ Display
Returns the value of the display
attribute.
31949 31950 31951 |
# File 'lib/ovirtsdk4/types.rb', line 31949 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.
31962 31963 31964 31965 31966 31967 |
# File 'lib/ovirtsdk4/types.rb', line 31962 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.
31974 31975 31976 |
# File 'lib/ovirtsdk4/types.rb', line 31974 def enabled_features @enabled_features end |
#enabled_features=(list) ⇒ Object
Sets the value of the enabled_features
attribute.
31983 31984 31985 31986 31987 31988 31989 31990 31991 31992 31993 |
# File 'lib/ovirtsdk4/types.rb', line 31983 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.
32000 32001 32002 |
# File 'lib/ovirtsdk4/types.rb', line 32000 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.
32013 32014 32015 32016 32017 32018 |
# File 'lib/ovirtsdk4/types.rb', line 32013 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.
32025 32026 32027 |
# File 'lib/ovirtsdk4/types.rb', line 32025 def external_network_providers @external_network_providers end |
#external_network_providers=(list) ⇒ Object
Sets the value of the external_network_providers
attribute.
32034 32035 32036 32037 32038 32039 32040 32041 32042 32043 32044 |
# File 'lib/ovirtsdk4/types.rb', line 32034 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.
32051 32052 32053 |
# File 'lib/ovirtsdk4/types.rb', line 32051 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.
32064 32065 32066 32067 32068 32069 |
# File 'lib/ovirtsdk4/types.rb', line 32064 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.
32076 32077 32078 |
# File 'lib/ovirtsdk4/types.rb', line 32076 def firewall_type @firewall_type end |
#firewall_type=(value) ⇒ Object
Sets the value of the firewall_type
attribute.
32085 32086 32087 |
# File 'lib/ovirtsdk4/types.rb', line 32085 def firewall_type=(value) @firewall_type = value end |
#gluster_hooks ⇒ Array<GlusterHook>
Returns the value of the gluster_hooks
attribute.
32094 32095 32096 |
# File 'lib/ovirtsdk4/types.rb', line 32094 def gluster_hooks @gluster_hooks end |
#gluster_hooks=(list) ⇒ Object
Sets the value of the gluster_hooks
attribute.
32103 32104 32105 32106 32107 32108 32109 32110 32111 32112 32113 |
# File 'lib/ovirtsdk4/types.rb', line 32103 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.
32120 32121 32122 |
# File 'lib/ovirtsdk4/types.rb', line 32120 def gluster_service @gluster_service end |
#gluster_service=(value) ⇒ Object
Sets the value of the gluster_service
attribute.
32129 32130 32131 |
# File 'lib/ovirtsdk4/types.rb', line 32129 def gluster_service=(value) @gluster_service = value end |
#gluster_tuned_profile ⇒ String
Returns the value of the gluster_tuned_profile
attribute.
32138 32139 32140 |
# File 'lib/ovirtsdk4/types.rb', line 32138 def gluster_tuned_profile @gluster_tuned_profile end |
#gluster_tuned_profile=(value) ⇒ Object
Sets the value of the gluster_tuned_profile
attribute.
32147 32148 32149 |
# File 'lib/ovirtsdk4/types.rb', line 32147 def gluster_tuned_profile=(value) @gluster_tuned_profile = value end |
#gluster_volumes ⇒ Array<GlusterVolume>
Returns the value of the gluster_volumes
attribute.
32156 32157 32158 |
# File 'lib/ovirtsdk4/types.rb', line 32156 def gluster_volumes @gluster_volumes end |
#gluster_volumes=(list) ⇒ Object
Sets the value of the gluster_volumes
attribute.
32165 32166 32167 32168 32169 32170 32171 32172 32173 32174 32175 |
# File 'lib/ovirtsdk4/types.rb', line 32165 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.
32182 32183 32184 |
# File 'lib/ovirtsdk4/types.rb', line 32182 def ha_reservation @ha_reservation end |
#ha_reservation=(value) ⇒ Object
Sets the value of the ha_reservation
attribute.
32191 32192 32193 |
# File 'lib/ovirtsdk4/types.rb', line 32191 def ha_reservation=(value) @ha_reservation = value end |
#hash ⇒ Object
Generates a hash value for this object.
32901 32902 32903 32904 32905 32906 32907 32908 32909 32910 32911 32912 32913 32914 32915 32916 32917 32918 32919 32920 32921 32922 32923 32924 32925 32926 32927 32928 32929 32930 32931 32932 32933 32934 32935 32936 32937 32938 32939 32940 32941 32942 |
# File 'lib/ovirtsdk4/types.rb', line 32901 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 + @log_max_memory_used_threshold.hash + @log_max_memory_used_threshold_type.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.
32200 32201 32202 |
# File 'lib/ovirtsdk4/types.rb', line 32200 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
32209 32210 32211 |
# File 'lib/ovirtsdk4/types.rb', line 32209 def id=(value) @id = value end |
#ksm ⇒ Ksm
Returns the value of the ksm
attribute.
32218 32219 32220 |
# File 'lib/ovirtsdk4/types.rb', line 32218 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.
32231 32232 32233 32234 32235 32236 |
# File 'lib/ovirtsdk4/types.rb', line 32231 def ksm=(value) if value.is_a?(Hash) value = Ksm.new(value) end @ksm = value end |
#log_max_memory_used_threshold ⇒ Integer
Returns the value of the log_max_memory_used_threshold
attribute.
32243 32244 32245 |
# File 'lib/ovirtsdk4/types.rb', line 32243 def log_max_memory_used_threshold @log_max_memory_used_threshold end |
#log_max_memory_used_threshold=(value) ⇒ Object
Sets the value of the log_max_memory_used_threshold
attribute.
32252 32253 32254 |
# File 'lib/ovirtsdk4/types.rb', line 32252 def log_max_memory_used_threshold=(value) @log_max_memory_used_threshold = value end |
#log_max_memory_used_threshold_type ⇒ LogMaxMemoryUsedThresholdType
Returns the value of the log_max_memory_used_threshold_type
attribute.
32261 32262 32263 |
# File 'lib/ovirtsdk4/types.rb', line 32261 def log_max_memory_used_threshold_type @log_max_memory_used_threshold_type end |
#log_max_memory_used_threshold_type=(value) ⇒ Object
Sets the value of the log_max_memory_used_threshold_type
attribute.
32270 32271 32272 |
# File 'lib/ovirtsdk4/types.rb', line 32270 def log_max_memory_used_threshold_type=(value) @log_max_memory_used_threshold_type = value end |
#mac_pool ⇒ MacPool
Returns the value of the mac_pool
attribute.
32279 32280 32281 |
# File 'lib/ovirtsdk4/types.rb', line 32279 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.
32292 32293 32294 32295 32296 32297 |
# File 'lib/ovirtsdk4/types.rb', line 32292 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.
32304 32305 32306 |
# File 'lib/ovirtsdk4/types.rb', line 32304 def maintenance_reason_required @maintenance_reason_required end |
#maintenance_reason_required=(value) ⇒ Object
Sets the value of the maintenance_reason_required
attribute.
32313 32314 32315 |
# File 'lib/ovirtsdk4/types.rb', line 32313 def maintenance_reason_required=(value) @maintenance_reason_required = value end |
#management_network ⇒ Network
Returns the value of the management_network
attribute.
32322 32323 32324 |
# File 'lib/ovirtsdk4/types.rb', line 32322 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.
32335 32336 32337 32338 32339 32340 |
# File 'lib/ovirtsdk4/types.rb', line 32335 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.
32347 32348 32349 |
# File 'lib/ovirtsdk4/types.rb', line 32347 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.
32360 32361 32362 32363 32364 32365 |
# File 'lib/ovirtsdk4/types.rb', line 32360 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.
32372 32373 32374 |
# File 'lib/ovirtsdk4/types.rb', line 32372 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.
32385 32386 32387 32388 32389 32390 |
# File 'lib/ovirtsdk4/types.rb', line 32385 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.
32397 32398 32399 |
# File 'lib/ovirtsdk4/types.rb', line 32397 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
32406 32407 32408 |
# File 'lib/ovirtsdk4/types.rb', line 32406 def name=(value) @name = value end |
#network_filters ⇒ Array<NetworkFilter>
Returns the value of the network_filters
attribute.
32415 32416 32417 |
# File 'lib/ovirtsdk4/types.rb', line 32415 def network_filters @network_filters end |
#network_filters=(list) ⇒ Object
Sets the value of the network_filters
attribute.
32424 32425 32426 32427 32428 32429 32430 32431 32432 32433 32434 |
# File 'lib/ovirtsdk4/types.rb', line 32424 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.
32441 32442 32443 |
# File 'lib/ovirtsdk4/types.rb', line 32441 def networks @networks end |
#networks=(list) ⇒ Object
Sets the value of the networks
attribute.
32450 32451 32452 32453 32454 32455 32456 32457 32458 32459 32460 |
# File 'lib/ovirtsdk4/types.rb', line 32450 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.
32467 32468 32469 |
# File 'lib/ovirtsdk4/types.rb', line 32467 def optional_reason @optional_reason end |
#optional_reason=(value) ⇒ Object
Sets the value of the optional_reason
attribute.
32476 32477 32478 |
# File 'lib/ovirtsdk4/types.rb', line 32476 def optional_reason=(value) @optional_reason = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions
attribute.
32485 32486 32487 |
# File 'lib/ovirtsdk4/types.rb', line 32485 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
32494 32495 32496 32497 32498 32499 32500 32501 32502 32503 32504 |
# File 'lib/ovirtsdk4/types.rb', line 32494 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.
32511 32512 32513 |
# File 'lib/ovirtsdk4/types.rb', line 32511 def required_rng_sources @required_rng_sources end |
#required_rng_sources=(list) ⇒ Object
Sets the value of the required_rng_sources
attribute.
32520 32521 32522 |
# File 'lib/ovirtsdk4/types.rb', line 32520 def required_rng_sources=(list) @required_rng_sources = list end |
#scheduling_policy ⇒ SchedulingPolicy
Returns the value of the scheduling_policy
attribute.
32529 32530 32531 |
# File 'lib/ovirtsdk4/types.rb', line 32529 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.
32542 32543 32544 32545 32546 32547 |
# File 'lib/ovirtsdk4/types.rb', line 32542 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.
32554 32555 32556 |
# File 'lib/ovirtsdk4/types.rb', line 32554 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.
32567 32568 32569 32570 32571 32572 |
# File 'lib/ovirtsdk4/types.rb', line 32567 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.
32579 32580 32581 |
# File 'lib/ovirtsdk4/types.rb', line 32579 def supported_versions @supported_versions end |
#supported_versions=(list) ⇒ Object
Sets the value of the supported_versions
attribute.
32588 32589 32590 32591 32592 32593 32594 32595 32596 32597 32598 |
# File 'lib/ovirtsdk4/types.rb', line 32588 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.
32605 32606 32607 |
# File 'lib/ovirtsdk4/types.rb', line 32605 def switch_type @switch_type end |
#switch_type=(value) ⇒ Object
Sets the value of the switch_type
attribute.
32614 32615 32616 |
# File 'lib/ovirtsdk4/types.rb', line 32614 def switch_type=(value) @switch_type = value end |
#threads_as_cores ⇒ Boolean
Returns the value of the threads_as_cores
attribute.
32623 32624 32625 |
# File 'lib/ovirtsdk4/types.rb', line 32623 def threads_as_cores @threads_as_cores end |
#threads_as_cores=(value) ⇒ Object
Sets the value of the threads_as_cores
attribute.
32632 32633 32634 |
# File 'lib/ovirtsdk4/types.rb', line 32632 def threads_as_cores=(value) @threads_as_cores = value end |
#trusted_service ⇒ Boolean
Returns the value of the trusted_service
attribute.
32641 32642 32643 |
# File 'lib/ovirtsdk4/types.rb', line 32641 def trusted_service @trusted_service end |
#trusted_service=(value) ⇒ Object
Sets the value of the trusted_service
attribute.
32650 32651 32652 |
# File 'lib/ovirtsdk4/types.rb', line 32650 def trusted_service=(value) @trusted_service = value end |
#tunnel_migration ⇒ Boolean
Returns the value of the tunnel_migration
attribute.
32659 32660 32661 |
# File 'lib/ovirtsdk4/types.rb', line 32659 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration
attribute.
32668 32669 32670 |
# File 'lib/ovirtsdk4/types.rb', line 32668 def tunnel_migration=(value) @tunnel_migration = value end |
#version ⇒ Version
Returns the value of the version
attribute.
32677 32678 32679 |
# File 'lib/ovirtsdk4/types.rb', line 32677 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.
32690 32691 32692 32693 32694 32695 |
# File 'lib/ovirtsdk4/types.rb', line 32690 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.
32702 32703 32704 |
# File 'lib/ovirtsdk4/types.rb', line 32702 def virt_service @virt_service end |
#virt_service=(value) ⇒ Object
Sets the value of the virt_service
attribute.
32711 32712 32713 |
# File 'lib/ovirtsdk4/types.rb', line 32711 def virt_service=(value) @virt_service = value end |