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. -
#vnic_profile_mappings ⇒ Array<RegistrationVnicProfileMapping>
Returns the value of the
vnic_profile_mappings
attribute. -
#vnic_profile_mappings=(list) ⇒ Object
Sets the value of the
vnic_profile_mappings
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ RegistrationConfiguration
Creates a new instance of the OvirtSDK4::RegistrationConfiguration class.
16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 |
# File 'lib/ovirtsdk4/types.rb', line 16800 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] self.vnic_profile_mappings = opts[:vnic_profile_mappings] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 |
# File 'lib/ovirtsdk4/types.rb', line 16814 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 && @vnic_profile_mappings == other.vnic_profile_mappings end |
#affinity_group_mappings ⇒ Array<RegistrationAffinityGroupMapping>
Returns the value of the affinity_group_mappings
attribute.
16601 16602 16603 |
# File 'lib/ovirtsdk4/types.rb', line 16601 def affinity_group_mappings @affinity_group_mappings end |
#affinity_group_mappings=(list) ⇒ Object
Sets the value of the affinity_group_mappings
attribute.
16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 |
# File 'lib/ovirtsdk4/types.rb', line 16610 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.
16627 16628 16629 |
# File 'lib/ovirtsdk4/types.rb', line 16627 def affinity_label_mappings @affinity_label_mappings end |
#affinity_label_mappings=(list) ⇒ Object
Sets the value of the affinity_label_mappings
attribute.
16636 16637 16638 16639 16640 16641 16642 16643 16644 16645 16646 |
# File 'lib/ovirtsdk4/types.rb', line 16636 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.
16653 16654 16655 |
# File 'lib/ovirtsdk4/types.rb', line 16653 def cluster_mappings @cluster_mappings end |
#cluster_mappings=(list) ⇒ Object
Sets the value of the cluster_mappings
attribute.
16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 |
# File 'lib/ovirtsdk4/types.rb', line 16662 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.
16679 16680 16681 |
# File 'lib/ovirtsdk4/types.rb', line 16679 def domain_mappings @domain_mappings end |
#domain_mappings=(list) ⇒ Object
Sets the value of the domain_mappings
attribute.
16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 |
# File 'lib/ovirtsdk4/types.rb', line 16688 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.
16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 |
# File 'lib/ovirtsdk4/types.rb', line 16828 def hash super + @affinity_group_mappings.hash + @affinity_label_mappings.hash + @cluster_mappings.hash + @domain_mappings.hash + @lun_mappings.hash + @role_mappings.hash + @vnic_profile_mappings.hash end |
#lun_mappings ⇒ Array<RegistrationLunMapping>
Returns the value of the lun_mappings
attribute.
16705 16706 16707 |
# File 'lib/ovirtsdk4/types.rb', line 16705 def lun_mappings @lun_mappings end |
#lun_mappings=(list) ⇒ Object
Sets the value of the lun_mappings
attribute.
16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 |
# File 'lib/ovirtsdk4/types.rb', line 16714 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.
16731 16732 16733 |
# File 'lib/ovirtsdk4/types.rb', line 16731 def role_mappings @role_mappings end |
#role_mappings=(list) ⇒ Object
Sets the value of the role_mappings
attribute.
16740 16741 16742 16743 16744 16745 16746 16747 16748 16749 16750 |
# File 'lib/ovirtsdk4/types.rb', line 16740 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 |
#vnic_profile_mappings ⇒ Array<RegistrationVnicProfileMapping>
Returns the value of the vnic_profile_mappings
attribute.
16757 16758 16759 |
# File 'lib/ovirtsdk4/types.rb', line 16757 def vnic_profile_mappings @vnic_profile_mappings end |
#vnic_profile_mappings=(list) ⇒ Object
Sets the value of the vnic_profile_mappings
attribute.
16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 |
# File 'lib/ovirtsdk4/types.rb', line 16766 def vnic_profile_mappings=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = RegistrationVnicProfileMapping.new(value) end end end @vnic_profile_mappings = list end |