
    gN[                         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  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 - Trunking
 This is the public Twilio REST API.

 NOTE: This class is auto generated by OpenAPI Generator.
 https://openapi-generator.tech
 Do not edit the class manually.
    )datetime)AnyDictListOptionalUnionIteratorAsyncIterator)deserializevalues)InstanceContext)InstanceResource)ListResource)Version)Pagec            
          ^  \ rS rSr " S S\5      r  SS\S\\\	4   S\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S	\4S jrSrU =r$ )PhoneNumberInstance   c                   $    \ rS rSrSrSrSrSrSrg)&PhoneNumberInstance.AddressRequirement   noneanylocalforeign N)	__name__
__module____qualname____firstlineno__NONEANYLOCALFOREIGN__static_attributes__r       r/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/trunking/v1/trunk/phone_number.pyAddressRequirementr      s    r&   r(   versionpayload	trunk_sidsidc                 4  > [         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        [        R                  " UR                  S5      5      U l
        [        R                  " UR                  S5      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        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U=(       d    U R                  S.U l        S U l         g )Naccount_sidaddress_requirementsapi_versionbetacapabilitiesdate_createddate_updatedfriendly_namelinksphone_numberr,   sms_application_sidsms_fallback_methodsms_fallback_url
sms_methodsms_urlstatus_callbackstatus_callback_methodr+   urlvoice_application_sidvoice_caller_id_lookupvoice_fallback_methodvoice_fallback_urlvoice_method	voice_urlr+   r,   )!super__init__getr.   r/   r0   r1   r2   r   iso8601_datetimer3   r4   r5   r6   r7   r,   r8   r9   r:   r;   r<   r=   r>   r+   r?   r@   rA   rB   rC   rD   rE   	_solution_context)selfr)   r*   r+   r,   	__class__s        r'   rH   PhoneNumberInstance.__init__>   s    	!*1++m*D KK./ 	! +2++m*D$+KK$7	9@^9T0;0L0LKK'1
 1<0L0LKK'1
 -4KK,H29++g2F
+2;;~+F")++e"429++>S2T 29++>S2T /6{{;M/N)0\)B&-kk)&<.5kk:K.L5<[[$6
# )0K(@")++e"44;KK@W4X"6=kk$7
# 5<KK@W4X"18=Q1R+2;;~+F(/K(@ #?$((
 7;r&   returnc                     U R                   c4  [        U R                  U R                  S   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: PhoneNumberContext for this PhoneNumberInstance
r+   r,   rF   )rL   PhoneNumberContext_versionrK   rM   s    r'   _proxyPhoneNumberInstance._proxyr   sE     == ...5NN5)DM
 }}r&   c                 6    U R                   R                  5       $ )V
Deletes the PhoneNumberInstance


:returns: True if delete succeeds, False otherwise
)rU   deleterT   s    r'   rY   PhoneNumberInstance.delete   s     {{!!##r&   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)r
Asynchronous coroutine that deletes the PhoneNumberInstance


:returns: True if delete succeeds, False otherwise
N)rU   delete_asyncrT   s    r'   r]    PhoneNumberInstance.delete_async   s       [[--////   '%'c                 6    U R                   R                  5       $ )K
Fetch the PhoneNumberInstance


:returns: The fetched PhoneNumberInstance
)rU   fetchrT   s    r'   rb   PhoneNumberInstance.fetch   s     {{  ""r&   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)e
Asynchronous coroutine to fetch the PhoneNumberInstance


:returns: The fetched PhoneNumberInstance
N)rU   fetch_asyncrT   s    r'   rf   PhoneNumberInstance.fetch_async   s       [[,,....r_   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      r'   	<genexpr>/PhoneNumberInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z+<Twilio.Trunking.V1.PhoneNumberInstance {}>joinrK   itemsrn   rM   contexts     r'   __repr__PhoneNumberInstance.__repr__   s6     ((SDNN<P<P<RSS<CCGLLr&   )rL   rK   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r,   r8   r9   r:   r;   r<   r=   r>   r+   r?   r@   rA   rB   rC   rD   rE   )N)rP   rR   )rP   r   )r   r   r   r    objectr(   r   r   strr   r   rH   propertyrU   boolrY   r]   rb   rf   r|   r%   __classcell__rN   s   @r'   r   r      s    V D "2;2; c3h2; 	2;
 c]2; 2;h  $ $0D 0#/M# M Mr&   r   c                   ~   ^  \ rS rSrS\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S\4S jrSrU =r$ )rR      r)   r+   r,   c                 z   > [         TU ]  U5        UUS.U l        SR                  " S0 U R                  D6U l        g)a	  
