
    d{i#%                        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 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)ApiResponse)InstanceContext)InstanceResource)ListResource)Version)Pagec                       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efd
ZdefdZd!dZd!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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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 )"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       ]/home/sas/my/fyp/ringai/.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    r0   _proxyzByocTrunkInstance._proxyM   s9     == ,NN5)DM }}r1   c                 6    | j                   j                         S zl
        Deletes the ByocTrunkInstance


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


        :returns: True if delete succeeds, False otherwise
        N)r8   delete_asyncr7   s    r0   r>   zByocTrunkInstance.delete_asynce   s!      [[--////   '%'c                 6    | j                   j                         S )z
        Deletes the ByocTrunkInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        )r8   delete_with_http_infor7   s    r0   rA   z'ByocTrunkInstance.delete_with_http_infon   s     {{0022r1   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine that deletes the ByocTrunkInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        N)r8   delete_with_http_info_asyncr7   s    r0   rC   z-ByocTrunkInstance.delete_with_http_info_asyncw   s!      [[<<>>>>r?   c                 6    | j                   j                         S )_
        Fetch the ByocTrunkInstance


        :returns: The fetched ByocTrunkInstance
        )r8   fetchr7   s    r0   rF   zByocTrunkInstance.fetch   s     {{  ""r1   c                 R   K   | j                   j                          d{   S 7 w)y
        Asynchronous coroutine to fetch the ByocTrunkInstance


        :returns: The fetched ByocTrunkInstance
        N)r8   fetch_asyncr7   s    r0   rI   zByocTrunkInstance.fetch_async   s!      [[,,....r?   c                 6    | j                   j                         S )z
        Fetch the ByocTrunkInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        )r8   fetch_with_http_infor7   s    r0   rK   z&ByocTrunkInstance.fetch_with_http_info   s     {{//11r1   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine to fetch the ByocTrunkInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        N)r8   fetch_with_http_info_asyncr7   s    r0   rM   z,ByocTrunkInstance.fetch_with_http_info_async   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$   )r8   updater.   r   r   r   r   r   r    r!   r"   r#   r$   s              r0   rQ   zByocTrunkInstance.update   s>    : {{!!'%1"7 3#9 3"7+ " 
 	
r1   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
        rP   N)r8   update_asyncrR   s              r0   rU   zByocTrunkInstance.update_async   sL     : [[--'%1"7 3#9 3"7+ . 
 
 	
 
   )202c                 L    | j                   j                  |||||||||	|

      S )a^  
        Update the ByocTrunkInstance with HTTP info

        :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: ApiResponse with instance, status code, and headers
        rP   )r8   update_with_http_inforR   s              r0   rX   z'ByocTrunkInstance.update_with_http_info   s>    : {{00'%1"7 3#9 3"7+ 1 
 	
r1   c                 h   K   | j                   j                  |||||||||	|

       d{   S 7 w)ax  
        Asynchronous coroutine to update the ByocTrunkInstance with HTTP info

        :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: ApiResponse with instance, status code, and headers
        rP   N)r8   update_with_http_info_asyncrR   s              r0   rZ   z-ByocTrunkInstance.update_with_http_info_async"  sL     : [[<<'%1"7 3#9 3"7+ = 
 
 	
 
rV   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      r0   	<genexpr>z-ByocTrunkInstance.__repr__.<locals>.<genexpr>R       SDAq7>>!Q/S   !z&<Twilio.Voice.V1.ByocTrunkInstance {}>joinr,   itemsra   r.   contexts     r0   __repr__zByocTrunkInstance.__repr__L  s6     ((SDNN<P<P<RSS7>>wGGr1   )N)r2   r5   )r2   r   ) __name__
__module____qualname____doc__r   r   strr   r   r)   propertyr8   boolr;   r>   r   rA   rC   rF   rI   rK   rM   r   unsetr   objectrQ   rU   rX   rZ   rn   __classcell__r/   s   @r0   r   r      s   & OS99)-c3h9>Fsm9@  $ $0D 03{ 3?; ?#/2k 2>+ > -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{+(
 
(
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{+(
 
(
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r1   r   c                   	    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defd	Zde
fd
ZdefdZde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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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 )"r5   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,   ra   _uri)r.   r   r   r/   s      r0   r)   zByocTrunkContext.__init__X  s@     	! 3
 /'..@@	r1   r2   c                 |    t        j                  i       }| j                  j                  d| j                  |      S )z
        Internal helper for delete operation

        Returns:
            tuple: (success_boolean, status_code, headers)
        DELETEmethoduriheaders)r   ofr6   delete_with_response_infor}   r.   r   s     r0   _deletezByocTrunkContext._deleteg  s8     ))B-}}66G 7 
 	
