
    g\                         S r SSKJr  SSKJrJrJrJrJr  SSKJ	r	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
___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

 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                   T   ^  \ rS rSrSrS\S\\\4   S\4U 4S jjr	S\4S jr
S	rU =r$ )
TokenInstance   a  
: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U ]  U5        UR                  S5      U l        [        R
                  " UR                  S5      5      U l        [        R
                  " UR                  S5      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        SU0U l        g )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       k/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/api/v2010/account/token.pyr   TokenInstance.__init__#   s    !*1++m*D0;0L0LKK'1
 1<0L0LKK'1
 18M0J'.{{:'>")++e"4'.{{:'> ;
    returnc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )N
Provide a friendly representation

:returns: Machine friendly representation
 c              3   H   #    U  H  u  pS R                  X5      v   M     g7f)z{}={}N)format).0kvs      r"   	<genexpr>)TokenInstance.__repr__.<locals>.<genexpr><   s      S<RDA7>>!//<Rs    "z#<Twilio.Api.V2010.TokenInstance {}>)joinr   itemsr*   )r    contexts     r"   __repr__TokenInstance.__repr__6   s6     ((SDNN<P<P<RSS4;;GDDr$   )r   r   r   r   r   r   r   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r3   __static_attributes____classcell__r!   s   @r"   r   r      s>    
 
$sCx. 
s 
&E# E Er$   r   c                      ^  \ rS rSrS\S\4U 4S jjr\R                  4S\	\
\4   S\4S jjr\R                  4S\	\
\4   S\4S jjrS\4S	 jrS
rU =r$ )	TokenList@   r   r   c                 x   > [         TU ]  U5        SU0U l        SR                  " S0 U R                  D6U l        g)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   TokenList.__init__B   s=     	! ;
 :@@R4>>R	r$   r   r%   c                    [         R                  " SU05      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  X#S9n[        U R                  X@R                  S   S	9$ )
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createrC   r   r   r    r   rO   rP   r   s        r"   rT   TokenList.createR   s     yys

 ))^-PQR"E.--&&tyyt ' 
 MM7}0M
 	
r$   c                   #    [         R                  " SU05      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  X#S9I Sh  vN n[        U R                  X@R                  S	   S
9$  N%7f)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
rF   rG   rH   rI   rJ   rK   rL   Nr   rQ   )r
   rR   rS   create_asyncrC   r   r   rU   s        r"   rX   TokenList.create_asyncn   s      yys

 ))^-PQR"E.22tyyt 3 
 
 MM7}0M
 	
	
s   A#B%B&&Bc                     g)r'   z<Twilio.Api.V2010.TokenList>rB   )r    s    r"   r3   TokenList.__repr__   s     .r$   )r   rC   )r5   r6   r7   r8   r   r:   r   r
   unsetr   intobjectr   rT   rX   r3   r;   r<   r=   s   @r"   r?   r?   @   sv    S Sc S  06|| 
%V, 
 
: )/
f%
	
<.# . .r$   r?   N)r9   r   typingr   r   r   r   r   twilio.baser	   r
   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   r?   rB   r$   r"   <module>rd      s?     3 3 + : 2 '%E$ %EPR. R.r$   