
    g~K                         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 - Messaging
 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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   ap  
:ivar sid: The unique string that we created to identify the PhoneNumber resource.
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the PhoneNumber resource.
:ivar service_sid: The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) the resource is associated with.
:ivar date_created: The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
:ivar date_updated: The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
:ivar phone_number: The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number.
:ivar country_code: The 2-character [ISO Country Code](https://www.iso.org/iso-3166-country-codes.html) of the number.
:ivar capabilities: An array of values that describe whether the number can receive calls or messages. Can be: `Voice`, `SMS`, and `MMS`.
:ivar url: The absolute URL of the PhoneNumber resource.
versionpayloadservice_sidsidc                 H  > [         TU ]  U5        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U=(       d    U R                  S
.U l        S U l        g )Nr   account_sidr   date_createddate_updatedphone_numbercountry_codecapabilitiesurlr   r   )super__init__getr   r   r   r   iso8601_datetimer   r   r   r   r   r    	_solution_context)selfr   r   r   r   	__class__s        u/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/messaging/v1/service/phone_number.pyr#   PhoneNumberInstance.__init__&   s     	!")++e"4*1++m*D*1++m*D0;0L0LKK'1
 1<0L0LKK'1
 ,3;;~+F+2;;~+F18^1L")++e"4 '?$((
 7;    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   r!   )r'   PhoneNumberContext_versionr&   r(   s    r*   _proxyPhoneNumberInstance._proxyC   sE     == . NN=9NN5)DM
 }}r,   c                 6    U R                   R                  5       $ )V
Deletes the PhoneNumberInstance


:returns: True if delete succeeds, False otherwise
)r2   deleter1   s    r*   r6   PhoneNumberInstance.deleteS   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)r2   delete_asyncr1   s    r*   r:    PhoneNumberInstance.delete_async\   s       [[--////   '%'c                 6    U R                   R                  5       $ )K
Fetch the PhoneNumberInstance


:returns: The fetched PhoneNumberInstance
)r2   fetchr1   s    r*   r?   PhoneNumberInstance.fetche   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)r2   fetch_asyncr1   s    r*   rC   PhoneNumberInstance.fetch_asyncn   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.Messaging.V1.PhoneNumberInstance {}>joinr&   itemsrK   r(   contexts     r*   __repr__PhoneNumberInstance.__repr__w   s6     ((SDNN<P<P<RSS=DDWMMr,   )r'   r&   r   r   r   r   r   r   r   r   r    )N)r-   r/   )r-   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r#   propertyr2   boolr6   r:   r?   rC   rY   __static_attributes____classcell__r)   s   @r*   r   r      s    
" ";; c3h; 	;
 c]; ;:  $ $0D 0#/N# N N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$ )r/      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 service_sid: The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the resource from.
:param sid: The SID of the PhoneNumber resource to fetch.
r!   z*/Services/{service_sid}/PhoneNumbers/{sid}N r"   r#   r&   rK   _uri)r(   r   r   r   r)   s       r*   r#   PhoneNumberContext.__init__   sD     	! '
 AGG 
nn
	r,   r-   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )r5   DELETEmethoduriheaders)r   ofr0   r6   rk   r(   rr   s     r*   r6   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)r9   rn   ro   N)r   rs   r0   r:   rk   rt   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$ )r>   application/jsonAcceptGETro   r   r   r!   )r   rs   r0   r?   rk   r   r&   r(   rr   r   s      r*   r?   PhoneNumberContext.fetch   si     ))B-.--%%U		7%S"MM}5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)	rB   ry   rz   r{   ro   Nr   r   r!   )r   rs   r0   rC   rk   r   r&   r|   s      r*   rC   PhoneNumberContext.fetch_async   s}      ))B-.11dii 2 
 
 #MM}5u%	
 	
	
