Ë
    [üà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 ddlmZ  G d	„ d
e«      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)ÚInstanceContext)ÚInstanceResource)ÚListResource)ÚVersionc                   ó6  ‡ — e Zd ZdZ	 ddedeeef   dee   fˆ fd„Z	e
dd„«       Zdefd„Zdefd	„Zdd
„Zdd„Zej$                  ej$                  fdeeef   deeef   dd fd„Zej$                  ej$                  fdeeef   deeef   dd fd„Zdefd„Zˆ xZS )ÚApiKeyInstancea/  
    :ivar sid: The unique string that we created to identify the Key resource.
    :ivar friendly_name: The string that you assigned to describe the 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 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).
    ÚversionÚpayloadÚsidc                 óˆ  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        t        j                  |j                  d«      «      | _        t        j                  |j                  d«      «      | _        |j                  d«      | _	        d|xs | j                  i| _
        d | _        y )Nr   Úfriendly_nameÚdate_createdÚdate_updatedÚpolicy)ÚsuperÚ__init__Úgetr   r   r   Úrfc2822_datetimer   r   r   Ú	_solutionÚ_context)Úselfr   r   r   Ú	__class__s       €úX/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/iam/v1/api_key.pyr   zApiKeyInstance.__init__!   s¦   ø€ ô 	‰Ñ˜Ô!à")§+¡+¨eÓ"4ˆŒØ,3¯K©K¸Ó,HˆÔÜ0;×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔô 1<×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔð 4;·;±;¸xÓ3HˆŒð �3’?˜$Ÿ(™(ð
ˆŒð 26ˆ�ó    Úreturnc                 ó„   — | j                   €)t        | j                  | j                  d   ¬«      | _         | j                   S )zç
        Generate an instance context for the instance, the context is capable of
        performing various actions. All instance actions are proxied to the context

        :returns: ApiKeyContext for this ApiKeyInstance
        r   ©r   )r   ÚApiKeyContextÚ_versionr   ©r   s    r!   Ú_proxyzApiKeyInstance._proxy5   s9   € ð �=‰=Ð Ü)Ø—‘Ø—N‘N 5Ñ)ôˆDŒMð �}‰}Ðr"   c                 ó6   — | j                   j                  «       S )úi
        Deletes the ApiKeyInstance


        :returns: True if delete succeeds, False otherwise
        )r)   Údeleter(   s    r!   r,   zApiKeyInstance.deleteD   s   € ð �{‰{×!Ñ!Ó#Ð#r"   c              ƒ   óR   K  — | j                   j                  «       ƒ d{  –—† S 7 Œ­w)ú…
        Asynchronous coroutine that deletes the ApiKeyInstance


        :returns: True if delete succeeds, False otherwise
        N)r)   Údelete_asyncr(   s    r!   r/   zApiKeyInstance.delete_asyncM   s!   è ø€ ð —[‘[×-Ñ-Ó/×/Ð/Ð/úó   ‚' %¡'c                 ó6   — | j                   j                  «       S )úY
        Fetch the ApiKeyInstance


        :returns: The fetched ApiKeyInstance
        )r)   Úfetchr(   s    r!   r3   zApiKeyInstance.fetchV   s   € ð �{‰{× Ñ Ó"Ð"r"   c              ƒ   óR   K  — | j                   j                  «       ƒ d{  –—† S 7 Œ­w)ús
        Asynchronous coroutine to fetch the ApiKeyInstance


        :returns: The fetched ApiKeyInstance
        N)r)   Úfetch_asyncr(   s    r!   r6   zApiKeyInstance.fetch_async_   s!   è ø€ ð —[‘[×,Ñ,Ó.×.Ð.Ð.úr0   r   r   c                 ó<   — | j                   j                  ||¬«      S )á>  
        Update the ApiKeyInstance

        :param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.
        :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 updated ApiKeyInstance
        ©r   r   )r)   Úupdate©r   r   r   s      r!   r:   zApiKeyInstance.updateh   s&   € ð �{‰{×!Ñ!Ø'Øð "ó 
ð 	
r"   c              ƒ   óX   K  — | j                   j                  ||¬«      ƒ d{  –—† S 7 Œ­w)áX  
        Asynchronous coroutine to update the ApiKeyInstance

        :param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.
        :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 updated ApiKeyInstance
        r9   N)r)   Úupdate_asyncr;   s      r!   r>   zApiKeyInstance.update_asyncz   s4   è ø€ ð —[‘[×-Ñ-Ø'Øð .ó 
÷ 
ð 	
ð 
ús   ‚!*£(¤*c                 ó„   — 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*ApiKeyInstance.__repr__.<locals>.<genexpr>’   ó   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùó   ‚!z!<Twilio.Iam.V1.ApiKeyInstance {}>©Újoinr   ÚitemsrE   ©r   Úcontexts     r!   Ú__repr__zApiKeyInstance.__repr__Œ   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ2×9Ñ9¸'ÓBÐBr"   )N)r#   r&   )r#   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ústrr   r   r   Úpropertyr)   Úboolr,   r/   r3   r6   r
   Úunsetr   Úobjectr:   r>   rR   Ú__classcell__©r    s   @r!   r   r      s  ø„ ñð OSñ6Øð6Ø)-¨c°3¨h©ð6Ø>FÀs¹mõ6ð( òó ðð$˜ó $ð0 Dó 0ó#ó/ð -3¯L©LØ(.¯©ñ
à˜S &˜[Ñ)ð
ð �f˜f�nÑ%ð
ð 
ó	
ð( -3¯L©LØ(.¯©ñ
à˜S &˜[Ñ)ð
ð �f˜f�nÑ%ð
ð 
ó	
ð$C˜#÷ Cr"   r   c                   ó  ‡ — e Zd Zdedefˆ fd„Zdefd„Zdefd„Zde	fd„Z
de	fd„Zej                  ej                  fd	eeef   d
eeef   de	fd„Zej                  ej                  fd	eeef   d
eeef   de	fd„Zdefd„Zˆ xZS )r&   r   r   c                 óx   •— t         ‰| �  |«       d|i| _         dj                  di | j                  ¤Ž| _        y)zÎ
        Initialize the ApiKeyContext

        :param version: Version that contains the resource
        :param sid: The Twilio-provided string that uniquely identifies the Key resource to update.
        r   z/Keys/{sid}N© )r   r   r   rE   Ú_uri)r   r   r   r    s      €r!   r   zApiKeyContext.__init__˜   s?   ø€ ô 	‰Ñ˜Ô!ð �3ð
ˆŒð )�M×(Ñ(Ñ:¨4¯>©>Ñ:ˆ�	r"   r#   c                 ó|   — t        j                  i «      }| j                  j                  d| j                  |¬«      S )r+   ÚDELETE©ÚmethodÚuriÚheaders)r
   Úofr'   r,   ra   ©r   rg   s     r!   r,   zApiKeyContext.delete§   s1   € ô —)‘)˜B“-ˆà�}‰}×#Ñ#¨8¸¿¹ÈGÐ#ÓTÐTr"   c              ƒ   ó˜   K  — t        j                  i «      }| j                  j                  d| j                  |¬«      ƒ d{  –—† S 7 Œ­w)r.   rc   rd   N)r
   rh   r'   r/   ra   ri   s     r!   r/   zApiKeyContext.delete_async³   sF   è ø€ ô —)‘)˜B“-ˆà—]‘]×/Ñ/Ø §¡°Gð 0ó 
÷ 
ð 	
ð 
ús   ‚AA
ÁAÁA
c                 óÐ   — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      }t        | j                  || j                  d   ¬«      S )r2   úapplication/jsonÚAcceptÚGETrd   r   r%   )r
   rh   r'   r3   ra   r   r   ©r   rg   r   s      r!   r3   zApiKeyContext.fetchÁ   s]   € ô —)‘)˜B“-ˆà.ˆ�Ñà—-‘-×%Ñ%¨U¸¿	¹	È7Ð%ÓSˆäØ�M‰MØØ—‘˜uÑ%ô
ð 	
r"   c              ƒ   óì   K  — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      ƒ d{  –—† }t        | j                  || j                  d   ¬«      S 7 Œ)­w)r5   rl   rm   rn   rd   Nr   r%   )r
   rh   r'   r6   ra   r   r   ro   s      r!   r6   zApiKeyContext.fetch_asyncÕ   sr   è ø€ ô —)‘)˜B“-ˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°ð 2ó 
÷ 
ˆô Ø�M‰MØØ—‘˜uÑ%ô
ð 	
ð	
ús   ‚AA4ÁA2Á	*A4r   r   c                 ó2  — t        j                  |t        j                  |«      dœ«      }t        j                  i «      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  || j                  d   ¬	«      S )
r8   ©ÚFriendlyNameÚPolicyú!application/x-www-form-urlencodedúContent-Typerl   rm   ÚPOST©re   rf   Údatarg   r   r%   )	r
   rh   r	   r[   r'   r:   ra   r   r   ©r   r   r   ry   rg   r   s         r!   r:   zApiKeyContext.updateë   s�   € ô �y‰yà -Ü#×*Ñ*¨6Ó2ñó
ˆô —)‘)˜B“-ˆà"Eˆ�Ñà.ˆ�Ñà—-‘-×&Ñ&Ø˜tŸy™y¨t¸Wð 'ó 
ˆô ˜dŸm™m¨W¸$¿.¹.ÈÑ:OÔPÐPr"   c              ƒ   óN  K  — t        j                  |t        j                  |«      dœ«      }t        j                  i «      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      ƒ d{  –—† }t        | j                  || j                  d	   ¬
«      S 7 Œ)­w)r=   rr   ru   rv   rl   rm   rw   rx   Nr   r%   )	r
   rh   r	   r[   r'   r>   ra   r   r   rz   s         r!   r>   zApiKeyContext.update_async  s�   è ø€ ô �y‰yà -Ü#×*Ñ*¨6Ó2ñó
ˆô —)‘)˜B“-ˆà"Eˆ�Ñà.ˆ�ÑàŸ™×2Ñ2Ø˜tŸy™y¨t¸Wð 3ó 
÷ 
ˆô ˜dŸm™m¨W¸$¿.¹.ÈÑ:OÔPÐPð	
ús   ‚A7B%Á9B#Á:*B%c                 ó„   — dj                  d„ | j                  j                  «       D «       «      }dj                  |«      S )r@   rA   c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­wrC   rD   rF   s      r!   rJ   z)ApiKeyContext.__repr__.<locals>.<genexpr>1  rK   rL   z <Twilio.Iam.V1.ApiKeyContext {}>rM   rP   s     r!   rR   zApiKeyContext.__repr__+  s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ1×8Ñ8¸ÓAÐAr"   )rS   rT   rU   r   rW   r   rY   r,   r/   r   r3   r6   r
   rZ   r   r[   r:   r>   rR   r\   r]   s   @r!   r&   r&   –   sæ   ø„ ð; ð ;¨cõ ;ð