r1   c                 .    | j                         \  }}}|S r:   )r   r.   success_s      r0   r;   zByocTrunkContext.deleteu  s     Ar1   c                 F    | j                         \  }}}t        |||      S )z
        Deletes the ByocTrunkInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        datastatus_coder   )r   r   r.   r   r   r   s       r0   rA   z&ByocTrunkContext.delete_with_http_info  s%     )-%g['RRr1   c                    K   t        j                  i       }| j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for delete operation

        Returns:
            tuple: (success_boolean, status_code, headers)
        r   r   N)r   r   r6   delete_with_response_info_asyncr}   r   s     r0   _delete_asynczByocTrunkContext._delete_async  sG      ))B-]]BBG C 
 
 	
 
s   AA
AA
c                 J   K   | j                          d{   \  }}}|S 7 
wr=   )r   r   s      r0   r>   zByocTrunkContext.delete_async  s)      #0022A 3s   #!#c                 b   K   | j                          d{   \  }}}t        |||      S 7 w)z
        Asynchronous coroutine that deletes the ByocTrunkInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        Nr   )r   r   r   s       r0   rC   z,ByocTrunkContext.delete_with_http_info_async  s5      /3.@.@.B(B%g['RR )Cs   /-/c                     t        j                  i       }d|d<   | j                  j                  d| j                  |      S )zz
        Internal helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        application/jsonAcceptGETr   )r   r   r6   fetch_with_response_infor}   r   s     r0   _fetchzByocTrunkContext._fetch  sB     ))B-.}}55dii 6 
 	
r1   c                 t    | j                         \  }}}t        | j                  || j                  d         S )rE   r   r4   )r   r   r6   r,   r.   r   r   s      r0   rF   zByocTrunkContext.fetch  s8     A MMu%
 	
r1   c                     | j                         \  }}}t        | j                  || j                  d         }t	        |||      S )z
        Fetch the ByocTrunkInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r   r4   r   )r   r   r6   r,   r   r.   r   r   r   instances        r0   rK   z%ByocTrunkContext.fetch_with_http_info  sG     )-%g$MMu%

 k7SSr1   c                    K   t        j                  i       }d|d<   | j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   r   N)r   r   r6   fetch_with_response_info_asyncr}   r   s     r0   _fetch_asynczByocTrunkContext._fetch_async  sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         S 7 -w)rH   Nr   r4   )r   r   r6   r,   r   s      r0   rI   zByocTrunkContext.fetch_async  sG      #//11A MMu%
 	
 2s   AA.Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)z
        Asynchronous coroutine to fetch the ByocTrunkInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr   r4   r   )r   r   r6   r,   r   r   s        r0   rM   z+ByocTrunkContext.fetch_with_http_info_async  sW      /3.?.?.A(A%g$MMu%

 k7SS )Bs   AA<Ar   r   r   r   r   r    r!   r"   r#   r$   c                     t        j                  |||||||t        j                  |      |	|
d
      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||      S )z{
        Internal helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        
FriendlyNameVoiceUrlVoiceMethodVoiceFallbackUrlVoiceFallbackMethodStatusCallbackUrlStatusCallbackMethodCnamLookupEnabledConnectionPolicySidFromDomainSid!application/x-www-form-urlencodedContent-Typer   r   POSTr   r   r   r   )r   r   r   boolean_to_stringr6   update_with_response_infor}   r.   r   r   r   r   r   r    r!   r"   r#   r$   r   r   s                r0   _updatezByocTrunkContext._update  s    ( yy -%+$6'<%8(>%.%@%@AT%U'<!0
 ))B-"E.}}66tyytW 7 
 	
r1   c                     | j                  |||||||||	|

      \  }}}t        | j                  || j                  d         S )rO   rP   r   r4   )r   r   r6   r,   r.   r   r   r   r   r   r    r!   r"   r#   r$   r   r   s                r0   rQ   zByocTrunkContext.update1  sY    : '%1"7 3#9 3"7+ % 
A !T^^E=RSSr1   c                     | j                  |||||||||	|

      \  }}}t        | j                  || j                  d         }t	        |||      S )al  
        Update the ByocTrunkInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        rP   r   r4   r   )r   r   r6   r,   r   r.   r   r   r   r   r   r    r!   r"   r#   r$   r   r   r   r   s                  r0   rX   z&ByocTrunkContext.update_with_http_info\  si    : )-'%1"7 3#9 3"7+ )5 )
