HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/mysqlsh/lib/python3.8/site-packages/oci/file_storage/models/ldap_bind_account_summary.py
# coding: utf-8
# Copyright (c) 2016, 2025, Oracle and/or its affiliates.  All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.

# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20171215

from .outbound_connector_summary import OutboundConnectorSummary
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel  # noqa: F401
from oci.decorators import init_model_state_from_kwargs


@init_model_state_from_kwargs
class LdapBindAccountSummary(OutboundConnectorSummary):
    """
    Summary information for the LDAP bind account used by the outbound connector.
    """

    def __init__(self, **kwargs):
        """
        Initializes a new LdapBindAccountSummary object with values from keyword arguments. The default value of the :py:attr:`~oci.file_storage.models.LdapBindAccountSummary.connector_type` attribute
        of this class is ``LDAPBIND`` and it should not be changed.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param availability_domain:
            The value to assign to the availability_domain property of this LdapBindAccountSummary.
        :type availability_domain: str

        :param compartment_id:
            The value to assign to the compartment_id property of this LdapBindAccountSummary.
        :type compartment_id: str

        :param id:
            The value to assign to the id property of this LdapBindAccountSummary.
        :type id: str

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this LdapBindAccountSummary.
            Allowed values for this property are: "CREATING", "ACTIVE", "DELETING", "DELETED"
        :type lifecycle_state: str

        :param display_name:
            The value to assign to the display_name property of this LdapBindAccountSummary.
        :type display_name: str

        :param time_created:
            The value to assign to the time_created property of this LdapBindAccountSummary.
        :type time_created: datetime

        :param locks:
            The value to assign to the locks property of this LdapBindAccountSummary.
        :type locks: list[oci.file_storage.models.ResourceLock]

        :param connector_type:
            The value to assign to the connector_type property of this LdapBindAccountSummary.
        :type connector_type: str

        :param freeform_tags:
            The value to assign to the freeform_tags property of this LdapBindAccountSummary.
        :type freeform_tags: dict(str, str)

        :param defined_tags:
            The value to assign to the defined_tags property of this LdapBindAccountSummary.
        :type defined_tags: dict(str, dict(str, object))

        :param system_tags:
            The value to assign to the system_tags property of this LdapBindAccountSummary.
        :type system_tags: dict(str, dict(str, object))

        :param endpoints:
            The value to assign to the endpoints property of this LdapBindAccountSummary.
        :type endpoints: list[oci.file_storage.models.Endpoint]

        :param bind_distinguished_name:
            The value to assign to the bind_distinguished_name property of this LdapBindAccountSummary.
        :type bind_distinguished_name: str

        """
        self.swagger_types = {
            'availability_domain': 'str',
            'compartment_id': 'str',
            'id': 'str',
            'lifecycle_state': 'str',
            'display_name': 'str',
            'time_created': 'datetime',
            'locks': 'list[ResourceLock]',
            'connector_type': 'str',
            'freeform_tags': 'dict(str, str)',
            'defined_tags': 'dict(str, dict(str, object))',
            'system_tags': 'dict(str, dict(str, object))',
            'endpoints': 'list[Endpoint]',
            'bind_distinguished_name': 'str'
        }
        self.attribute_map = {
            'availability_domain': 'availabilityDomain',
            'compartment_id': 'compartmentId',
            'id': 'id',
            'lifecycle_state': 'lifecycleState',
            'display_name': 'displayName',
            'time_created': 'timeCreated',
            'locks': 'locks',
            'connector_type': 'connectorType',
            'freeform_tags': 'freeformTags',
            'defined_tags': 'definedTags',
            'system_tags': 'systemTags',
            'endpoints': 'endpoints',
            'bind_distinguished_name': 'bindDistinguishedName'
        }
        self._availability_domain = None
        self._compartment_id = None
        self._id = None
        self._lifecycle_state = None
        self._display_name = None
        self._time_created = None
        self._locks = None
        self._connector_type = None
        self._freeform_tags = None
        self._defined_tags = None
        self._system_tags = None
        self._endpoints = None
        self._bind_distinguished_name = None
        self._connector_type = 'LDAPBIND'

    @property
    def endpoints(self):
        """
        **[Required]** Gets the endpoints of this LdapBindAccountSummary.
        Array of server endpoints to use when connecting with the LDAP bind account.


        :return: The endpoints of this LdapBindAccountSummary.
        :rtype: list[oci.file_storage.models.Endpoint]
        """
        return self._endpoints

    @endpoints.setter
    def endpoints(self, endpoints):
        """
        Sets the endpoints of this LdapBindAccountSummary.
        Array of server endpoints to use when connecting with the LDAP bind account.


        :param endpoints: The endpoints of this LdapBindAccountSummary.
        :type: list[oci.file_storage.models.Endpoint]
        """
        self._endpoints = endpoints

    @property
    def bind_distinguished_name(self):
        """
        **[Required]** Gets the bind_distinguished_name of this LdapBindAccountSummary.
        The LDAP Distinguished Name of the account.


        :return: The bind_distinguished_name of this LdapBindAccountSummary.
        :rtype: str
        """
        return self._bind_distinguished_name

    @bind_distinguished_name.setter
    def bind_distinguished_name(self, bind_distinguished_name):
        """
        Sets the bind_distinguished_name of this LdapBindAccountSummary.
        The LDAP Distinguished Name of the account.


        :param bind_distinguished_name: The bind_distinguished_name of this LdapBindAccountSummary.
        :type: str
        """
        self._bind_distinguished_name = bind_distinguished_name

    def __repr__(self):
        return formatted_flat_dict(self)

    def __eq__(self, other):
        if other is None:
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        return not self == other