Ë
    [üàgó  ã                   ó�   — d Z ddlmZ ddlmZmZmZmZ ddlmZm	Z	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)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                   óV   ‡ — e Zd Z G d„ de«      Z	 dedeeef   fˆ fd„Z	defd„Z
ˆ xZS )ÚNewApiKeyInstancec                   ó   — e Zd ZdZy)úNewApiKeyInstance.KeytypeÚ
restrictedN)Ú__name__Ú
__module__Ú__qualname__Ú
RESTRICTED© ó    ú\/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/iam/v1/new_api_key.pyÚKeytyper      s   „ Ø!‰
r   r   ÚversionÚpayloadc                 óx  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        t        j                  |j                  d«      «      | _        t        j                  |j                  d«      «      | _        |j                  d«      | _	        |j                  d«      | _
        y )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%   zNewApiKeyInstance.__init__&   s“   ø€ Ü‰Ñ˜Ô!à")§+¡+¨eÓ"4ˆŒØ,3¯K©K¸Ó,HˆÔÜ0;×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔô 1<×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔð &-§[¡[°Ó%:ˆŒØ3:·;±;¸xÓ3Hˆ�r   Úreturnc                  ó   — y)úf
        Provide a friendly representation

        :returns: Machine friendly representation
        z!<Twilio.Iam.V1.NewApiKeyInstance>r   ©r(   s    r   Ú__repr__zNewApiKeyInstance.__repr__4   s   € ð 3r   )r   r   r   Úobjectr   r   r   Ústrr   r%   r.   Ú__classcell__©r)   s   @r   r   r      s>   ø„ ô"�&ô "ððI ð I°$°s¸C°x±.õ Ið3˜#÷ 3r   r   c                   ó,  ‡ — e Zd Zdefˆ fd„Zej                  ej                  ej                  fdedeee	f   dede	f   dee	e	f   de
f
d	„Zej                  ej                  ej                  fdedeee	f   dede	f   dee	e	f   de
f
d
„Zdefd„Zˆ xZS )ÚNewApiKeyListr   c                 ó2   •— t         ‰| �  |«       d| _        y)zk
        Initialize the NewApiKeyList

        :param version: Version that contains the resource

        z/KeysN)r$   r%   Ú_uri)r(   r   r)   s     €r   r%   zNewApiKeyList.__init__@   s   ø€ ô 	‰Ñ˜Ô!àˆ�	r   Úaccount_sidr   Úkey_typer   r#   r*   c                 ó  — t        j                  |||t        j                  |«      dœ«      }t        j                  ddi«      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  |«      S )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	   r/   Ú_versionÚcreater6   r   ©r(   r7   r   r8   r#   rG   rH   r   s           r   rK   zNewApiKeyList.createK   s‘   € ô$ �y‰yà)Ø -Ø#Ü#×*Ñ*¨6Ó2ñ	ó
ˆô —)‘)˜^Ð-PÐQÓRˆà"Eˆ�Ñà.ˆ�Ñà—-‘-×&Ñ&Ø˜tŸy™y¨t¸Wð 'ó 
ˆô ! §¡°Ó8Ð8r   c              ƒ   ó8  K  — t        j                  |||t        j                  |«      dœ«      }t        j                  ddi«      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      ƒ d{  –—† }t        | j                  |«      S 7 Œ­w)	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
        r:   r?   r@   rA   rB   rC   rD   N)r
   rI   r	   r/   rJ   Úcreate_asyncr6   r   rL   s           r   rN   zNewApiKeyList.create_asyncq   sŸ   è ø€ ô$ �y‰yà)Ø -Ø#Ü#×*Ñ*¨6Ó2ñ	ó
ˆô —)‘)˜^Ð-PÐQÓRˆà"Eˆ�Ñà.ˆ�ÑàŸ™×2Ñ2Ø˜tŸy™y¨t¸Wð 3ó 
÷ 
ˆô ! §¡°Ó8Ð8ð	
ús   ‚A;BÁ=BÁ>Bc                  ó   — y)r,   z<Twilio.Iam.V1.NewApiKeyList>r   r-   s    r   r.   zNewApiKeyList.__repr__—   s   € ð /r   )r   r   r   r   r%   r
   Úunsetr0   r   r/   r   rK   rN   r.   r1   r2   s   @r   r4   r4   >   sï   ø„ ð	 õ 	ð -3¯L©LØ?E¿|¹|Ø(.¯©ñ$9àð$9ð ˜S &˜[Ñ)ð$9ð Ð3°VÐ;Ñ<ð	$9ð
 �f˜f�nÑ%ð$9ð 
ó$9ðR -3¯L©LØ?E¿|¹|Ø(.¯©ñ$9àð$9ð ˜S &˜[Ñ)ð$9ð Ð3°VÐ;Ñ<ð	$9ð
 �f˜f�nÑ%ð$9ð 
ó$9ðL/˜#÷ /r   r4   N)Ú__doc__r   Útypingr   r   r   r   Útwilio.baser   r	   r
   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.versionr   r   r4   r   r   r   ú<module>rW      s@   ðñõ ß -Ó -ß 6Ñ 6å :Ý 2Ý 'ô#3Ð(ô #3ôL_/�Lõ _/r   