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.
16902 16903 16904 16905 16906 16907 16908 16909 16910 16911 |
# File 'lib/ovirtsdk4/types.rb', line 16902 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.
16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 |
# File 'lib/ovirtsdk4/types.rb', line 16916 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.
16703 16704 16705 |
# File 'lib/ovirtsdk4/types.rb', line 16703 def affinity_group_mappings @affinity_group_mappings end |
#affinity_group_mappings=(list) ⇒ Object
Sets the value of the affinity_group_mappings
attribute.
16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 |
# File 'lib/ovirtsdk4/types.rb', line 16712 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.
16729 16730 16731 |
# File 'lib/ovirtsdk4/types.rb', line 16729 def affinity_label_mappings @affinity_label_mappings end |
#affinity_label_mappings=(list) ⇒ Object
Sets the value of the affinity_label_mappings
attribute.
16738 16739 16740 16741 16742 16743 16744 16745 16746 16747 16748 |
# File 'lib/ovirtsdk4/types.rb', line 16738 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.
16755 16756 16757 |
# File 'lib/ovirtsdk4/types.rb', line 16755 def cluster_mappings @cluster_mappings end |
#cluster_mappings=(list) ⇒ Object
Sets the value of the cluster_mappings
attribute.
16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 |
# File 'lib/ovirtsdk4/types.rb', line 16764 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.
16781 16782 16783 |
# File 'lib/ovirtsdk4/types.rb', line 16781 def domain_mappings @domain_mappings end |
#domain_mappings=(list) ⇒ Object
Sets the value of the domain_mappings
attribute.
16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 |
# File 'lib/ovirtsdk4/types.rb', line 16790 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.
16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 |
# File 'lib/ovirtsdk4/types.rb', line 16930 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.
16807 16808 16809 |
# File 'lib/ovirtsdk4/types.rb', line 16807 def lun_mappings @lun_mappings end |
#lun_mappings=(list) ⇒ Object
Sets the value of the lun_mappings
attribute.
16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 |
# File 'lib/ovirtsdk4/types.rb', line 16816 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.
16833 16834 16835 |
# File 'lib/ovirtsdk4/types.rb', line 16833 def role_mappings @role_mappings end |
#role_mappings=(list) ⇒ Object
Sets the value of the role_mappings
attribute.
16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 |
# File 'lib/ovirtsdk4/types.rb', line 16842 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.
16859 16860 16861 |
# File 'lib/ovirtsdk4/types.rb', line 16859 def vnic_profile_mappings @vnic_profile_mappings end |
#vnic_profile_mappings=(list) ⇒ Object
Sets the value of the vnic_profile_mappings
attribute.
16868 16869 16870 16871 16872 16873 16874 16875 16876 16877 16878 |
# File 'lib/ovirtsdk4/types.rb', line 16868 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 |