
    g                         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	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 - 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.
    )datetime)AnyDictOptionalUnion)deserialize	serializevalues)InstanceResource)ListResource)Versionc                   d   ^  \ rS rSr " S S\5      r S\S\\\	4   4U 4S jjr
S\4S jrS	rU =r$ )
NewApiKeyInstance   c                       \ rS rSrSrSrg)NewApiKeyInstance.Keytype   
restricted N)__name__
__module____qualname____firstlineno__
RESTRICTED__static_attributes__r       f/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/iam/v1/new_api_key.pyKeytyper      s    !
r   r   versionpayloadc                 |  > [         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	        UR                  S5      U l
        g )Nsidfriendly_namedate_createddate_updatedsecretpolicy)super__init__getr"   r#   r   rfc2822_datetimer$   r%   r&   r'   )selfr   r    	__class__s      r   r)   NewApiKeyInstance.__init__&   s    !")++e"4,3KK,H0;0L0LKK'1
 1<0L0LKK'1
 &-[[%:3:;;x3Hr   returnc                     g)N
Provide a friendly representation

:returns: Machine friendly representation
z!<Twilio.Iam.V1.NewApiKeyInstance>r   r,   s    r   __repr__NewApiKeyInstance.__repr__4   s     3r   )r$   r%   r#   r'   r&   r"   )r   r   r   r   objectr   r   r   strr   r)   r3   r   __classcell__r-   s   @r   r   r      sC    "& "I I$sCx. I3# 3 3r   r   c                   B  ^  \ rS rSrS\4U 4S jjr\R                  \R                  \R                  4S\S\	\\
4   S\	S\
4   S\	\
\
4   S	\4
S
 jjr\R                  \R                  \R                  4S\S\	\\
4   S\	S\
4   S\	\
\
4   S	\4
S jjrS	\4S jrSrU =r$ )NewApiKeyList>   r   c                 2   > [         TU ]  U5        SU l        g)zS
Initialize the NewApiKeyList

:param version: Version that contains the resource

z/KeysN)r(   r)   _uri)r,   r   r-   s     r   r)   NewApiKeyList.__init__@   s     	!	r   account_sidr#   key_typer   r'   r/   c                    [         R                  " UUU[        R                  " U5      S.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  XVS9n[        U R                  U5      $ )a  
Create the NewApiKeyInstance

:param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource.
:param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.
:param key_type:
:param policy: The \\`Policy\\` object is a collection that specifies the allowed Twilio permissions for the restricted key. For more information on the permissions available with restricted API keys, refer to the [Twilio documentation](https://www.twilio.com/docs/iam/api-keys/restricted-api-keys#permissions-available-with-restricted-api-keys).

:returns: The created NewApiKeyInstance

AccountSidFriendlyNameKeyTypePolicyContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheaders)r
   ofr	   r5   _versioncreater=   r   r,   r?   r#   r@   r'   rO   rP   r    s           r   rS   NewApiKeyList.createK   s    $ yy) -##**62	
 ))^-PQR"E.--&&tyyt ' 
 !88r   c                 6  #    [         R                  " UUU[        R                  " U5      S.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  XVS9I Sh  vN n[        U R                  U5      $  N7f)	a  
Asynchronously create the NewApiKeyInstance

:param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource.
:param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.
:param key_type:
:param policy: The \\`Policy\\` object is a collection that specifies the allowed Twilio permissions for the restricted key. For more information on the permissions available with restricted API keys, refer to the [Twilio documentation](https://www.twilio.com/docs/iam/api-keys/restricted-api-keys#permissions-available-with-restricted-api-keys).

:returns: The created NewApiKeyInstance
rB   rG   rH   rI   rJ   rK   rL   N)r
   rQ   r	   r5   rR   create_asyncr=   r   rT   s           r   rW   NewApiKeyList.create_asyncq   s     $ yy) -##**62	
 ))^-PQR"E.22tyyt 3 
 
 !88	
s   A:B<B=Bc                     g)r1   z<Twilio.Iam.V1.NewApiKeyList>r   r2   s    r   r3   NewApiKeyList.__repr__   s     /r   )r=   )r   r   r   r   r   r)   r
   unsetr6   r   r5   r   rS   rW   r3   r   r7   r8   s   @r   r:   r:   >   s    	 	 -3LL?E||(.$9$9 S&[)$9 3V;<	$9
 ffn%$9 
$9R -3LL?E||(.$9$9 S&[)$9 3V;<	$9
 ffn%$9 
$9L/# / /r   r:   N)__doc__r   typingr   r   r   r   twilio.baser   r	   r
   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   r:   r   r   r   <module>rb      s@     - - 6 6 : 2 '#3( #3L_/L _/r   