Ë
    [üàg6  ã                   óŒ   — 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	 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 - 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                   óF   ‡ — e Zd ZdZdedeeef   defˆ fd„Zdefd„Z	ˆ xZ
S )ÚNewKeyInstancea+  
    :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                 ó^  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        t        j                  |j                  d«      «      | _        t        j                  |j                  d«      «      | _        |j                  d«      | _	        d|i| _
        y )NÚsidÚfriendly_nameÚdate_createdÚdate_updatedÚsecretr   )ÚsuperÚ__init__Úgetr   r   r   Úrfc2822_datetimer   r   r   Ú	_solution)Úselfr   r   r   Ú	__class__s       €úc/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/api/v2010/account/new_key.pyr   zNewKeyInstance.__init__!   s“   ø€ Ü‰Ñ˜Ô!à")§+¡+¨eÓ"4ˆŒØ,3¯K©K¸Ó,HˆÔÜ0;×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔô 1<×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔð &-§[¡[°Ó%:ˆŒð ˜;ð
ˆ�ó    Úreturnc                 ó„   — dj                  d„ | j                  j                  «       D «       «      }dj                  |«      S )úf
        Provide a friendly representation

        :returns: Machine friendly representation
        ú c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­w)z{}={}N)Úformat)Ú.0ÚkÚvs      r   ú	<genexpr>z*NewKeyInstance.__repr__.<locals>.<genexpr>8   s   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùs   ‚!z$<Twilio.Api.V2010.NewKeyInstance {}>)Újoinr   Úitemsr&   )r   Úcontexts     r   Ú__repr__zNewKeyInstance.__repr__2   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ5×<Ñ<¸WÓEÐEr    )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ústrr   r   r.   Ú__classcell__©r   s   @r   r   r      s8   ø„ ñð
 ð 
°$°s¸C°x±.ð 
Èsõ 
ð"F˜#÷ Fr    r   c                   ó˜   ‡ — e Zd Zdedefˆ fd„Zej                  fdeee	f   de
fd„Zej                  fdeee	f   de
fd„Zdefd„Zˆ xZS )	Ú
NewKeyListr   r   c                 óx   •— t         ‰| �  |«       d|i| _         dj                  di | j                  ¤Ž| _        y)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   zNewKeyList.__init__>   s@   ø€ ô 	‰Ñ˜Ô!ð ˜;ð
ˆŒð ?Ð7×>Ñ>ÑPÀÇÁÑPˆ�	r    r   r!   c                 ó  — t        j                  d|i«      }t        j                  ddi«      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  || j                  d   ¬	«      S )
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Úcreater:   r   r   ©r   r   rE   rF   r   s        r   rJ   zNewKeyList.createN   s�   € ô �y‰yà ðó
ˆô
 —)‘)˜^Ð-PÐQÓRˆà"Eˆ�Ñà.ˆ�Ñà—-‘-×&Ñ&Ø˜tŸy™y¨t¸Wð 'ó 
ˆô Ø�M‰M˜7°·±¸}Ñ0Mô
ð 	
r    c              ƒ   ó*  K  — t        j                  d|i«      }t        j                  ddi«      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      ƒ d{  –—† }t        | j                  || j                  d	   ¬
«      S 7 Œ)­w)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
        r<   r=   r>   r?   r@   rA   rB   Nr   rG   )r	   rH   rI   Úcreate_asyncr:   r   r   rK   s        r   rM   zNewKeyList.create_asyncl   s�   è ø€ ô �y‰yà ðó
ˆô
 —)‘)˜^Ð-PÐQÓRˆà"Eˆ�Ñà.ˆ�ÑàŸ™×2Ñ2Ø˜tŸy™y¨t¸Wð 3ó 
÷ 
ˆô Ø�M‰M˜7°·±¸}Ñ0Mô
ð 	
ð	
ús   ‚A%BÁ'BÁ(*Bc                  ó   — y)r#   z<Twilio.Api.V2010.NewKeyList>r9   )r   s    r   r.   zNewKeyList.__repr__Š   s   € ð /r    )r/   r0   r1   r   r3   r   r	   Úunsetr   Úobjectr   rJ   rM   r.   r4   r5   s   @r   r7   r7   <   ss   ø„ ðQ ð Q°cõ Qð" 39·,±,ñ
Ø" 3¨ ;Ñ/ð
à	ó
ð> 39·,±,ñ
Ø" 3¨ ;Ñ/ð
à	ó
ð</˜#÷ /r    r7   N)r2   r   Útypingr   r   r   r   Útwilio.baser   r	   Útwilio.base.instance_resourcer
   Útwilio.base.list_resourcer   Útwilio.base.versionr   r   r7   r9   r    r   ú<module>rV      s?   ðñõ ß -Ó -ß +å :Ý 2Ý 'ô!FÐ%ô !FôHT/�õ T/r    