
    g                         S r SSKJr  SSKJrJrJrJrJrJrJ	r	  SSK
JrJrJr  SSKJr  SSKJr  SSKJr  SSKJr  SS	KJr   " S
 S\5      r " S S\5      r " S S\5      r " S S\5      rg)a  
 This code was generated by
___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

 Twilio - Voice
 This is the public Twilio REST API.

 NOTE: This class is auto generated by OpenAPI Generator.
 https://openapi-generator.tech
 Do not edit the class manually.
    )datetime)AnyDictListOptionalUnionIteratorAsyncIterator)deserialize	serializevalues)InstanceContext)InstanceResource)ListResource)Version)Pagec                     ^  \ rS rSrSr SS\S\\\4   S\	\   4U 4S jjjr
\SS j5       rS\4S	 jrS\4S
 jrSS jrSS jr\R&                  \R&                  \R&                  \R&                  \R&                  \R&                  \R&                  \R&                  \R&                  \R&                  4
S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   SS 4S jjr\R&                  \R&                  \R&                  \R&                  \R&                  \R&                  \R&                  \R&                  \R&                  \R&                  4
S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   SS 4S jjrS\4S jrSrU =r$ )ByocTrunkInstance   aq  
: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                 N  > [         TU ]  U5        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l	        UR                  S5      U l
        UR                  S	5      U l        UR                  S
5      U l        UR                  S5      U l        UR                  S5      U l        [        R                   " UR                  S5      5      U l        [        R                   " UR                  S5      5      U l        UR                  S5      U l        SU=(       d    U R                  0U l        S U l        g )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       g/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/voice/v1/byoc_trunk.pyr)   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                     U R                   c&  [        U R                  U R                  S   S9U l         U R                   $ )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   _proxyByocTrunkInstance._proxyL   s9     == ,NN5)DM }}r2   c                 6    U R                   R                  5       $ )T
Deletes the ByocTrunkInstance


:returns: True if delete succeeds, False otherwise
)r9   deleter8   s    r0   r=   ByocTrunkInstance.delete[   s     {{!!##r2   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)p
Asynchronous coroutine that deletes the ByocTrunkInstance


:returns: True if delete succeeds, False otherwise
N)r9   delete_asyncr8   s    r0   rA   ByocTrunkInstance.delete_asyncd   s       [[--////   '%'c                 6    U R                   R                  5       $ )G
Fetch the ByocTrunkInstance


:returns: The fetched ByocTrunkInstance
)r9   fetchr8   s    r0   rF   ByocTrunkInstance.fetchm   s     {{  ""r2   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)a
Asynchronous coroutine to fetch the ByocTrunkInstance


:returns: The fetched ByocTrunkInstance
N)r9   fetch_asyncr8   s    r0   rJ   ByocTrunkInstance.fetch_asyncv   s       [[,,....rC   r   r   r   r   r   r    r!   r"   r#   r$   c                 F    U R                   R                  UUUUUUUUU	U
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$   )r9   updater.   r   r   r   r   r   r    r!   r"   r#   r$   s              r0   rO   ByocTrunkInstance.update   s>    : {{!!'%1"7 3#9 3"7+ " 
 	
r2   c                 b   #    U R                   R                  UUUUUUUUU	U
S9
I Sh  vN $  N7f)  
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
rN   N)r9   update_asyncrP   s              r0   rT   ByocTrunkInstance.update_async   sK     : [[--'%1"7 3#9 3"7+ . 
 
 	
 
s   &/-/c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )N
Provide a friendly representation

:returns: Machine friendly representation
 c              3   H   #    U  H  u  pS R                  X5      v   M     g7fz{}={}Nformat.0kvs      r0   	<genexpr>-ByocTrunkInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z&<Twilio.Voice.V1.ByocTrunkInstance {}>joinr,   itemsr\   r.   contexts     r0   __repr__ByocTrunkInstance.__repr__   s6     ((SDNN<P<P<RSS7>>wGGr2   )r-   r,   r   r"   r#   r%   r&   r   r$   r   r!   r    r'   r   r   r   r   )N)r3   r6   )r3   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r)   propertyr9   boolr=   rA   rF   rJ   r   unsetr   objectrO   rT   rj   __static_attributes____classcell__r/   s   @r0   r   r      s   & OS99)-c3h9>Fsm9 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 Hr2   r   c                   n  ^  \ rS rSrS\S\4U 4S jjrS\4S jrS\4S jr	S\
4S jrS\
4S	 jr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4
S
\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\
4S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4
S
\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\
4S jjrS\4S jrSrU =r$ )r6      r   r   c                 x   > [         TU ]  U5        SU0U l        SR                  " S0 U R                  D6U l        g)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,   r\   _uri)r.   r   r   r/   s      r0   r)   ByocTrunkContext.__init__   s=     	! 3
 (..@@	r2   r3   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )r<   DELETEmethoduriheaders)r   ofr7   r=   r}   r.   r   s     r0   r=   ByocTrunkContext.delete   s1     ))B-}}##8G#TTr2   c                    #    [         R                  " 0 5      nU R                  R                  SU R                  US9I Sh  vN $  N7f)r@   r   r   N)r   r   r7   rA   r}   r   s     r0   rA   ByocTrunkContext.delete_async   sE      ))B-]]//G 0 
 
 	
 
