o
    ëÉ¶d)!  ã                   @   s8   d dl mZmZmZ d dlmZ eG dd„ deƒƒZdS )é    )Úformatted_flat_dictÚNONE_SENTINELÚ#value_allowed_none_or_none_sentinel)Úinit_model_state_from_kwargsc                   @   sÜ   e Zd ZdZdZdZdZdZdd„ Ze	dd	„ ƒZ
e
jd
d	„ ƒZ
e	dd„ ƒZejdd„ ƒZe	dd„ ƒZejdd„ ƒZe	dd„ ƒZejdd„ ƒZe	dd„ ƒZejdd„ ƒZe	dd„ ƒZejdd„ ƒZdd„ Zdd„ Zdd„ Zd S )!ÚDbCredentialzœ
    Database credentials are needed for onboarding cloud database to identity.
    The DB credentials are used for DB authentication with the service.
    ÚCREATINGÚACTIVEÚDELETINGÚDELETEDc                 K   sP   dddddddœ| _ ddddd	d
dœ| _d| _d| _d| _d| _d| _d| _dS )aú  
        Initializes a new DbCredential object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

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

        :param user_id:
            The value to assign to the user_id property of this DbCredential.
        :type user_id: str

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

        :param time_expires:
            The value to assign to the time_expires property of this DbCredential.
        :type time_expires: datetime

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this DbCredential.
            Allowed values for this property are: "CREATING", "ACTIVE", "DELETING", "DELETED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_state: str

        :param lifecycle_details:
            The value to assign to the lifecycle_details property of this DbCredential.
        :type lifecycle_details: int

        ÚstrÚdatetimeÚint)ÚidÚuser_idÚtime_createdÚtime_expiresÚlifecycle_stateÚlifecycle_detailsr   ZuserIdZtimeCreatedZtimeExpiresZlifecycleStateZlifecycleDetailsN)Zswagger_typesZattribute_mapÚ_idÚ_user_idÚ_time_createdÚ_time_expiresÚ_lifecycle_stateÚ_lifecycle_details)ÚselfÚkwargs© r   úEusr/lib/python3.10/site-packages/oci/identity/models/db_credential.pyÚ__init__#   s(   !ú
ú	
zDbCredential.__init__c                 C   ó   | j S )zž
        Gets the id of this DbCredential.
        The OCID of the DB credential.


        :return: The id of this DbCredential.
        :rtype: str
        ©r   ©r   r   r   r   r   \   ó   
zDbCredential.idc                 C   ó
   || _ dS )zŸ
        Sets the id of this DbCredential.
        The OCID of the DB credential.


        :param id: The id of this DbCredential.
        :type: str
        Nr    )r   r   r   r   r   r   h   ó   

c                 C   r   )z¼
        Gets the user_id of this DbCredential.
        The OCID of the user the DB credential belongs to.


        :return: The user_id of this DbCredential.
        :rtype: str
        ©r   r!   r   r   r   r   t   r"   zDbCredential.user_idc                 C   r#   )zÂ
        Sets the user_id of this DbCredential.
        The OCID of the user the DB credential belongs to.


        :param user_id: The user_id of this DbCredential.
        :type: str
        Nr%   )r   r   r   r   r   r   €   r$   c                 C   r   )a  
        Gets the time_created of this DbCredential.
        Date and time the `DbCredential` object was created, in the format defined by RFC3339.

        Example: `2016-08-25T21:10:29.600Z`


        :return: The time_created of this DbCredential.
        :rtype: datetime
        ©r   r!   r   r   r   r   Œ   s   zDbCredential.time_createdc                 C   r#   )a'  
        Sets the time_created of this DbCredential.
        Date and time the `DbCredential` object was created, in the format defined by RFC3339.

        Example: `2016-08-25T21:10:29.600Z`


        :param time_created: The time_created of this DbCredential.
        :type: datetime
        Nr&   )r   r   r   r   r   r   š   s   
c                 C   r   )a9  
        Gets the time_expires of this DbCredential.
        Date and time when this credential will expire, in the format defined by RFC3339.
        Null if it never expires.

        Example: `2016-08-25T21:10:29.600Z`


        :return: The time_expires of this DbCredential.
        :rtype: datetime
        ©r   r!   r   r   r   r   ¨   s   zDbCredential.time_expiresc                 C   r#   )aD  
        Sets the time_expires of this DbCredential.
        Date and time when this credential will expire, in the format defined by RFC3339.
        Null if it never expires.

        Example: `2016-08-25T21:10:29.600Z`


        :param time_expires: The time_expires of this DbCredential.
        :type: datetime
        Nr'   )r   r   r   r   r   r   ·   s   
c                 C   r   )a  
        Gets the lifecycle_state of this DbCredential.
        The credential's current state. After creating a DB credential, make sure its `lifecycleState` changes from
        CREATING to ACTIVE before using it.

        Allowed values for this property are: "CREATING", "ACTIVE", "DELETING", "DELETED", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The lifecycle_state of this DbCredential.
        :rtype: str
        )r   r!   r   r   r   r   Æ   s   zDbCredential.lifecycle_statec                 C   s    g d¢}t ||ƒsd}|| _dS )a?  
        Sets the lifecycle_state of this DbCredential.
        The credential's current state. After creating a DB credential, make sure its `lifecycleState` changes from
        CREATING to ACTIVE before using it.


        :param lifecycle_state: The lifecycle_state of this DbCredential.
        :type: str
        )r   r   r	   r
   ZUNKNOWN_ENUM_VALUEN)r   r   )r   r   Zallowed_valuesr   r   r   r   Ö   s   

c                 C   r   )zÍ
        Gets the lifecycle_details of this DbCredential.
        The detailed status of INACTIVE lifecycleState.


        :return: The lifecycle_details of this DbCredential.
        :rtype: int
        ©r   r!   r   r   r   r   æ   r"   zDbCredential.lifecycle_detailsc                 C   r#   )zÝ
        Sets the lifecycle_details of this DbCredential.
        The detailed status of INACTIVE lifecycleState.


        :param lifecycle_details: The lifecycle_details of this DbCredential.
        :type: int
        Nr(   )r   r   r   r   r   r   ò   r$   c                 C   s   t | ƒS ©N)r   r!   r   r   r   Ú__repr__þ   s   zDbCredential.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__  s   zDbCredential.__eq__c                 C   s
   | |k S r)   r   r,   r   r   r   Ú__ne__  s   
zDbCredential.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDr   Úpropertyr   Úsetterr   r   r   r   r   r*   r.   r/   r   r   r   r   r      sD    9











r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r   r   r   r   Ú<module>   s   