Class: Artifactory::Resource::LDAPSetting
- Defined in:
- lib/artifactory/resources/ldap_setting.rb
Class Method Summary collapse
-
.all(options = {}) ⇒ Array<Resource::LDAPSetting>
Get a list of all ldap settings in the system.
-
.find(name, options = {}) ⇒ Resource::LDAPSetting?
Find (fetch) an ldap setting by its name.
Instance Method Summary collapse
-
#auto_create_user ⇒ Object
Return this object’s
auto_create_user
. -
#auto_create_user=(value) ⇒ Object
Set this object’s
auto_create_user
. -
#auto_create_user? ⇒ Boolean
Determines if the
auto_create_user
value exists and is truthy. -
#email_attribute ⇒ Object
Return this object’s
email_attribute
. -
#email_attribute=(value) ⇒ Object
Set this object’s
email_attribute
. -
#email_attribute? ⇒ Boolean
Determines if the
email_attribute
value exists and is truthy. -
#enabled ⇒ Object
Return this object’s
enabled
. -
#enabled=(value) ⇒ Object
Set this object’s
enabled
. -
#enabled? ⇒ Boolean
Determines if the
enabled
value exists and is truthy. -
#key ⇒ Object
Return this object’s
key
. -
#key=(value) ⇒ Object
Set this object’s
key
. -
#key? ⇒ Boolean
Determines if the
key
value exists and is truthy. -
#ldap_url ⇒ Object
Return this object’s
ldap_url
. -
#ldap_url=(value) ⇒ Object
Set this object’s
ldap_url
. -
#ldap_url? ⇒ Boolean
Determines if the
ldap_url
value exists and is truthy. -
#manager_dn ⇒ Object
Return this object’s
manager_dn
. -
#manager_dn=(value) ⇒ Object
Set this object’s
manager_dn
. -
#manager_dn? ⇒ Boolean
Determines if the
manager_dn
value exists and is truthy. -
#manager_password ⇒ Object
Return this object’s
manager_password
. -
#manager_password=(value) ⇒ Object
Set this object’s
manager_password
. -
#manager_password? ⇒ Boolean
Determines if the
manager_password
value exists and is truthy. -
#search_base ⇒ Object
Return this object’s
search_base
. -
#search_base=(value) ⇒ Object
Set this object’s
search_base
. -
#search_base? ⇒ Boolean
Determines if the
search_base
value exists and is truthy. -
#search_filter ⇒ Object
Return this object’s
search_filter
. -
#search_filter=(value) ⇒ Object
Set this object’s
search_filter
. -
#search_filter? ⇒ Boolean
Determines if the
search_filter
value exists and is truthy. -
#search_sub_tree ⇒ Object
Return this object’s
search_sub_tree
. -
#search_sub_tree=(value) ⇒ Object
Set this object’s
search_sub_tree
. -
#search_sub_tree? ⇒ Boolean
Determines if the
search_sub_tree
value exists and is truthy.
Methods inherited from Base
attribute, attributes, #attributes, #client, #client=, #client?, #extract_client!, extract_client!, format_repos!, #format_repos!, from_hash, from_url, has_attribute?, #initialize, #inspect, #set, #to_hash, #to_json, #to_matrix_properties, #to_s, url_safe, #url_safe
Constructor Details
This class inherits a constructor from Artifactory::Resource::Base
Class Method Details
.all(options = {}) ⇒ Array<Resource::LDAPSetting>
Get a list of all ldap settings in the system.
18 19 20 21 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 18 def all( = {}) config = Resource::System.configuration() list_from_config('config/security/ldapSettings/ldapSetting', config, ) end |
.find(name, options = {}) ⇒ Resource::LDAPSetting?
Find (fetch) an ldap setting by its name.
41 42 43 44 45 46 47 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 41 def find(name, = {}) config = Resource::System.configuration() find_from_config("config/security/ldapSettings/ldapSetting/key[text()='#{name}']", config, ) rescue Error::HTTPError => e raise unless e.code == 404 nil end |
Instance Method Details
#auto_create_user ⇒ Object
Return this object’s auto_create_user
102 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 102 attribute :auto_create_user |
#auto_create_user=(value) ⇒ Object
Set this object’s auto_create_user
102 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 102 attribute :auto_create_user |
#auto_create_user? ⇒ Boolean
Determines if the auto_create_user
value exists and is truthy
102 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 102 attribute :auto_create_user |
#email_attribute ⇒ Object
Return this object’s email_attribute
103 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 103 attribute :email_attribute, 'mail' |
#email_attribute=(value) ⇒ Object
Set this object’s email_attribute
103 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 103 attribute :email_attribute, 'mail' |
#email_attribute? ⇒ Boolean
Determines if the email_attribute
value exists and is truthy
103 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 103 attribute :email_attribute, 'mail' |
#enabled ⇒ Object
Return this object’s enabled
95 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 95 attribute :enabled, true |
#enabled=(value) ⇒ Object
Set this object’s enabled
95 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 95 attribute :enabled, true |
#enabled? ⇒ Boolean
Determines if the enabled
value exists and is truthy
95 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 95 attribute :enabled, true |
#key ⇒ Object
Return this object’s key
94 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 94 attribute :key, ->{ raise 'name missing!' } |
#key=(value) ⇒ Object
Set this object’s key
94 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 94 attribute :key, ->{ raise 'name missing!' } |
#key? ⇒ Boolean
Determines if the key
value exists and is truthy
94 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 94 attribute :key, ->{ raise 'name missing!' } |
#ldap_url ⇒ Object
Return this object’s ldap_url
96 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 96 attribute :ldap_url |
#ldap_url=(value) ⇒ Object
Set this object’s ldap_url
96 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 96 attribute :ldap_url |
#ldap_url? ⇒ Boolean
Determines if the ldap_url
value exists and is truthy
96 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 96 attribute :ldap_url |
#manager_dn ⇒ Object
Return this object’s manager_dn
100 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 100 attribute :manager_dn |
#manager_dn=(value) ⇒ Object
Set this object’s manager_dn
100 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 100 attribute :manager_dn |
#manager_dn? ⇒ Boolean
Determines if the manager_dn
value exists and is truthy
100 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 100 attribute :manager_dn |
#manager_password ⇒ Object
Return this object’s manager_password
101 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 101 attribute :manager_password |
#manager_password=(value) ⇒ Object
Set this object’s manager_password
101 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 101 attribute :manager_password |
#manager_password? ⇒ Boolean
Determines if the manager_password
value exists and is truthy
101 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 101 attribute :manager_password |
#search_base ⇒ Object
Return this object’s search_base
98 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 98 attribute :search_base |
#search_base=(value) ⇒ Object
Set this object’s search_base
98 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 98 attribute :search_base |
#search_base? ⇒ Boolean
Determines if the search_base
value exists and is truthy
98 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 98 attribute :search_base |
#search_filter ⇒ Object
Return this object’s search_filter
97 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 97 attribute :search_filter |
#search_filter=(value) ⇒ Object
Set this object’s search_filter
97 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 97 attribute :search_filter |
#search_filter? ⇒ Boolean
Determines if the search_filter
value exists and is truthy
97 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 97 attribute :search_filter |
#search_sub_tree ⇒ Object
Return this object’s search_sub_tree
99 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 99 attribute :search_sub_tree |
#search_sub_tree=(value) ⇒ Object
Set this object’s search_sub_tree
99 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 99 attribute :search_sub_tree |
#search_sub_tree? ⇒ Boolean
Determines if the search_sub_tree
value exists and is truthy
99 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 99 attribute :search_sub_tree |