U
    ^g%i                     @   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eeeef d fddZe	ddddZ
d dd	d
Zd dddZedddZedddZed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   Ziso8601_datetimer   r   r   r   _context)selfr   r   	__class__ k/var/www/html/api-medvista/venv/lib/python3.8/site-packages/twilio/rest/accounts/v1/secondary_auth_token.pyr   !   s    z#SecondaryAuthTokenInstance.__init__SecondaryAuthTokenContextreturnc                 C   s   | j dk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   s
   | j  S )r
        Create the SecondaryAuthTokenInstance


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


        :returns: The created SecondaryAuthTokenInstance
        N)r"   create_asyncr!   r   r   r   r&   G   s    z'SecondaryAuthTokenInstance.create_asyncc                 C   s
   | j  S )u
        Deletes the SecondaryAuthTokenInstance


        :returns: True if delete succeeds, False otherwise
        )r"   deleter!   r   r   r   r(   P   s    z!SecondaryAuthTokenInstance.deletec                    s   | j  I dH S )
        Asynchronous coroutine that deletes the SecondaryAuthTokenInstance


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

        :returns: Machine friendly representation
        z/<Twilio.Accounts.V1.SecondaryAuthTokenInstance>r   r!   r   r   r   __repr__b   s    z#SecondaryAuthTokenInstance.__repr__)__name__
__module____qualname____doc__r   r   strr   r   propertyr"   r$   r&   boolr(   r*   r,   __classcell__r   r   r   r   r      s   				r   c                       sh   e Zd Zed fddZedddZedddZedd	d
Z	edddZ
ed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 }t i }d|d< | jjd| j||d}t| j|S )r#   application/jsonAcceptPOSTmethoduridataheaders)r   ofr    r$   r6   r   r   r>   r?   r   r   r   r   r$   x   s    

   z SecondaryAuthTokenContext.createc                    sD   t i }t i }d|d< | jjd| j||dI dH }t| j|S )r%   r8   r9   r:   r;   N)r   r@   r    r&   r6   r   rA   r   r   r   r&      s    

   z&SecondaryAuthTokenContext.create_asyncc                 C   s   t i }| jjd| j|dS )r'   DELETEr<   r=   r?   )r   r@   r    r(   r6   r   r?   r   r   r   r(      s    
z SecondaryAuthTokenContext.deletec                    s$   t i }| jjd| j|dI dH S )r)   rB   rC   N)r   r@   r    r*   r6   rD   r   r   r   r*      s    
  z&SecondaryAuthTokenContext.delete_asyncc                 C   s   dS )r+   z.<Twilio.Accounts.V1.SecondaryAuthTokenContext>r   r!   r   r   r   r,      s    z"SecondaryAuthTokenContext.__repr__)r-   r.   r/   r   r   r   r$   r&   r3   r(   r*   r1   r,   r4   r   r   r   r   r   l   s   
r   c                       sL   e Zd Zed fddZedddZedddZedd	d
Z	  Z
S )SecondaryAuthTokenListr5   c                    s   t  | dS )zt
        Initialize the SecondaryAuthTokenList

        :param version: Version that contains the resource

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

        r   r    r!   r   r   r   r      s    zSecondaryAuthTokenList.getc                 C   s
   t | jS rF   rG   r!   r   r   r   __call__   s    zSecondaryAuthTokenList.__call__c                 C   s   dS )r+   z+<Twilio.Accounts.V1.SecondaryAuthTokenList>r   r!   r   r   r   r,      s    zSecondaryAuthTokenList.__repr__)r-   r.   r/   r   r   r   r   rH   r1   r,   r4   r   r   r   r   rE      s   	rE   N)r0   r   typingr   r   r   Ztwilio.baser   r   Ztwilio.base.instance_contextr   Ztwilio.base.instance_resourcer	   Ztwilio.base.list_resourcer
   Ztwilio.base.versionr   r   r   rE   r   r   r   r   <module>   s   TV