
    p h                         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dS )a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Iam
    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                   H     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                 N   t                                          |           |                    d          | _        |                    d          | _        |                    d          | _        |                    d          | _        |                    d          | _        d S )Naccess_tokenrefresh_tokenid_token
token_type
expires_in)super__init__getr   r   r   r   r   )selfr   r   	__class__s      T/var/www/html/Sam_Eipo/venv/lib/python3.11/site-packages/twilio/rest/iam/v1/token.pyr   zTokenInstance.__init__    s    !!!+2;;~+F+F,3KK,H,H'.{{:'>'>)0\)B)B)0\)B)B    returnc                     dS )f
        Provide a friendly representation

        :returns: Machine friendly representation
        z<Twilio.Iam.V1.TokenInstance> r   s    r   __repr__zTokenInstance.__repr__)   s
     /.r   )__name__
__module____qualname____doc__r
   r   strr   r   r!   __classcell__r   s   @r   r   r      s         C C$sCx. C C C C C C/# / / / / / / / /r   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                 X    t                                          |           d| _        dS )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                            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
        r-   r.   r/   r0   r1   r2   r   r3   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   r>   r?   r   s               r   rB   zTokenList.create@   s    4 y(&!. ,$!.	 	
 
 )^-PQRR"E.-&&tytW ' 
 
 T]G444r   c	                    K   t          j        ||||||||d          }	t          j        ddi          }
d|
d<   d|
d<   | j                            d| j        |	|
           d{V }t          | j        |          S )	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   r6   r7   r8   r9   r:   r;   N)r   r@   rA   create_asyncr,   r   rC   s               r   rE   zTokenList.create_asyncr   s      4 y(&!. ,$!.	 	
 
 )^-PQRR"E.22tytW 3 
 
 
 
 
 
 
 
 T]G444r   c                     dS )r   z<Twilio.Iam.V1.TokenList>r   r    s    r   r!   zTokenList.__repr__   s
     +*r   )r"   r#   r$   r
   r   r   unsetr&   r   objectr   rB   rE   r!   r'   r(   s   @r   r*   r*   3   s       	 	 	 	 	 	 	 -3L#)<+1<'-|,2L$*L05 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 05 05 05l -3L#)<+1<'-|,2L$*L05 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 05 05 05d+# + + + + + + + +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>rN      s     . - - - - - - - - - - -       : : : : : : 2 2 2 2 2 2 ' ' ' ' ' '/ / / / /$ / / /8w+ w+ w+ w+ w+ w+ w+ w+ w+ w+r   