o
    f>h                     @   s   d Z ddlmZ ddlmZmZmZ ddlmZmZ ddl	m
Z
 ddlmZ ddlmZ ddlmZ G d	d
 d
eZG dd de
ZG dd deZdS )a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Accounts
    This is the public Twilio REST API.

    NOTE: This class is auto generated by OpenAPI Generator.
    https://openapi-generator.tech
    Do not edit the class manually.
    )datetime)AnyDictOptional)deserializevalues)InstanceContext)InstanceResource)ListResource)Versionc                       s~   e Zd ZdZdedeeef f fddZe	ddd	Z
dd
dZdddZdefddZdefddZdefddZ  ZS )SecondaryAuthTokenInstancea  
    :ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that the secondary Auth Token was created for.
    :ivar date_created: The date and time in UTC when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    :ivar date_updated: The date and time in UTC when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    :ivar secondary_auth_token: The generated secondary Auth Token that can be used to authenticate future API requests.
    :ivar url: The URI for this resource, relative to `https://accounts.twilio.com`
    versionpayloadc                    s^   t  | |d| _t|d| _t|d| _|d| _|d| _	d | _
d S )Naccount_siddate_createddate_updatedsecondary_auth_tokenurl)super__init__getr   r   iso8601_datetimer   r   r   r   _context)selfr   r   	__class__ _/var/www/html/venv/lib/python3.10/site-packages/twilio/rest/accounts/v1/secondary_auth_token.pyr   !   s   
z#SecondaryAuthTokenInstance.__init__returnSecondaryAuthTokenContextc                 C   s   | j du rt| j| _ | j S )z
        Generate an instance context for the instance, the context is capable of
        performing various actions. All instance actions are proxied to the context

        :returns: SecondaryAuthTokenContext for this SecondaryAuthTokenInstance
        N)r   r   _versionr   r   r   r   _proxy0   s
   
z!SecondaryAuthTokenInstance._proxyc                 C   
   | j  S )r
        Create the SecondaryAuthTokenInstance


        :returns: The created SecondaryAuthTokenInstance
        )r"   creater!   r   r   r   r%   >      
z!SecondaryAuthTokenInstance.createc                       | j  I dH S )
        Asynchronous coroutine to create the SecondaryAuthTokenInstance


        :returns: The created SecondaryAuthTokenInstance
        N)r"   create_asyncr!   r   r   r   r)   G      z'SecondaryAuthTokenInstance.create_asyncc                 C   r#   )u
        Deletes the SecondaryAuthTokenInstance


        :returns: True if delete succeeds, False otherwise
        )r"   deleter!   r   r   r   r,   P   r&   z!SecondaryAuthTokenInstance.deletec                    r'   )
        Asynchronous coroutine that deletes the SecondaryAuthTokenInstance


        :returns: True if delete succeeds, False otherwise
        N)r"   delete_asyncr!   r   r   r   r.   Y   r*   z'SecondaryAuthTokenInstance.delete_asyncc                 C      dS )f
        Provide a friendly representation

        :returns: Machine friendly representation
        z/<Twilio.Accounts.V1.SecondaryAuthTokenInstance>r   r!   r   r   r   __repr__b      z#SecondaryAuthTokenInstance.__repr__)r   r   )r   r   )__name__
__module____qualname____doc__r   r   strr   r   propertyr"   r%   r)   boolr,   r.   r1   __classcell__r   r   r   r   r      s    

				r   c                       sh   e Zd Zdef fddZdefddZdefddZdefd	d
Z	defddZ
defddZ  ZS )r   r   c                    s   t  | d| _dS )zv
        Initialize the SecondaryAuthTokenContext

        :param version: Version that contains the resource
        z/AuthTokens/SecondaryN)r   r   _urir   r   r   r   r   r   n   s   
z"SecondaryAuthTokenContext.__init__r   c                 C   s*   t i }| jjd| j|d}t| j|S )r$   POSTmethoduridata)r   ofr    r%   r;   r   r   rA   r   r   r   r   r%   x   s   
z SecondaryAuthTokenContext.createc                    s2   t i }| jjd| j|dI dH }t| j|S )r(   r=   r>   N)r   rB   r    r)   r;   r   rC   r   r   r   r)      s   
z&SecondaryAuthTokenContext.create_asyncc                 C   s   t i }| jjd| j|dS )r+   DELETEr?   r@   headers)r   rB   r    r,   r;   r   rF   r   r   r   r,      s   
z SecondaryAuthTokenContext.deletec                    s&   t i }| jjd| j|dI dH S )r-   rD   rE   N)r   rB   r    r.   r;   rG   r   r   r   r.      s
   
z&SecondaryAuthTokenContext.delete_asyncc                 C   r/   )r0   z.<Twilio.Accounts.V1.SecondaryAuthTokenContext>r   r!   r   r   r   r1      r2   z"SecondaryAuthTokenContext.__repr__)r3   r4   r5   r   r   r   r%   r)   r9   r,   r.   r7   r1   r:   r   r   r   r   r   l   s    
r   c                       sL   e Zd Zdef fddZdefddZdefddZdefd	d
Z	  Z
S )SecondaryAuthTokenListr   c                    s   t  | dS )zt
        Initialize the SecondaryAuthTokenList

        :param version: Version that contains the resource

        N)r   r   r<   r   r   r   r      s   zSecondaryAuthTokenList.__init__r   c                 C   
   t | jS z9
        Constructs a SecondaryAuthTokenContext

        r   r    r!   r   r   r   r         
zSecondaryAuthTokenList.getc                 C   rI   rJ   rK   r!   r   r   r   __call__   rL   zSecondaryAuthTokenList.__call__c                 C   r/   )r0   z+<Twilio.Accounts.V1.SecondaryAuthTokenList>r   r!   r   r   r   r1      s   zSecondaryAuthTokenList.__repr__)r3   r4   r5   r   r   r   r   rM   r7   r1   r:   r   r   r   r   rH      s
    	rH   N)r6   r   typingr   r   r   twilio.baser   r   twilio.base.instance_contextr   twilio.base.instance_resourcer	   twilio.base.list_resourcer
   twilio.base.versionr   r   r   rH   r   r   r   r   <module>   s    TL