Ë
    [üà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	 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 - Flex
    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)ÚInstanceContext)ÚInstanceResource)ÚListResource)ÚVersionc                   óÆ   ‡ — 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ej                  fdeeef   dd fd	„Zej                  fdeeef   dd fd
„Zdefd„Zˆ xZS )ÚPluginArchiveInstanceaÝ  
    :ivar sid: The unique string that we created to identify the Flex Plugin resource.
    :ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Flex Plugin resource and owns this resource.
    :ivar unique_name: The name that uniquely identifies this Flex Plugin resource.
    :ivar friendly_name: The friendly name this Flex Plugin resource.
    :ivar description: A descriptive string that you create to describe the plugin resource. It can be up to 500 characters long
    :ivar archived: Whether the Flex Plugin is archived. The default value is false.
    :ivar date_created: The date and time in GMT when the Flex Plugin was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    :ivar date_updated: The date and time in GMT when the Flex Plugin was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    :ivar url: The absolute URL of the Flex Plugin resource.
    ÚversionÚpayloadÚsidc                 ó8  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        t        j                  |j                  d«      «      | _        t        j                  |j                  d«      «      | _        |j                  d	«      | _        d|xs | j                  i| _        d | _        y )
Nr   Úaccount_sidÚunique_nameÚfriendly_nameÚdescriptionÚarchivedÚdate_createdÚdate_updatedÚurl)ÚsuperÚ__init__Úgetr   r   r   r   r   r   r   Úiso8601_datetimer   r   r   Ú	_solutionÚ_context)Úselfr   r   r   Ú	__class__s       €úd/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/flex_api/v1/plugin_archive.pyr   zPluginArchiveInstance.__init__%   sé   ø€ ô 	‰Ñ˜Ô!à")§+¡+¨eÓ"4ˆŒØ*1¯+©+°mÓ*DˆÔØ*1¯+©+°mÓ*DˆÔØ,3¯K©K¸Ó,HˆÔØ*1¯+©+°mÓ*DˆÔØ(/¯©°JÓ(?ˆŒÜ0;×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔô 1<×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔð #*§+¡+¨eÓ"4ˆŒð �3’?˜$Ÿ(™(ð
ˆŒð 9=ˆ�ó    Ú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: PluginArchiveContext for this PluginArchiveInstance
        r   ©r   )r!   ÚPluginArchiveContextÚ_versionr    ©r"   s    r$   Ú_proxyzPluginArchiveInstance._proxy=   s9   € ð �=‰=Ð Ü0Ø—‘Ø—N‘N 5Ñ)ôˆDŒMð �}‰}Ðr%   Úflex_metadatac                 ó:   — | j                   j                  |¬«      S )ú¬
        Update the PluginArchiveInstance

        :param flex_metadata: The Flex-Metadata HTTP request header

        :returns: The updated PluginArchiveInstance
        ©r-   )r,   Úupdate©r"   r-   s     r$   r1   zPluginArchiveInstance.updateL   s#   € ð �{‰{×!Ñ!Ø'ð "ó 
ð 	
r%   c              ƒ   óV   K  — | j                   j                  |¬«      ƒ d{  –—† S 7 Œ­w)úÆ
        Asynchronous coroutine to update the PluginArchiveInstance

        :param flex_metadata: The Flex-Metadata HTTP request header

        :returns: The updated PluginArchiveInstance
        r0   N)r,   Úupdate_asyncr2   s     r$   r5   z"PluginArchiveInstance.update_asyncZ   s1   è ø€ ð —[‘[×-Ñ-Ø'ð .ó 
÷ 
ð 	
ð 
ú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>z1PluginArchiveInstance.__repr__.<locals>.<genexpr>n   ó   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùó   ‚!z,<Twilio.FlexApi.V1.PluginArchiveInstance {}>©Újoinr    Úitemsr<   ©r"   Úcontexts     r$   Ú__repr__zPluginArchiveInstance.__repr__h   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ=×DÑDÀWÓMÐMr%   )N)r&   r)   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ústrr   r   r   Úpropertyr,   r	   Úunsetr   Úobjectr1   r5   rI   Ú__classcell__©r#   s   @r$   r   r      s¨   ø„ ñ
ð OSñ=Øð=Ø)-¨c°3¨h©ð=Ø>FÀs¹mõ=ð0 òó ðð 39·,±,ñ
Ø" 3¨ ;Ñ/ð
à	 ó
ð 39·,±,ñ
Ø" 3¨ ;Ñ/ð
à	 ó
ðN˜#÷ N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 )	r)   r   r   c                 óx   •— t         ‰| �  |«       d|i| _         dj                  di | j                  ¤Ž| _        y)zµ
        Initialize the PluginArchiveContext

        :param version: Version that contains the resource
        :param sid: The SID of the Flex Plugin resource to archive.
        r   z$/PluginService/Plugins/{sid}/ArchiveN© )r   r   r    r<   Ú_uri)r"   r   r   r#   s      €r$   r   zPluginArchiveContext.__init__t   sA   ø€ ô 	‰Ñ˜Ô!ð �3ð