U˜ó 
Uð
 Dó 
ð
�~ó 
ð(
 >ó 
ð0 -3¯L©LØ(.¯©ñQà˜S &˜[Ñ)ðQð �f˜f�nÑ%ðQð 
ó	QðD -3¯L©LØ(.¯©ñQà˜S &˜[Ñ)ðQð �f˜f�nÑ%ðQð 
ó	Qð@B˜#÷ Br"   r&   c                   óP   ‡ — e Zd Zdefˆ fd„Zdedefd„Zdedefd„Zdefd„Z	ˆ xZ
S )Ú
ApiKeyListr   c                 ó$   •— t         ‰| �  |«       y)zh
        Initialize the ApiKeyList

        :param version: Version that contains the resource

        N)r   r   )r   r   r    s     €r!   r   zApiKeyList.__init__7  s   ø€ ô 	‰Ñ˜Õ!r"   r   r#   c                 ó0   — t        | j                  |¬«      S ©z‘
        Constructs a ApiKeyContext

        :param sid: The Twilio-provided string that uniquely identifies the Key resource to update.
        r%   ©r&   r'   ©r   r   s     r!   r   zApiKeyList.get@  ó   € ô ˜TŸ]™]°Ô4Ð4r"   c                 ó0   — t        | j                  |¬«      S r‚   rƒ   r„   s     r!   Ú__call__zApiKeyList.__call__H  r…   r"   c                  ó   — y)r@   z<Twilio.Iam.V1.ApiKeyList>r`   r(   s    r!   rR   zApiKeyList.__repr__P  s   € ð ,r"   )rS   rT   rU   r   r   rW   r&   r   r‡   rR   r\   r]   s   @r!   r   r   5  sA   ø„ ð" õ "ð5�sð 5˜}ó 5ð5˜Cð 5 Mó 5ð,˜#÷ ,r"   r   N)rV   r   Útypingr   r   r   r   Útwilio.baser   r	   r
   Útwilio.base.instance_contextr   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.versionr   r   r&   r   r`   r"   r!   ú<module>r�      sV   ðñõ ß -Ó -ß 6Ñ 6Ý 8Ý :Ý 2Ý 'ô{CÐ%ô {Cô|\B�Oô \Bô~!,�õ !,r"   