Class: OvirtSDK4::RegistrationConfiguration
- 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_group_mappings ⇒ Array<RegistrationAffinityGroupMapping>
Returns the value of the
affinity_group_mappings
attribute. -
#affinity_group_mappings=(list) ⇒ Object
Sets the value of the
affinity_group_mappings
attribute. -
#affinity_label_mappings ⇒ Array<RegistrationAffinityLabelMapping>
Returns the value of the
affinity_label_mappings
attribute. -
#affinity_label_mappings=(list) ⇒ Object
Sets the value of the
affinity_label_mappings
attribute. -
#cluster_mappings ⇒ Array<RegistrationClusterMapping>
Returns the value of the
cluster_mappings
attribute. -
#cluster_mappings=(list) ⇒ Object
Sets the value of the
cluster_mappings
attribute. -
#domain_mappings ⇒ Array<RegistrationDomainMapping>
Returns the value of the
domain_mappings
attribute. -
#domain_mappings=(list) ⇒ Object
Sets the value of the
domain_mappings
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ RegistrationConfiguration
constructor
Creates a new instance of the RegistrationConfiguration class.
-
#lun_mappings ⇒ Array<RegistrationLunMapping>
Returns the value of the
lun_mappings
attribute. -
#lun_mappings=(list) ⇒ Object
Sets the value of the
lun_mappings
attribute. -
#role_mappings ⇒ Array<RegistrationRoleMapping>
Returns the value of the
role_mappings
attribute. -
#role_mappings=(list) ⇒ Object
Sets the value of the
role_mappings
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ RegistrationConfiguration
Creates a new instance of the OvirtSDK4::RegistrationConfiguration class.
16723 16724 16725 16726 16727 16728 16729 16730 16731 |
# File 'lib/ovirtsdk4/types.rb', line 16723 def initialize(opts = {}) super(opts) self.affinity_group_mappings = opts[:affinity_group_mappings] self.affinity_label_mappings = opts[:affinity_label_mappings] self.cluster_mappings = opts[:cluster_mappings] self.domain_mappings = opts[:domain_mappings] self.lun_mappings = opts[:lun_mappings] self.role_mappings = opts[:role_mappings] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
16736 16737 16738 16739 16740 16741 16742 16743 16744 |
# File 'lib/ovirtsdk4/types.rb', line 16736 def ==(other) super && @affinity_group_mappings == other.affinity_group_mappings && @affinity_label_mappings == other.affinity_label_mappings && @cluster_mappings == other.cluster_mappings && @domain_mappings == other.domain_mappings && @lun_mappings == other.lun_mappings && @role_mappings == other.role_mappings end |
#affinity_group_mappings ⇒ Array<RegistrationAffinityGroupMapping>
Returns the value of the affinity_group_mappings
attribute.
16552 16553 16554 |
# File 'lib/ovirtsdk4/types.rb', line 16552 def affinity_group_mappings @affinity_group_mappings end |
#affinity_group_mappings=(list) ⇒ Object
Sets the value of the affinity_group_mappings
attribute.
16561 16562 16563 16564 16565 16566 16567 16568 16569 16570 16571 |
# File 'lib/ovirtsdk4/types.rb', line 16561 def affinity_group_mappings=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = RegistrationAffinityGroupMapping.new(value) end end end @affinity_group_mappings = list end |
#affinity_label_mappings ⇒ Array<RegistrationAffinityLabelMapping>
Returns the value of the affinity_label_mappings
attribute.
16578 16579 16580 |
# File 'lib/ovirtsdk4/types.rb', line 16578 def affinity_label_mappings @affinity_label_mappings end |
#affinity_label_mappings=(list) ⇒ Object
Sets the value of the affinity_label_mappings
attribute.
16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 |
# File 'lib/ovirtsdk4/types.rb', line 16587 def affinity_label_mappings=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = RegistrationAffinityLabelMapping.new(value) end end end @affinity_label_mappings = list end |
#cluster_mappings ⇒ Array<RegistrationClusterMapping>
Returns the value of the cluster_mappings
attribute.
16604 16605 16606 |
# File 'lib/ovirtsdk4/types.rb', line 16604 def cluster_mappings @cluster_mappings end |
#cluster_mappings=(list) ⇒ Object
Sets the value of the cluster_mappings
attribute.
16613 16614 16615 16616 16617 16618 16619 16620 16621 16622 16623 |
# File 'lib/ovirtsdk4/types.rb', line 16613 def cluster_mappings=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = RegistrationClusterMapping.new(value) end end end @cluster_mappings = list end |
#domain_mappings ⇒ Array<RegistrationDomainMapping>
Returns the value of the domain_mappings
attribute.
16630 16631 16632 |
# File 'lib/ovirtsdk4/types.rb', line 16630 def domain_mappings @domain_mappings end |
#domain_mappings=(list) ⇒ Object
Sets the value of the domain_mappings
attribute.
16639 16640 16641 16642 16643 16644 16645 16646 16647 16648 16649 |
# File 'lib/ovirtsdk4/types.rb', line 16639 def domain_mappings=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = RegistrationDomainMapping.new(value) end end end @domain_mappings = list end |
#hash ⇒ Object
Generates a hash value for this object.
16749 16750 16751 16752 16753 16754 16755 16756 16757 |
# File 'lib/ovirtsdk4/types.rb', line 16749 def hash super + @affinity_group_mappings.hash + @affinity_label_mappings.hash + @cluster_mappings.hash + @domain_mappings.hash + @lun_mappings.hash + @role_mappings.hash end |
#lun_mappings ⇒ Array<RegistrationLunMapping>
Returns the value of the lun_mappings
attribute.
16656 16657 16658 |
# File 'lib/ovirtsdk4/types.rb', line 16656 def lun_mappings @lun_mappings end |
#lun_mappings=(list) ⇒ Object
Sets the value of the lun_mappings
attribute.
16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 |
# File 'lib/ovirtsdk4/types.rb', line 16665 def lun_mappings=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = RegistrationLunMapping.new(value) end end end @lun_mappings = list end |
#role_mappings ⇒ Array<RegistrationRoleMapping>
Returns the value of the role_mappings
attribute.
16682 16683 16684 |
# File 'lib/ovirtsdk4/types.rb', line 16682 def role_mappings @role_mappings end |
#role_mappings=(list) ⇒ Object
Sets the value of the role_mappings
attribute.
16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 |
# File 'lib/ovirtsdk4/types.rb', line 16691 def role_mappings=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = RegistrationRoleMapping.new(value) end end end @role_mappings = list end |