ˆŒð BÐ:×AÑAÑSÀDÇNÁNÑSˆ�	r%   r-   r&   c                 óN  — t        j                  i «      }t        j                  i «      }|t         j                  u st        |t        «      r|r||d<   d|d<   | j
                  j                  d| j                  ||¬«      }t        | j
                  || j                  d   ¬«      S )r/   úFlex-Metadataúapplication/jsonÚAcceptÚPOST©ÚmethodÚuriÚdataÚheadersr   r(   )
r	   ÚofrP   Ú
isinstancerN   r*   r1   rW   r   r    ©r"   r-   r`   ra   r   s        r$   r1   zPluginArchiveContext.updateƒ   s‘   € ô �y‰y˜‹}ˆÜ—)‘)˜B“-ˆð œVŸ\™\Ñ)Ü˜=¬#Ô.±}à'4ˆG�OÑ$à.ˆ�Ñà—-‘-×&Ñ&Ø˜tŸy™y¨t¸Wð 'ó 
ˆô % T§]¡]°GÀÇÁÐPUÑAVÔWÐWr%   c              ƒ   ój  K  — t        j                  i «      }t        j                  i «      }|t         j                  u st        |t        «      r|r||d<   d|d<   | j
                  j                  d| j                  ||¬«      ƒ d{  –—† }t        | j
                  || j                  d   ¬«      S 7 Œ)­w)	r4   rY   rZ   r[   r\   r]   Nr   r(   )
r	   rb   rP   rc   rN   r*   r5   rW   r   r    rd   s        r$   r5   z!PluginArchiveContext.update_asyncŸ   sŸ   è ø€ ô �y‰y˜‹}ˆÜ—)‘)˜B“-ˆð œVŸ\™\Ñ)Ü˜=¬#Ô.±}à'4ˆG�OÑ$à.ˆ�ÑàŸ™×2Ñ2Ø˜tŸy™y¨t¸Wð 3ó 
÷ 
ˆô % T§]¡]°GÀÇÁÐPUÑAVÔWÐWð	
ús   ‚BB3ÂB1Â*B3c                 ó„   — dj                  d„ | j                  j                  «       D «       «      }dj                  |«      S )r7   r8   c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­wr:   r;   r=   s      r$   rA   z0PluginArchiveContext.__repr__.<locals>.<genexpr>Á   rB   rC   z+<Twilio.FlexApi.V1.PluginArchiveContext {}>rD   rG   s     r$   rI   zPluginArchiveContext.__repr__»   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ<×CÑCÀGÓLÐLr%   )rJ   rK   rL   r   rN   r   r	   rP   r   rQ   r   r1   r5   rI   rR   rS   s   @r$   r)   r)   r   s{   ø„ ðT ð T¨cõ Tð  39·,±,ñXØ" 3¨ ;Ñ/ðXà	óXð: 39·,±,ñXØ" 3¨ ;Ñ/ðXà	óXð8M˜#÷ M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 )ÚPluginArchiveListr   c                 ó$   •— t         ‰| �  |«       y)zo
        Initialize the PluginArchiveList

        :param version: Version that contains the resource

        N)r   r   )r"   r   r#   s     €r$   r   zPluginArchiveList.__init__Ç   s   ø€ ô 	‰Ñ˜Õ!r%   r   r&   c                 ó0   — t        | j                  |¬«      S ©zx
        Constructs a PluginArchiveContext

        :param sid: The SID of the Flex Plugin resource to archive.
        r(   ©r)   r*   ©r"   r   s     r$   r   zPluginArchiveList.getÐ   ó   € ô $ D§M¡M°sÔ;Ð;r%   c                 ó0   — t        | j                  |¬«      S rl   rm   rn   s     r$   Ú__call__zPluginArchiveList.__call__Ø   ro   r%   c                  ó   — y)r7   z%<Twilio.FlexApi.V1.PluginArchiveList>rV   r+   s    r$   rI   zPluginArchiveList.__repr__à   s   € ð 7r%   )rJ   rK   rL   r   r   rN   r)   r   rq   rI   rR   rS   s   @r$   ri   ri   Å   sC   ø„ ð" õ "ð<�sð <Ð3ó <ð<˜Cð <Ð$8ó <ð7˜#÷ 7r%   ri   N)rM   r   Útypingr   r   r   r   Útwilio.baser   r	   Útwilio.base.instance_contextr
   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.versionr   r   r)   ri   rV   r%   r$   ú<module>ry      sS   ðñõ ß -Ó -ß +Ý 8Ý :Ý 2Ý 'ôWNÐ,ô WNôtPM˜?ô PMôf!7˜õ !7r%   