Creates a new instance of the {RegistrationConfiguration} class.
@param opts [Hash] A hash containing the attributes of the object. The keys of the hash
should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.
@option opts [Array<RegistrationAffinityGroupMapping>, Array<Hash>] :affinity_group_mappings The values of attribute `affinity_group_mappings`.
@option opts [Array<RegistrationAffinityLabelMapping>, Array<Hash>] :affinity_label_mappings The values of attribute `affinity_label_mappings`.
@option opts [Array<RegistrationClusterMapping>, Array<Hash>] :cluster_mappings The values of attribute `cluster_mappings`.
@option opts [Array<RegistrationDomainMapping>, Array<Hash>] :domain_mappings The values of attribute `domain_mappings`.
@option opts [Array<RegistrationLunMapping>, Array<Hash>] :lun_mappings The values of attribute `lun_mappings`.
@option opts [Array<RegistrationRoleMapping>, Array<Hash>] :role_mappings The values of attribute `role_mappings`.
# File lib/ovirtsdk4/types.rb, line 16534 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
Returns `true` if `self` and `other` have the same attributes and values.
# File lib/ovirtsdk4/types.rb, line 16547 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
Returns the value of the `affinity_group_mappings` attribute.
@return [Array<RegistrationAffinityGroupMapping>]
# File lib/ovirtsdk4/types.rb, line 16363 def affinity_group_mappings @affinity_group_mappings end
Sets the value of the `affinity_group_mappings` attribute.
@param list [Array<RegistrationAffinityGroupMapping>]
# File lib/ovirtsdk4/types.rb, line 16372 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
Returns the value of the `affinity_label_mappings` attribute.
@return [Array<RegistrationAffinityLabelMapping>]
# File lib/ovirtsdk4/types.rb, line 16389 def affinity_label_mappings @affinity_label_mappings end
Sets the value of the `affinity_label_mappings` attribute.
@param list [Array<RegistrationAffinityLabelMapping>]
# File lib/ovirtsdk4/types.rb, line 16398 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
Returns the value of the `cluster_mappings` attribute.
@return [Array<RegistrationClusterMapping>]
# File lib/ovirtsdk4/types.rb, line 16415 def cluster_mappings @cluster_mappings end
Sets the value of the `cluster_mappings` attribute.
@param list [Array<RegistrationClusterMapping>]
# File lib/ovirtsdk4/types.rb, line 16424 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
Returns the value of the `domain_mappings` attribute.
@return [Array<RegistrationDomainMapping>]
# File lib/ovirtsdk4/types.rb, line 16441 def domain_mappings @domain_mappings end
Sets the value of the `domain_mappings` attribute.
@param list [Array<RegistrationDomainMapping>]
# File lib/ovirtsdk4/types.rb, line 16450 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
Generates a hash value for this object.
# File lib/ovirtsdk4/types.rb, line 16560 def hash super + @affinity_group_mappings.hash + @affinity_label_mappings.hash + @cluster_mappings.hash + @domain_mappings.hash + @lun_mappings.hash + @role_mappings.hash end
Returns the value of the `lun_mappings` attribute.
@return [Array<RegistrationLunMapping>]
# File lib/ovirtsdk4/types.rb, line 16467 def lun_mappings @lun_mappings end
Sets the value of the `lun_mappings` attribute.
@param list [Array<RegistrationLunMapping>]
# File lib/ovirtsdk4/types.rb, line 16476 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
Returns the value of the `role_mappings` attribute.
@return [Array<RegistrationRoleMapping>]
# File lib/ovirtsdk4/types.rb, line 16493 def role_mappings @role_mappings end
Sets the value of the `role_mappings` attribute.
@param list [Array<RegistrationRoleMapping>]
# File lib/ovirtsdk4/types.rb, line 16502 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