s   ?AAAc                     [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9n[        U R                  UU R                  S   S9$ )rE   application/jsonAcceptGETr   r   r5   )r   r   r7   rF   r}   r   r,   r.   r   r   s      r0   rF   ByocTrunkContext.fetch  s]     ))B-.--%%U		7%S MMu%
 	
r2   c                    #    [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9I Sh  vN n[        U R                  UU R                  S   S9$  N&7f)rI   r   r   r   r   Nr   r5   )r   r   r7   rJ   r}   r   r,   r   s      r0   rJ   ByocTrunkContext.fetch_async  sq      ))B-.11dii 2 
 
 !MMu%
 	
	
s   AA/A-'A/r   r   r   r   r   r    r!   r"   r#   r$   c                 8   [         R                  " UUUUUUU[        R                  " U5      U	U
S.
5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  XS9n[        U R                  XR                  S   S	9$ )
rM   
FriendlyNameVoiceUrlVoiceMethodVoiceFallbackUrlVoiceFallbackMethodStatusCallbackUrlStatusCallbackMethodCnamLookupEnabledConnectionPolicySidFromDomainSid!application/x-www-form-urlencodedContent-Typer   r   POSTr   r   datar   r   r5   )	r   r   r   boolean_to_stringr7   rO   r}   r   r,   r.   r   r   r   r   r   r    r!   r"   r#   r$   r   r   r   s                 r0   rO   ByocTrunkContext.update2  s    < yy -%+$6'<%8(>%.%@%@AT%U'<!0
 ))B-"E.--&&tyyt ' 
 !^^E=RSSr2   c                 T  #    [         R                  " UUUUUUU[        R                  " U5      U	U
S.
5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  XS9I Sh  vN n[        U R                  XR                  S	   S
9$  N%7f)rS   r   r   r   r   r   r   r   Nr   r5   )	r   r   r   r   r7   rT   r}   r   r,   r   s                 r0   rT   ByocTrunkContext.update_asyncj  s     < yy -%+$6'<%8(>%.%@%@AT%U'<!0
 ))B-"E.22tyyt 3 
 
 !^^E=RSS	
s   A>B( B&&B(c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rW   rX   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frZ   r[   r]   s      r0   ra   ,ByocTrunkContext.__repr__.<locals>.<genexpr>  rc   rd   z%<Twilio.Voice.V1.ByocTrunkContext {}>re   rh   s     r0   rj   ByocTrunkContext.__repr__  s6     ((SDNN<P<P<RSS6==gFFr2   )r,   r}   )rl   rm   rn   ro   r   rq   r)   rs   r=   rA   r   rF   rJ   r   rt   r   ru   rO   rT   rj   rv   rw   rx   s   @r0   r6   r6      s   A Ac A
U 
U
D 

