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. -
#bios_type ⇒ BiosType
Returns the value of the
bios_type
attribute. -
#bios_type=(value) ⇒ Object
Sets the value of the
bios_type
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. -
#fips_mode ⇒ FipsMode
Returns the value of the
fips_mode
attribute. -
#fips_mode=(value) ⇒ Object
Sets the value of the
fips_mode
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. -
#upgrade_correlation_id ⇒ String
Returns the value of the
upgrade_correlation_id
attribute. -
#upgrade_correlation_id=(value) ⇒ Object
Sets the value of the
upgrade_correlation_id
attribute. -
#upgrade_in_progress ⇒ Boolean
Returns the value of the
upgrade_in_progress
attribute. -
#upgrade_in_progress=(value) ⇒ Object
Sets the value of the
upgrade_in_progress
attribute. -
#upgrade_percent_complete ⇒ Integer
Returns the value of the
upgrade_percent_complete
attribute. -
#upgrade_percent_complete=(value) ⇒ Object
Sets the value of the
upgrade_percent_complete
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. -
#vnc_encryption ⇒ Boolean
Returns the value of the
vnc_encryption
attribute. -
#vnc_encryption=(value) ⇒ Object
Sets the value of the
vnc_encryption
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Cluster
Creates a new instance of the OvirtSDK4::Cluster class.
34635 34636 34637 34638 34639 34640 34641 34642 34643 34644 34645 34646 34647 34648 34649 34650 34651 34652 34653 34654 34655 34656 34657 34658 34659 34660 34661 34662 34663 34664 34665 34666 34667 34668 34669 34670 34671 34672 34673 34674 34675 34676 34677 34678 34679 34680 34681 34682 |
# File 'lib/ovirtsdk4/types.rb', line 34635 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.
34687 34688 34689 34690 34691 34692 34693 34694 34695 34696 34697 34698 34699 34700 34701 34702 34703 34704 34705 34706 34707 34708 34709 34710 34711 34712 34713 34714 34715 34716 34717 34718 34719 34720 34721 34722 34723 34724 34725 34726 34727 34728 34729 34730 34731 34732 34733 34734 |
# File 'lib/ovirtsdk4/types.rb', line 34687 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 && @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 && @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.
33473 33474 33475 |
# File 'lib/ovirtsdk4/types.rb', line 33473 def affinity_groups @affinity_groups end |
#affinity_groups=(list) ⇒ Object
Sets the value of the affinity_groups
attribute.
33482 33483 33484 33485 33486 33487 33488 33489 33490 33491 33492 |
# File 'lib/ovirtsdk4/types.rb', line 33482 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.
33499 33500 33501 |
# File 'lib/ovirtsdk4/types.rb', line 33499 def ballooning_enabled @ballooning_enabled end |
#ballooning_enabled=(value) ⇒ Object
Sets the value of the ballooning_enabled
attribute.
33508 33509 33510 |
# File 'lib/ovirtsdk4/types.rb', line 33508 def ballooning_enabled=(value) @ballooning_enabled = value end |
#bios_type ⇒ BiosType
Returns the value of the bios_type
attribute.
33517 33518 33519 |
# File 'lib/ovirtsdk4/types.rb', line 33517 def bios_type @bios_type end |
#bios_type=(value) ⇒ Object
Sets the value of the bios_type
attribute.
33526 33527 33528 |
# File 'lib/ovirtsdk4/types.rb', line 33526 def bios_type=(value) @bios_type = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
33535 33536 33537 |
# File 'lib/ovirtsdk4/types.rb', line 33535 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
33544 33545 33546 |
# File 'lib/ovirtsdk4/types.rb', line 33544 def comment=(value) @comment = value end |
#cpu ⇒ Cpu
Returns the value of the cpu
attribute.
33553 33554 33555 |
# File 'lib/ovirtsdk4/types.rb', line 33553 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.
33566 33567 33568 33569 33570 33571 |
# File 'lib/ovirtsdk4/types.rb', line 33566 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.
33578 33579 33580 |
# File 'lib/ovirtsdk4/types.rb', line 33578 def cpu_profiles @cpu_profiles end |
#cpu_profiles=(list) ⇒ Object
Sets the value of the cpu_profiles
attribute.
33587 33588 33589 33590 33591 33592 33593 33594 33595 33596 33597 |
# File 'lib/ovirtsdk4/types.rb', line 33587 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.
33604 33605 33606 |
# File 'lib/ovirtsdk4/types.rb', line 33604 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.
33613 33614 33615 33616 33617 33618 33619 33620 33621 33622 33623 |
# File 'lib/ovirtsdk4/types.rb', line 33613 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.
33630 33631 33632 |
# File 'lib/ovirtsdk4/types.rb', line 33630 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.
33643 33644 33645 33646 33647 33648 |
# File 'lib/ovirtsdk4/types.rb', line 33643 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.
33655 33656 33657 |
# File 'lib/ovirtsdk4/types.rb', line 33655 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
33664 33665 33666 |
# File 'lib/ovirtsdk4/types.rb', line 33664 def description=(value) @description = value end |
#display ⇒ Display
Returns the value of the display
attribute.
33673 33674 33675 |
# File 'lib/ovirtsdk4/types.rb', line 33673 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.
33686 33687 33688 33689 33690 33691 |
# File 'lib/ovirtsdk4/types.rb', line 33686 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.
33698 33699 33700 |
# File 'lib/ovirtsdk4/types.rb', line 33698 def enabled_features @enabled_features end |
#enabled_features=(list) ⇒ Object
Sets the value of the enabled_features
attribute.
33707 33708 33709 33710 33711 33712 33713 33714 33715 33716 33717 |
# File 'lib/ovirtsdk4/types.rb', line 33707 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.
33724 33725 33726 |
# File 'lib/ovirtsdk4/types.rb', line 33724 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.
33737 33738 33739 33740 33741 33742 |
# File 'lib/ovirtsdk4/types.rb', line 33737 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.
33749 33750 33751 |
# File 'lib/ovirtsdk4/types.rb', line 33749 def external_network_providers @external_network_providers end |
#external_network_providers=(list) ⇒ Object
Sets the value of the external_network_providers
attribute.
33758 33759 33760 33761 33762 33763 33764 33765 33766 33767 33768 |
# File 'lib/ovirtsdk4/types.rb', line 33758 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.
33775 33776 33777 |
# File 'lib/ovirtsdk4/types.rb', line 33775 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.
33788 33789 33790 33791 33792 33793 |
# File 'lib/ovirtsdk4/types.rb', line 33788 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.
33800 33801 33802 |
# File 'lib/ovirtsdk4/types.rb', line 33800 def fips_mode @fips_mode end |
#fips_mode=(value) ⇒ Object
Sets the value of the fips_mode
attribute.
33809 33810 33811 |
# File 'lib/ovirtsdk4/types.rb', line 33809 def fips_mode=(value) @fips_mode = value end |
#firewall_type ⇒ FirewallType
Returns the value of the firewall_type
attribute.
33818 33819 33820 |
# File 'lib/ovirtsdk4/types.rb', line 33818 def firewall_type @firewall_type end |
#firewall_type=(value) ⇒ Object
Sets the value of the firewall_type
attribute.
33827 33828 33829 |
# File 'lib/ovirtsdk4/types.rb', line 33827 def firewall_type=(value) @firewall_type = value end |
#gluster_hooks ⇒ Array<GlusterHook>
Returns the value of the gluster_hooks
attribute.
33836 33837 33838 |
# File 'lib/ovirtsdk4/types.rb', line 33836 def gluster_hooks @gluster_hooks end |
#gluster_hooks=(list) ⇒ Object
Sets the value of the gluster_hooks
attribute.
33845 33846 33847 33848 33849 33850 33851 33852 33853 33854 33855 |
# File 'lib/ovirtsdk4/types.rb', line 33845 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.
33862 33863 33864 |
# File 'lib/ovirtsdk4/types.rb', line 33862 def gluster_service @gluster_service end |
#gluster_service=(value) ⇒ Object
Sets the value of the gluster_service
attribute.
33871 33872 33873 |
# File 'lib/ovirtsdk4/types.rb', line 33871 def gluster_service=(value) @gluster_service = value end |
#gluster_tuned_profile ⇒ String
Returns the value of the gluster_tuned_profile
attribute.
33880 33881 33882 |
# File 'lib/ovirtsdk4/types.rb', line 33880 def gluster_tuned_profile @gluster_tuned_profile end |
#gluster_tuned_profile=(value) ⇒ Object
Sets the value of the gluster_tuned_profile
attribute.
33889 33890 33891 |
# File 'lib/ovirtsdk4/types.rb', line 33889 def gluster_tuned_profile=(value) @gluster_tuned_profile = value end |
#gluster_volumes ⇒ Array<GlusterVolume>
Returns the value of the gluster_volumes
attribute.
33898 33899 33900 |
# File 'lib/ovirtsdk4/types.rb', line 33898 def gluster_volumes @gluster_volumes end |
#gluster_volumes=(list) ⇒ Object
Sets the value of the gluster_volumes
attribute.
33907 33908 33909 33910 33911 33912 33913 33914 33915 33916 33917 |
# File 'lib/ovirtsdk4/types.rb', line 33907 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.
33924 33925 33926 |
# File 'lib/ovirtsdk4/types.rb', line 33924 def ha_reservation @ha_reservation end |
#ha_reservation=(value) ⇒ Object
Sets the value of the ha_reservation
attribute.
33933 33934 33935 |
# File 'lib/ovirtsdk4/types.rb', line 33933 def ha_reservation=(value) @ha_reservation = value end |
#hash ⇒ Object
Generates a hash value for this object.
34739 34740 34741 34742 34743 34744 34745 34746 34747 34748 34749 34750 34751 34752 34753 34754 34755 34756 34757 34758 34759 34760 34761 34762 34763 34764 34765 34766 34767 34768 34769 34770 34771 34772 34773 34774 34775 34776 34777 34778 34779 34780 34781 34782 34783 34784 34785 34786 |
# File 'lib/ovirtsdk4/types.rb', line 34739 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 + @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 + @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.
33942 33943 33944 |
# File 'lib/ovirtsdk4/types.rb', line 33942 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
33951 33952 33953 |
# File 'lib/ovirtsdk4/types.rb', line 33951 def id=(value) @id = value end |
#ksm ⇒ Ksm
Returns the value of the ksm
attribute.
33960 33961 33962 |
# File 'lib/ovirtsdk4/types.rb', line 33960 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.
33973 33974 33975 33976 33977 33978 |
# File 'lib/ovirtsdk4/types.rb', line 33973 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.
33985 33986 33987 |
# File 'lib/ovirtsdk4/types.rb', line 33985 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.
33994 33995 33996 |
# File 'lib/ovirtsdk4/types.rb', line 33994 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.
34003 34004 34005 |
# File 'lib/ovirtsdk4/types.rb', line 34003 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.
34012 34013 34014 |
# File 'lib/ovirtsdk4/types.rb', line 34012 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.
34021 34022 34023 |
# File 'lib/ovirtsdk4/types.rb', line 34021 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.
34034 34035 34036 34037 34038 34039 |
# File 'lib/ovirtsdk4/types.rb', line 34034 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.
34046 34047 34048 |
# File 'lib/ovirtsdk4/types.rb', line 34046 def maintenance_reason_required @maintenance_reason_required end |
#maintenance_reason_required=(value) ⇒ Object
Sets the value of the maintenance_reason_required
attribute.
34055 34056 34057 |
# File 'lib/ovirtsdk4/types.rb', line 34055 def maintenance_reason_required=(value) @maintenance_reason_required = value end |
#management_network ⇒ Network
Returns the value of the management_network
attribute.
34064 34065 34066 |
# File 'lib/ovirtsdk4/types.rb', line 34064 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.
34077 34078 34079 34080 34081 34082 |
# File 'lib/ovirtsdk4/types.rb', line 34077 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.
34089 34090 34091 |
# File 'lib/ovirtsdk4/types.rb', line 34089 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.
34102 34103 34104 34105 34106 34107 |
# File 'lib/ovirtsdk4/types.rb', line 34102 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.
34114 34115 34116 |
# File 'lib/ovirtsdk4/types.rb', line 34114 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.
34127 34128 34129 34130 34131 34132 |
# File 'lib/ovirtsdk4/types.rb', line 34127 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.
34139 34140 34141 |
# File 'lib/ovirtsdk4/types.rb', line 34139 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
34148 34149 34150 |
# File 'lib/ovirtsdk4/types.rb', line 34148 def name=(value) @name = value end |
#network_filters ⇒ Array<NetworkFilter>
Returns the value of the network_filters
attribute.
34157 34158 34159 |
# File 'lib/ovirtsdk4/types.rb', line 34157 def network_filters @network_filters end |
#network_filters=(list) ⇒ Object
Sets the value of the network_filters
attribute.
34166 34167 34168 34169 34170 34171 34172 34173 34174 34175 34176 |
# File 'lib/ovirtsdk4/types.rb', line 34166 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.
34183 34184 34185 |
# File 'lib/ovirtsdk4/types.rb', line 34183 def networks @networks end |
#networks=(list) ⇒ Object
Sets the value of the networks
attribute.
34192 34193 34194 34195 34196 34197 34198 34199 34200 34201 34202 |
# File 'lib/ovirtsdk4/types.rb', line 34192 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.
34209 34210 34211 |
# File 'lib/ovirtsdk4/types.rb', line 34209 def optional_reason @optional_reason end |
#optional_reason=(value) ⇒ Object
Sets the value of the optional_reason
attribute.
34218 34219 34220 |
# File 'lib/ovirtsdk4/types.rb', line 34218 def optional_reason=(value) @optional_reason = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions
attribute.
34227 34228 34229 |
# File 'lib/ovirtsdk4/types.rb', line 34227 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
34236 34237 34238 34239 34240 34241 34242 34243 34244 34245 34246 |
# File 'lib/ovirtsdk4/types.rb', line 34236 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.
34253 34254 34255 |
# File 'lib/ovirtsdk4/types.rb', line 34253 def required_rng_sources @required_rng_sources end |
#required_rng_sources=(list) ⇒ Object
Sets the value of the required_rng_sources
attribute.
34262 34263 34264 |
# File 'lib/ovirtsdk4/types.rb', line 34262 def required_rng_sources=(list) @required_rng_sources = list end |
#scheduling_policy ⇒ SchedulingPolicy
Returns the value of the scheduling_policy
attribute.
34271 34272 34273 |
# File 'lib/ovirtsdk4/types.rb', line 34271 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.
34284 34285 34286 34287 34288 34289 |
# File 'lib/ovirtsdk4/types.rb', line 34284 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.
34296 34297 34298 |
# File 'lib/ovirtsdk4/types.rb', line 34296 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.
34309 34310 34311 34312 34313 34314 |
# File 'lib/ovirtsdk4/types.rb', line 34309 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.
34321 34322 34323 |
# File 'lib/ovirtsdk4/types.rb', line 34321 def supported_versions @supported_versions end |
#supported_versions=(list) ⇒ Object
Sets the value of the supported_versions
attribute.
34330 34331 34332 34333 34334 34335 34336 34337 34338 34339 34340 |
# File 'lib/ovirtsdk4/types.rb', line 34330 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.
34347 34348 34349 |
# File 'lib/ovirtsdk4/types.rb', line 34347 def switch_type @switch_type end |
#switch_type=(value) ⇒ Object
Sets the value of the switch_type
attribute.
34356 34357 34358 |
# File 'lib/ovirtsdk4/types.rb', line 34356 def switch_type=(value) @switch_type = value end |
#threads_as_cores ⇒ Boolean
Returns the value of the threads_as_cores
attribute.
34365 34366 34367 |
# File 'lib/ovirtsdk4/types.rb', line 34365 def threads_as_cores @threads_as_cores end |
#threads_as_cores=(value) ⇒ Object
Sets the value of the threads_as_cores
attribute.
34374 34375 34376 |
# File 'lib/ovirtsdk4/types.rb', line 34374 def threads_as_cores=(value) @threads_as_cores = value end |
#trusted_service ⇒ Boolean
Returns the value of the trusted_service
attribute.
34383 34384 34385 |
# File 'lib/ovirtsdk4/types.rb', line 34383 def trusted_service @trusted_service end |
#trusted_service=(value) ⇒ Object
Sets the value of the trusted_service
attribute.
34392 34393 34394 |
# File 'lib/ovirtsdk4/types.rb', line 34392 def trusted_service=(value) @trusted_service = value end |
#tunnel_migration ⇒ Boolean
Returns the value of the tunnel_migration
attribute.
34401 34402 34403 |
# File 'lib/ovirtsdk4/types.rb', line 34401 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration
attribute.
34410 34411 34412 |
# File 'lib/ovirtsdk4/types.rb', line 34410 def tunnel_migration=(value) @tunnel_migration = value end |
#upgrade_correlation_id ⇒ String
Returns the value of the upgrade_correlation_id
attribute.
34419 34420 34421 |
# File 'lib/ovirtsdk4/types.rb', line 34419 def upgrade_correlation_id @upgrade_correlation_id end |
#upgrade_correlation_id=(value) ⇒ Object
Sets the value of the upgrade_correlation_id
attribute.
34428 34429 34430 |
# File 'lib/ovirtsdk4/types.rb', line 34428 def upgrade_correlation_id=(value) @upgrade_correlation_id = value end |
#upgrade_in_progress ⇒ Boolean
Returns the value of the upgrade_in_progress
attribute.
34437 34438 34439 |
# File 'lib/ovirtsdk4/types.rb', line 34437 def upgrade_in_progress @upgrade_in_progress end |
#upgrade_in_progress=(value) ⇒ Object
Sets the value of the upgrade_in_progress
attribute.
34446 34447 34448 |
# File 'lib/ovirtsdk4/types.rb', line 34446 def upgrade_in_progress=(value) @upgrade_in_progress = value end |
#upgrade_percent_complete ⇒ Integer
Returns the value of the upgrade_percent_complete
attribute.
34455 34456 34457 |
# File 'lib/ovirtsdk4/types.rb', line 34455 def upgrade_percent_complete @upgrade_percent_complete end |
#upgrade_percent_complete=(value) ⇒ Object
Sets the value of the upgrade_percent_complete
attribute.
34464 34465 34466 |
# File 'lib/ovirtsdk4/types.rb', line 34464 def upgrade_percent_complete=(value) @upgrade_percent_complete = value end |
#version ⇒ Version
Returns the value of the version
attribute.
34473 34474 34475 |
# File 'lib/ovirtsdk4/types.rb', line 34473 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.
34486 34487 34488 34489 34490 34491 |
# File 'lib/ovirtsdk4/types.rb', line 34486 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.
34498 34499 34500 |
# File 'lib/ovirtsdk4/types.rb', line 34498 def virt_service @virt_service end |
#virt_service=(value) ⇒ Object
Sets the value of the virt_service
attribute.
34507 34508 34509 |
# File 'lib/ovirtsdk4/types.rb', line 34507 def virt_service=(value) @virt_service = value end |
#vnc_encryption ⇒ Boolean
Returns the value of the vnc_encryption
attribute.
34516 34517 34518 |
# File 'lib/ovirtsdk4/types.rb', line 34516 def vnc_encryption @vnc_encryption end |
#vnc_encryption=(value) ⇒ Object
Sets the value of the vnc_encryption
attribute.
34525 34526 34527 |
# File 'lib/ovirtsdk4/types.rb', line 34525 def vnc_encryption=(value) @vnc_encryption = value end |