Initialize the PhoneNumberContext

:param version: Version that contains the resource
:param trunk_sid: The SID of the Trunk from which to fetch the PhoneNumber resource.
:param sid: The unique string that we created to identify the PhoneNumber resource to fetch.
rF   z&/Trunks/{trunk_sid}/PhoneNumbers/{sid}Nr   rG   rH   rK   rn   _uri)rM   r)   r+   r,   rN   s       r'   rH   PhoneNumberContext.__init__   s>     	! #
 =CCUdnnU	r&   rP   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )rX   DELETEmethoduriheaders)r   ofrS   rY   r   rM   r   s     r'   rY   PhoneNumberContext.delete   s1     ))B-}}##8G#TTr&   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   rS   r]   r   r   s     r'   r]   PhoneNumberContext.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   U R                  S   S9$ )ra   application/jsonAcceptGETr   r+   r,   rF   )r   r   rS   rb   r   r   rK   rM   r   r*   s      r'   rb   PhoneNumberContext.fetch   si     ))B-.--%%U		7%S"MMnn[1u%	
 	
r&   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   U R                  S   S9$  N47f)	re   r   r   r   r   Nr+   r,   rF   )r   r   rS   rf   r   r   rK   r   s      r'   rf   PhoneNumberContext.fetch_async   s}      ))B-.11dii 2 
 
 #MMnn[1u%	
 	
	
s   AA=A;5A=c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )ri   rj   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frl   rm   ro   s      r'   rs   .PhoneNumberContext.__repr__.<locals>.<genexpr>  ru   rv   z*<Twilio.Trunking.V1.PhoneNumberContext {}>rw   rz   s     r'   r|   PhoneNumberContext.__repr__	  s6     ((SDNN<P<P<RSS;BB7KKr&   rK   r   )r   r   r   r    r   r   rH   r   rY   r]   r   rb   rf   r|   r%   r   r   s   @r'   rR   rR      si    V VC Vc V"
U 
U
D 

* 
*
#6 
.L# L Lr&   rR   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)PhoneNumberPagei  r*   rP   c                 D    [        U R                  XR                  S   S9$ )zY
Build an instance of PhoneNumberInstance

:param payload: Payload response from the API
r+   r+   )r   rS   rK   )rM   r*   s     r'   get_instancePhoneNumberPage.get_instance  s#     #MM7nn[.I
 	
r&   c                     g)ri   z$<Twilio.Trunking.V1.PhoneNumberPage>r   rT   s    r'   r|   PhoneNumberPage.__repr__       6r&   r   N)r   r   r   r    r   r   r   r   r   r|   r%   r   r&   r'   r   r     s*    
DcN 
7J 
6# 6r&   r   c            	       j  ^  \ rS rSrS\S\4U 4S jjrS\S\4S jrS\S\4S 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!$ )PhoneNumberListi(  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 PhoneNumberList

:param version: Version that contains the resource
:param trunk_sid: The SID of the Trunk from which to read the PhoneNumber resources.

r+   z /Trunks/{trunk_sid}/PhoneNumbersNr   r   )rM   r)   r+   rN   s      r'   rH   PhoneNumberList.__init__*  s=     	! 
 7==OO	r&   phone_number_sidrP   c                    [         R                  " SU05      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  X#S9n[        U R                  X@R                  S   S	9$ )
a  
Create the PhoneNumberInstance

:param phone_number_sid: The SID of the [Incoming Phone Number](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) that you want to associate with the trunk.

:returns: The created PhoneNumberInstance
PhoneNumberSidContent-Type!application/x-www-form-urlencodedr   r   POSTr   r   datar   r+   r   )r   r   rS   creater   r   rK   rM   r   r   r   r*   s        r'   r   PhoneNumberList.create:  s     yy "2

 ))^-PQR"E.--&&tyyt ' 
 #MM7nn[.I
 	
r&   c                   #    [         R                  " SU05      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  X#S9I Sh  vN n[        U R                  X@R                  S	   S
9$  N%7f)a  
Asynchronously create the PhoneNumberInstance

:param phone_number_sid: The SID of the [Incoming Phone Number](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) that you want to associate with the trunk.