( 
(
#4 
0 -3LL(.+1<<174:LL28,,5;\\39<<4:LL.4ll6TS&[)6T f%6T CK(	6T
 "#v+.6T  %S&[16T #3;/6T !&c6k 26T #4<06T  %S&[16T sF{+6T 
6Tt -3LL(.+1<<174:LL28,,5;\\39<<4:LL.4ll6TS&[)6T f%6T CK(	6T
 "#v+.6T  %S&[16T #3;/6T !&c6k 26T #4<06T  %S&[16T sF{+6T 
6TpG# G Gr2   r6   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)ByocTrunkPagei  r   r3   c                 .    [        U R                  U5      $ )zW
Build an instance of ByocTrunkInstance

:param payload: Payload response from the API
)r   r7   )r.   r   s     r0   get_instanceByocTrunkPage.get_instance  s     !88r2   c                     g)rW   z<Twilio.Voice.V1.ByocTrunkPage>r|   r8   s    r0   rj   ByocTrunkPage.__repr__       1r2   r|   N)rl   rm   rn   ro   r   rq   r   r   r   rj   rv   r|   r2   r0   r   r     s*    9DcN 97H 91# 1r2   r   c                   6  ^  \ rS rSrS\4U 4S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4
S\\	\
4   S\\	\
4   S\\	\
4   S\\	\
4   S\\	\
4   S	\\	\
4   S
\\	\
4   S\\\
4   S\\	\
4   S\\	\
4   S\4S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4
S\\	\
4   S\\	\
4   S\\	\
4   S\\	\
4   S\\	\
4   S	\\	\
4   S
\\	\
4   S\\\
4   S\\	\
4   S\\	\
4   S\4S jjr  S#S\\   S\\   S\\   4S jjr  S#S\\   S\\   S\\   4S jjr  S#S\\   S\\   S\\   4S jjr  S#S\\   S\\   S\\   4S jjr\R                  \R                  \R                  4S\\	\
4   S\\\
4   S\\\
4   S\4S jjr\R                  \R                  \R                  4S\\	\
4   S\\\
4   S\\\
4   S\4S jjrS\	S\4S jrS\	S\4S jrS\	S\4S jrS\	S\4S  jrS\	4S! jr S"r!U =r"$ )$ByocTrunkListi  r   c                 2   > [         TU ]  U5        SU l        g)zS
Initialize the ByocTrunkList

:param version: Version that contains the resource

z/ByocTrunksN)r(   r)   r}   )r.   r   r/   s     r0   r)   ByocTrunkList.__init__  s     	!!	r2   r   r   r   r   r   r    r!   r"   r#   r$   r3   c                 &   [         R                  " UUUUUUU[        R                  " U5      U	U
S.
5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  XS9n[        U R                  U5      $ )a  
Create the ByocTrunkInstance

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

:returns: The created ByocTrunkInstance
r   r   r   r   r   r   r   )r   r   r   r   r7   creater}   r   r   s                 r0   r   ByocTrunkList.create  s    < yy -%+$6'<%8(>%.%@%@AT%U'<!0
 ))^-PQR"E.--&&tyyt ' 
 !88r2   c                 B  #    [         R                  " UUUUUUU[        R                  " U5      U	U
S.
5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  XS9I Sh  vN n[        U R                  U5      $  N7f)	a  
Asynchronously create the ByocTrunkInstance

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

:returns: The created ByocTrunkInstance
r   r   r   r   r   r   r   N)r   r   r   r   r7   create_asyncr}   r   r   s                 r0   r   ByocTrunkList.create_async  s     < yy -%+$6'<%8(>%.%@%@AT%U'<!0
 ))^-PQR"E.22tyyt 3 
 
 !88	
