
    g                      |    S r SSKJrJrJrJr  SSKJr  SSKJ	r	  SSK
Jr  SSKJr   " S S\	5      r " S	 S
\5      rg)a  
 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)InstanceResource)ListResource)Versionc                   P   ^  \ rS rSrSrS\S\\\4   4U 4S jjr	S\4S jr
SrU =r$ )	TokenInstance   aE  
: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U ]  U5        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        g )Naccess_tokenrefresh_tokenid_token
token_type
expires_in)super__init__getr   r   r   r   r   )selfr   r   	__class__s      h/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/preview_iam/v1/token.pyr   TokenInstance.__init__    sb    !+2;;~+F,3KK,H'.{{:'>)0\)B)0\)B    returnc                     g)N
Provide a friendly representation

:returns: Machine friendly representation
z$<Twilio.PreviewIam.V1.TokenInstance> r   s    r   __repr__TokenInstance.__repr__)   s     6r   )r   r   r   r   r   )__name__
__module____qualname____firstlineno____doc__r
   r   strr   r   r#   __static_attributes____classcell__r   s   @r   r   r      s7    C C$sCx. C6# 6 6r   r   c                   "  ^  \ rS rSrS\4U 4S jjr\R                  \R                  \R                  \R                  \R                  \R                  4S\S\S\	\\
4   S\	\\
4   S\	\\
4   S	\	\\
4   S
\	\\
4   S\	\\
4   S\4S jjr\R                  \R                  \R                  \R                  \R                  \R                  4S\S\S\	\\
4   S\	\\
4   S\	\\
4   S	\	\\
4   S
\	\\
4   S\	\\
4   S\4S jjrS\4S jrSrU =r$ )	TokenList3   r   c                 2   > [         TU ]  U5        SU l        g)zO
Initialize the TokenList

:param version: Version that contains the resource

z/tokenN)r   r   _uri)r   r   r   s     r   r   TokenList.__init__5   s     	!	r   
grant_type	client_idclient_secretcoderedirect_uriaudiencer   scoper   c	                     [         R                  " UUUUUUUUS.5      n	[         R                  " SS05      n
SU
S'   SU
S'   U R                  R                  SU R                  XS9n[        U R                  U5      $ )aX  
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
r4   r5   r6   r7   r8   r9   r   r:   Content-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheaders)r   of_versioncreater2   r   r   r4   r5   r6   r7   r8   r9   r   r:   rE   rF   r   s               r   rI   TokenList.create@   s    4 yy(&!. ,$!.	
 ))^-PQR"E.--&&tyyt ' 
 T]]G44r   c	                   #    [         R                  " UUUUUUUUS.5      n	[         R                  " SS05      n
SU
S'   SU
S'   U R                  R                  SU R                  XS9I Sh  vN n[        U R                  U5      $  N7f)	ag  
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
r<   r=   r>   r?   r@   rA   rB   N)r   rG   rH   create_asyncr2   r   rJ   s               r   rM   TokenList.create_asyncr   s     4 yy(&!. ,$!.	
 ))^-PQR"E.22tyyt 3 
 
 T]]G44	
s   A*B	,B-B	c                     g)r    z <Twilio.PreviewIam.V1.TokenList>r!   r"   s    r   r#   TokenList.__repr__   s     2r   )r2   )r%   r&   r'   r(   r
   r   r   unsetr*   r   objectr   rI   rM   r#   r+   r,   r-   s   @r   r/   r/   3   s   	 	 -3LL#)<<+1<<'-||,2LL$*LL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5l -3LL#)<<+1<<'-||,2LL$*LL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5d2# 2 2r   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>rX      s9    . -  : 2 '6$ 68w2 w2r   