
    i?1i                         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 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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       i/home/www/therecruiter.miabetepe.com/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._proxyN   s9     == ,NN5)DM }}r/   c                 6    | j                   j                         S )l
        Deletes the ByocTrunkInstance


        :returns: True if delete succeeds, False otherwise
        )r6   deleter5   s    r.   r9   zByocTrunkInstance.delete]   s     {{!!##r/   c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine that deletes the ByocTrunkInstance


        :returns: True if delete succeeds, False otherwise
        N)r6   delete_asyncr5   s    r.   r<   zByocTrunkInstance.delete_asyncf   s!      [[--////   '%'c                 6    | j                   j                         S )_
        Fetch the ByocTrunkInstance


        :returns: The fetched ByocTrunkInstance
        )r6   fetchr5   s    r.   r@   zByocTrunkInstance.fetcho   s     {{  ""r/   c                 R   K   | j                   j                          d{   S 7 w)y
        Asynchronous coroutine to fetch the ByocTrunkInstance


        :returns: The fetched ByocTrunkInstance
        N)r6   fetch_asyncr5   s    r.   rC   zByocTrunkInstance.fetch_asyncx   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"   )r6   updater,   r   r   r   r   r   r   r   r    r!   r"   s              r.   rG   zByocTrunkInstance.update   s>    : {{!!'%1"7 3#9 3"7+ " 
 	
r/   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
        rF   N)r6   update_asyncrH   s              r.   rK   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*   itemsrR   r,   contexts     r.   __repr__zByocTrunkInstance.__repr__   s6     ((SDNN<P<P<RSS7>>wGGr/   )N)r0   r3   )r0   r   )__name__
__module____qualname____doc__r   r   strr   r   r'   propertyr6   boolr9   r<   r@   rC   r   unsetr   objectrG   rK   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r/   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 )r3   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*   rR   _uri)r,   r   r   r-   s      r.   r'   zByocTrunkContext.__init__   s@     	! 3
 /'..@@	r/   r0   c                 P    | j                   j                  d| j                        S )r8   DELETEmethoduri)r4   r9   rn   r5   s    r.   r9   zByocTrunkContext.delete   s*     }}##		 $ 
 	
r/   c                 l   K   | j                   j                  d| j                         d{   S 7 w)r;   rp   rq   N)r4   r<   rn   r5   s    r.   r<   zByocTrunkContext.delete_async   s8      ]]//		 0 
 
 	
 
s   +424c                     | j                   j                  d| j                        }t        | j                   || j                  d         S )r?   GETrq   r   r2   )r4   r@   rn   r   r*   r,   r   s     r.   r@   zByocTrunkContext.fetch  sL     --%%		 & 

 !MMu%
 	
r/   c                    K   | j                   j                  d| j                         d{   }t        | j                   || j                  d         S 7 )w)rB   rv   rq   Nr   r2   )r4   rC   rn   r   r*   rw   s     r.   rC   zByocTrunkContext.fetch_async  sZ      11		 2 
 

 !MMu%
 	

s   +AA*Ar   r   r   r   r   r   r   r    r!   r"   c                     t        j                  |||||||||	|
d
      }| j                  j                  d| j                  |      }t        | j                  || j                  d         S )rE   
FriendlyNameVoiceUrlVoiceMethodVoiceFallbackUrlVoiceFallbackMethodStatusCallbackUrlStatusCallbackMethodCnamLookupEnabledConnectionPolicySidFromDomainSidPOSTrr   rs   datar   r2   )r   ofr4   rG   rn   r   r*   r,   r   r   r   r   r   r   r   r    r!   r"   r   r   s                r.   rG   zByocTrunkContext.update-  s{    : yy -%+$6'<%8(>%8'<!0
 --&&		 ' 
 !T^^E=RSSr/   c                    K   t        j                  |||||||||	|
d
      }| j                  j                  d| j                  |       d{   }t        | j                  || j                  d         S 7 )w)rJ   rz   r   r   Nr   r2   )r   r   r4   rK   rn   r   r*   r   s                r.   rK   zByocTrunkContext.update_asynca  s     : yy -%+$6'<%8(>%8'<!0
 22		 3 
 
 !T^^E=RSS