s   B BBBlimit	page_sizec                     U R                   R                  X5      nU R                  US   S9nU R                   R                  XCS   5      $ )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   )r7   read_limitspagestreamr.   r   r   limitsr   s        r0   r   ByocTrunkList.stream<  sF    ( **5<yy6+#6y7}}##D/::r2   c                    #    U R                   R                  X5      nU R                  US   S9I Sh  vN nU R                   R                  XCS   5      $  N"7f)a  
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   )r7   r   
page_asyncstream_asyncr   s        r0   r   ByocTrunkList.stream_asyncU  sR     ( **5<__vk/B_CC}}))$w@@ Ds   1AA#Ac                 4    [        U R                  UUS95      $ )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   ByocTrunkList.listn  s(    & KK#  
 	
r2   c                 v   #    U R                  UUS9I Sh  vN  Vs/ s Sh  vN nUPM   N N

 sn$ s  snf 7f)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_asyncByocTrunkList.list_async  sQ     * '+&7&7# '8 ' ! !
 
 !
 	
 
s0   9,940.
049049
page_tokenpage_numberc                     [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XES9n[        U R                  U5      $ )a?  
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   r7   r   r}   r   r.   r   r   r   r   r   responses          r0   r   ByocTrunkList.page  sw      yy'#%
 ))^-PQR.==%%dii & 
 T]]H55r2   c                   #    [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XES9I Sh  vN n[        U R                  U5      $  N7f)	aN  
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   r7   r   r}   r   r   s          r0   r   ByocTrunkList.page_async  s       yy'#%
 ))^-PQR.11dii 2 
 
 T]]H55
s   A A?"A=#A?
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   U5      $ )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   )r7   domaintwiliorequestr   r.   r   r   s      r0   get_pageByocTrunkList.get_page  s7     ==''..66ujIT]]H55r2   c                    #    U R                   R                  R                  R                  SU5      I Sh  vN n[	        U R                   U5      $  N7f)z
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)r7   r   r   request_asyncr   r   s      r0   get_page_asyncByocTrunkList.get_page_async  sC      --44BB5*UUT]]H55 Vs   4AAAr   c                 *    [        U R                  US9$ z
Constructs a ByocTrunkContext

:param sid: The Twilio-provided string that uniquely identifies the BYOC Trunk resource to update.
r5   r6   r7   r.   r   s     r0   r*   ByocTrunkList.get        377r2   c                 *    [        U R                  US9$ r   r   r   s     r0   __call__ByocTrunkList.__call__  r   r2   c                     g)rW   z<Twilio.Voice.V1.ByocTrunkList>r|   r8   s    r0   rj   ByocTrunkList.__repr__  r   r2   )r}   )NN)#rl   rm   rn   ro   r   r)   r   rt   r   rq   ru   rs   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r   r   r6   r*   r   rj   rv   rw   rx   s   @r0   r   r     s2   	" 	" -3LL(.+1<<174:LL28,,5;\\39<<4:LL.4ll69S&[)69 f%69 CK(	69
 "#v+.69  %S&[169 #3;/69 !&c6k 269 #4<069  %S&[169 sF{+69 
69t -3LL(.+1<<174:LL28,,5;\\39<<4:LL.4ll69S&[)69 f%69 CK(	69
 "#v+.69  %S&[169 #3;/69 !&c6k 269 #4<069  %S&[169 sF{+69 
69t  $#';}; C=; 
#	$	;6  $#'A}A C=A 
(	)	A6  $#'
}
 C=
 
	 	
8  $#'
}
 C=
 
	 	
: *0*0,,(.	6#v+&6 3;'6 f%	6
 
6F *0*0,,(.	6#v+&6 3;'6 f%	6
 
6B
63 
6= 
6
6s 
6} 
68s 8/ 88C 8$4 81# 1 1r2   r   N)rp   r   typingr   r   r   r   r   r	   r
   twilio.baser   r   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r6   r   r   r|   r2   r0   <module>r      sj     L L L 6 6 8 : 2 ' !AH( AHHLG LG^1D 1&T1L T1r2   