
    m>h\                         d Z ddlmZ ddlmZmZ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  G d d	e      Z G d
 de      Zy)a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Api
    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ListOptionalUnion)deserializevalues)InstanceResource)ListResource)Versionc                   F     e Zd ZdZdedeeef   def fdZdefdZ	 xZ
S )TokenInstancea&  
    :ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Token resource.
    :ivar date_created: The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
    :ivar date_updated: The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
    :ivar ice_servers: An array representing the ephemeral credentials and the STUN and TURN server URIs.
    :ivar password: The temporary password that the username will use when authenticating with Twilio.
    :ivar ttl: The duration in seconds for which the username and password are valid.
    :ivar username: The temporary username that uniquely identifies a Token.
    versionpayloadaccount_sidc                    t         |   |       |j                  d      | _        t	        j
                  |j                  d            | _        t	        j
                  |j                  d            | _        |j                  d      | _        |j                  d      | _	        |j                  d      | _
        |j                  d      | _        d|i| _        y )Nr   date_createddate_updatedice_serverspasswordttlusername)super__init__getr   r	   rfc2822_datetimer   r   r   r   r   r   	_solution)selfr   r   r   	__class__s       g/var/www/html/DP/alpha_backend/venv/lib/python3.12/site-packages/twilio/rest/api/v2010/account/token.pyr   zTokenInstance.__init__#   s    !*1++m*D0;0L0LKK'1
 1<0L0LKK'1
 18M0J'.{{:'>")++e"4'.{{:'> ;
    returnc                     dj                  d | j                  j                         D              }dj                  |      S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   F   K   | ]  \  }}d j                  ||        yw)z{}={}N)format).0kvs      r!   	<genexpr>z)TokenInstance.__repr__.<locals>.<genexpr><   s"     S<RDAq7>>!Q/<Rs   !z#<Twilio.Api.V2010.TokenInstance {}>)joinr   itemsr(   )r   contexts     r!   __repr__zTokenInstance.__repr__6   s6     ((SDNN<P<P<RSS4;;GDDr"   )__name__
__module____qualname____doc__r   r   strr   r   r0   __classcell__r    s   @r!   r   r      s8    
 
$sCx. 
s 
&E# Er"   r   c                        e Zd Zdedef fdZej                  fdee	e
f   defdZej                  fdee	e
f   defdZdefdZ xZS )		TokenListr   r   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the TokenList

        :param version: Version that contains the resource
        :param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource.

        r   z#/Accounts/{account_sid}/Tokens.jsonN )r   r   r   r(   _uri)r   r   r   r    s      r!   r   zTokenList.__init__B   sA     	! ;
 A9@@R4>>R	r"   r   r#   c                    t        j                  d|i      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||      }t        | j                  || j                  d   	      S )
z
        Create the TokenInstance

        :param ttl: The duration in seconds for which the generated credentials are valid. The default value is 86400 (24 hours).

        :returns: The created TokenInstance
        TtlContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheadersr   r   )r
   of_versioncreater<   r   r   r   r   rG   rH   r   s        r!   rL   zTokenList.createR   s     yys

 ))^-PQR"E.--&&tyytW ' 
 MM7}0M
 	
r"   c                 *  K   t        j                  d|i      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  || j                  d	   
      S 7 )w)z
        Asynchronously create the TokenInstance

        :param ttl: The duration in seconds for which the generated credentials are valid. The default value is 86400 (24 hours).

        :returns: The created TokenInstance
        r>   r?   r@   rA   rB   rC   rD   Nr   rI   )r
   rJ   rK   create_asyncr<   r   r   rM   s        r!   rO   zTokenList.create_asyncn   s      yys

 ))^-PQR"E.22tyytW 3 
 
 MM7}0M
 	
	
s   A%B'B(*Bc                      y)r%   z<Twilio.Api.V2010.TokenList>r;   )r   s    r!   r0   zTokenList.__repr__   s     .r"   )r1   r2   r3   r   r5   r   r
   unsetr   intobjectr   rL   rO   r0   r6   r7   s   @r!   r9   r9   @   sq    S Sc S  06|| 
%V, 
 
: )/
f%
	
<.# .r"   r9   N)r4   r   typingr   r   r   r   r   twilio.baser	   r
   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   r9   r;   r"   r!   <module>rY      s?     3 3 + : 2 '%E$ %EPR. R.r"   