o
    ëÉ¶dj+  ã                   @   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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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 )(Ú	AuthTokenaË  
    An `AuthToken` is an Oracle-generated token string that you can use to authenticate with third-party APIs
    that do not support Oracle Cloud Infrastructure's signature-based authentication. For example, use an `AuthToken`
    to authenticate with a Swift client with the Object Storage Service.

    The auth token is associated with the user's Console login. Auth tokens never expire. A user can have up to two
    auth tokens at a time.

    **Note:** The token is always an Oracle-generated string; you can't change it to a string of your choice.

    For more information, see `Managing User Credentials`__.

    __ https://docs.cloud.oracle.com/Content/Identity/access/managing-user-credentials.htm
    ÚCREATINGÚACTIVEÚINACTIVEÚDELETINGÚDELETEDc              	   K   sd   dddddd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 AuthToken object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param token:
            The value to assign to the token property of this AuthToken.
        :type token: str

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

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

        :param description:
            The value to assign to the description property of this AuthToken.
        :type description: str

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

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

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

        :param inactive_status:
            The value to assign to the inactive_status property of this AuthToken.
        :type inactive_status: int

        ÚstrÚdatetimeÚint)ÚtokenÚidÚuser_idÚdescriptionÚtime_createdÚtime_expiresÚlifecycle_stateÚinactive_statusr   r   ZuserIdr   ZtimeCreatedZtimeExpiresZlifecycleStateZinactiveStatusN)
Zswagger_typesZattribute_mapÚ_tokenÚ_idÚ_user_idÚ_descriptionÚ_time_createdÚ_time_expiresÚ_lifecycle_stateÚ_inactive_status)ÚselfÚkwargs© r!   úBusr/lib/python3.10/site-packages/oci/identity/models/auth_token.pyÚ__init__1   s4   )øø
zAuthToken.__init__c                 C   ó   | j S )a  
        Gets the token of this AuthToken.
        The auth token. The value is available only in the response for `CreateAuthToken`, and not
        for `ListAuthTokens` or `UpdateAuthToken`.


        :return: The token of this AuthToken.
        :rtype: str
        ©r   ©r   r!   r!   r"   r   x   s   zAuthToken.tokenc                 C   ó
   || _ dS )a  
        Sets the token of this AuthToken.
        The auth token. The value is available only in the response for `CreateAuthToken`, and not
        for `ListAuthTokens` or `UpdateAuthToken`.


        :param token: The token of this AuthToken.
        :type: str
        Nr%   )r   r   r!   r!   r"   r   …   s   
c                 C   r$   )z•
        Gets the id of this AuthToken.
        The OCID of the auth token.


        :return: The id of this AuthToken.
        :rtype: str
        ©r   r&   r!   r!   r"   r   ’   ó   
zAuthToken.idc                 C   r'   )z–
        Sets the id of this AuthToken.
        The OCID of the auth token.


        :param id: The id of this AuthToken.
        :type: str
        Nr(   )r   r   r!   r!   r"   r   ž   ó   

c                 C   r$   )z³
        Gets the user_id of this AuthToken.
        The OCID of the user the auth token belongs to.


        :return: The user_id of this AuthToken.
        :rtype: str
        ©r   r&   r!   r!   r"   r   ª   r)   zAuthToken.user_idc                 C   r'   )z¹
        Sets the user_id of this AuthToken.
        The OCID of the user the auth token belongs to.


        :param user_id: The user_id of this AuthToken.
        :type: str
        Nr+   )r   r   r!   r!   r"   r   ¶   r*   c                 C   r$   )aD  
        Gets the description of this AuthToken.
        The description you assign to the auth token. Does not have to be unique, and it's changeable.

        (For tenancies that support identity domains) You can have an empty description.


        :return: The description of this AuthToken.
        :rtype: str
        ©r   r&   r!   r!   r"   r   Â   ó   zAuthToken.descriptionc                 C   r'   )aN  
        Sets the description of this AuthToken.
        The description you assign to the auth token. Does not have to be unique, and it's changeable.

        (For tenancies that support identity domains) You can have an empty description.


        :param description: The description of this AuthToken.
        :type: str
        Nr,   )r   r   r!   r!   r"   r   Ð   ó   
c                 C   r$   )a  
        Gets the time_created of this AuthToken.
        Date and time the `AuthToken` object was created, in the format defined by RFC3339.

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


        :return: The time_created of this AuthToken.
        :rtype: datetime
        ©r   r&   r!   r!   r"   r   Þ   r-   zAuthToken.time_createdc                 C   r'   )a  
        Sets the time_created of this AuthToken.
        Date and time the `AuthToken` object was created, in the format defined by RFC3339.

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


        :param time_created: The time_created of this AuthToken.
        :type: datetime
        Nr/   )r   r   r!   r!   r"   r   ì   r.   c                 C   r$   )a3  
        Gets the time_expires of this AuthToken.
        Date and time when this auth token 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 AuthToken.
        :rtype: datetime
        ©r   r&   r!   r!   r"   r   ú   s   zAuthToken.time_expiresc                 C   r'   )a>  
        Sets the time_expires of this AuthToken.
        Date and time when this auth token 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 AuthToken.
        :type: datetime
        Nr0   )r   r   r!   r!   r"   r   	  s   
c                 C   r$   )a   
        Gets the lifecycle_state of this AuthToken.
        The token's current state. After creating an auth token, make sure its `lifecycleState` changes from
        CREATING to ACTIVE before using it.

        Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "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 AuthToken.
        :rtype: str
        )r   r&   r!   r!   r"   r     s   zAuthToken.lifecycle_statec                 C   s    g d¢}t ||ƒsd}|| _dS )a2  
        Sets the lifecycle_state of this AuthToken.
        The token's current state. After creating an auth token, make sure its `lifecycleState` changes from
        CREATING to ACTIVE before using it.


        :param lifecycle_state: The lifecycle_state of this AuthToken.
        :type: str
        )r   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 inactive_status of this AuthToken.
        The detailed status of INACTIVE lifecycleState.


        :return: The inactive_status of this AuthToken.
        :rtype: int
        ©r   r&   r!   r!   r"   r   8  r)   zAuthToken.inactive_statusc                 C   r'   )zÑ
        Sets the inactive_status of this AuthToken.
        The detailed status of INACTIVE lifecycleState.


        :param inactive_status: The inactive_status of this AuthToken.
        :type: int
        Nr1   )r   r   r!   r!   r"   r   D  r*   c                 C   s   t | ƒS ©N)r   r&   r!   r!   r"   Ú__repr__P  s   zAuthToken.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr!   r!   r"   Ú__eq__S  s   zAuthToken.__eq__c                 C   s
   | |k S r2   r!   r5   r!   r!   r"   Ú__ne__Y  s   
zAuthToken.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_INACTIVEZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDr#   Úpropertyr   Úsetterr   r   r   r   r   r   r   r3   r7   r8   r!   r!   r!   r"   r      sV    G















r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r!   r!   r!   r"   Ú<module>   s   