Ë
    [üàgœ  ã                   ó|   — d Z ddlmZmZ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e	«      Z G d	„ d
e«      Zy)aè  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Oauth
    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.
é    )ÚAnyÚDictÚOptionalÚUnion)Úvalues)ÚInstanceResource)ÚListResource)ÚVersionc                   óB   ‡ — e Zd ZdZdedeeef   fˆ fd„Zdefd„Z	ˆ xZ
S )ÚTokenInstancea]  
    :ivar access_token: Token which carries the necessary information to access a Twilio resource directly.
    :ivar refresh_token: Token which carries the information necessary to get a new access token.
    :ivar id_token: Token which carries the information necessary of user profile.
    :ivar token_type: Token type
    :ivar expires_in:
    ÚversionÚpayloadc                 ó   •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        y )NÚaccess_tokenÚrefresh_tokenÚid_tokenÚ
token_typeÚ
expires_in)ÚsuperÚ__init__Úgetr   r   r   r   r   )Úselfr   r   Ú	__class__s      €úX/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/oauth/v1/token.pyr   zTokenInstance.__init__    sb   ø€ Ü‰Ñ˜Ô!à+2¯;©;°~Ó+FˆÔØ,3¯K©K¸Ó,HˆÔØ'.§{¡{°:Ó'>ˆŒØ)0¯©°\Ó)BˆŒØ)0¯©°\Ó)Bˆ�ó    Úreturnc                  ó   — y)úf
        Provide a friendly representation

        :returns: Machine friendly representation
        z<Twilio.Oauth.V1.TokenInstance>© ©r   s    r   Ú__repr__zTokenInstance.__repr__)   s   € ð 1r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   r   Ústrr   r   r!   Ú__classcell__©r   s   @r   r   r      s2   ø„ ñðC ð C°$°s¸C°x±.õ Cð1˜#÷ 1r   r   c                   ó  ‡ — e Zd Zdefˆ fd„Zej                  ej                  ej                  ej                  ej                  ej                  fdededeee	f   deee	f   deee	f   deee	f   d	eee	f   d
eee	f   de
fd„Zej                  ej                  ej                  ej                  ej                  ej                  fdededeee	f   deee	f   deee	f   deee	f   d	eee	f   d
eee	f   de
fd„Zdefd„Zˆ xZS )Ú	TokenListr   c                 ó2   •— t         ‰| �  |«       d| _        y)zg
        Initialize the TokenList

        :param version: Version that contains the resource

        z/tokenN)r   r   Ú_uri)r   r   r   s     €r   r   zTokenList.__init__5   s   ø€ ô 	‰Ñ˜Ô!àˆ�	r   Ú
grant_typeÚ	client_idÚclient_secretÚcodeÚredirect_uriÚaudiencer   Úscoper   c	                 óþ   — t        j                  ||||||||dœ«      }	t        j                  ddi«      }
d|
d<   d|
d<   | j                  j                  d| j                  |	|
¬«      }t        | j                  |«      S )a°  
        Create the TokenInstance

        :param grant_type: Grant type is a credential representing resource owner's authorization which can be used by client to obtain access token.
        :param client_id: A 34 character string that uniquely identifies this OAuth App.
        :param client_secret: The credential for confidential OAuth App.
        :param code: JWT token related to the authorization code grant type.
        :param redirect_uri: The redirect uri
        :param audience: The targeted audience uri
        :param refresh_token: JWT token related to refresh access token.
        :param scope: The scope of token

        :returns: The created TokenInstance
        ©Ú	GrantTypeÚClientIdÚClientSecretÚCodeÚRedirectUriÚAudienceÚRefreshTokenÚScopeúContent-Typeú!application/x-www-form-urlencodedúapplication/jsonÚAcceptÚPOST©ÚmethodÚuriÚdataÚheaders)r   ÚofÚ_versionÚcreater,   r   ©r   r-   r.   r/   r0   r1   r2   r   r3   rF   rG   r   s               r   rJ   zTokenList.create@   s’   € ô4 �y‰yà'Ø%Ø -ØØ+Ø$Ø -Øñ	ó
ˆô —)‘)˜^Ð-PÐQÓRˆà"Eˆ�Ñà.ˆ�Ñà—-‘-×&Ñ&Ø˜tŸy™y¨t¸Wð 'ó 
ˆô ˜TŸ]™]¨GÓ4Ð4r   c	              ƒ   ó  K  — t        j                  ||||||||dœ«      }	t        j                  ddi«      }
d|
d<   d|
d<   | j                  j                  d| j                  |	|
¬«      ƒ d{  –—† }t        | j                  |«      S 7 Œ­w)	a¿  
        Asynchronously create the TokenInstance

        :param grant_type: Grant type is a credential representing resource owner's authorization which can be used by client to obtain access token.
        :param client_id: A 34 character string that uniquely identifies this OAuth App.
        :param client_secret: The credential for confidential OAuth App.
        :param code: JWT token related to the authorization code grant type.
        :param redirect_uri: The redirect uri
        :param audience: The targeted audience uri
        :param refresh_token: JWT token related to refresh access token.
        :param scope: The scope of token

        :returns: The created TokenInstance
        r5   r>   r?   r@   rA   rB   rC   N)r   rH   rI   Úcreate_asyncr,   r   rK   s               r   rM   zTokenList.create_asyncr   s    è ø€ ô4 �y‰yà'Ø%Ø -ØØ+Ø$Ø -Øñ	ó
ˆô —)‘)˜^Ð-PÐQÓRˆà"Eˆ�Ñà.ˆ�ÑàŸ™×2Ñ2Ø˜tŸy™y¨t¸Wð 3ó 
÷ 
ˆô ˜TŸ]™]¨GÓ4Ð4ð	
ús   ‚A,BÁ.B	Á/Bc                  ó   — y)r   z<Twilio.Oauth.V1.TokenList>r   r    s    r   r!   zTokenList.__repr__¤   s   € ð -r   )r"   r#   r$   r
   r   r   Úunsetr&   r   Úobjectr   rJ   rM   r!   r'   r(   s   @r   r*   r*   3   s›  ø„ ð	 õ 	ð -3¯L©LØ#)§<¡<Ø+1¯<©<Ø'-§|¡|Ø,2¯L©LØ$*§L¡Lñ05àð05ð ð05ð ˜S &˜[Ñ)ð	05ð
 �C˜�KÑ ð05ð ˜C ˜KÑ(ð05ð ˜˜V˜Ñ$ð05ð ˜S &˜[Ñ)ð05ð �S˜&�[Ñ!ð05ð 
ó05ðl -3¯L©LØ#)§<¡<Ø+1¯<©<Ø'-§|¡|Ø,2¯L©LØ$*§L¡Lñ05àð05ð ð05ð ˜S &˜[Ñ)ð	05ð
 �C˜�KÑ ð05ð ˜C ˜KÑ(ð05ð ˜˜V˜Ñ$ð05ð ˜S &˜[Ñ)ð05ð �S˜&�[Ñ!ð05ð 
ó05ðd-˜#÷ -r   r*   N)r%   Útypingr   r   r   r   Útwilio.baser   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer	   Útwilio.base.versionr
   r   r*   r   r   r   ú<module>rV      s9   ðñ÷ .Ó -Ý å :Ý 2Ý 'ô1Ð$ô 1ô8w-�õ w-r   