
    pi                         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       a/opt/services/ai/voice_agent/venv/lib/python3.12/site-packages/twilio/rest/voice/v1/byoc_trunk.pyr(   zByocTrunkInstance.__init__,   sZ    	!*1++m*D")++e"4,3KK,H(/K(@+2;;~+F18=Q1R4;KK@W4X"29++>S2T 5<[[$6
# 4;;;?T3U 4;KK@W4X".5kk:K.L0;0L0LKK'1
 1<0L0LKK'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     == ,NN5)DM }}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>        SDAq7>>!Q/S   !z&<Twilio.Voice.V1.ByocTrunkInstance {}>joinr+   itemsrS   r-   contexts     r/   __repr__zByocTrunkInstance.__repr__   s6     ((SDNN<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)-c3h9>Fsm9@  $ $0D 0#/ -3LL(.+1<<174:LL28,,5;\\39<<4:LL.4ll(
S&[)(
 f%(
 CK(	(

 "#v+.(
  %S&[1(
 #3;/(
 !&c6k 2(
 #4<0(
  %S&[1(
 sF{+(
 
(
X -3LL(.+1<<174:LL28,,5;\\39<<4:LL.4ll(
S&[)(
 f%(
 CK(	(

 "#v+.(
  %S&[1(
 #3;/(
 !&c6k 2(
 #4<0(
  %S&[1(
 sF{+(
 
(
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 MM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dii 2 
 
 !MM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    < yy -%+$6'<%8(>%.%@%@AT%U'<!0
 ))B-"E.--&&tyytW ' 
 !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     < yy -%+$6'<%8(>%.%@%@AT%U'<!0
 ))B-"E.22tyytW 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     ((SDNN<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 -3LL(.+1<<174:LL28,,5;\\39<<4:LL.4ll6TS&[)6T f%6T CK(	6T
 "#v+.6T  %S&[16T #3;/6T !&c6k 26T #4<06T  %S&[16T sF{+6T 
6Tt -3LL(.+1<<174:LL28,,5;\\39<<4:LL.4ll6TS&[)6T f%6T CK(	6T
 "#v+.6T  %S&[16T #3;/6T !&c6k 26T #4<06T  %S&[16T sF{+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*    9DcN 97H 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    < yy -%+$6'<%8(>%.%@%@AT%U'<!0
 ))^-PQR"E.--&&tyytW ' 
 !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     < yy -%+$6'<%8(>%.%@%@AT%U'<!0
 ))^-PQR"E.22tyytW 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)<yy6+#6y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)<__vk/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(    & KK#  
 	
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      yy'#%
 ))^-PQR.==%%dii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       yy'#%
 ))^-PQR.11dii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6uj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B5*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-   	" 	" -3LL(.+1<<174:LL28,,5;\\39<<4:LL.4ll69S&[)69 f%69 CK(	69
 "#v+.69  %S&[169 #3;/69 !&c6k 269 #4<069  %S&[169 sF{+69 
69t -3LL(.+1<<174:LL28,,5;\\39<<4:LL.4ll69S&[)69 f%69 CK(	69
 "#v+.69  %S&[169 #3;/69 !&c6k 269 #4<069  %S&[169 sF{+69 
69t  $#';}; C=; 
#	$	;6  $#'A}A C=A 
(	)	A6  $#'
}
 C=
 
	 	
8  $#'
}
 C=
 
	 	
: *0*0,,(.	6#v+&6 3;'6 f%	6
 
6F *0*0,,(.	6#v+&6 3;'6 f%	6
 
6B
63 
6= 
6
6s 
6} 
68s 8/ 88C 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^1D 1&T1L T1r0   