class SwaggerAemOsgiClient::OrgApacheJackrabbitOakSecurityAuthenticationLdapImplLdapIdentiProperties
Attributes
Public Class Methods
Attribute mapping from ruby-style variable name to JSON key.
# File lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb, line 70 def self.attribute_map { :'provider_name' => :'provider.name', :'host_name' => :'host.name', :'host_port' => :'host.port', :'host_ssl' => :'host.ssl', :'host_tls' => :'host.tls', :'host_no_cert_check' => :'host.noCertCheck', :'bind_dn' => :'bind.dn', :'bind_password' => :'bind.password', :'search_timeout' => :'searchTimeout', :'admin_pool_max_active' => :'adminPool.maxActive', :'admin_pool_lookup_on_validate' => :'adminPool.lookupOnValidate', :'user_pool_max_active' => :'userPool.maxActive', :'user_pool_lookup_on_validate' => :'userPool.lookupOnValidate', :'user_base_dn' => :'user.baseDN', :'user_objectclass' => :'user.objectclass', :'user_id_attribute' => :'user.idAttribute', :'user_extra_filter' => :'user.extraFilter', :'user_make_dn_path' => :'user.makeDnPath', :'group_base_dn' => :'group.baseDN', :'group_objectclass' => :'group.objectclass', :'group_name_attribute' => :'group.nameAttribute', :'group_extra_filter' => :'group.extraFilter', :'group_make_dn_path' => :'group.makeDnPath', :'group_member_attribute' => :'group.memberAttribute', :'use_uid_for_ext_id' => :'useUidForExtId', :'customattributes' => :'customattributes' } end
Initializes the object @param [Hash] attributes Model attributes in the form of hash
# File lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb, line 135 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'provider.name') self.provider_name = attributes[:'provider.name'] end if attributes.has_key?(:'host.name') self.host_name = attributes[:'host.name'] end if attributes.has_key?(:'host.port') self.host_port = attributes[:'host.port'] end if attributes.has_key?(:'host.ssl') self.host_ssl = attributes[:'host.ssl'] end if attributes.has_key?(:'host.tls') self.host_tls = attributes[:'host.tls'] end if attributes.has_key?(:'host.noCertCheck') self.host_no_cert_check = attributes[:'host.noCertCheck'] end if attributes.has_key?(:'bind.dn') self.bind_dn = attributes[:'bind.dn'] end if attributes.has_key?(:'bind.password') self.bind_password = attributes[:'bind.password'] end if attributes.has_key?(:'searchTimeout') self.search_timeout = attributes[:'searchTimeout'] end if attributes.has_key?(:'adminPool.maxActive') self.admin_pool_max_active = attributes[:'adminPool.maxActive'] end if attributes.has_key?(:'adminPool.lookupOnValidate') self.admin_pool_lookup_on_validate = attributes[:'adminPool.lookupOnValidate'] end if attributes.has_key?(:'userPool.maxActive') self.user_pool_max_active = attributes[:'userPool.maxActive'] end if attributes.has_key?(:'userPool.lookupOnValidate') self.user_pool_lookup_on_validate = attributes[:'userPool.lookupOnValidate'] end if attributes.has_key?(:'user.baseDN') self.user_base_dn = attributes[:'user.baseDN'] end if attributes.has_key?(:'user.objectclass') self.user_objectclass = attributes[:'user.objectclass'] end if attributes.has_key?(:'user.idAttribute') self.user_id_attribute = attributes[:'user.idAttribute'] end if attributes.has_key?(:'user.extraFilter') self.user_extra_filter = attributes[:'user.extraFilter'] end if attributes.has_key?(:'user.makeDnPath') self.user_make_dn_path = attributes[:'user.makeDnPath'] end if attributes.has_key?(:'group.baseDN') self.group_base_dn = attributes[:'group.baseDN'] end if attributes.has_key?(:'group.objectclass') self.group_objectclass = attributes[:'group.objectclass'] end if attributes.has_key?(:'group.nameAttribute') self.group_name_attribute = attributes[:'group.nameAttribute'] end if attributes.has_key?(:'group.extraFilter') self.group_extra_filter = attributes[:'group.extraFilter'] end if attributes.has_key?(:'group.makeDnPath') self.group_make_dn_path = attributes[:'group.makeDnPath'] end if attributes.has_key?(:'group.memberAttribute') self.group_member_attribute = attributes[:'group.memberAttribute'] end if attributes.has_key?(:'useUidForExtId') self.use_uid_for_ext_id = attributes[:'useUidForExtId'] end if attributes.has_key?(:'customattributes') self.customattributes = attributes[:'customattributes'] end end
Attribute type mapping.
# File lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb, line 102 def self.openapi_types { :'provider_name' => :'ConfigNodePropertyString', :'host_name' => :'ConfigNodePropertyString', :'host_port' => :'ConfigNodePropertyInteger', :'host_ssl' => :'ConfigNodePropertyBoolean', :'host_tls' => :'ConfigNodePropertyBoolean', :'host_no_cert_check' => :'ConfigNodePropertyBoolean', :'bind_dn' => :'ConfigNodePropertyString', :'bind_password' => :'ConfigNodePropertyString', :'search_timeout' => :'ConfigNodePropertyString', :'admin_pool_max_active' => :'ConfigNodePropertyInteger', :'admin_pool_lookup_on_validate' => :'ConfigNodePropertyBoolean', :'user_pool_max_active' => :'ConfigNodePropertyInteger', :'user_pool_lookup_on_validate' => :'ConfigNodePropertyBoolean', :'user_base_dn' => :'ConfigNodePropertyString', :'user_objectclass' => :'ConfigNodePropertyArray', :'user_id_attribute' => :'ConfigNodePropertyString', :'user_extra_filter' => :'ConfigNodePropertyString', :'user_make_dn_path' => :'ConfigNodePropertyBoolean', :'group_base_dn' => :'ConfigNodePropertyString', :'group_objectclass' => :'ConfigNodePropertyArray', :'group_name_attribute' => :'ConfigNodePropertyString', :'group_extra_filter' => :'ConfigNodePropertyString', :'group_make_dn_path' => :'ConfigNodePropertyBoolean', :'group_member_attribute' => :'ConfigNodePropertyString', :'use_uid_for_ext_id' => :'ConfigNodePropertyBoolean', :'customattributes' => :'ConfigNodePropertyArray' } end
Public Instance Methods
Checks equality by comparing each attribute. @param [Object] Object to be compared
# File lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb, line 261 def ==(o) return true if self.equal?(o) self.class == o.class && provider_name == o.provider_name && host_name == o.host_name && host_port == o.host_port && host_ssl == o.host_ssl && host_tls == o.host_tls && host_no_cert_check == o.host_no_cert_check && bind_dn == o.bind_dn && bind_password == o.bind_password && search_timeout == o.search_timeout && admin_pool_max_active == o.admin_pool_max_active && admin_pool_lookup_on_validate == o.admin_pool_lookup_on_validate && user_pool_max_active == o.user_pool_max_active && user_pool_lookup_on_validate == o.user_pool_lookup_on_validate && user_base_dn == o.user_base_dn && user_objectclass == o.user_objectclass && user_id_attribute == o.user_id_attribute && user_extra_filter == o.user_extra_filter && user_make_dn_path == o.user_make_dn_path && group_base_dn == o.group_base_dn && group_objectclass == o.group_objectclass && group_name_attribute == o.group_name_attribute && group_extra_filter == o.group_extra_filter && group_make_dn_path == o.group_make_dn_path && group_member_attribute == o.group_member_attribute && use_uid_for_ext_id == o.use_uid_for_ext_id && customattributes == o.customattributes end
Deserializes the data based on type @param string type Data type @param string value Value to be deserialized @return [Object] Deserialized data
# File lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb, line 328 def _deserialize(type, value) case type.to_sym when :DateTime DateTime.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :BOOLEAN if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model temp_model = SwaggerAemOsgiClient.const_get(type).new temp_model.build_from_hash(value) end end
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value @param [Object] value Any valid value @return [Hash] Returns the value in the form of hash
# File lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb, line 394 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end
Builds the object from hash @param [Hash] attributes Model attributes in the form of hash @return [Object] Returns the model itself
# File lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb, line 307 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end
@see the `==` method @param [Object] Object to be compared
# File lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb, line 294 def eql?(o) self == o end
Calculates hash code according to all attributes. @return [Fixnum] Hash code
# File lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb, line 300 def hash [provider_name, host_name, host_port, host_ssl, host_tls, host_no_cert_check, bind_dn, bind_password, search_timeout, admin_pool_max_active, admin_pool_lookup_on_validate, user_pool_max_active, user_pool_lookup_on_validate, user_base_dn, user_objectclass, user_id_attribute, user_extra_filter, user_make_dn_path, group_base_dn, group_objectclass, group_name_attribute, group_extra_filter, group_make_dn_path, group_member_attribute, use_uid_for_ext_id, customattributes].hash end
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
# File lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb, line 248 def list_invalid_properties invalid_properties = Array.new invalid_properties end
Returns the object in the form of hash @return [Hash] Returns the object in the form of hash
# File lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb, line 380 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) next if value.nil? hash[param] = _to_hash(value) end hash end
Returns the string representation of the object @return [String] String presentation of the object
# File lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb, line 368 def to_s to_hash.to_s end
Check to see if the all the properties in the model are valid @return true if the model is valid
# File lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb, line 255 def valid? true end