
    d{i~,                         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 ddlmZ  G d d	e      Z G d
 de      Zy)a8  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Organization Public API
    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

    NOTE: This class is auto generated by OpenAPI Generator.
    https://openapi-generator.tech
    Do not edit the class manually.
    )AnyDictOptionalUnion)values)ApiResponse)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      ^/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/preview_iam/v1/token.pyr   zTokenInstance.__init__!   sb    !+2;;~+F,3KK,H'.{{:'>)0\)B)0\)B    returnc                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z$<Twilio.PreviewIam.V1.TokenInstance> r   s    r   __repr__zTokenInstance.__repr__*   s     6r   )__name__
__module____qualname____doc__r   r   strr   r   r"   __classcell__r   s   @r   r   r      s2    C C$sCx. C6# 6r   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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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__6   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                  |	|
      S )z{
        Internal helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        r.   r/   r0   r1   r2   r3   r   r4   Content-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheaders)r   of_versioncreate_with_response_infor-   r   r.   r/   r0   r1   r2   r3   r   r4   r?   r@   s              r   _createzTokenList._createA   s    $ yy(&!. ,$!.	
 ))^-PQR"E.}}66tyytW 7 
 	
r   c	           
      h    | 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
        r6   )rE   r   rB   r   r.   r/   r0   r1   r2   r3   r   r4   r   _s              r   createzTokenList.createi   sH    2 !'%' % 	
A T]]G44r   c	           
          | j                  ||||||||      \  }	}
}t        | j                  |	      }t        ||
|      S )a  
        Create the TokenInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        r6   r?   status_coder@   )rE   r   rB   r   r   r.   r/   r0   r1   r2   r3   r   r4   r   rL   r@   instances                r   create_with_http_infozTokenList.create_with_http_info   sW    2 )-!'%' )5 	)
%g !8k7SSr   c	                    K   t        j                  ||||||||d      }	t        j                  ddi      }
d|
d<   d|
d<   | j                  j                  d| j                  |	|
       d{   S 7 w)	z
        Internal async helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        r6   r7   r8   r9   r:   r;   r<   N)r   rA   rB   create_with_response_info_asyncr-   rD   s              r   _create_asynczTokenList._create_async   s     $ yy(&!. ,$!.	
 ))^-PQR"E.]]BBtyytW C 
 
 	
 
s   A,A5.A3/A5c	           
         K   | 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
        r6   N)rR   r   rB   rG   s              r   create_asynczTokenList.create_async   sX     2 #00!'%' 1 	
 	
A T]]G44	
s   A >A c	           
         K   | j                  ||||||||       d{   \  }	}
}t        | j                  |	      }t        ||
|      S 7 ,w)a  
        Asynchronously create the TokenInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        r6   NrK   )rR   r   rB   r   rM   s                r   create_with_http_info_asyncz%TokenList.create_with_http_info_async  sh     2 /3.@.@!'%' /A 	/
 	)
%g !8k7SS	)
s   AA-Ac                      y)r   z <Twilio.PreviewIam.V1.TokenList>r    r!   s    r   r"   zTokenList.__repr__'  s     2r   )r#   r$   r%   r   r   r   unsetr'   r   objecttuplerE   r   rI   r   rO   rR   rT   rV   r"   r(   r)   s   @r   r+   r+   4   s   	 	 -3LL#)<<+1<<'-||,2LL$*LL&
&
 &
 S&[)	&

 CK &
 CK(&
 V$&
 S&[)&
 S&[!&
 
&
X -3LL#)<<+1<<'-||,2LL$*LL#5#5 #5 S&[)	#5
 CK #5 CK(#5 V$#5 S&[)#5 S&[!#5 
#5R -3LL#)<<+1<<'-||,2LL$*LL$T$T $T S&[)	$T
 CK $T CK($T V$$T S&[)$T S&[!$T 
$TT -3LL#)<<+1<<'-||,2LL$*LL&
&
 &
 S&[)	&

 CK &
 CK(&
 V$&
 S&[)&
 S&[!&
 
&
X -3LL#)<<+1<<'-||,2LL$*LL#5#5 #5 S&[)	#5
 CK #5 CK(#5 V$#5 S&[)#5 S&[!#5 
#5R -3LL#)<<+1<<'-||,2LL$*LL$T$T $T S&[)	$T
 CK $T CK($T V$$T S&[)$T S&[!$T 
$TL2# 2r   r+   N)r&   typingr   r   r   r   twilio.baser   twilio.base.api_responser   twilio.base.instance_resourcer	   twilio.base.list_resourcer
   twilio.base.versionr   r   r+   r    r   r   <module>ra      s<    . -  0 : 2 '6$ 68y2 y2r   