Ë
    [üàgJ  ã                   ó¢   — d 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 - Intelligence
    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.
é    )ÚAnyÚDictÚOptionalÚUnion)Ú	serializeÚvalues)ÚInstanceContext)ÚInstanceResource)ÚListResource)ÚVersionc                   ó¼   ‡ — e Zd ZdZdedeeef   d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 )ÚMediaInstancea5  
    :ivar account_sid: The unique SID identifier of the Account.
    :ivar media_url: Downloadable URL for media, if stored in Twilio AI.
    :ivar service_sid: The unique SID identifier of the Service.
    :ivar sid: The unique SID identifier of the Transcript.
    :ivar url: The URL of this resource.
    ÚversionÚpayloadÚsidc                 ó   •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        d|i| _        d | _	        y )NÚaccount_sidÚ	media_urlÚservice_sidr   Úurl)
ÚsuperÚ__init__Úgetr   r   r   r   r   Ú	_solutionÚ_context)Úselfr   r   r   Ú	__class__s       €új/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/intelligence/v2/transcript/media.pyr   zMediaInstance.__init__    s{   ø€ Ü‰Ñ˜Ô!à*1¯+©+°mÓ*DˆÔØ(/¯©°KÓ(@ˆŒØ*1¯+©+°mÓ*DˆÔØ")§+¡+¨eÓ"4ˆŒØ")§+¡+¨eÓ"4ˆŒð �3ð
ˆŒð 15ˆ�ó    Ú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: MediaContext for this MediaInstance
        r   ©r   )r   ÚMediaContextÚ_versionr   ©r   s    r   Ú_proxyzMediaInstance._proxy.   s9   € ð �=‰=Ð Ü(Ø—‘Ø—N‘N 5Ñ)ôˆDŒMð �}‰}Ðr   Úredactedc                 ó:   — | j                   j                  |¬«      S )úè
        Fetch the MediaInstance

        :param redacted: Grant access to PII Redacted/Unredacted Media. If redaction is enabled, the default is `true` to access redacted media.

        :returns: The fetched MediaInstance
        ©r'   )r&   Úfetch©r   r'   s     r   r+   zMediaInstance.fetch=   s#   € ð �{‰{× Ñ Øð !ó 
ð 	
r   c              ƒ   óV   K  — | j                   j                  |¬«      ƒ d{  –—† S 7 Œ­w)á  
        Asynchronous coroutine to fetch the MediaInstance

        :param redacted: Grant access to PII Redacted/Unredacted Media. If redaction is enabled, the default is `true` to access redacted media.

        :returns: The fetched MediaInstance
        r*   N)r&   Úfetch_asyncr,   s     r   r/   zMediaInstance.fetch_asyncI   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>z)MediaInstance.__repr__.<locals>.<genexpr>]   ó   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùó   ‚!z)<Twilio.Intelligence.V2.MediaInstance {}>©Újoinr   Úitemsr6   ©r   Úcontexts     r   Ú__repr__zMediaInstance.__repr__W   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ:×AÑAÀ'ÓJÐJr   )r    r#   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ústrr   r   Úpropertyr&   r   Úunsetr   ÚboolÚobjectr+   r/   rC   Ú__classcell__©r   s   @r   r   r      s˜   ø„ ñð5 ð 5°$°s¸C°x±.ð 5Àsõ 5ð òó ðð 5;·L±Lñ 

˜e D¨& LÑ1ð 

À_ó 

ð /5¯l©lñ
Ø˜d F˜lÑ+ð
à	ó
ðK˜#÷ K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 MediaContext

        :param version: Version that contains the resource
        :param sid: The unique SID identifier of the Transcript.
        r   z/Transcripts/{sid}/MediaN© )r   r   r   r6   Ú_uri©r   r   r   r   s      €r   r   zMediaContext.__init__c   s@   ø€ ô 	‰Ñ˜Ô!ð �3ð
