ruạṛ
a ���fj+ � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s e Zd ZdZdZdZdZdZdZdd� Z e d d � �Zejdd � �Ze dd � �Z e jdd � �Z e dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejd d� �Zd!d"� Zd#d$� Zd%d&� Zd'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 ddddddddd�| _ ddddd d ddd�| _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 �strZdatetime�int)�token�id�user_id�description�time_created�time_expires�lifecycle_state�inactive_statusr r ZuserIdr ZtimeCreatedZtimeExpiresZlifecycleStateZinactiveStatusN) Z swagger_typesZ attribute_map�_token�_id�_user_id�_description� _time_created� _time_expires�_lifecycle_state�_inactive_status)�self�kwargs� r �B/usr/lib/python3.9/site-packages/oci/identity/models/auth_token.py�__init__1 s4 )��zAuthToken.__init__c C s | 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 zAuthToken.tokenc C s || _ dS )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 s | j S )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 � s zAuthToken.idc C s || _ dS )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 � s c C s | j S )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 � s zAuthToken.user_idc C s || _ dS )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&