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_query_string_parameters, #to_s, uri_parser, 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.
34 35 36 37 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 34 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.
57 58 59 60 61 62 63 64 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 57 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
121 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 121 attribute :auto_create_user |
#auto_create_user=(value) ⇒ Object
Set this object’s auto_create_user
121 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 121 attribute :auto_create_user |
#auto_create_user? ⇒ Boolean
Determines if the auto_create_user
value exists and is truthy
121 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 121 attribute :auto_create_user |
#email_attribute ⇒ Object
Return this object’s email_attribute
122 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 122 attribute :email_attribute, "mail" |
#email_attribute=(value) ⇒ Object
Set this object’s email_attribute
122 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 122 attribute :email_attribute, "mail" |
#email_attribute? ⇒ Boolean
Determines if the email_attribute
value exists and is truthy
122 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 122 attribute :email_attribute, "mail" |
#enabled ⇒ Object
Return this object’s enabled
114 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 114 attribute :enabled, true |
#enabled=(value) ⇒ Object
Set this object’s enabled
114 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 114 attribute :enabled, true |
#enabled? ⇒ Boolean
Determines if the enabled
value exists and is truthy
114 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 114 attribute :enabled, true |
#key ⇒ Object
Return this object’s key
113 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 113 attribute :key, -> { raise "name missing!" } |
#key=(value) ⇒ Object
Set this object’s key
113 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 113 attribute :key, -> { raise "name missing!" } |
#key? ⇒ Boolean
Determines if the key
value exists and is truthy
113 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 113 attribute :key, -> { raise "name missing!" } |
#ldap_url ⇒ Object
Return this object’s ldap_url
115 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 115 attribute :ldap_url |
#ldap_url=(value) ⇒ Object
Set this object’s ldap_url
115 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 115 attribute :ldap_url |
#ldap_url? ⇒ Boolean
Determines if the ldap_url
value exists and is truthy
115 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 115 attribute :ldap_url |
#manager_dn ⇒ Object
Return this object’s manager_dn
119 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 119 attribute :manager_dn |
#manager_dn=(value) ⇒ Object
Set this object’s manager_dn
119 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 119 attribute :manager_dn |
#manager_dn? ⇒ Boolean
Determines if the manager_dn
value exists and is truthy
119 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 119 attribute :manager_dn |
#manager_password ⇒ Object
Return this object’s manager_password
120 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 120 attribute :manager_password |
#manager_password=(value) ⇒ Object
Set this object’s manager_password
120 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 120 attribute :manager_password |
#manager_password? ⇒ Boolean
Determines if the manager_password
value exists and is truthy
120 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 120 attribute :manager_password |
#search_base ⇒ Object
Return this object’s search_base
117 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 117 attribute :search_base |
#search_base=(value) ⇒ Object
Set this object’s search_base
117 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 117 attribute :search_base |
#search_base? ⇒ Boolean
Determines if the search_base
value exists and is truthy
117 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 117 attribute :search_base |
#search_filter ⇒ Object
Return this object’s search_filter
116 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 116 attribute :search_filter |
#search_filter=(value) ⇒ Object
Set this object’s search_filter
116 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 116 attribute :search_filter |
#search_filter? ⇒ Boolean
Determines if the search_filter
value exists and is truthy
116 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 116 attribute :search_filter |
#search_sub_tree ⇒ Object
Return this object’s search_sub_tree
118 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 118 attribute :search_sub_tree |
#search_sub_tree=(value) ⇒ Object
Set this object’s search_sub_tree
118 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 118 attribute :search_sub_tree |
#search_sub_tree? ⇒ Boolean
Determines if the search_sub_tree
value exists and is truthy
118 |
# File 'lib/artifactory/resources/ldap_setting.rb', line 118 attribute :search_sub_tree |