ˆŒð 6Ð.×5Ñ5ÑG¸¿¹ÑGˆ�	r   r'   r    c                 ó&  — t        j                  dt        j                  |«      i«      }t        j                  i «      }d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  || j                  d   ¬«      S )r)   ÚRedactedúapplication/jsonÚAcceptÚGET©ÚmethodÚuriÚparamsÚheadersr   r"   )	r   Úofr   Úboolean_to_stringr$   r+   rR   r   r   ©r   r'   Údatar]   r   s        r   r+   zMediaContext.fetchr   s‹   € ô �y‰yàœI×7Ñ7¸ÓAðó
ˆô —)‘)˜B“-ˆà.ˆ�Ñà—-‘-×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô Ø�M‰MØØ—‘˜uÑ%ô
ð 	
r   c              ƒ   óB  K  — t        j                  dt        j                  |«      i«      }t        j                  i «      }d|d<   | j                  j                  d| j                  ||¬«      ƒ d{  –—† }t        | j                  || j                  d   ¬«      S 7 Œ)­w)	r.   rU   rV   rW   rX   rY   Nr   r"   )	r   r^   r   r_   r$   r/   rR   r   r   r`   s        r   r/   zMediaContext.fetch_async�   s™   è ø€ ô �y‰yàœI×7Ñ7¸ÓAðó
ˆô —)‘)˜B“-ˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°¸gð 2ó 
÷ 
ˆô Ø�M‰MØØ—‘˜uÑ%ô
ð 	
ð	
ús   ‚A1BÁ3BÁ4*Bc                 ó„   — dj                  d„ | j                  j                  «       D «       «      }dj                  |«      S )r1   r2   c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­wr4   r5   r7   s      r   r;   z(MediaContext.__repr__.<locals>.<genexpr>´   r<   r=   z(<Twilio.Intelligence.V2.MediaContext {}>r>   rA   s     r   rC   zMediaContext.__repr__®   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ9×@Ñ@ÀÓIÐIr   )rD   rE   rF   r   rH   r   r   rJ   r   rK   rL   r   r+   r/   rC   rM   rN   s   @r   r#   r#   a   ss   ø„ ðH ð H¨cõ Hð 5;·L±Lñ 
˜e D¨& LÑ1ð 
À]ó 
ð< /5¯l©lñ
Ø˜d F˜lÑ+ð
à	ó
ð>J˜#÷ Jr   r#   c                   óL   ‡ — 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	ˆ xZ
S )Ú	MediaListr   r   c                 ó6   •— t         ‰| �  |«       d|i| _        y)z¨
        Initialize the MediaList

        :param version: Version that contains the resource
        :param sid: The unique SID identifier of the Transcript.

        r   N)r   r   r   rS   s      €r   r   zMediaList.__init__º   s"   ø€ ô 	‰Ñ˜Ô!ð �3ð
ˆ�r   r    c                 óJ   — t        | j                  | j                  d   ¬«      S ©z,
        Constructs a MediaContext

        r   r"   ©r#   r$   r   r%   s    r   r   zMediaList.getÉ   ó   € ô
 ˜DŸM™M¨t¯~©~¸eÑ/DÔEÐEr   c                 óJ   — t        | j                  | j                  d   ¬«      S ri   rj   r%   s    r   Ú__call__zMediaList.__call__Ð   rk   r   c                  ó   — y)r1   z"<Twilio.Intelligence.V2.MediaList>rQ   r%   s    r   rC   zMediaList.__repr__×   s   € ð 4r   )rD   rE   rF   r   rH   r   r#   r   rm   rC   rM   rN   s   @r   rf   rf   ¸   s>   ø„ ð
 ð 
¨cõ 
ðF�\ó FðF˜,ó Fð4˜#÷ 4r   rf   N)rG   Útypingr   r   r   r   Útwilio.baser   r   Útwilio.base.instance_contextr	   Útwilio.base.instance_resourcer
   Útwilio.base.list_resourcer   Útwilio.base.versionr   r   r#   rf   rQ   r   r   ú<module>ru      sP   ðñ÷ .Ó -ß )Ý 8Ý :Ý 2Ý 'ôGKÐ$ô GKôTTJ�?ô TJôn%4�õ %4r   