
    g'                         S r SSKJr  SSK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
\5      r " S S\5      r " S S\5      rg)a  
 This code was generated by
___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

 Twilio - Routes
 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OptionalUnion)deserializevalues)InstanceContext)InstanceResource)ListResource)Versionc                   <  ^  \ 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S	 jrSS
 jr\R                   \R                   4S\\\4   S\\\4   SS 4S jjr\R                   \R                   4S\\\4   S\\\4   SS 4S jjrS\4S jrSrU =r$ )PhoneNumberInstance   a  
:ivar phone_number: The phone number in E.164 format
:ivar url: The absolute URL of the resource.
:ivar sid: A 34 character string that uniquely identifies the Inbound Processing Region assignments for this phone number.
:ivar account_sid: The unique SID identifier of the Account.
:ivar friendly_name: A human readable description of the Inbound Processing Region assignments for this phone number, up to 64 characters.
:ivar voice_region: The Inbound Processing Region used for this phone number for voice.
:ivar date_created: The date that this phone number was assigned an Inbound Processing Region, given in ISO 8601 format.
:ivar date_updated: The date that the Inbound Processing Region was updated for this phone number, given in ISO 8601 format.
versionpayloadphone_numberc                   > [         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        [        R                  " UR                  S5      5      U l        [        R                  " UR                  S5      5      U l        SU=(       d    U R                  0U l        S U l        g )	Nr   urlsidaccount_sidfriendly_namevoice_regiondate_createddate_updated)super__init__getr   r   r   r   r   r   r   iso8601_datetimer   r   	_solution_context)selfr   r   r   	__class__s       j/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/routes/v2/phone_number.pyr   PhoneNumberInstance.__init__$   s     	!+2;;~+F")++e"4")++e"4*1++m*D,3KK,H+2;;~+F0;0L0LKK'1
 1<0L0LKK'1

 L=D,=,=
 7;    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: PhoneNumberContext for this PhoneNumberInstance
r   r   )r!   PhoneNumberContext_versionr    r"   s    r$   _proxyPhoneNumberInstance._proxy>   s9     == .!^^N;DM }}r&   c                 6    U R                   R                  5       $ )K
Fetch the PhoneNumberInstance


:returns: The fetched PhoneNumberInstance
)r-   fetchr,   s    r$   r1   PhoneNumberInstance.fetchM   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)r-   fetch_asyncr,   s    r$   r5   PhoneNumberInstance.fetch_asyncV   s       [[,,....   '%'r   r   c                 6    U R                   R                  UUS9$ )
Update the PhoneNumberInstance

:param voice_region: The Inbound Processing Region used for this phone number for voice
:param friendly_name: A human readable description of this resource, up to 64 characters.

:returns: The updated PhoneNumberInstance
r   r   )r-   updater"   r   r   s      r$   r;   PhoneNumberInstance.update_   s&     {{!!%' " 
 	
r&   c                 R   #    U R                   R                  UUS9I Sh  vN $  N7f)  
Asynchronous coroutine to update the PhoneNumberInstance

:param voice_region: The Inbound Processing Region used for this phone number for voice
:param friendly_name: A human readable description of this resource, up to 64 characters.

