Ë
    [üàg\  ã                   ó�   — 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       €úa/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/api/v2010/account/token.pyr   zTokenInstance.__init__#   s´   ø€ Ü‰Ñ˜Ô!à*1¯+©+°mÓ*DˆÔÜ0;×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔô 1<×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔð 18·±¸MÓ0JˆÔØ'.§{¡{°:Ó'>ˆŒØ")§+¡+¨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±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùs   ‚!z#<Twilio.Api.V2010.TokenInstance {}>)Újoinr   Úitemsr(   )r   Úcontexts     r!   Ú__repr__zTokenInstance.__repr__6   s6   € ð —(‘(ÑS¸D¿N¹N×<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   ø„ ñð
 ð 
°$°s¸C°x±.ð 
È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×@Ñ@ÑRÀ4Ç>Á>Ñ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�   € ô �y‰yà�sðó
ˆô
 —)‘)˜^Ð-PÐQÓRˆà"Eˆ�Ñà.ˆ�Ñà—-‘-×&Ñ&Ø˜tŸy™y¨t¸Wð 'ó 
ˆô Ø�M‰M˜7°·±¸}Ñ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�   è ø€ ô �y‰yà�sðó
ˆô
 —)‘)˜^Ð-PÐQÓRˆà"Eˆ�Ñà.ˆ�ÑàŸ™×2Ñ2Ø˜tŸy™y¨t¸Wð 3ó 
÷ 
ˆô Ø�M‰M˜7°·±¸}Ñ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"   