%g %T]]GPUAVWk7SSr1   c                   K   t        j                  |||||||t        j                  |      |	|
d
      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||       d{   S 7 w)	z
        Internal async helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   r   r   r   r   N)r   r   r   r   r6   update_with_response_info_asyncr}   r   s                r0   _update_asynczByocTrunkContext._update_async  s     ( yy -%+$6'<%8(>%.%@%@AT%U'<!0
 ))B-"E.]]BBtyytW C 
 
 	
 
s   A?BBBc                    K   | j                  |||||||||	|

       d{   \  }}}t        | j                  || j                  d         S 7 -w)rT   rP   Nr   r4   )r   r   r6   r,   r   s                r0   rU   zByocTrunkContext.update_async  si     : #00'%1"7 3#9 3"7+ 1 
 
A !T^^E=RSS
s   AA.Ac                    K   | j                  |||||||||	|

       d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)a  
        Asynchronous coroutine to update the ByocTrunkInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        rP   Nr   r4   r   )r   r   r6   r,   r   r   s                  r0   rZ   z,ByocTrunkContext.update_with_http_info_async  sz     : /3.@.@'%1"7 3#9 3"7+ /A /
 )
%g %T]]GPUAVWk7SS)
s   AA<Ac                     dj                  d | j                  j                         D              }dj                  |      S )r\   r]   c              3   F   K   | ]  \  }}d j                  ||        ywr_   r`   rb   s      r0   rf   z,ByocTrunkContext.__repr__.<locals>.<genexpr>  rg   rh   z%<Twilio.Voice.V1.ByocTrunkContext {}>ri   rl   s     r0   rn   zByocTrunkContext.__repr__  s6     ((SDNN<P<P<RSS6==gFFr1   )"ro   rp   rq   r   rs   r)   tupler   ru   r;   r   rA   r   r>   rC   r   r   rF   rK   r   rI   rM   r   rv   r   rw   r   rQ   rX   r   rU   rZ   rn   rx   ry   s   @r0   r5   r5   V  si   A Ac A
 
 S{ S
U 
D S; S
 
 
( 
Tk T
E 
 
#4 
T+ T" -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{+*
 
*
\ -3LL(.+1<<174:LL28,,5;\\39<<4:LL.4ll)TS&[))T f%)T CK(	)T
 "#v+.)T  %S&[1)T #3;/)T !&c6k 2)T #4<0)T  %S&[1)T sF{+)T 
)TZ -3LL(.+1<<174:LL28,,5;\\39<<4:LL.4ll*TS&[)*T f%*T CK(	*T
 "#v+.*T  %S&[1*T #3;/*T !&c6k 2*T #4<0*T  %S&[1*T sF{+*T 
*T\ -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{+*
 
*
\ -3LL(.+1<<174:LL28,,5;\\39<<4:LL.4ll)TS&[))T f%)T CK(	)T
 "#v+.)T  %S&[1)T #3;/)T !&c6k 2)T #4<0)T  %S&[1)T sF{+)T 
)TZ -3LL(.+1<<174:LL28,,5;\\39<<4:LL.4ll*TS&[)*T f%*T CK(	*T
 "#v+.*T  %S&[1*T #3;/*T !&c6k 2*T #4<0*T  %S&[1*T sF{+*T 
*TXG# Gr1   r5   c                   2    e Zd Zdeeef   defdZdefdZy)ByocTrunkPager   r2   c                 .    t        | j                  |      S )zo
        Build an instance of ByocTrunkInstance

        :param payload: Payload response from the API
        )r   r6   )r.   r   s     r0   get_instancezByocTrunkPage.get_instance  s     !88r1   c                      y)r\   z<Twilio.Voice.V1.ByocTrunkPage>r|   r7   s    r0   rn   zByocTrunkPage.__repr__       1r1   N)	ro   rp   rq   r   rs   r   r   r   rn   r|   r1   r0   r   r     s*    9DcN 97H 91# 1r1   r   c                   d    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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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fdZ	 	 d+dee   dee   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fdZ	 	 d+dee   dee   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"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$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)   r}   )r.   r   r/   s     r0   r)   zByocTrunkList.__init__*  s     	!!	r1   r   r   r   r   r   r    r!   r"   r#   r$   r2   c                     t        j                  |||||||t        j                  |      |	|
d
      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||      S )z{
        Internal helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   r   r   r   r   )r   r   r   r   r6   create_with_response_infor}   r   s                r0   _createzByocTrunkList._create5  s    ( yy -%+$6'<%8(>%.%@%@AT%U'<!0
 ))^-PQR"E.}}66tyytW 7 
 	
r1   c                 l    | 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
        rP   )r   r   r6   r   s                r0   createzByocTrunkList.createa  sN    : '%1"7 3#9 3"7+ % 
A !88r1   c                     | j                  |||||||||	|

      \  }}}t        | j                  |      }t        |||      S )a~  
        Create the ByocTrunkInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        rP   r   )r   r   r6   r   r   s                  r0   create_with_http_infoz#ByocTrunkList.create_with_http_info  s]    : )-'%1"7 3#9 3"7+ )5 )
%g %T]]G<k7SSr1   c                   K   t        j                  |||||||t        j                  |      |	|
d
      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||       d{   S 7 w)	z
        Internal async helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   r   r   r   r   N)r   r   r   r   r6   create_with_response_info_asyncr}   r   s                r0   _create_asynczByocTrunkList._create_async  s     ( yy -%+$6'<%8(>%.%@%@AT%U'<!0
 ))^-PQR"E.]]BBtyytW C 
 
 	
 
s   BB
BB
c                    K   | 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
        rP   N)r   r   r6   r   s                r0   create_asynczByocTrunkList.create_async  s^     : #00'%1"7 3#9 3"7+ 1 
 
A !88
s   AA Ac                    K   | j                  |||||||||	|

       d{   \  }}}t        | j                  |      }t        |||      S 7 ,w)a  
        Asynchronously create the ByocTrunkInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        rP   Nr   )r   r   r6   r   r   s                  r0   create_with_http_info_asyncz)ByocTrunkList.create_with_http_info_async  sn     : /3.@.@'%1"7 3#9 3"7+ /A /
 )
%g %T]]G<k7SS)
s   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   )r6   read_limitspagestreamr.   r   r   limitsr   s        r0   r   zByocTrunkList.stream;  sJ    ( **5)<yy6+#6y7}}##D&/::r1   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   )r6   r   
page_asyncstream_asyncr   s        r0   r   zByocTrunkList.stream_asyncT  sW     ( **5)<__vk/B_CC}}))$w@@ Ds   5AA$Ac                     | j                   j                  ||      }| j                  |d         }| j                   j                  |j                  |d         }||j
                  |j                  fS )a  
        Streams ByocTrunkInstance and returns headers from first page


        :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: tuple of (generator, status_code, headers) where generator yields instances
        r   r   r   )r6   r   page_with_http_infor   r   r   r   r.   r   r   r   page_response	generators         r0   stream_with_http_infoz#ByocTrunkList.stream_with_http_infom  sk    $ **5)<006+;N0OMM((););VG_M	=44m6K6KLLr1   c                   K   | j                   j                  ||      }| j                  |d          d{   }| j                   j                  |j                  |d         }||j
                  |j                  fS 7 Fw)a  
        Asynchronously streams ByocTrunkInstance and returns headers from first page


        :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: tuple of (generator, status_code, headers) where generator yields instances
        r   r   Nr   )r6   r   page_with_http_info_asyncr   r   r   r   r   s         r0   stream_with_http_info_asyncz)ByocTrunkList.stream_with_http_info_async  s     $ **5)<"<<[) = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   5B A>AB 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      r0   r   zByocTrunkList.list  s(    & KK#  
 	
r1   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       r0   
list_asynczByocTrunkList.list_async  sT     * '+&7&7# '8 ' !
 
 !
 
 	
 
s0   ;.;620
26;26;c                 b    | j                  ||      \  }}}t        |      }t        |||      S )a  
        Lists ByocTrunkInstance and returns headers from first page


        :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: ApiResponse with list of instances, status code, and headers
        r   r   )r   r   r   )r.   r   r   r   r   r   rk   s          r0   list_with_http_infoz!ByocTrunkList.list_with_http_info  sA    $ +/*D*D +E +
'	; Y;PPr1   c                    K   | j                  ||       d{   \  }}}|2 cg c3 d{   }|7 7 	6 nc c}w }}t        |||      S w)a  
        Asynchronously lists ByocTrunkInstance and returns headers from first page


        :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: ApiResponse with list of instances, status code, and headers
        r   Nr   )r   r   )r.   r   r   r   r   r   r   rk   s           r0   list_with_http_info_asyncz'ByocTrunkList.list_with_http_info_async  sf     $ 150P0P 1Q 1
 +
'	; -666&	+
 7666;PPs4   A4A:86
8:A8:A
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   r   r   r   r   r   paramsr   )r   r   r6   r   r}   r   r.   r   r   r   r   r   responses          r0   r   zByocTrunkList.page  sy      yy'#%
 ))^-PQR.==%%diig & 
 T]]H55r1   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   r   r   r   r  N)r   r   r6   r   r}   r   r  s          r0   r   zByocTrunkList.page_async'  s       yy'#%
 ))^-PQR.11diig 2 
 
 T]]H55
s   A"B$A?%Bc                    t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      \  }}}t        | j                  |      }	t        |	||      S )	a[  
        Retrieve a single page with response metadata


        :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: ApiResponse with ByocTrunkPage, status code, and headers
        r   r   r   r   r   r   r  r   )r   r   r6   page_with_response_infor}   r   r   
r.   r   r   r   r   r   r  r   response_headersr   s
             r0   r   z!ByocTrunkList.page_with_http_infoH  s      yy'#%
 ))^-PQR.26--2W2Wdiig 3X 3
/+/ T]]H5+GWXXr1   c                 *  K   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   \  }}}t        | j                  |      }	t        |	||	      S 7 ,w)
aj  
        Asynchronously retrieve a single page with response metadata


        :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: ApiResponse with ByocTrunkPage, status code, and headers
        r   r   r   r   r   r   r  Nr   )r   r   r6   page_with_response_info_asyncr}   r   r   r	  s
             r0   r   z'ByocTrunkList.page_with_http_info_asyncj  s       yy'#%
 ))^-PQR. --==$))D' >   	0+/
 T]]H5+GWXXs   A"B$B%-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   )r6   domaintwiliorequestr   r.   r  r  s      r0   get_pagezByocTrunkList.get_page  s7     ==''..66ujIT]]H55r1   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)r6   r  r  request_asyncr   r  s      r0   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.
        r4   r5   r6   r.   r   s     r0   r*   zByocTrunkList.get        377r1   c                 0    t        | j                  |      S r  r  r  s     r0   __call__zByocTrunkList.__call__  r  r1   c                      y)r\   z<Twilio.Voice.V1.ByocTrunkList>r|   r7   s    r0   rn   zByocTrunkList.__repr__  r   r1   )NN)-ro   rp   rq   r   r)   r   rv   r   rs   rw   ru   r   r   r   r   r   r   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r5   r*   r  rn   rx   ry   s   @r0   r   r   (  s/
   	" 	" -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{+*
 
*
\ -3LL(.+1<<174:LL28,,5;\\39<<4:LL.4ll)9S&[))9 f%)9 CK(	)9
 "#v+.)9  %S&[1)9 #3;/)9 !&c6k 2)9 #4<0)9  %S&[1)9 sF{+)9 
)9Z -3LL(.+1<<174:LL28,,5;\\39<<4:LL.4ll*TS&[)*T f%*T CK(	*T
 "#v+.*T  %S&[1*T #3;/*T !&c6k 2*T #4<0*T  %S&[1*T sF{+*T 
*T\ -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{+*
 
*
\ -3LL(.+1<<174:LL28,,5;\\39<<4:LL.4ll)9S&[))9 f%)9 CK(	)9
 "#v+.)9  %S&[1)9 #3;/)9 !&c6k 2)9 #4<0)9  %S&[1)9 sF{+)9 
)9Z -3LL(.+1<<174:LL28,,5;\\39<<4:LL.4ll*TS&[)*T f%*T CK(	*T
 "#v+.*T  %S&[1*T #3;/*T !&c6k 2*T #4<0*T  %S&[1*T sF{+*T 
*T\  $#';}; C=; 
#	$	;6  $#'A}A C=A 
(	)	A6  $#'M}M C=M 
	M4  $#'M}M C=M 
	M8  $#'
}
 C=
 
	 	
8  $#'
}
 C=
 
	 	
:  $#'Q}Q C=Q 
	Q6  $#'Q}Q C=Q 
	Q6 *0*0,,(.	6#v+&6 3;'6 f%	6
 
6F *0*0,,(.	6#v+&6 3;'6 f%	6
 
6F *0*0,,(.	 Y#v+& Y 3;' Y f%	 Y
 
 YH *0*0,,(.	"Y#v+&"Y 3;'"Y f%	"Y
 
"YH
63 
6= 
6
6s 
6} 
68s 8/ 88C 8$4 81# 1r1   r   N)rr   r   typingr   r   r   r   r   r	   r
   twilio.baser   r   r   twilio.base.api_responser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r5   r   r   r|   r1   r0   <module>r(     sm     L L L 6 6 0 8 : 2 ' !yH( yHx	|G |G~1D 1&T
1L T
1r1   