:returns: The updated PhoneNumberInstance
r:   N)r-   update_asyncr<   s      r$   r@    PhoneNumberInstance.update_asyncq   s3      [[--%' . 
 
 	
 
r7   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.Routes.V2.PhoneNumberInstance {}>joinr    itemsrH   r"   contexts     r$   __repr__PhoneNumberInstance.__repr__   s6     ((SDNN<P<P<RSS:AA'JJr&   )
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   propertyr-   r1   r5   r	   unsetr   objectr;   r@   rV   __static_attributes____classcell__r#   s   @r$   r   r      s    	 '+	;; c3h; sm	; ;4  #/ ,2<<,2LL
CK(
 S&[)
 
	
( ,2<<,2LL
CK(
 S&[)
 
	
$K# K Kr&   r   c                     ^  \ rS rSrS\S\4U 4S jjrS\4S jrS\4S jr	\
R                  \
R                  4S\\\4   S	\\\4   S\4S
 jjr\
R                  \
R                  4S\\\4   S	\\\4   S\4S jjrS\4S jrSrU =r$ )r*      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 PhoneNumberContext

:param version: Version that contains the resource
:param phone_number: The phone number in E.164 format
r   z/PhoneNumbers/{phone_number}N )r   r   r    rH   _uri)r"   r   r   r#   s      r$   r   PhoneNumberContext.__init__   s=     	! L
 399KDNNK	r&   r'   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$ )r0   application/jsonAcceptGETmethoduriheadersr   r)   )r	   ofr+   r1   rh   r   r    r"   rq   r   s      r$   r1   PhoneNumberContext.fetch   s]     ))B-.--%%U		7%S"MM7
 	
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   S9$  N&7f)r4   rk   rl   rm   rn   Nr   r)   )r	   rr   r+   r5   rh   r   r    rs   s      r$   r5   PhoneNumberContext.fetch_async   sq      ))B-.11dii 2 
 
 #MM7
 	
	
s   AA/A-'A/r   r   c                     [         R                  " UUS.5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  X4S9n[        U R                  XPR                  S   S	9$ )
r9   VoiceRegionFriendlyName!application/x-www-form-urlencodedContent-Typerk   rl   POSTro   rp   datarq   r   r)   )r	   rr   r+   r;   rh   r   r    r"   r   r   r   rq   r   s         r$   r;   PhoneNumberContext.update   s     yy+ -
 ))B-"E.--&&tyyt ' 
 #MM71O
 	
r&   c                   #    [         R                  " UUS.5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  X4S9I Sh  vN n[        U R                  XPR                  S	   S
9$  N%7f)r?   rx   r{   r|   rk   rl   r}   r~   Nr   r)   )r	   rr   r+   r@   rh   r   r    r   s         r$   r@   PhoneNumberContext.update_async   s      yy+ -
 ))B-"E.22tyyt 3 
 
 #MM71O
 	
	
s   A"B$B
%&Bc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rC   rD   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frF   rG   rI   s      r$   rM   .PhoneNumberContext.__repr__.<locals>.<genexpr>  rO   rP   z(<Twilio.Routes.V2.PhoneNumberContext {}>rQ   rT   s     r$   rV   PhoneNumberContext.__repr__  s6     ((SDNN<P<P<RSS9@@IIr&   )r    rh   )rX   rY   rZ   r[   r   r]   r   r   r1   r5   r	   r_   r   r`   r;   r@   rV   ra   rb   rc   s   @r$   r*   r*      s    L Ls L
* 
(
#6 
0 ,2<<,2LL 
CK( 
 S&[) 
 
	 
H ,2<<,2LL 
CK( 
 S&[) 
 
	 
DJ# J Jr&   r*   c                   b   ^  \ rS rSrS\4U 4S j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   c                 $   > [         TU ]  U5        g)zU
Initialize the PhoneNumberList

:param version: Version that contains the resource

N)r   r   )r"   r   r#   s     r$   r   PhoneNumberList.__init__  s     	!r&   r   r'   c                 *    [        U R                  US9$ zX
Constructs a PhoneNumberContext

:param phone_number: The phone number in E.164 format
r)   r*   r+   r"   r   s     r$   r   PhoneNumberList.get!       "$--lKKr&   c                 *    [        U R                  US9$ r   r   r   s     r$   __call__PhoneNumberList.__call__)  r   r&   c                     g)rC   z"<Twilio.Routes.V2.PhoneNumberList>rg   r,   s    r$   rV   PhoneNumberList.__repr__1  s     4r&   rg   )rX   rY   rZ   r[   r   r   r]   r*   r   r   rV   ra   rb   rc   s   @r$   r   r     sN    " "L L(: LLS L-? L4# 4 4r&   r   N)r\   r   typingr   r   r   r   twilio.baser   r	   twilio.base.instance_contextr
   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   r*   r   rg   r&   r$   <module>r      sS     - - + 8 : 2 'rK* rKjFJ FJR!4l !4r&   