s   AA:A8*A:c                     dj                  d | j                  j                         D              }dj                  |      S )rM   rN   c              3   F   K   | ]  \  }}d j                  ||        ywrP   rQ   rS   s      r.   rW   z,ByocTrunkContext.__repr__.<locals>.<genexpr>  rX   rY   z%<Twilio.Voice.V1.ByocTrunkContext {}>rZ   r]   s     r.   r_   zByocTrunkContext.__repr__  s6     ((SDNN<P<P<RSS6==gFFr/   )r`   ra   rb   r   rd   r'   rf   r9   r<   r   r@   rC   r   rg   r   rh   rG   rK   r_   ri   rj   s   @r.   r3   r3      s   A Ac A

 



D 


( 
&
#4 
* -3LL(.+1<<174:LL28,,5;\\39<<4:LL.4ll2TS&[)2T f%2T CK(	2T
 "#v+.2T  %S&[12T #3;/2T !&c6k 22T #4<02T  %S&[12T sF{+2T 
2Tl -3LL(.+1<<174:LL28,,5;\\39<<4:LL.4ll2TS&[)2T f%2T CK(	2T
 "#v+.2T  %S&[12T #3;/2T !&c6k 22T #4<02T  %S&[12T sF{+2T 
2ThG# Gr/   r3   c                   2    e Zd Zdeeef   defdZdefdZy)ByocTrunkPager   r0   c                 .    t        | j                  |      S )zo
        Build an instance of ByocTrunkInstance

        :param payload: Payload response from the API
        )r   r4   rw   s     r.   get_instancezByocTrunkPage.get_instance  s     !88r/   c                      y)rM   z<Twilio.Voice.V1.ByocTrunkPage>rm   r5   s    r.   r_   zByocTrunkPage.__repr__       1r/   N)	r`   ra   rb   r   rd   r   r   r   r_   rm   r/   r.   r   r     s*    9DcN 97H 91# 1r/   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'   rn   )r,   r   r-   s     r.   r'   zByocTrunkList.__init__  s     	!!	r/   r   r   r   r   r   r   r   r    r!   r"   r0   c                     t        j                  |||||||||	|
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
        rz   r   r   )r   r   r4   creatern   r   r   s                r.   r   zByocTrunkList.create  sp    : yy -%+$6'<%8(>%8'<!0
 --&&		 ' 
 !88r/   c                    K   t        j                  |||||||||	|
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
        rz   r   r   N)r   r   r4   create_asyncrn   r   r   s                r.   r   zByocTrunkList.create_async  s~     : yy -%+$6'<%8(>%8'<!0
 22		 3 
 
 !88
s   AA+A)A+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   )r4   read_limitspagestreamr,   r   r   limitsr   s        r.   r   zByocTrunkList.stream%  sJ    ( **5)<yy6+#6y7}}##D&/::r/   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   )r4   r   
page_asyncstream_asyncr   s        r.   r   zByocTrunkList.stream_async>  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.listW  s(    & KK#  
 	
r/   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_asyncq  sT     * '+&7&7# '8 ' !
 
 !
 
 	
 
s0   ;.;620
26;26;
page_tokenpage_numberc                     t        j                  |||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   PageSizerv   rr   rs   params)r   r   r4   r   rn   r   r,   r   r   r   r   responses         r.   r   zByocTrunkList.page  sR      yy'#%
 ==%%U		$%OT]]H55r/   c                    K   t        j                  |||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   rv   r   N)r   r   r4   r   rn   r   r   s         r.   r   zByocTrunkList.page_async  sg       yy'#%
 11dii 2 
 
 T]]H55
s   AA$A"A$
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
        rv   )r4   domaintwiliorequestr   r,   r   r   s      r.   get_pagezByocTrunkList.get_page  s7     ==''..66ujIT]]H55r/   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
        rv   N)r4   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.
        r2   r3   r4   r,   r   s     r.   r(   zByocTrunkList.get        377r/   c                 0    t        | j                  |      S r   r   r   s     r.   __call__zByocTrunkList.__call__  r   r/   c                      y)rM   z<Twilio.Voice.V1.ByocTrunkList>rm   r5   s    r.   r_   zByocTrunkList.__repr__  r   r/   )NN)!r`   ra   rb   r   r'   r   rg   r   rd   rh   rf   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r   r   r3   r(   r   r_   ri   rj   s   @r.   r   r     s+   	" 	" -3LL(.+1<<174:LL28,,5;\\39<<4:LL.4ll29S&[)29 f%29 CK(	29
 "#v+.29  %S&[129 #3;/29 !&c6k 229 #4<029  %S&[129 sF{+29 
29l -3LL(.+1<<174:LL28,,5;\\39<<4:LL.4ll29S&[)29 f%29 CK(	29
 "#v+.29  %S&[129 #3;/29 !&c6k 229 #4<029  %S&[129 sF{+29 
29l  $#';}; C=; 
#	$	;6  $#'A}A C=A 
(	)	A6  $#'
}
 C=
 
	 	
8  $#'
}
 C=
 
	 	
: *0*0,,(.	6#v+&6 3;'6 f%	6
 
6: *0*0,,(.	6#v+&6 3;'6 f%	6
 
6:
63 
6= 
6
6s 
6} 
68s 8/ 88C 8$4 81# 1r/   r   N)rc   r   typingr   r   r   r   r   r	   r
   twilio.baser   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r3   r   r   rm   r/   r.   <module>r      sg     L L L + 8 : 2 ' !BH( BHJ}G }G@1D 1$A1L A1r/   