s   AA=A;5A=c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rF   rG   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frI   rJ   rL   s      r*   rP   .PhoneNumberContext.__repr__.<locals>.<genexpr>   rR   rS   z+<Twilio.Messaging.V1.PhoneNumberContext {}>rT   rW   s     r*   rY   PhoneNumberContext.__repr__   s6     ((SDNN<P<P<RSS<CCGLLr,   r&   rk   )r[   r\   r]   r^   r   r`   r#   rb   r6   r:   r   r?   rC   rY   rc   rd   re   s   @r*   r/   r/      se    
 
c 
 
&
U 
U
D 

* 
*
#6 
.M# M Mr,   r/   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)PhoneNumberPage   r   r-   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   r0   r&   )r(   r   s     r*   get_instancePhoneNumberPage.get_instance   s#     #MM7}0M
 	
r,   c                     g)rF   z%<Twilio.Messaging.V1.PhoneNumberPage>ri   r1   s    r*   rY   PhoneNumberPage.__repr__        7r,   ri   N)r[   r\   r]   r^   r   r`   r   r   r   rY   rc   ri   r,   r*   r   r      s*    
DcN 
7J 
7# 7r,   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!$ )PhoneNumberList   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 service_sid: The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the resources from.

r   z$/Services/{service_sid}/PhoneNumbersNri   rj   )r(   r   r   r)   s      r*   r#   PhoneNumberList.__init__   s=     	! ;
 ;AASDNNS	r,   phone_number_sidr-   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$ )
z
Create the PhoneNumberInstance

:param phone_number_sid: The SID of the Phone Number being added to the Service.

:returns: The created PhoneNumberInstance
PhoneNumberSidContent-Type!application/x-www-form-urlencodedry   rz   POSTrp   rq   datarr   r   r   )r   rs   r0   createrk   r   r&   r(   r   r   rr   r   s        r*   r   PhoneNumberList.create  s     yy "2

 ))^-PQR"E.--&&tyyt ' 
 #MM7}0M
 	
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)z
Asynchronously create the PhoneNumberInstance

:param phone_number_sid: The SID of the Phone Number being added to the Service.

:returns: The created PhoneNumberInstance
r   r   r   ry   rz   r   r   Nr   r   )r   rs   r0   create_asyncrk   r   r&   r   s        r*   r   PhoneNumberList.create_async)  s      yy "2

 ))^-PQR"E.22tyyt 3 
 
 #MM7}0M
 	
	
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   )r0   read_limitspagestreamr(   r   r   limitsr   s        r*   r   PhoneNumberList.streamE  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   )r0   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   )r(   r   r   s      r*   r   PhoneNumberList.listw  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   )r(   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   ry   rz   r{   rp   rq   paramsrr   )r   rs   r0   r   rk   r   r&   r(   r   r   r   r   rr   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   ry   rz   r{   r   N)r   rs   r0   r   rk   r   r&   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{   )r0   domaintwiliorequestr   r&   r(   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)r0   r   r   request_asyncr   r&   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 SID of the PhoneNumber resource to fetch.
r   r!   r/   r0   r&   r(   r   s     r*   r$   PhoneNumberList.get  %     "MMt~~m'D#
 	
r,   c                 F    [        U R                  U R                  S   US9$ r   r   r   s     r*   __call__PhoneNumberList.__call__  r   r,   c                     g)rF   z%<Twilio.Messaging.V1.PhoneNumberList>ri   r1   s    r*   rY   PhoneNumberList.__repr__  r   r,   r   )NN)"r[   r\   r]   r^   r   r`   r#   r   r   r   r   intr	   r   r
   r   r   r   r   r   unsetr   objectr   r   r   r   r   r/   r$   r   rY   rc   rd   re   s   @r*   r   r      sL   T Tc T 
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 
7# 7 7r,   r   N)r_   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   r/   r   r   ri   r,   r*   <module>r      sg     L L L + 8 : 2 ' !eN* eNPbM bMJ7d 7*e7l e7r,   