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
trueifselfandotherhave the same attributes and values. -
#affinity_groups ⇒ Array<AffinityGroup>
Returns the value of the
affinity_groupsattribute. -
#affinity_groups=(list) ⇒ Object
Sets the value of the
affinity_groupsattribute. -
#ballooning_enabled ⇒ Boolean
Returns the value of the
ballooning_enabledattribute. -
#ballooning_enabled=(value) ⇒ Object
Sets the value of the
ballooning_enabledattribute. -
#bios_type ⇒ BiosType
Returns the value of the
bios_typeattribute. -
#bios_type=(value) ⇒ Object
Sets the value of the
bios_typeattribute. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#cpu ⇒ Cpu
Returns the value of the
cpuattribute. -
#cpu=(value) ⇒ Object
Sets the value of the
cpuattribute. -
#cpu_profiles ⇒ Array<CpuProfile>
Returns the value of the
cpu_profilesattribute. -
#cpu_profiles=(list) ⇒ Object
Sets the value of the
cpu_profilesattribute. -
#custom_scheduling_policy_properties ⇒ Array<Property>
Returns the value of the
custom_scheduling_policy_propertiesattribute. -
#custom_scheduling_policy_properties=(list) ⇒ Object
Sets the value of the
custom_scheduling_policy_propertiesattribute. -
#data_center ⇒ DataCenter
Returns the value of the
data_centerattribute. -
#data_center=(value) ⇒ Object
Sets the value of the
data_centerattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#display ⇒ Display
Returns the value of the
displayattribute. -
#display=(value) ⇒ Object
Sets the value of the
displayattribute. -
#enabled_features ⇒ Array<ClusterFeature>
Returns the value of the
enabled_featuresattribute. -
#enabled_features=(list) ⇒ Object
Sets the value of the
enabled_featuresattribute. -
#error_handling ⇒ ErrorHandling
Returns the value of the
error_handlingattribute. -
#error_handling=(value) ⇒ Object
Sets the value of the
error_handlingattribute. -
#external_network_providers ⇒ Array<ExternalProvider>
Returns the value of the
external_network_providersattribute. -
#external_network_providers=(list) ⇒ Object
Sets the value of the
external_network_providersattribute. -
#fencing_policy ⇒ FencingPolicy
Returns the value of the
fencing_policyattribute. -
#fencing_policy=(value) ⇒ Object
Sets the value of the
fencing_policyattribute. -
#fips_mode ⇒ FipsMode
Returns the value of the
fips_modeattribute. -
#fips_mode=(value) ⇒ Object
Sets the value of the
fips_modeattribute. -
#firewall_type ⇒ FirewallType
Returns the value of the
firewall_typeattribute. -
#firewall_type=(value) ⇒ Object
Sets the value of the
firewall_typeattribute. -
#gluster_hooks ⇒ Array<GlusterHook>
Returns the value of the
gluster_hooksattribute. -
#gluster_hooks=(list) ⇒ Object
Sets the value of the
gluster_hooksattribute. -
#gluster_service ⇒ Boolean
Returns the value of the
gluster_serviceattribute. -
#gluster_service=(value) ⇒ Object
Sets the value of the
gluster_serviceattribute. -
#gluster_tuned_profile ⇒ String
Returns the value of the
gluster_tuned_profileattribute. -
#gluster_tuned_profile=(value) ⇒ Object
Sets the value of the
gluster_tuned_profileattribute. -
#gluster_volumes ⇒ Array<GlusterVolume>
Returns the value of the
gluster_volumesattribute. -
#gluster_volumes=(list) ⇒ Object
Sets the value of the
gluster_volumesattribute. -
#ha_reservation ⇒ Boolean
Returns the value of the
ha_reservationattribute. -
#ha_reservation=(value) ⇒ Object
Sets the value of the
ha_reservationattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ Cluster
constructor
Creates a new instance of the Cluster class.
-
#ksm ⇒ Ksm
Returns the value of the
ksmattribute. -
#ksm=(value) ⇒ Object
Sets the value of the
ksmattribute. -
#log_max_memory_used_threshold ⇒ Integer
Returns the value of the
log_max_memory_used_thresholdattribute. -
#log_max_memory_used_threshold=(value) ⇒ Object
Sets the value of the
log_max_memory_used_thresholdattribute. -
#log_max_memory_used_threshold_type ⇒ LogMaxMemoryUsedThresholdType
Returns the value of the
log_max_memory_used_threshold_typeattribute. -
#log_max_memory_used_threshold_type=(value) ⇒ Object
Sets the value of the
log_max_memory_used_threshold_typeattribute. -
#mac_pool ⇒ MacPool
Returns the value of the
mac_poolattribute. -
#mac_pool=(value) ⇒ Object
Sets the value of the
mac_poolattribute. -
#maintenance_reason_required ⇒ Boolean
Returns the value of the
maintenance_reason_requiredattribute. -
#maintenance_reason_required=(value) ⇒ Object
Sets the value of the
maintenance_reason_requiredattribute. -
#management_network ⇒ Network
Returns the value of the
management_networkattribute. -
#management_network=(value) ⇒ Object
Sets the value of the
management_networkattribute. -
#memory_policy ⇒ MemoryPolicy
Returns the value of the
memory_policyattribute. -
#memory_policy=(value) ⇒ Object
Sets the value of the
memory_policyattribute. -
#migration ⇒ MigrationOptions
Returns the value of the
migrationattribute. -
#migration=(value) ⇒ Object
Sets the value of the
migrationattribute. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#network_filters ⇒ Array<NetworkFilter>
Returns the value of the
network_filtersattribute. -
#network_filters=(list) ⇒ Object
Sets the value of the
network_filtersattribute. -
#networks ⇒ Array<Network>
Returns the value of the
networksattribute. -
#networks=(list) ⇒ Object
Sets the value of the
networksattribute. -
#optional_reason ⇒ Boolean
Returns the value of the
optional_reasonattribute. -
#optional_reason=(value) ⇒ Object
Sets the value of the
optional_reasonattribute. -
#permissions ⇒ Array<Permission>
Returns the value of the
permissionsattribute. -
#permissions=(list) ⇒ Object
Sets the value of the
permissionsattribute. -
#required_rng_sources ⇒ Array<RngSource>
Returns the value of the
required_rng_sourcesattribute. -
#required_rng_sources=(list) ⇒ Object
Sets the value of the
required_rng_sourcesattribute. -
#scheduling_policy ⇒ SchedulingPolicy
Returns the value of the
scheduling_policyattribute. -
#scheduling_policy=(value) ⇒ Object
Sets the value of the
scheduling_policyattribute. -
#serial_number ⇒ SerialNumber
Returns the value of the
serial_numberattribute. -
#serial_number=(value) ⇒ Object
Sets the value of the
serial_numberattribute. -
#supported_versions ⇒ Array<Version>
Returns the value of the
supported_versionsattribute. -
#supported_versions=(list) ⇒ Object
Sets the value of the
supported_versionsattribute. -
#switch_type ⇒ SwitchType
Returns the value of the
switch_typeattribute. -
#switch_type=(value) ⇒ Object
Sets the value of the
switch_typeattribute. -
#threads_as_cores ⇒ Boolean
Returns the value of the
threads_as_coresattribute. -
#threads_as_cores=(value) ⇒ Object
Sets the value of the
threads_as_coresattribute. -
#trusted_service ⇒ Boolean
Returns the value of the
trusted_serviceattribute. -
#trusted_service=(value) ⇒ Object
Sets the value of the
trusted_serviceattribute. -
#tunnel_migration ⇒ Boolean
Returns the value of the
tunnel_migrationattribute. -
#tunnel_migration=(value) ⇒ Object
Sets the value of the
tunnel_migrationattribute. -
#upgrade_correlation_id ⇒ String
Returns the value of the
upgrade_correlation_idattribute. -
#upgrade_correlation_id=(value) ⇒ Object
Sets the value of the
upgrade_correlation_idattribute. -
#upgrade_in_progress ⇒ Boolean
Returns the value of the
upgrade_in_progressattribute. -
#upgrade_in_progress=(value) ⇒ Object
Sets the value of the
upgrade_in_progressattribute. -
#upgrade_percent_complete ⇒ Integer
Returns the value of the
upgrade_percent_completeattribute. -
#upgrade_percent_complete=(value) ⇒ Object
Sets the value of the
upgrade_percent_completeattribute. -
#version ⇒ Version
Returns the value of the
versionattribute. -
#version=(value) ⇒ Object
Sets the value of the
versionattribute. -
#virt_service ⇒ Boolean
Returns the value of the
virt_serviceattribute. -
#virt_service=(value) ⇒ Object
Sets the value of the
virt_serviceattribute. -
#vnc_encryption ⇒ Boolean
Returns the value of the
vnc_encryptionattribute. -
#vnc_encryption=(value) ⇒ Object
Sets the value of the
vnc_encryptionattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Cluster
Creates a new instance of the OvirtSDK4::Cluster class.
34928 34929 34930 34931 34932 34933 34934 34935 34936 34937 34938 34939 34940 34941 34942 34943 34944 34945 34946 34947 34948 34949 34950 34951 34952 34953 34954 34955 34956 34957 34958 34959 34960 34961 34962 34963 34964 34965 34966 34967 34968 34969 34970 34971 34972 34973 34974 34975 |
# File 'lib/ovirtsdk4/types.rb', line 34928 def initialize(opts = {}) super(opts) self.affinity_groups = opts[:affinity_groups] self.ballooning_enabled = opts[:ballooning_enabled] self.bios_type = opts[:bios_type] 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.fips_mode = opts[:fips_mode] 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.upgrade_correlation_id = opts[:upgrade_correlation_id] self.upgrade_in_progress = opts[:upgrade_in_progress] self.upgrade_percent_complete = opts[:upgrade_percent_complete] self.version = opts[:version] self.virt_service = opts[:virt_service] self.vnc_encryption = opts[:vnc_encryption] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
34980 34981 34982 34983 34984 34985 34986 34987 34988 34989 34990 34991 34992 34993 34994 34995 34996 34997 34998 34999 35000 35001 35002 35003 35004 35005 35006 35007 35008 35009 35010 35011 35012 35013 35014 35015 35016 35017 35018 35019 35020 35021 35022 35023 35024 35025 35026 35027 |
# File 'lib/ovirtsdk4/types.rb', line 34980 def ==(other) super && @affinity_groups == other.affinity_groups && @ballooning_enabled == other.ballooning_enabled && @bios_type == other.bios_type && @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 && @fips_mode == other.fips_mode && @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 && == 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 && @upgrade_correlation_id == other.upgrade_correlation_id && @upgrade_in_progress == other.upgrade_in_progress && @upgrade_percent_complete == other.upgrade_percent_complete && @version == other.version && @virt_service == other.virt_service && @vnc_encryption == other.vnc_encryption end |
#affinity_groups ⇒ Array<AffinityGroup>
Returns the value of the affinity_groups attribute.
33766 33767 33768 |
# File 'lib/ovirtsdk4/types.rb', line 33766 def affinity_groups @affinity_groups end |
#affinity_groups=(list) ⇒ Object
Sets the value of the affinity_groups attribute.
33775 33776 33777 33778 33779 33780 33781 33782 33783 33784 33785 |
# File 'lib/ovirtsdk4/types.rb', line 33775 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.
33792 33793 33794 |
# File 'lib/ovirtsdk4/types.rb', line 33792 def ballooning_enabled @ballooning_enabled end |
#ballooning_enabled=(value) ⇒ Object
Sets the value of the ballooning_enabled attribute.
33801 33802 33803 |
# File 'lib/ovirtsdk4/types.rb', line 33801 def ballooning_enabled=(value) @ballooning_enabled = value end |
#bios_type ⇒ BiosType
Returns the value of the bios_type attribute.
33810 33811 33812 |
# File 'lib/ovirtsdk4/types.rb', line 33810 def bios_type @bios_type end |
#bios_type=(value) ⇒ Object
Sets the value of the bios_type attribute.
33819 33820 33821 |
# File 'lib/ovirtsdk4/types.rb', line 33819 def bios_type=(value) @bios_type = value end |
#comment ⇒ String
Returns the value of the comment attribute.
33828 33829 33830 |
# File 'lib/ovirtsdk4/types.rb', line 33828 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
33837 33838 33839 |
# File 'lib/ovirtsdk4/types.rb', line 33837 def comment=(value) @comment = value end |
#cpu ⇒ Cpu
Returns the value of the cpu attribute.
33846 33847 33848 |
# File 'lib/ovirtsdk4/types.rb', line 33846 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.
33859 33860 33861 33862 33863 33864 |
# File 'lib/ovirtsdk4/types.rb', line 33859 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.
33871 33872 33873 |
# File 'lib/ovirtsdk4/types.rb', line 33871 def cpu_profiles @cpu_profiles end |
#cpu_profiles=(list) ⇒ Object
Sets the value of the cpu_profiles attribute.
33880 33881 33882 33883 33884 33885 33886 33887 33888 33889 33890 |
# File 'lib/ovirtsdk4/types.rb', line 33880 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.
33897 33898 33899 |
# File 'lib/ovirtsdk4/types.rb', line 33897 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.
33906 33907 33908 33909 33910 33911 33912 33913 33914 33915 33916 |
# File 'lib/ovirtsdk4/types.rb', line 33906 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.
33923 33924 33925 |
# File 'lib/ovirtsdk4/types.rb', line 33923 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.
33936 33937 33938 33939 33940 33941 |
# File 'lib/ovirtsdk4/types.rb', line 33936 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.
33948 33949 33950 |
# File 'lib/ovirtsdk4/types.rb', line 33948 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
33957 33958 33959 |
# File 'lib/ovirtsdk4/types.rb', line 33957 def description=(value) @description = value end |
#display ⇒ Display
Returns the value of the display attribute.
33966 33967 33968 |
# File 'lib/ovirtsdk4/types.rb', line 33966 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.
33979 33980 33981 33982 33983 33984 |
# File 'lib/ovirtsdk4/types.rb', line 33979 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.
33991 33992 33993 |
# File 'lib/ovirtsdk4/types.rb', line 33991 def enabled_features @enabled_features end |
#enabled_features=(list) ⇒ Object
Sets the value of the enabled_features attribute.
34000 34001 34002 34003 34004 34005 34006 34007 34008 34009 34010 |
# File 'lib/ovirtsdk4/types.rb', line 34000 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.
34017 34018 34019 |
# File 'lib/ovirtsdk4/types.rb', line 34017 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.
34030 34031 34032 34033 34034 34035 |
# File 'lib/ovirtsdk4/types.rb', line 34030 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.
34042 34043 34044 |
# File 'lib/ovirtsdk4/types.rb', line 34042 def external_network_providers @external_network_providers end |
#external_network_providers=(list) ⇒ Object
Sets the value of the external_network_providers attribute.
34051 34052 34053 34054 34055 34056 34057 34058 34059 34060 34061 |
# File 'lib/ovirtsdk4/types.rb', line 34051 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.
34068 34069 34070 |
# File 'lib/ovirtsdk4/types.rb', line 34068 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.
34081 34082 34083 34084 34085 34086 |
# File 'lib/ovirtsdk4/types.rb', line 34081 def fencing_policy=(value) if value.is_a?(Hash) value = FencingPolicy.new(value) end @fencing_policy = value end |
#fips_mode ⇒ FipsMode
Returns the value of the fips_mode attribute.
34093 34094 34095 |
# File 'lib/ovirtsdk4/types.rb', line 34093 def fips_mode @fips_mode end |
#fips_mode=(value) ⇒ Object
Sets the value of the fips_mode attribute.
34102 34103 34104 |
# File 'lib/ovirtsdk4/types.rb', line 34102 def fips_mode=(value) @fips_mode = value end |
#firewall_type ⇒ FirewallType
Returns the value of the firewall_type attribute.
34111 34112 34113 |
# File 'lib/ovirtsdk4/types.rb', line 34111 def firewall_type @firewall_type end |
#firewall_type=(value) ⇒ Object
Sets the value of the firewall_type attribute.
34120 34121 34122 |
# File 'lib/ovirtsdk4/types.rb', line 34120 def firewall_type=(value) @firewall_type = value end |
#gluster_hooks ⇒ Array<GlusterHook>
Returns the value of the gluster_hooks attribute.
34129 34130 34131 |
# File 'lib/ovirtsdk4/types.rb', line 34129 def gluster_hooks @gluster_hooks end |
#gluster_hooks=(list) ⇒ Object
Sets the value of the gluster_hooks attribute.
34138 34139 34140 34141 34142 34143 34144 34145 34146 34147 34148 |
# File 'lib/ovirtsdk4/types.rb', line 34138 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.
34155 34156 34157 |
# File 'lib/ovirtsdk4/types.rb', line 34155 def gluster_service @gluster_service end |
#gluster_service=(value) ⇒ Object
Sets the value of the gluster_service attribute.
34164 34165 34166 |
# File 'lib/ovirtsdk4/types.rb', line 34164 def gluster_service=(value) @gluster_service = value end |
#gluster_tuned_profile ⇒ String
Returns the value of the gluster_tuned_profile attribute.
34173 34174 34175 |
# File 'lib/ovirtsdk4/types.rb', line 34173 def gluster_tuned_profile @gluster_tuned_profile end |
#gluster_tuned_profile=(value) ⇒ Object
Sets the value of the gluster_tuned_profile attribute.
34182 34183 34184 |
# File 'lib/ovirtsdk4/types.rb', line 34182 def gluster_tuned_profile=(value) @gluster_tuned_profile = value end |
#gluster_volumes ⇒ Array<GlusterVolume>
Returns the value of the gluster_volumes attribute.
34191 34192 34193 |
# File 'lib/ovirtsdk4/types.rb', line 34191 def gluster_volumes @gluster_volumes end |
#gluster_volumes=(list) ⇒ Object
Sets the value of the gluster_volumes attribute.
34200 34201 34202 34203 34204 34205 34206 34207 34208 34209 34210 |
# File 'lib/ovirtsdk4/types.rb', line 34200 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.
34217 34218 34219 |
# File 'lib/ovirtsdk4/types.rb', line 34217 def ha_reservation @ha_reservation end |
#ha_reservation=(value) ⇒ Object
Sets the value of the ha_reservation attribute.
34226 34227 34228 |
# File 'lib/ovirtsdk4/types.rb', line 34226 def ha_reservation=(value) @ha_reservation = value end |
#hash ⇒ Object
Generates a hash value for this object.
35032 35033 35034 35035 35036 35037 35038 35039 35040 35041 35042 35043 35044 35045 35046 35047 35048 35049 35050 35051 35052 35053 35054 35055 35056 35057 35058 35059 35060 35061 35062 35063 35064 35065 35066 35067 35068 35069 35070 35071 35072 35073 35074 35075 35076 35077 35078 35079 |
# File 'lib/ovirtsdk4/types.rb', line 35032 def hash super + @affinity_groups.hash + @ballooning_enabled.hash + @bios_type.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 + @fips_mode.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 + .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 + @upgrade_correlation_id.hash + @upgrade_in_progress.hash + @upgrade_percent_complete.hash + @version.hash + @virt_service.hash + @vnc_encryption.hash end |
#id ⇒ String
Returns the value of the id attribute.
34235 34236 34237 |
# File 'lib/ovirtsdk4/types.rb', line 34235 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
34244 34245 34246 |
# File 'lib/ovirtsdk4/types.rb', line 34244 def id=(value) @id = value end |
#ksm ⇒ Ksm
Returns the value of the ksm attribute.
34253 34254 34255 |
# File 'lib/ovirtsdk4/types.rb', line 34253 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.
34266 34267 34268 34269 34270 34271 |
# File 'lib/ovirtsdk4/types.rb', line 34266 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.
34278 34279 34280 |
# File 'lib/ovirtsdk4/types.rb', line 34278 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.
34287 34288 34289 |
# File 'lib/ovirtsdk4/types.rb', line 34287 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.
34296 34297 34298 |
# File 'lib/ovirtsdk4/types.rb', line 34296 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.
34305 34306 34307 |
# File 'lib/ovirtsdk4/types.rb', line 34305 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.
34314 34315 34316 |
# File 'lib/ovirtsdk4/types.rb', line 34314 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.
34327 34328 34329 34330 34331 34332 |
# File 'lib/ovirtsdk4/types.rb', line 34327 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.
34339 34340 34341 |
# File 'lib/ovirtsdk4/types.rb', line 34339 def maintenance_reason_required @maintenance_reason_required end |
#maintenance_reason_required=(value) ⇒ Object
Sets the value of the maintenance_reason_required attribute.
34348 34349 34350 |
# File 'lib/ovirtsdk4/types.rb', line 34348 def maintenance_reason_required=(value) @maintenance_reason_required = value end |
#management_network ⇒ Network
Returns the value of the management_network attribute.
34357 34358 34359 |
# File 'lib/ovirtsdk4/types.rb', line 34357 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.
34370 34371 34372 34373 34374 34375 |
# File 'lib/ovirtsdk4/types.rb', line 34370 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.
34382 34383 34384 |
# File 'lib/ovirtsdk4/types.rb', line 34382 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.
34395 34396 34397 34398 34399 34400 |
# File 'lib/ovirtsdk4/types.rb', line 34395 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.
34407 34408 34409 |
# File 'lib/ovirtsdk4/types.rb', line 34407 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.
34420 34421 34422 34423 34424 34425 |
# File 'lib/ovirtsdk4/types.rb', line 34420 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.
34432 34433 34434 |
# File 'lib/ovirtsdk4/types.rb', line 34432 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
34441 34442 34443 |
# File 'lib/ovirtsdk4/types.rb', line 34441 def name=(value) @name = value end |
#network_filters ⇒ Array<NetworkFilter>
Returns the value of the network_filters attribute.
34450 34451 34452 |
# File 'lib/ovirtsdk4/types.rb', line 34450 def network_filters @network_filters end |
#network_filters=(list) ⇒ Object
Sets the value of the network_filters attribute.
34459 34460 34461 34462 34463 34464 34465 34466 34467 34468 34469 |
# File 'lib/ovirtsdk4/types.rb', line 34459 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.
34476 34477 34478 |
# File 'lib/ovirtsdk4/types.rb', line 34476 def networks @networks end |
#networks=(list) ⇒ Object
Sets the value of the networks attribute.
34485 34486 34487 34488 34489 34490 34491 34492 34493 34494 34495 |
# File 'lib/ovirtsdk4/types.rb', line 34485 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.
34502 34503 34504 |
# File 'lib/ovirtsdk4/types.rb', line 34502 def optional_reason @optional_reason end |
#optional_reason=(value) ⇒ Object
Sets the value of the optional_reason attribute.
34511 34512 34513 |
# File 'lib/ovirtsdk4/types.rb', line 34511 def optional_reason=(value) @optional_reason = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions attribute.
34520 34521 34522 |
# File 'lib/ovirtsdk4/types.rb', line 34520 def end |
#permissions=(list) ⇒ Object
Sets the value of the permissions attribute.
34529 34530 34531 34532 34533 34534 34535 34536 34537 34538 34539 |
# File 'lib/ovirtsdk4/types.rb', line 34529 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 = list end |
#required_rng_sources ⇒ Array<RngSource>
Returns the value of the required_rng_sources attribute.
34546 34547 34548 |
# File 'lib/ovirtsdk4/types.rb', line 34546 def required_rng_sources @required_rng_sources end |
#required_rng_sources=(list) ⇒ Object
Sets the value of the required_rng_sources attribute.
34555 34556 34557 |
# File 'lib/ovirtsdk4/types.rb', line 34555 def required_rng_sources=(list) @required_rng_sources = list end |
#scheduling_policy ⇒ SchedulingPolicy
Returns the value of the scheduling_policy attribute.
34564 34565 34566 |
# File 'lib/ovirtsdk4/types.rb', line 34564 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.
34577 34578 34579 34580 34581 34582 |
# File 'lib/ovirtsdk4/types.rb', line 34577 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.
34589 34590 34591 |
# File 'lib/ovirtsdk4/types.rb', line 34589 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.
34602 34603 34604 34605 34606 34607 |
# File 'lib/ovirtsdk4/types.rb', line 34602 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.
34614 34615 34616 |
# File 'lib/ovirtsdk4/types.rb', line 34614 def supported_versions @supported_versions end |
#supported_versions=(list) ⇒ Object
Sets the value of the supported_versions attribute.
34623 34624 34625 34626 34627 34628 34629 34630 34631 34632 34633 |
# File 'lib/ovirtsdk4/types.rb', line 34623 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.
34640 34641 34642 |
# File 'lib/ovirtsdk4/types.rb', line 34640 def switch_type @switch_type end |
#switch_type=(value) ⇒ Object
Sets the value of the switch_type attribute.
34649 34650 34651 |
# File 'lib/ovirtsdk4/types.rb', line 34649 def switch_type=(value) @switch_type = value end |
#threads_as_cores ⇒ Boolean
Returns the value of the threads_as_cores attribute.
34658 34659 34660 |
# File 'lib/ovirtsdk4/types.rb', line 34658 def threads_as_cores @threads_as_cores end |
#threads_as_cores=(value) ⇒ Object
Sets the value of the threads_as_cores attribute.
34667 34668 34669 |
# File 'lib/ovirtsdk4/types.rb', line 34667 def threads_as_cores=(value) @threads_as_cores = value end |
#trusted_service ⇒ Boolean
Returns the value of the trusted_service attribute.
34676 34677 34678 |
# File 'lib/ovirtsdk4/types.rb', line 34676 def trusted_service @trusted_service end |
#trusted_service=(value) ⇒ Object
Sets the value of the trusted_service attribute.
34685 34686 34687 |
# File 'lib/ovirtsdk4/types.rb', line 34685 def trusted_service=(value) @trusted_service = value end |
#tunnel_migration ⇒ Boolean
Returns the value of the tunnel_migration attribute.
34694 34695 34696 |
# File 'lib/ovirtsdk4/types.rb', line 34694 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration attribute.
34703 34704 34705 |
# File 'lib/ovirtsdk4/types.rb', line 34703 def tunnel_migration=(value) @tunnel_migration = value end |
#upgrade_correlation_id ⇒ String
Returns the value of the upgrade_correlation_id attribute.
34712 34713 34714 |
# File 'lib/ovirtsdk4/types.rb', line 34712 def upgrade_correlation_id @upgrade_correlation_id end |
#upgrade_correlation_id=(value) ⇒ Object
Sets the value of the upgrade_correlation_id attribute.
34721 34722 34723 |
# File 'lib/ovirtsdk4/types.rb', line 34721 def upgrade_correlation_id=(value) @upgrade_correlation_id = value end |
#upgrade_in_progress ⇒ Boolean
Returns the value of the upgrade_in_progress attribute.
34730 34731 34732 |
# File 'lib/ovirtsdk4/types.rb', line 34730 def upgrade_in_progress @upgrade_in_progress end |
#upgrade_in_progress=(value) ⇒ Object
Sets the value of the upgrade_in_progress attribute.
34739 34740 34741 |
# File 'lib/ovirtsdk4/types.rb', line 34739 def upgrade_in_progress=(value) @upgrade_in_progress = value end |
#upgrade_percent_complete ⇒ Integer
Returns the value of the upgrade_percent_complete attribute.
34748 34749 34750 |
# File 'lib/ovirtsdk4/types.rb', line 34748 def upgrade_percent_complete @upgrade_percent_complete end |
#upgrade_percent_complete=(value) ⇒ Object
Sets the value of the upgrade_percent_complete attribute.
34757 34758 34759 |
# File 'lib/ovirtsdk4/types.rb', line 34757 def upgrade_percent_complete=(value) @upgrade_percent_complete = value end |
#version ⇒ Version
Returns the value of the version attribute.
34766 34767 34768 |
# File 'lib/ovirtsdk4/types.rb', line 34766 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.
34779 34780 34781 34782 34783 34784 |
# File 'lib/ovirtsdk4/types.rb', line 34779 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.
34791 34792 34793 |
# File 'lib/ovirtsdk4/types.rb', line 34791 def virt_service @virt_service end |
#virt_service=(value) ⇒ Object
Sets the value of the virt_service attribute.
34800 34801 34802 |
# File 'lib/ovirtsdk4/types.rb', line 34800 def virt_service=(value) @virt_service = value end |
#vnc_encryption ⇒ Boolean
Returns the value of the vnc_encryption attribute.
34809 34810 34811 |
# File 'lib/ovirtsdk4/types.rb', line 34809 def vnc_encryption @vnc_encryption end |
#vnc_encryption=(value) ⇒ Object
Sets the value of the vnc_encryption attribute.
34818 34819 34820 |
# File 'lib/ovirtsdk4/types.rb', line 34818 def vnc_encryption=(value) @vnc_encryption = value end |