
    g6                         S r SSKJr  SSK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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$ )
NewKeyInstance   a  
:ivar sid: The unique string that that we created to identify the NewKey resource. You will use this as the basic-auth `user` when authenticating to the API.
:ivar friendly_name: The string that you assigned to describe the resource.
:ivar date_created: The date and time in GMT that the API Key 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 new API Key was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
:ivar secret: The secret your application uses to sign Access Tokens and to authenticate to the REST API (you will use this as the basic-auth `password`).  **Note that for security reasons, this field is ONLY returned when the API Key is first created.**
versionpayloadaccount_sidc                 b  > [         TU ]  U5        UR                  S5      U l        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	        SU0U l
        g )Nsidfriendly_namedate_createddate_updatedsecretr   )super__init__getr   r   r   rfc2822_datetimer   r   r   	_solution)selfr   r   r   	__class__s       m/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/api/v2010/account/new_key.pyr   NewKeyInstance.__init__!   s    !")++e"4,3KK,H0;0L0LKK'1
 1<0L0LKK'1
 &-[[%: ;
    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>*NewKeyInstance.__repr__.<locals>.<genexpr>8   s      S<RDA7>>!//<Rs    "z$<Twilio.Api.V2010.NewKeyInstance {}>)joinr   itemsr(   )r   contexts     r    __repr__NewKeyInstance.__repr__2   s6     ((SDNN<P<P<RSS5<<WEEr"   )r   r   r   r   r   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r1   __static_attributes____classcell__r   s   @r    r   r      s>    
 
$sCx. 
s 
"F# F F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$ )
NewKeyList<   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 NewKeyList

: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 be responsible for the new Key resource.

r   z!/Accounts/{account_sid}/Keys.jsonN )r   r   r   r(   _uri)r   r   r   r   s      r    r   NewKeyList.__init__>   s=     	! ;
 8>>PP	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 NewKeyInstance

:param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.

:returns: The created NewKeyInstance
FriendlyNameContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheadersr   r   )r	   of_versioncreaterA   r   r   r   r   rM   rN   r   s        r    rR   NewKeyList.createN   s     yy

 ))^-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 NewKeyInstance

:param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.

:returns: The created NewKeyInstance
rD   rE   rF   rG   rH   rI   rJ   Nr   rO   )r	   rP   rQ   create_asyncrA   r   r   rS   s        r    rV   NewKeyList.create_asyncl   s      yy

 ))^-PQR"E.22tyyt 3 
 
 MM7}0M
 	
	
s   A#B%B&&Bc                     g)r%   z<Twilio.Api.V2010.NewKeyList>r@   )r   s    r    r1   NewKeyList.__repr__   s     /r"   )r   rA   )r3   r4   r5   r6   r   r8   r   r	   unsetr   objectr   rR   rV   r1   r9   r:   r;   s   @r    r=   r=   <   sx    Q Qc Q" 39,,
"3;/
	
> 39,,
"3;/
	
</# / /r"   r=   N)r7   r   typingr   r   r   r   twilio.baser   r	   twilio.base.instance_resourcer
   twilio.base.list_resourcer   twilio.base.versionr   r   r=   r@   r"   r    <module>ra      s?     - - + : 2 '!F% !FHT/ T/r"   