:returns: The created PhoneNumberInstance
r   r   r   r   r   r   r   Nr+   r   )r   r   rS   create_asyncr   r   rK   r   s        r'   r   PhoneNumberList.create_asyncV  s      yy "2

 ))^-PQR"E.22tyyt 3 
 
 #MM7nn[.I
 	
	
s   A#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 PhoneNumberInstance 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   )rS   read_limitspagestreamrM   r   r   limitsr   s        r'   r   PhoneNumberList.streamr  sF    ( **5<yy6+#6y7}}##D/::r&   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 PhoneNumberInstance 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   )rS   r   
page_asyncstream_asyncr   s        r'   r   PhoneNumberList.stream_async  sR     ( **5<__vk/B_CC}}))$w@@ Ds   1AA#Ac                 4    [        U R                  UUS95      $ )a  
Lists PhoneNumberInstance 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   )rM   r   r   s      r'   r   PhoneNumberList.list  s(    & KK#  
 	
r&   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 PhoneNumberInstance 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   )rM   r   r   records       r'   
list_asyncPhoneNumberList.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                  X`R                  5      $ )aC  
Retrieve a single page of PhoneNumberInstance 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 PhoneNumberInstance
	PageTokenr   PageSizer   r   r   r   r   r   r   paramsr   )r   r   rS   r   r   r   rK   rM   r   r   r   r   r   responses          r'   r   PhoneNumberList.page  s{      yy'#%
 ))^-PQR.==%%dii & 
 t}}hGGr&   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                  X`R                  5      $  N$7f)	aR  
Asynchronously retrieve a single page of PhoneNumberInstance 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 PhoneNumberInstance
r   r   r   r   r   r   r   N)r   r   rS   r   r   r   rK   r   s          r'   r   PhoneNumberList.page_async  s       yy'#%
 ))^-PQR.11dii 2 
 
 t}}hGG
s   A B	"B#%B	
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   X R
                  5      $ )z
Retrieve a specific page of PhoneNumberInstance records from the API.
Request is executed immediately

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

:returns: Page of PhoneNumberInstance
r   )rS   domaintwiliorequestr   rK   rM   r   r   s      r'   get_pagePhoneNumberList.get_page  s;     ==''..66ujIt}}hGGr&   c                    #    U R                   R                  R                  R                  SU5      I Sh  vN n[	        U R                   X R
                  5      $  N$7f)z
Asynchronously retrieve a specific page of PhoneNumberInstance records from the API.
Request is executed immediately

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

:returns: Page of PhoneNumberInstance
r   N)rS   r   r   request_asyncr   rK   r   s      r'   get_page_asyncPhoneNumberList.get_page_async'  sG      --44BB5*UUt}}hGG Vs   4AA%Ar,   c                 F    [        U R                  U R                  S   US9$ z
Constructs a PhoneNumberContext

:param sid: The unique string that we created to identify the PhoneNumber resource to fetch.
r+   rF   rR   rS   rK   rM   r,   s     r'   rI   PhoneNumberList.get3  %     "MMT^^K%@c
 	
r&   c                 F    [        U R                  U R                  S   US9$ r   r   r   s     r'   __call__PhoneNumberList.__call__=  r   r&   c                     g)ri   z$<Twilio.Trunking.V1.PhoneNumberList>r   rT   s    r'   r|   PhoneNumberList.__repr__G  r   r&   r   )NN)"r   r   r   r    r   r   rH   r   r   r   r   intr	   r   r
   r   r   r   r   r   unsetr   r~   r   r   r   r   r   rR   rI   r   r|   r%   r   r   s   @r'   r   r   (  sL   P PC P 
s 
/B 
8
3 
;N 
<  $#';}; C=; 
%	&	;6  $#'A}A C=A 
*	+	A6  $#'
}
 C=
 
!	"	
8  $#'
}
 C=
 
!	"	
: *0*0,,(.	H#v+&H 3;'H f%	H
 
HF *0*0,,(.	H#v+&H 3;'H f%	H
 
HB
H3 
H? 
H
Hs 
H 
H
s 
1 

C 
$6 
6# 6 6r&   r   N)__doc__r   typingr   r   r   r   r   r	   r
   twilio.baser   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   rR   r   r   r   r&   r'   <module>r     sg     L L L + 8 : 2 ' !TM* TMn`L `LF6d 6*e6l e6r&   