Class: Ansible::Ruby::Modules::Ldap_attr

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/net_tools/ldap/ldap_attr.rb

Overview

Add or remove LDAP attribute values.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#nameString

Returns The name of the attribute to modify.

Returns:

  • (String)

    The name of the attribute to modify.



12
# File 'lib/ansible/ruby/modules/generated/net_tools/ldap/ldap_attr.rb', line 12

attribute :name

#state:present, ...

Returns The state of the attribute values. If C(present), all given values will be added if they’re missing. If C(absent), all given values will be removed if present. If C(exact), the set of values will be forced to exactly those provided and no others. If I(state=exact) and I(value) is an empty list, all values for this attribute will be removed.

Returns:

  • (:present, :absent, :exact, nil)

    The state of the attribute values. If C(present), all given values will be added if they’re missing. If C(absent), all given values will be removed if present. If C(exact), the set of values will be forced to exactly those provided and no others. If I(state=exact) and I(value) is an empty list, all values for this attribute will be removed.



16
# File 'lib/ansible/ruby/modules/generated/net_tools/ldap/ldap_attr.rb', line 16

attribute :state

#valuesArray<String>, String

Returns The value(s) to add or remove. This can be a string or a list of strings. The complex argument format is required in order to pass a list of strings (see examples).

Returns:

  • (Array<String>, String)

    The value(s) to add or remove. This can be a string or a list of strings. The complex argument format is required in order to pass a list of strings (see examples).



20
# File 'lib/ansible/ruby/modules/generated/net_tools/ldap/ldap_attr.rb', line 20

attribute :values