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. -
#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. -
#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. -
#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.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Cluster
Creates a new instance of the OvirtSDK4::Cluster class.
32609 32610 32611 32612 32613 32614 32615 32616 32617 32618 32619 32620 32621 32622 32623 32624 32625 32626 32627 32628 32629 32630 32631 32632 32633 32634 32635 32636 32637 32638 32639 32640 32641 32642 32643 32644 32645 32646 32647 32648 32649 32650 |
# File 'lib/ovirtsdk4/types.rb', line 32609 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.
32655 32656 32657 32658 32659 32660 32661 32662 32663 32664 32665 32666 32667 32668 32669 32670 32671 32672 32673 32674 32675 32676 32677 32678 32679 32680 32681 32682 32683 32684 32685 32686 32687 32688 32689 32690 32691 32692 32693 32694 32695 32696 |
# File 'lib/ovirtsdk4/types.rb', line 32655 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.
31567 31568 31569 |
# File 'lib/ovirtsdk4/types.rb', line 31567 def affinity_groups @affinity_groups end |
#affinity_groups=(list) ⇒ Object
Sets the value of the affinity_groups attribute.
31576 31577 31578 31579 31580 31581 31582 31583 31584 31585 31586 |
# File 'lib/ovirtsdk4/types.rb', line 31576 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.
31593 31594 31595 |
# File 'lib/ovirtsdk4/types.rb', line 31593 def ballooning_enabled @ballooning_enabled end |
#ballooning_enabled=(value) ⇒ Object
Sets the value of the ballooning_enabled attribute.
31602 31603 31604 |
# File 'lib/ovirtsdk4/types.rb', line 31602 def ballooning_enabled=(value) @ballooning_enabled = value end |
#comment ⇒ String
Returns the value of the comment attribute.
31611 31612 31613 |
# File 'lib/ovirtsdk4/types.rb', line 31611 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
31620 31621 31622 |
# File 'lib/ovirtsdk4/types.rb', line 31620 def comment=(value) @comment = value end |
#cpu ⇒ Cpu
Returns the value of the cpu attribute.
31629 31630 31631 |
# File 'lib/ovirtsdk4/types.rb', line 31629 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.
31642 31643 31644 31645 31646 31647 |
# File 'lib/ovirtsdk4/types.rb', line 31642 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.
31654 31655 31656 |
# File 'lib/ovirtsdk4/types.rb', line 31654 def cpu_profiles @cpu_profiles end |
#cpu_profiles=(list) ⇒ Object
Sets the value of the cpu_profiles attribute.
31663 31664 31665 31666 31667 31668 31669 31670 31671 31672 31673 |
# File 'lib/ovirtsdk4/types.rb', line 31663 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.
31680 31681 31682 |
# File 'lib/ovirtsdk4/types.rb', line 31680 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.
31689 31690 31691 31692 31693 31694 31695 31696 31697 31698 31699 |
# File 'lib/ovirtsdk4/types.rb', line 31689 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.
31706 31707 31708 |
# File 'lib/ovirtsdk4/types.rb', line 31706 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.
31719 31720 31721 31722 31723 31724 |
# File 'lib/ovirtsdk4/types.rb', line 31719 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.
31731 31732 31733 |
# File 'lib/ovirtsdk4/types.rb', line 31731 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
31740 31741 31742 |
# File 'lib/ovirtsdk4/types.rb', line 31740 def description=(value) @description = value end |
#display ⇒ Display
Returns the value of the display attribute.
31749 31750 31751 |
# File 'lib/ovirtsdk4/types.rb', line 31749 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.
31762 31763 31764 31765 31766 31767 |
# File 'lib/ovirtsdk4/types.rb', line 31762 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.
31774 31775 31776 |
# File 'lib/ovirtsdk4/types.rb', line 31774 def enabled_features @enabled_features end |
#enabled_features=(list) ⇒ Object
Sets the value of the enabled_features attribute.
31783 31784 31785 31786 31787 31788 31789 31790 31791 31792 31793 |
# File 'lib/ovirtsdk4/types.rb', line 31783 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.
31800 31801 31802 |
# File 'lib/ovirtsdk4/types.rb', line 31800 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.
31813 31814 31815 31816 31817 31818 |
# File 'lib/ovirtsdk4/types.rb', line 31813 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.
31825 31826 31827 |
# File 'lib/ovirtsdk4/types.rb', line 31825 def external_network_providers @external_network_providers end |
#external_network_providers=(list) ⇒ Object
Sets the value of the external_network_providers attribute.
31834 31835 31836 31837 31838 31839 31840 31841 31842 31843 31844 |
# File 'lib/ovirtsdk4/types.rb', line 31834 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.
31851 31852 31853 |
# File 'lib/ovirtsdk4/types.rb', line 31851 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.
31864 31865 31866 31867 31868 31869 |
# File 'lib/ovirtsdk4/types.rb', line 31864 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.
31876 31877 31878 |
# File 'lib/ovirtsdk4/types.rb', line 31876 def firewall_type @firewall_type end |
#firewall_type=(value) ⇒ Object
Sets the value of the firewall_type attribute.
31885 31886 31887 |
# File 'lib/ovirtsdk4/types.rb', line 31885 def firewall_type=(value) @firewall_type = value end |
#gluster_hooks ⇒ Array<GlusterHook>
Returns the value of the gluster_hooks attribute.
31894 31895 31896 |
# File 'lib/ovirtsdk4/types.rb', line 31894 def gluster_hooks @gluster_hooks end |
#gluster_hooks=(list) ⇒ Object
Sets the value of the gluster_hooks attribute.
31903 31904 31905 31906 31907 31908 31909 31910 31911 31912 31913 |
# File 'lib/ovirtsdk4/types.rb', line 31903 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.
31920 31921 31922 |
# File 'lib/ovirtsdk4/types.rb', line 31920 def gluster_service @gluster_service end |
#gluster_service=(value) ⇒ Object
Sets the value of the gluster_service attribute.
31929 31930 31931 |
# File 'lib/ovirtsdk4/types.rb', line 31929 def gluster_service=(value) @gluster_service = value end |
#gluster_tuned_profile ⇒ String
Returns the value of the gluster_tuned_profile attribute.
31938 31939 31940 |
# File 'lib/ovirtsdk4/types.rb', line 31938 def gluster_tuned_profile @gluster_tuned_profile end |
#gluster_tuned_profile=(value) ⇒ Object
Sets the value of the gluster_tuned_profile attribute.
31947 31948 31949 |
# File 'lib/ovirtsdk4/types.rb', line 31947 def gluster_tuned_profile=(value) @gluster_tuned_profile = value end |
#gluster_volumes ⇒ Array<GlusterVolume>
Returns the value of the gluster_volumes attribute.
31956 31957 31958 |
# File 'lib/ovirtsdk4/types.rb', line 31956 def gluster_volumes @gluster_volumes end |
#gluster_volumes=(list) ⇒ Object
Sets the value of the gluster_volumes attribute.
31965 31966 31967 31968 31969 31970 31971 31972 31973 31974 31975 |
# File 'lib/ovirtsdk4/types.rb', line 31965 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.
31982 31983 31984 |
# File 'lib/ovirtsdk4/types.rb', line 31982 def ha_reservation @ha_reservation end |
#ha_reservation=(value) ⇒ Object
Sets the value of the ha_reservation attribute.
31991 31992 31993 |
# File 'lib/ovirtsdk4/types.rb', line 31991 def ha_reservation=(value) @ha_reservation = value end |
#hash ⇒ Object
Generates a hash value for this object.
32701 32702 32703 32704 32705 32706 32707 32708 32709 32710 32711 32712 32713 32714 32715 32716 32717 32718 32719 32720 32721 32722 32723 32724 32725 32726 32727 32728 32729 32730 32731 32732 32733 32734 32735 32736 32737 32738 32739 32740 32741 32742 |
# File 'lib/ovirtsdk4/types.rb', line 32701 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.
32000 32001 32002 |
# File 'lib/ovirtsdk4/types.rb', line 32000 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
32009 32010 32011 |
# File 'lib/ovirtsdk4/types.rb', line 32009 def id=(value) @id = value end |
#ksm ⇒ Ksm
Returns the value of the ksm attribute.
32018 32019 32020 |
# File 'lib/ovirtsdk4/types.rb', line 32018 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.
32031 32032 32033 32034 32035 32036 |
# File 'lib/ovirtsdk4/types.rb', line 32031 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.
32043 32044 32045 |
# File 'lib/ovirtsdk4/types.rb', line 32043 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.
32052 32053 32054 |
# File 'lib/ovirtsdk4/types.rb', line 32052 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.
32061 32062 32063 |
# File 'lib/ovirtsdk4/types.rb', line 32061 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.
32070 32071 32072 |
# File 'lib/ovirtsdk4/types.rb', line 32070 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.
32079 32080 32081 |
# File 'lib/ovirtsdk4/types.rb', line 32079 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.
32092 32093 32094 32095 32096 32097 |
# File 'lib/ovirtsdk4/types.rb', line 32092 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.
32104 32105 32106 |
# File 'lib/ovirtsdk4/types.rb', line 32104 def maintenance_reason_required @maintenance_reason_required end |
#maintenance_reason_required=(value) ⇒ Object
Sets the value of the maintenance_reason_required attribute.
32113 32114 32115 |
# File 'lib/ovirtsdk4/types.rb', line 32113 def maintenance_reason_required=(value) @maintenance_reason_required = value end |
#management_network ⇒ Network
Returns the value of the management_network attribute.
32122 32123 32124 |
# File 'lib/ovirtsdk4/types.rb', line 32122 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.
32135 32136 32137 32138 32139 32140 |
# File 'lib/ovirtsdk4/types.rb', line 32135 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.
32147 32148 32149 |
# File 'lib/ovirtsdk4/types.rb', line 32147 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.
32160 32161 32162 32163 32164 32165 |
# File 'lib/ovirtsdk4/types.rb', line 32160 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.
32172 32173 32174 |
# File 'lib/ovirtsdk4/types.rb', line 32172 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.
32185 32186 32187 32188 32189 32190 |
# File 'lib/ovirtsdk4/types.rb', line 32185 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.
32197 32198 32199 |
# File 'lib/ovirtsdk4/types.rb', line 32197 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
32206 32207 32208 |
# File 'lib/ovirtsdk4/types.rb', line 32206 def name=(value) @name = value end |
#network_filters ⇒ Array<NetworkFilter>
Returns the value of the network_filters attribute.
32215 32216 32217 |
# File 'lib/ovirtsdk4/types.rb', line 32215 def network_filters @network_filters end |
#network_filters=(list) ⇒ Object
Sets the value of the network_filters attribute.
32224 32225 32226 32227 32228 32229 32230 32231 32232 32233 32234 |
# File 'lib/ovirtsdk4/types.rb', line 32224 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.
32241 32242 32243 |
# File 'lib/ovirtsdk4/types.rb', line 32241 def networks @networks end |
#networks=(list) ⇒ Object
Sets the value of the networks attribute.
32250 32251 32252 32253 32254 32255 32256 32257 32258 32259 32260 |
# File 'lib/ovirtsdk4/types.rb', line 32250 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.
32267 32268 32269 |
# File 'lib/ovirtsdk4/types.rb', line 32267 def optional_reason @optional_reason end |
#optional_reason=(value) ⇒ Object
Sets the value of the optional_reason attribute.
32276 32277 32278 |
# File 'lib/ovirtsdk4/types.rb', line 32276 def optional_reason=(value) @optional_reason = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions attribute.
32285 32286 32287 |
# File 'lib/ovirtsdk4/types.rb', line 32285 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions attribute.
32294 32295 32296 32297 32298 32299 32300 32301 32302 32303 32304 |
# File 'lib/ovirtsdk4/types.rb', line 32294 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.
32311 32312 32313 |
# File 'lib/ovirtsdk4/types.rb', line 32311 def required_rng_sources @required_rng_sources end |
#required_rng_sources=(list) ⇒ Object
Sets the value of the required_rng_sources attribute.
32320 32321 32322 |
# File 'lib/ovirtsdk4/types.rb', line 32320 def required_rng_sources=(list) @required_rng_sources = list end |
#scheduling_policy ⇒ SchedulingPolicy
Returns the value of the scheduling_policy attribute.
32329 32330 32331 |
# File 'lib/ovirtsdk4/types.rb', line 32329 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.
32342 32343 32344 32345 32346 32347 |
# File 'lib/ovirtsdk4/types.rb', line 32342 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.
32354 32355 32356 |
# File 'lib/ovirtsdk4/types.rb', line 32354 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.
32367 32368 32369 32370 32371 32372 |
# File 'lib/ovirtsdk4/types.rb', line 32367 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.
32379 32380 32381 |
# File 'lib/ovirtsdk4/types.rb', line 32379 def supported_versions @supported_versions end |
#supported_versions=(list) ⇒ Object
Sets the value of the supported_versions attribute.
32388 32389 32390 32391 32392 32393 32394 32395 32396 32397 32398 |
# File 'lib/ovirtsdk4/types.rb', line 32388 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.
32405 32406 32407 |
# File 'lib/ovirtsdk4/types.rb', line 32405 def switch_type @switch_type end |
#switch_type=(value) ⇒ Object
Sets the value of the switch_type attribute.
32414 32415 32416 |
# File 'lib/ovirtsdk4/types.rb', line 32414 def switch_type=(value) @switch_type = value end |
#threads_as_cores ⇒ Boolean
Returns the value of the threads_as_cores attribute.
32423 32424 32425 |
# File 'lib/ovirtsdk4/types.rb', line 32423 def threads_as_cores @threads_as_cores end |
#threads_as_cores=(value) ⇒ Object
Sets the value of the threads_as_cores attribute.
32432 32433 32434 |
# File 'lib/ovirtsdk4/types.rb', line 32432 def threads_as_cores=(value) @threads_as_cores = value end |
#trusted_service ⇒ Boolean
Returns the value of the trusted_service attribute.
32441 32442 32443 |
# File 'lib/ovirtsdk4/types.rb', line 32441 def trusted_service @trusted_service end |
#trusted_service=(value) ⇒ Object
Sets the value of the trusted_service attribute.
32450 32451 32452 |
# File 'lib/ovirtsdk4/types.rb', line 32450 def trusted_service=(value) @trusted_service = value end |
#tunnel_migration ⇒ Boolean
Returns the value of the tunnel_migration attribute.
32459 32460 32461 |
# File 'lib/ovirtsdk4/types.rb', line 32459 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration attribute.
32468 32469 32470 |
# File 'lib/ovirtsdk4/types.rb', line 32468 def tunnel_migration=(value) @tunnel_migration = value end |
#version ⇒ Version
Returns the value of the version attribute.
32477 32478 32479 |
# File 'lib/ovirtsdk4/types.rb', line 32477 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.
32490 32491 32492 32493 32494 32495 |
# File 'lib/ovirtsdk4/types.rb', line 32490 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.
32502 32503 32504 |
# File 'lib/ovirtsdk4/types.rb', line 32502 def virt_service @virt_service end |
#virt_service=(value) ⇒ Object
Sets the value of the virt_service attribute.
32511 32512 32513 |
# File 'lib/ovirtsdk4/types.rb', line 32511 def virt_service=(value) @virt_service = value end |