Ë
    [üàg—  ã                   óà   — d Z ddlmZ ddlmZmZmZ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 dd	lmZ  G d
„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Zy)aè  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Voice
    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ÚListÚOptionalÚUnionÚIteratorÚAsyncIterator)ÚdeserializeÚ	serializeÚvalues)ÚInstanceContext)ÚInstanceResource)ÚListResource)ÚVersion)ÚPagec                   óv  ‡ — 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$                  ej$                  ej$                  ej$                  ej$                  ej$                  ej$                  ej$                  ej$                  f
deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   dd fd„Zej$                  ej$                  ej$                  ej$                  ej$                  ej$                  ej$                  ej$                  ej$                  ej$                  f
deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   dd fd„Zdefd„Zˆ xZS )ÚByocTrunkInstancea±  
    :ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the BYOC Trunk resource.
    :ivar sid: The unique string that that we created to identify the BYOC Trunk resource.
    :ivar friendly_name: The string that you assigned to describe the resource.
    :ivar voice_url: The URL we call using the `voice_method` when the BYOC Trunk receives a call.
    :ivar voice_method: The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`.
    :ivar voice_fallback_url: The URL that we call when an error occurs while retrieving or executing the TwiML requested from `voice_url`.
    :ivar voice_fallback_method: The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`.
    :ivar status_callback_url: The URL that we call to pass status parameters (such as call ended) to your application.
    :ivar status_callback_method: The HTTP method we use to call `status_callback_url`. Either `GET` or `POST`.
    :ivar cnam_lookup_enabled: Whether Caller ID Name (CNAM) lookup is enabled for the trunk. If enabled, all inbound calls to the BYOC Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information.
    :ivar connection_policy_sid: The SID of the Connection Policy that Twilio will use when routing traffic to your communications infrastructure.
    :ivar from_domain_sid: The SID of the SIP Domain that should be used in the `From` header of originating calls sent to your SIP infrastructure. If your SIP infrastructure allows users to "call back" an incoming call, configure this with a [SIP Domain](https://www.twilio.com/docs/voice/api/sending-sip) to ensure proper routing. If not configured, the from domain will default to "sip.twilio.com".
    :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 url: The absolute URL of the resource.
    ÚversionÚpayloadÚsidc                 ó@  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |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 )NÚaccount_sidr   Úfriendly_nameÚ	voice_urlÚvoice_methodÚvoice_fallback_urlÚvoice_fallback_methodÚstatus_callback_urlÚstatus_callback_methodÚcnam_lookup_enabledÚconnection_policy_sidÚfrom_domain_sidÚdate_createdÚdate_updatedÚurl)ÚsuperÚ__init__Úgetr   r   r   r   r   r   r   r   r    r!   r"   r#   r   Úiso8601_datetimer$   r%   r&   Ú	_solutionÚ_context)Úselfr   r   r   Ú	__class__s       €ú]/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/voice/v1/byoc_trunk.pyr(   zByocTrunkInstance.__init__,   sZ  ø€ ô 	‰Ñ˜Ô!à*1¯+©+°mÓ*DˆÔØ")§+¡+¨eÓ"4ˆŒØ,3¯K©K¸Ó,HˆÔØ(/¯©°KÓ(@ˆŒØ+2¯;©;°~Ó+FˆÔØ18·±Ð=QÓ1RˆÔØ4;·K±KÐ@WÓ4XˆÔ"Ø29·+±+Ð>SÓ2TˆÔ Ø5<·[±[Ø$ó6
ˆÔ#ð 4;·;±;Ð?TÓ3UˆÔ Ø4;·K±KÐ@WÓ4XˆÔ"Ø.5¯k©kÐ:KÓ.LˆÔÜ0;×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔô 1<×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔð #*§+¡+¨eÓ"4ˆŒð �3’?˜$Ÿ(™(ð
ˆŒð 59ˆ�ó    Ú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: ByocTrunkContext for this ByocTrunkInstance
        r   ©r   )r,   ÚByocTrunkContextÚ_versionr+   ©r-   s    r/   Ú_proxyzByocTrunkInstance._proxyL   s9   € ð �=‰=Ð Ü,Ø—‘Ø—N‘N 5Ñ)ôˆDŒMð �}‰}Ðr0   c                 ó6   — | j                   j                  «       S )úl
        Deletes the ByocTrunkInstance


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


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


        :returns: The fetched ByocTrunkInstance
        )r7   Úfetchr6   s    r/   rA   zByocTrunkInstance.fetchm   s   € ð �{‰{× Ñ Ó"Ð"r0   c              ƒ   óR   K  — | j                   j                  «       ƒ d{  –—† S 7 Œ­w)úy
        Asynchronous coroutine to fetch the ByocTrunkInstance


        :returns: The fetched ByocTrunkInstance
        N)r7   Úfetch_asyncr6   s    r/   rD   zByocTrunkInstance.fetch_asyncv   s!   è ø€ ð —[‘[×,Ñ,Ó.×.Ð.Ð.úr>   r   r   r   r   r   r   r    r!   r"   r#   c                 óL   — | j                   j                  |||||||||	|
¬«
      S )á9  
        Update the ByocTrunkInstance

        :param friendly_name: A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long.
        :param voice_url: The URL we should call when the BYOC Trunk receives a call.
        :param voice_method: The HTTP method we should use to call `voice_url`
        :param voice_fallback_url: The URL that we should call when an error occurs while retrieving or executing the TwiML requested by `voice_url`.
        :param voice_fallback_method: The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`.
        :param status_callback_url: The URL that we should call to pass status parameters (such as call ended) to your application.
        :param status_callback_method: The HTTP method we should use to call `status_callback_url`. Can be: `GET` or `POST`.
        :param cnam_lookup_enabled: Whether Caller ID Name (CNAM) lookup is enabled for the trunk. If enabled, all inbound calls to the BYOC Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information.
        :param connection_policy_sid: The SID of the Connection Policy that Twilio will use when routing traffic to your communications infrastructure.
        :param from_domain_sid: The SID of the SIP Domain that should be used in the `From` header of originating calls sent to your SIP infrastructure. If your SIP infrastructure allows users to \"call back\" an incoming call, configure this with a [SIP Domain](https://www.twilio.com/docs/voice/api/sending-sip) to ensure proper routing. If not configured, the from domain will default to \"sip.twilio.com\".

        :returns: The updated ByocTrunkInstance
        ©
r   r   r   r   r   r   r    r!   r"   r#   )r7   Úupdate©r-   r   r   r   r   r   r   r    r!   r"   r#   s              r/   rH   zByocTrunkInstance.update   s>   € ð: �{‰{×!Ñ!Ø'ØØ%Ø1Ø"7Ø 3Ø#9Ø 3Ø"7Ø+ð "ó 
ð 	
r0   c              ƒ   óh   K  — | j                   j                  |||||||||	|
¬«
      ƒ d{  –—† S 7 Œ­w)áS  
        Asynchronous coroutine to update the ByocTrunkInstance

        :param friendly_name: A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long.
        :param voice_url: The URL we should call when the BYOC Trunk receives a call.
        :param voice_method: The HTTP method we should use to call `voice_url`
        :param voice_fallback_url: The URL that we should call when an error occurs while retrieving or executing the TwiML requested by `voice_url`.
        :param voice_fallback_method: The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`.
        :param status_callback_url: The URL that we should call to pass status parameters (such as call ended) to your application.
        :param status_callback_method: The HTTP method we should use to call `status_callback_url`. Can be: `GET` or `POST`.
        :param cnam_lookup_enabled: Whether Caller ID Name (CNAM) lookup is enabled for the trunk. If enabled, all inbound calls to the BYOC Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information.
        :param connection_policy_sid: The SID of the Connection Policy that Twilio will use when routing traffic to your communications infrastructure.
        :param from_domain_sid: The SID of the SIP Domain that should be used in the `From` header of originating calls sent to your SIP infrastructure. If your SIP infrastructure allows users to \"call back\" an incoming call, configure this with a [SIP Domain](https://www.twilio.com/docs/voice/api/sending-sip) to ensure proper routing. If not configured, the from domain will default to \"sip.twilio.com\".

        :returns: The updated ByocTrunkInstance
        rG   N)r7   Úupdate_asyncrI   s              r/   rL   zByocTrunkInstance.update_async©   sL   è ø€ ð: —[‘[×-Ñ-Ø'ØØ%Ø1Ø"7Ø 3Ø#9Ø 3Ø"7Ø+ð .ó 
÷ 
ð 	
ð 
ús   ‚)2«0¬2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-ByocTrunkInstance.__repr__.<locals>.<genexpr>Ù   ó   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùó   ‚!z&<Twilio.Voice.V1.ByocTrunkInstance {}>©Újoinr+   ÚitemsrS   ©r-   Úcontexts     r/   Ú__repr__zByocTrunkInstance.__repr__Ó   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ7×>Ñ>¸wÓGÐGr0   )N)r1   r4   )r1   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ústrr   r   r(   Úpropertyr7   Úboolr:   r=   rA   rD   r   Úunsetr   ÚobjectrH   rL   r`   Ú__classcell__©r.   s   @r/   r   r      s¥  ø„ ñð& OSñ9Øð9Ø)-¨c°3¨h©ð9Ø>FÀs¹mõ9ð@ òó ðð$˜ó $ð0 Dó 0ó#ó/ð -3¯L©LØ(.¯©Ø+1¯<©<Ø17·±Ø4:·L±LØ28·,±,Ø5;·\±\Ø39·<±<Ø4:·L±LØ.4¯l©lñ(
à˜S &˜[Ñ)ð(
ð ˜˜f˜Ñ%ð(
ð ˜C ˜KÑ(ð	(
ð
 " # v +Ñ.ð(
ð  % S¨& [Ñ1ð(
ð # 3¨ ;Ñ/ð(
ð !& c¨6 kÑ 2ð(
ð # 4¨ <Ñ0ð(
ð  % S¨& [Ñ1ð(
ð ˜s F˜{Ñ+ð(
ð 
ó(
ðX -3¯L©LØ(.¯©Ø+1¯<©<Ø17·±Ø4:·L±LØ28·,±,Ø5;·\±\Ø39·<±<Ø4:·L±LØ.4¯l©lñ(
à˜S &˜[Ñ)ð(
ð ˜˜f˜Ñ%ð(
ð ˜C ˜KÑ(ð	(
ð
 " # v +Ñ.ð(
ð  % S¨& [Ñ1ð(
ð # 3¨ ;Ñ/ð(
ð !& c¨6 kÑ 2ð(
ð # 4¨ <Ñ0ð(
ð  % S¨& [Ñ1ð(
ð ˜s F˜{Ñ+ð(
ð 
ó(
ðTH˜#÷ Hr0   r   c                   óP  ‡ — 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                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  f
d	eeef   d
eeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   de	fd„Zej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  f
d	eeef   d
eeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   de	fd„Zdefd„Zˆ xZS )r4   r   r   c                 óx   •— t         ‰| �  |«       d|i| _         dj                  di | j                  ¤Ž| _        y)zØ
        Initialize the ByocTrunkContext

        :param version: Version that contains the resource
        :param sid: The Twilio-provided string that uniquely identifies the BYOC Trunk resource to update.
        r   z/ByocTrunks/{sid}N© )r'   r(   r+   rS   Ú_uri)r-   r   r   r.   s      €r/   r(   zByocTrunkContext.__init__ß   s@   ø€ ô 	‰Ñ˜Ô!ð �3ð
ˆŒð /Ð'×.Ñ.Ñ@°·±Ñ@ˆ�	r0   r1   c                 ó|   — t        j                  i «      }| j                  j                  d| j                  |¬«      S )r9   ÚDELETE©ÚmethodÚuriÚheaders)r   Úofr5   r:   ro   ©r-   ru   s     r/   r:   zByocTrunkContext.deleteî   s1   € ô —)‘)˜B“-ˆà�}‰}×#Ñ#¨8¸¿¹ÈGÐ#ÓTÐTr0   c              ƒ   ó˜   K  — t        j                  i «      }| j                  j                  d| j                  |¬«      ƒ d{  –—† S 7 Œ­w)r<   rq   rr   N)r   rv   r5   r=   ro   rw   s     r/   r=   zByocTrunkContext.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 )r@   úapplication/jsonÚAcceptÚGETrr   r   r3   )r   rv   r5   rA   ro   r   r+   ©r-   ru   r   s      r/   rA   zByocTrunkContext.fetch  s]   € ô —)‘)˜B“-ˆà.ˆ�Ñà—-‘-×%Ñ%¨U¸¿	¹	È7Ð%ÓSˆä Ø�M‰MØØ—‘˜uÑ%ô
ð 	
r0   c              ƒ   óì   K  — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      ƒ d{  –—† }t        | j                  || j                  d   ¬«      S 7 Œ)­w)rC   rz   r{   r|   rr   Nr   r3   )r   rv   r5   rD   ro   r   r+   r}   s      r/   rD   zByocTrunkContext.fetch_async  sr   è ø€ ô —)‘)˜B“-ˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°ð 2ó 
÷ 
ˆô !Ø�M‰MØØ—‘˜uÑ%ô
ð 	
ð	
ús   ‚AA4ÁA2Á	*A4r   r   r   r   r   r   r    r!   r"   r#   c                 óB  — t        j                  |||||||t        j                  |«      |	|
dœ
«      }t        j                  i «      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  || j                  d   ¬	«      S )
rF   ©
ÚFriendlyNameÚVoiceUrlÚVoiceMethodÚVoiceFallbackUrlÚVoiceFallbackMethodÚStatusCallbackUrlÚStatusCallbackMethodÚCnamLookupEnabledÚConnectionPolicySidÚFromDomainSidú!application/x-www-form-urlencodedúContent-Typerz   r{   ÚPOST©rs   rt   Údataru   r   r3   )	r   rv   r   Úboolean_to_stringr5   rH   ro   r   r+   ©r-   r   r   r   r   r   r   r    r!   r"   r#   r�   ru   r   s                 r/   rH   zByocTrunkContext.update2  s¨   € ô< �y‰yà -Ø%Ø+Ø$6Ø'<Ø%8Ø(>Ü%.×%@Ñ%@ÐATÓ%UØ'<Ø!0ñó
ˆô —)‘)˜B“-ˆà"Eˆ�Ñà.ˆ�Ñà—-‘-×&Ñ&Ø˜tŸy™y¨t¸Wð 'ó 
ˆô ! §¡°¸T¿^¹^ÈEÑ=RÔSÐSr0   c              ƒ   ó^  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)rK   r€   r‹   rŒ   rz   r{   r�   rŽ   Nr   r3   )	r   rv   r   r�   r5   rL   ro   r   r+   r‘   s                 r/   rL   zByocTrunkContext.update_asyncj  s¶   è ø€ ô< �y‰yà -Ø%Ø+Ø$6Ø'<Ø%8Ø(>Ü%.×%@Ñ%@ÐATÓ%UØ'<Ø!0ñó
ˆô —)‘)˜B“-ˆà"Eˆ�Ñà.ˆ�ÑàŸ™×2Ñ2Ø˜tŸy™y¨t¸Wð 3ó 
÷ 
ˆô ! §¡°¸T¿^¹^ÈEÑ=RÔSÐSð	
ús   ‚A?B-ÂB+Â*B-c                 ó„   — dj                  d„ | j                  j                  «       D «       «      }dj                  |«      S )rN   rO   c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­wrQ   rR   rT   s      r/   rX   z,ByocTrunkContext.__repr__.<locals>.<genexpr>¨  rY   rZ   z%<Twilio.Voice.V1.ByocTrunkContext {}>r[   r^   s     r/   r`   zByocTrunkContext.__repr__¢  s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ6×=Ñ=¸gÓFÐFr0   )ra   rb   rc   r   re   r(   rg   r:   r=   r   rA   rD   r   rh   r   ri   rH   rL   r`   rj   rk   s   @r/   r4   r4   Ý   s›  ø„ ðA ð A¨cõ Að
U˜ó 
Uð
 Dó 
ð
Ð(ó 
ð(
Ð#4ó 
ð0 -3¯L©LØ(.¯©Ø+1¯<©<Ø17·±Ø4:·L±LØ28·,±,Ø5;·\±\Ø39·<±<Ø4:·L±LØ.4¯l©lñ6Tà˜S &˜[Ñ)ð6Tð ˜˜f˜Ñ%ð6Tð ˜C ˜KÑ(ð	6Tð
 " # v +Ñ.ð6Tð  % S¨& [Ñ1ð6Tð # 3¨ ;Ñ/ð6Tð !& c¨6 kÑ 2ð6Tð # 4¨ <Ñ0ð6Tð  % S¨& [Ñ1ð6Tð ˜s F˜{Ñ+ð6Tð 
ó6Tðt -3¯L©LØ(.¯©Ø+1¯<©<Ø17·±Ø4:·L±LØ28·,±,Ø5;·\±\Ø39·<±<Ø4:·L±LØ.4¯l©lñ6Tà˜S &˜[Ñ)ð6Tð ˜˜f˜Ñ%ð6Tð ˜C ˜KÑ(ð	6Tð
 " # v +Ñ.ð6Tð  % S¨& [Ñ1ð6Tð # 3¨ ;Ñ/ð6Tð !& c¨6 kÑ 2ð6Tð # 4¨ <Ñ0ð6Tð  % S¨& [Ñ1ð6Tð ˜s F˜{Ñ+ð6Tð 
ó6TðpG˜#÷ Gr0   r4   c                   ó2   — e Zd Zdeeef   defd„Zdefd„Zy)ÚByocTrunkPager   r1   c                 ó.   — t        | j                  |«      S )zo
        Build an instance of ByocTrunkInstance

        :param payload: Payload response from the API
        )r   r5   )r-   r   s     r/   Úget_instancezByocTrunkPage.get_instance®  s   € ô ! §¡°Ó8Ð8r0   c                  ó   — y)rN   z<Twilio.Voice.V1.ByocTrunkPage>rn   r6   s    r/   r`   zByocTrunkPage.__repr__¶  ó   € ð 1r0   N)	ra   rb   rc   r   re   r   r   r˜   r`   rn   r0   r/   r–   r–   ¬  s*   „ ð9 D¨¨c¨¡Nð 9Ð7Hó 9ð1˜#ô 1r0   r–   c                   ó   ‡ — e Zd Zdefˆ fd„Zej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  f
deee	f   deee	f   deee	f   deee	f   deee	f   deee	f   d	eee	f   d
ee
e	f   deee	f   deee	f   defd„Zej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  f
deee	f   deee	f   deee	f   deee	f   deee	f   deee	f   d	eee	f   d
ee
e	f   deee	f   deee	f   defd„Z	 	 d!dee   dee   dee   fd„Z	 	 d!dee   dee   dee   fd„Z	 	 d!dee   dee   dee   fd„Z	 	 d!dee   dee   dee   fd„Zej                  ej                  ej                  fdeee	f   deee	f   deee	f   defd„Zej                  ej                  ej                  fdeee	f   deee	f   deee	f   defd„Zdedefd„Zdede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 )"ÚByocTrunkListr   c                 ó2   •— t         ‰| �  |«       d| _        y)zk
        Initialize the ByocTrunkList

        :param version: Version that contains the resource

        z/ByocTrunksN)r'   r(   ro   )r-   r   r.   s     €r/   r(   zByocTrunkList.__init__Á  s   ø€ ô 	‰Ñ˜Ô!à!ˆ�	r0   r   r   r   r   r   r   r    r!   r"   r#   r1   c                 ó(  — t        j                  |||||||t        j                  |«      |	|
dœ
«      }t        j                  ddi«      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  |«      S )aK  
        Create the ByocTrunkInstance

        :param friendly_name: A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long.
        :param voice_url: The URL we should call when the BYOC Trunk receives a call.
        :param voice_method: The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`.
        :param voice_fallback_url: The URL that we should call when an error occurs while retrieving or executing the TwiML from `voice_url`.
        :param voice_fallback_method: The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`.
        :param status_callback_url: The URL that we should call to pass status parameters (such as call ended) to your application.
        :param status_callback_method: The HTTP method we should use to call `status_callback_url`. Can be: `GET` or `POST`.
        :param cnam_lookup_enabled: Whether Caller ID Name (CNAM) lookup is enabled for the trunk. If enabled, all inbound calls to the BYOC Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information.
        :param connection_policy_sid: The SID of the Connection Policy that Twilio will use when routing traffic to your communications infrastructure.
        :param from_domain_sid: The SID of the SIP Domain that should be used in the `From` header of originating calls sent to your SIP infrastructure. If your SIP infrastructure allows users to \"call back\" an incoming call, configure this with a [SIP Domain](https://www.twilio.com/docs/voice/api/sending-sip) to ensure proper routing. If not configured, the from domain will default to \"sip.twilio.com\".

        :returns: The created ByocTrunkInstance
        r€   rŒ   r‹   rz   r{   r�   rŽ   )r   rv   r   r�   r5   Úcreatero   r   r‘   s                 r/   rŸ   zByocTrunkList.createÌ  s¤   € ô< �y‰yà -Ø%Ø+Ø$6Ø'<Ø%8Ø(>Ü%.×%@Ñ%@ÐATÓ%UØ'<Ø!0ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà"Eˆ�Ñà.ˆ�Ñà—-‘-×&Ñ&Ø˜tŸy™y¨t¸Wð 'ó 
ˆô ! §¡°Ó8Ð8r0   c              ƒ   óD  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)	aZ  
        Asynchronously create the ByocTrunkInstance

        :param friendly_name: A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long.
        :param voice_url: The URL we should call when the BYOC Trunk receives a call.
        :param voice_method: The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`.
        :param voice_fallback_url: The URL that we should call when an error occurs while retrieving or executing the TwiML from `voice_url`.
        :param voice_fallback_method: The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`.
        :param status_callback_url: The URL that we should call to pass status parameters (such as call ended) to your application.
        :param status_callback_method: The HTTP method we should use to call `status_callback_url`. Can be: `GET` or `POST`.
        :param cnam_lookup_enabled: Whether Caller ID Name (CNAM) lookup is enabled for the trunk. If enabled, all inbound calls to the BYOC Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information.
        :param connection_policy_sid: The SID of the Connection Policy that Twilio will use when routing traffic to your communications infrastructure.
        :param from_domain_sid: The SID of the SIP Domain that should be used in the `From` header of originating calls sent to your SIP infrastructure. If your SIP infrastructure allows users to \"call back\" an incoming call, configure this with a [SIP Domain](https://www.twilio.com/docs/voice/api/sending-sip) to ensure proper routing. If not configured, the from domain will default to \"sip.twilio.com\".

        :returns: The created ByocTrunkInstance
        r€   rŒ   r‹   rz   r{   r�   rŽ   N)r   rv   r   r�   r5   Úcreate_asyncro   r   r‘   s                 r/   r¡   zByocTrunkList.create_async  s²   è ø€ ô< �y‰yà -Ø%Ø+Ø$6Ø'<Ø%8Ø(>Ü%.×%@Ñ%@ÐATÓ%UØ'<Ø!0ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà"Eˆ�Ñà.ˆ�ÑàŸ™×2Ñ2Ø˜tŸy™y¨t¸Wð 3ó 
÷ 
ˆô ! §¡°Ó8Ð8ð	
ús   ‚BB ÂBÂB ÚlimitÚ	page_sizec                 ó¢   — | j                   j                  ||«      }| j                  |d   ¬«      }| j                   j                  ||d   «      S )a_  
        Streams ByocTrunkInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        r£   ©r£   r¢   )r5   Úread_limitsÚpageÚstream©r-   r¢   r£   Úlimitsr§   s        r/   r¨   zByocTrunkList.stream<  sJ   € ð( —‘×*Ñ*¨5°)Ó<ˆØ�y‰y 6¨+Ñ#6ˆyÓ7ˆà�}‰}×#Ñ# D¨&°©/Ó:Ð:r0   c              ƒ   ó¾   K  — | j                   j                  ||«      }| j                  |d   ¬«      ƒ d{  –—† }| j                   j                  ||d   «      S 7 Œ#­w)an  
        Asynchronously streams ByocTrunkInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        r£   r¥   Nr¢   )r5   r¦   Ú
page_asyncÚstream_asyncr©   s        r/   r­   zByocTrunkList.stream_asyncU  sW   è ø€ ð( —‘×*Ñ*¨5°)Ó<ˆØ—_‘_¨v°kÑ/B�_ÓC×Cˆà�}‰}×)Ñ)¨$°°w±Ó@Ð@ð Dús   ‚5A·A¸$Ac                 ó:   — t        | j                  ||¬«      «      S )aü  
        Lists ByocTrunkInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        ©r¢   r£   )Úlistr¨   )r-   r¢   r£   s      r/   r°   zByocTrunkList.listn  s(   € ô& Ø�K‰KØØ#ð ó ó
ð 	
r0   c              ƒ   óz   K  — | j                  ||¬«      ƒ d{  –—† 2 �cg c3 d{  –—† }|‘Œ7 Œ7 Œ	6 c}S c c}w ­w)a  
        Asynchronously lists ByocTrunkInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        r¯   N)r­   )r-   r¢   r£   Úrecords       r/   Ú
list_asynczByocTrunkList.list_asyncˆ  sT   è ø€ ð* '+×&7Ñ&7ØØ#ð '8ó '÷ !÷
ô 
àò ð!øð
øò 
ð 	
ùò 
ùs0   ‚;™.š; 6¢2¦0
§2ª6®;°2²6³;Ú
page_tokenÚpage_numberc                 óê   — t        j                  |||dœ«      }t        j                  ddi«      }d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  |«      S )aw  
        Retrieve a single page of ByocTrunkInstance records from the API.
        Request is executed immediately

        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of ByocTrunkInstance
        ©Ú	PageTokenr   ÚPageSizerŒ   r‹   rz   r{   r|   ©rs   rt   Úparamsru   )r   rv   r5   r§   ro   r–   ©r-   r´   rµ   r£   r�   ru   Úresponses          r/   r§   zByocTrunkList.page£  sy   € ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�Ñà—=‘=×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô ˜TŸ]™]¨HÓ5Ð5r0   c              ƒ   ó  K  — t        j                  |||dœ«      }t        j                  ddi«      }d|d<   | j                  j                  d| j                  ||¬«      ƒ d{  –—† }t        | j                  |«      S 7 Œ­w)	a†  
        Asynchronously retrieve a single page of ByocTrunkInstance records from the API.
        Request is executed immediately

        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of ByocTrunkInstance
        r·   rŒ   r‹   rz   r{   r|   rº   N)r   rv   r5   r¬   ro   r–   r¼   s          r/   r¬   zByocTrunkList.page_asyncÄ  s‡   è ø€ ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°¸gð 2ó 
÷ 
ˆô ˜TŸ]™]¨HÓ5Ð5ð
ús   ‚A"BÁ$A?Á%BÚ
target_urlc                 óŽ   — | j                   j                  j                  j                  d|«      }t	        | j                   |«      S )z÷
        Retrieve a specific page of ByocTrunkInstance records from the API.
        Request is executed immediately

        :param target_url: API-generated URL for the requested results page

        :returns: Page of ByocTrunkInstance
        r|   )r5   ÚdomainÚtwilioÚrequestr–   ©r-   r¿   r½   s      r/   Úget_pagezByocTrunkList.get_pageå  s7   € ð —=‘=×'Ñ'×.Ñ.×6Ñ6°u¸jÓIˆÜ˜TŸ]™]¨HÓ5Ð5r0   c              ƒ   óª   K  — | j                   j                  j                  j                  d|«      ƒ d{  –—† }t	        | j                   |«      S 7 Œ­w)a  
        Asynchronously retrieve a specific page of ByocTrunkInstance records from the API.
        Request is executed immediately

        :param target_url: API-generated URL for the requested results page

        :returns: Page of ByocTrunkInstance
        r|   N)r5   rÁ   rÂ   Úrequest_asyncr–   rÄ   s      r/   Úget_page_asynczByocTrunkList.get_page_asyncñ  sD   è ø€ ð Ÿ™×-Ñ-×4Ñ4×BÑBÀ5È*ÓU×UˆÜ˜TŸ]™]¨HÓ5Ð5ð Vús   ‚4A¶A·Ar   c                 ó0   — t        | j                  |¬«      S ©z›
        Constructs a ByocTrunkContext

        :param sid: The Twilio-provided string that uniquely identifies the BYOC Trunk resource to update.
        r3   ©r4   r5   ©r-   r   s     r/   r)   zByocTrunkList.getý  ó   € ô   §¡°3Ô7Ð7r0   c                 ó0   — t        | j                  |¬«      S rÊ   rË   rÌ   s     r/   Ú__call__zByocTrunkList.__call__  rÍ   r0   c                  ó   — y)rN   z<Twilio.Voice.V1.ByocTrunkList>rn   r6   s    r/   r`   zByocTrunkList.__repr__  rš   r0   )NN)!ra   rb   rc   r   r(   r   rh   r   re   ri   rg   r   rŸ   r¡   r   Úintr	   r¨   r
   r­   r   r°   r³   r–   r§   r¬   rÅ   rÈ   r4   r)   rÏ   r`   rj   rk   s   @r/   rœ   rœ   ¿  s-  ø„ ð	" õ 	"ð -3¯L©LØ(.¯©Ø+1¯<©<Ø17·±Ø4:·L±LØ28·,±,Ø5;·\±\Ø39·<±<Ø4:·L±LØ.4¯l©lñ69à˜S &˜[Ñ)ð69ð ˜˜f˜Ñ%ð69ð ˜C ˜KÑ(ð	69ð
 " # v +Ñ.ð69ð  % S¨& [Ñ1ð69ð # 3¨ ;Ñ/ð69ð !& c¨6 kÑ 2ð69ð # 4¨ <Ñ0ð69ð  % S¨& [Ñ1ð69ð ˜s F˜{Ñ+ð69ð 
ó69ðt -3¯L©LØ(.¯©Ø+1¯<©<Ø17·±Ø4:·L±LØ28·,±,Ø5;·\±\Ø39·<±<Ø4:·L±LØ.4¯l©lñ69à˜S &˜[Ñ)ð69ð ˜˜f˜Ñ%ð69ð ˜C ˜KÑ(ð	69ð
 " # v +Ñ.ð69ð  % S¨& [Ñ1ð69ð # 3¨ ;Ñ/ð69ð !& c¨6 kÑ 2ð69ð # 4¨ <Ñ0ð69ð  % S¨& [Ñ1ð69ð ˜s F˜{Ñ+ð69ð 
ó69ðt  $Ø#'ñ;à˜‰}ð;ð ˜C‘=ð;ð 
Ð#Ñ	$ó	;ð6  $Ø#'ñAà˜‰}ðAð ˜C‘=ðAð 
Ð(Ñ	)ó	Að6  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
ÐÑ	 ó	
ð8  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
ÐÑ	 ó	
ð: *0¯©Ø*0¯,©,Ø(.¯©ñ	6à˜#˜v˜+Ñ&ð6ð ˜3 ˜;Ñ'ð6ð ˜˜f˜Ñ%ð	6ð
 
ó6ðF *0¯©Ø*0¯,©,Ø(.¯©ñ	6à˜#˜v˜+Ñ&ð6ð ˜3 ˜;Ñ'ð6ð ˜˜f˜Ñ%ð	6ð
 
ó6ðB
6 3ð 
6¨=ó 
6ð
6¨sð 
6°}ó 
6ð8�sð 8Ð/ó 8ð8˜Cð 8Ð$4ó 8ð1˜#÷ 1r0   rœ   N)rd   r   Útypingr   r   r   r   r   r	   r
   Útwilio.baser   r   r   Útwilio.base.instance_contextr   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.versionr   Útwilio.base.pager   r   r4   r–   rœ   rn   r0   r/   ú<module>rÙ      sj   ðñõ ß L× LÑ Lß 6Ñ 6Ý 8Ý :Ý 2Ý 'Ý !ôAHÐ(ô AHôHLG�ô LGô^1�Dô 1ô&T1�Lõ T1r0   