class OvirtSDK4::RegistrationConfiguration
Public Class Methods
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`.
@option opts [Array<RegistrationVnicProfileMapping>, Array<Hash>] :vnic_profile_mappings The values of attribute `vnic_profile_mappings`.
OvirtSDK4::Struct::new
# File lib/ovirtsdk4/types.rb, line 17053 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
Public Instance Methods
Returns `true` if `self` and `other` have the same attributes and values.
# File lib/ovirtsdk4/types.rb, line 17067 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
Returns the value of the `affinity_group_mappings` attribute.
@return [Array<RegistrationAffinityGroupMapping>]
# File lib/ovirtsdk4/types.rb, line 16854 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 16863 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 16880 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 16889 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 16906 def cluster_mappings @cluster_mappings end
Sets the value of the `cluster_mappings` attribute.
@param list [Array<RegistrationClusterMapping>]
# File lib/ovirtsdk4/types.rb, line 16915 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 16932 def domain_mappings @domain_mappings end
Sets the value of the `domain_mappings` attribute.
@param list [Array<RegistrationDomainMapping>]
# File lib/ovirtsdk4/types.rb, line 16941 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.
OvirtSDK4::Struct#hash
# File lib/ovirtsdk4/types.rb, line 17081 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
Returns the value of the `lun_mappings` attribute.
@return [Array<RegistrationLunMapping>]
# File lib/ovirtsdk4/types.rb, line 16958 def lun_mappings @lun_mappings end
Sets the value of the `lun_mappings` attribute.
@param list [Array<RegistrationLunMapping>]
# File lib/ovirtsdk4/types.rb, line 16967 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 16984 def role_mappings @role_mappings end
Sets the value of the `role_mappings` attribute.
@param list [Array<RegistrationRoleMapping>]
# File lib/ovirtsdk4/types.rb, line 16993 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
Returns the value of the `vnic_profile_mappings` attribute.
@return [Array<RegistrationVnicProfileMapping>]
# File lib/ovirtsdk4/types.rb, line 17010 def vnic_profile_mappings @vnic_profile_mappings end
Sets the value of the `vnic_profile_mappings` attribute.
@param list [Array<RegistrationVnicProfileMapping>]
# File lib/ovirtsdk4/types.rb, line 17019 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