Class: SwaggerAemOsgiClient::OrgApacheJackrabbitOakSecurityAuthenticationLdapImplLdapIdentiProperties

Inherits:
Object
  • Object
show all
Defined in:
lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ OrgApacheJackrabbitOakSecurityAuthenticationLdapImplLdapIdentiProperties

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
# 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

Instance Attribute Details

#admin_pool_lookup_on_validateObject

Returns the value of attribute admin_pool_lookup_on_validate.



37
38
39
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb', line 37

def admin_pool_lookup_on_validate
  @admin_pool_lookup_on_validate
end

#admin_pool_max_activeObject

Returns the value of attribute admin_pool_max_active.



35
36
37
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb', line 35

def admin_pool_max_active
  @admin_pool_max_active
end

#bind_dnObject

Returns the value of attribute bind_dn.



29
30
31
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb', line 29

def bind_dn
  @bind_dn
end

#bind_passwordObject

Returns the value of attribute bind_password.



31
32
33
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb', line 31

def bind_password
  @bind_password
end

#customattributesObject

Returns the value of attribute customattributes.



67
68
69
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb', line 67

def customattributes
  @customattributes
end

#group_base_dnObject

Returns the value of attribute group_base_dn.



53
54
55
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb', line 53

def group_base_dn
  @group_base_dn
end

#group_extra_filterObject

Returns the value of attribute group_extra_filter.



59
60
61
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb', line 59

def group_extra_filter
  @group_extra_filter
end

#group_make_dn_pathObject

Returns the value of attribute group_make_dn_path.



61
62
63
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb', line 61

def group_make_dn_path
  @group_make_dn_path
end

#group_member_attributeObject

Returns the value of attribute group_member_attribute.



63
64
65
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb', line 63

def group_member_attribute
  @group_member_attribute
end

#group_name_attributeObject

Returns the value of attribute group_name_attribute.



57
58
59
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb', line 57

def group_name_attribute
  @group_name_attribute
end

#group_objectclassObject

Returns the value of attribute group_objectclass.



55
56
57
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb', line 55

def group_objectclass
  @group_objectclass
end

#host_nameObject

Returns the value of attribute host_name.



19
20
21
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb', line 19

def host_name
  @host_name
end

#host_no_cert_checkObject

Returns the value of attribute host_no_cert_check.



27
28
29
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb', line 27

def host_no_cert_check
  @host_no_cert_check
end

#host_portObject

Returns the value of attribute host_port.



21
22
23
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb', line 21

def host_port
  @host_port
end

#host_sslObject

Returns the value of attribute host_ssl.



23
24
25
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb', line 23

def host_ssl
  @host_ssl
end

#host_tlsObject

Returns the value of attribute host_tls.



25
26
27
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb', line 25

def host_tls
  @host_tls
end

#provider_nameObject

Returns the value of attribute provider_name.



17
18
19
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb', line 17

def provider_name
  @provider_name
end

#search_timeoutObject

Returns the value of attribute search_timeout.



33
34
35
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb', line 33

def search_timeout
  @search_timeout
end

#use_uid_for_ext_idObject

Returns the value of attribute use_uid_for_ext_id.



65
66
67
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb', line 65

def use_uid_for_ext_id
  @use_uid_for_ext_id
end

#user_base_dnObject

Returns the value of attribute user_base_dn.



43
44
45
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb', line 43

def user_base_dn
  @user_base_dn
end

#user_extra_filterObject

Returns the value of attribute user_extra_filter.



49
50
51
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb', line 49

def user_extra_filter
  @user_extra_filter
end

#user_id_attributeObject

Returns the value of attribute user_id_attribute.



47
48
49
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb', line 47

def user_id_attribute
  @user_id_attribute
end

#user_make_dn_pathObject

Returns the value of attribute user_make_dn_path.



51
52
53
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb', line 51

def user_make_dn_path
  @user_make_dn_path
end

#user_objectclassObject

Returns the value of attribute user_objectclass.



45
46
47
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb', line 45

def user_objectclass
  @user_objectclass
end

#user_pool_lookup_on_validateObject

Returns the value of attribute user_pool_lookup_on_validate.



41
42
43
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb', line 41

def user_pool_lookup_on_validate
  @user_pool_lookup_on_validate
end

#user_pool_max_activeObject

Returns the value of attribute user_pool_max_active.



39
40
41
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb', line 39

def user_pool_max_active
  @user_pool_max_active
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# 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

.openapi_typesObject

Attribute type mapping.



102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# 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

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
# 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

#_deserialize(type, value) ⇒ Object

Deserializes the data based on type

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data



328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
# 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

#_to_hash(value) ⇒ Hash

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



394
395
396
397
398
399
400
401
402
403
404
405
406
# 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

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
# 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

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


294
295
296
# 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

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



300
301
302
# 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

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



248
249
250
251
# 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

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash



374
375
376
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb', line 374

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



380
381
382
383
384
385
386
387
388
# 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

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



368
369
370
# 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

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



255
256
257
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_security_authentication_ldap_impl_ldap_identi_properties.rb', line 255

def valid?
  true
end