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

 Twilio - Lookups
 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.
    )AnyDictListOptionalUnion)	serialize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\R                  \R                  \R                  \R                  4S	\\\4   S
\\\   \4   S\\\   \4   S\\\\4   \4   SS 4
S jjr\R                  \R                  \R                  \R                  4S	\\\4   S
\\\   \4   S\\\   \4   S\\\\4   \4   SS 4
S jjrS\4S jrSrU =r$ )PhoneNumberInstance   a  
:ivar caller_name: The name of the phone number's owner. If `null`, that information was not available.
:ivar country_code: The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) for the phone number.
: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 national_format: The phone number, in national format.
:ivar carrier: The telecom company that provides the phone number.
:ivar add_ons: A JSON string with the results of the Add-ons you specified in the `add_ons` parameters. For the format of the object, see [Using Add-ons](https://www.twilio.com/docs/add-ons).
:ivar url: The absolute URL of the resource.
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        UR                  S5      U l	        SU=(       d    U R
                  0U l
        S U l        g )Ncaller_namecountry_coder   national_formatcarrieradd_onsurl)super__init__getr   r   r   r   r   r   r   	_solution_context)selfr   r   r   	__class__s       k/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/lookups/v1/phone_number.pyr   PhoneNumberInstance.__init__"   s     	!8?M8R+2;;~+F+2;;~+F.5kk:K.L4;KK	4J4;KK	4J")++e"4 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._proxy7   s9     == .!^^N;DM }}r$   r   typer   add_ons_datac                 :    U R                   R                  UUUUS9$ )  
Fetch the PhoneNumberInstance

:param country_code: The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the phone number to fetch. This is used to specify the country when the phone number is provided in a national format.
:param type: The type of information to return. Can be: `carrier` or `caller-name`. The default is null.  Carrier information costs $0.005 per phone number looked up.  Caller Name information is currently available only in the US and costs $0.01 per phone number looked up.  To retrieve both types on information, specify this parameter twice; once with `carrier` and once with `caller-name` as the value.
:param add_ons: The `unique_name` of an Add-on you would like to invoke. Can be the `unique_name` of an Add-on that is installed on your account. You can specify multiple instances of this parameter to invoke multiple Add-ons. For more information about  Add-ons, see the [Add-ons documentation](https://www.twilio.com/docs/add-ons).
:param add_ons_data: Data specific to the add-on you would like to invoke. The content and format of this value depends on the add-on.

:returns: The fetched PhoneNumberInstance
r   r-   r   r.   )r+   fetchr    r   r-   r   r.   s        r"   r2   PhoneNumberInstance.fetchF   s,    " {{  %%	 ! 
 	
r$   c                 V   #    U R                   R                  UUUUS9I Sh  vN $  N7f)  
Asynchronous coroutine to fetch the PhoneNumberInstance

:param country_code: The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the phone number to fetch. This is used to specify the country when the phone number is provided in a national format.
:param type: The type of information to return. Can be: `carrier` or `caller-name`. The default is null.  Carrier information costs $0.005 per phone number looked up.  Caller Name information is currently available only in the US and costs $0.01 per phone number looked up.  To retrieve both types on information, specify this parameter twice; once with `carrier` and once with `caller-name` as the value.
:param add_ons: The `unique_name` of an Add-on you would like to invoke. Can be the `unique_name` of an Add-on that is installed on your account. You can specify multiple instances of this parameter to invoke multiple Add-ons. For more information about  Add-ons, see the [Add-ons documentation](https://www.twilio.com/docs/add-ons).
:param add_ons_data: Data specific to the add-on you would like to invoke. The content and format of this value depends on the add-on.

:returns: The fetched PhoneNumberInstance
r1   N)r+   fetch_asyncr3   s        r"   r7   PhoneNumberInstance.fetch_async^   s9     " [[,,%%	 - 
 
 	
 
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      r"   	<genexpr>/PhoneNumberInstance.__repr__.<locals>.<genexpr>|         S<RDA7>>!//<R    "z*<Twilio.Lookups.V1.PhoneNumberInstance {}>joinr   itemsr?   r    contexts     r"   __repr__PhoneNumberInstance.__repr__v   s6     ((SDNN<P<P<RSS;BB7KKr$   )	r   r   r   r   r   r   r   r   r   N)r%   r(   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r   propertyr+   r	   unsetr   objectr   r2   r7   rM   __static_attributes____classcell__r!   s   @r"   r   r      s}    '+	;; c3h; sm	; ;*    ,2<<)/,2LL9?
CK(
 DIv%&
 tCy&()	

 Df-v56
 

4 ,2<<)/,2LL9?
CK(
 DIv%&
 tCy&()	

 Df-v56
 

0L# L Lr$   r   c                     ^  \ rS rSrS\S\4U 4S jjr\R                  \R                  \R                  \R                  4S\	\\
4   S\	\\   \
4   S\	\\   \
4   S\	\\\
4   \
4   S	\4
S
 jjr\R                  \R                  \R                  \R                  4S\	\\
4   S\	\\   \
4   S\	\\   \
4   S\	\\\
4   \
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)a  
Initialize the PhoneNumberContext

:param version: Version that contains the resource
:param phone_number: The phone number to lookup in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number.
r   z/PhoneNumbers/{phone_number}N )r   r   r   r?   _uri)r    r   r   r!   s      r"   r   PhoneNumberContext.__init__   s=     	! L
 399KDNNK	r$   r   r-   r   r.   r%   c                    [         R                  " U[        R                  " US 5      [        R                  " US 5      S.5      nUR	                  [        R
                  " US5      5        [         R                  " 0 5      nSUS'   U R                  R                  SU R                  XVS9n[        U R                  UU R                  S	   S
9$ )r0   c                     U $ rO   r_   es    r"   <lambda>*PhoneNumberContext.fetch.<locals>.<lambda>       ar$   c                     U $ rO   r_   rd   s    r"   rf   rg          1r$   CountryCodeTypeAddOnsrn   application/jsonAcceptGETmethoduriparamsheadersr   r'   )r	   ofr   mapupdateprefixed_collapsible_mapr)   r2   r`   r   r   r    r   r-   r   r.   datarv   r   s           r"   r2   PhoneNumberContext.fetch   s    $ yy+!dK8#--=
 	I66|XNO))B-.--%%dii & 
 #MM7
 	
r$   c                   #    [         R                  " U[        R                  " US 5      [        R                  " US 5      S.5      nUR	                  [        R
                  " US5      5        [         R                  " 0 5      nSUS'   U R                  R                  SU R                  XVS9I S	h  vN n[        U R                  UU R                  S
   S9$  N&7f)r6   c                     U $ rO   r_   rd   s    r"   rf   0PhoneNumberContext.fetch_async.<locals>.<lambda>   rh   r$   c                     U $ rO   r_   rd   s    r"   rf   r      rj   r$   rk   rn   ro   rp   rq   rr   Nr   r'   )r	   rw   r   rx   ry   rz   r)   r7   r`   r   r   r{   s           r"   r7   PhoneNumberContext.fetch_async   s     $ yy+!dK8#--=
 	I66|XNO))B-.11dii 2 
 
 #MM7
 	
	
s   B0C2C3'Cc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )r:   r;   c              3   H   #    U  H  u  pS R                  X5      v   M     g7fr=   r>   r@   s      r"   rD   .PhoneNumberContext.__repr__.<locals>.<genexpr>   rF   rG   z)<Twilio.Lookups.V1.PhoneNumberContext {}>rH   rK   s     r"   rM   PhoneNumberContext.__repr__   s6     ((SDNN<P<P<RSS:AA'JJr$   )r   r`   )rP   rQ   rR   rS   r   rU   r   r	   rW   r   rX   r   r   r   r2   r7   rM   rY   rZ   r[   s   @r"   r(   r(      sE   L Ls L" ,2<<)/,2LL9?(
CK((
 DIv%&(
 tCy&()	(

 Df-v56(
 
(
X ,2<<)/,2LL9?(
CK((
 DIv%&(
 tCy&()	(

 Df-v56(
 
(
TK# K K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$ )
PhoneNumberList   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$ z
Constructs a PhoneNumberContext

:param phone_number: The phone number to lookup in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number.
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)r:   z#<Twilio.Lookups.V1.PhoneNumberList>r_   r*   s    r"   rM   PhoneNumberList.__repr__
  s     5r$   r_   )rP   rQ   rR   rS   r   r   rU   r(   r   r   rM   rY   rZ   r[   s   @r"   r   r      sN    " "L L(: LLS L-? L5# 5 5r$   r   N)rT   typingr   r   r   r   r   twilio.baser   r	   twilio.base.instance_contextr
   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   r(   r   r_   r$   r"   <module>r      sP    4 3 ) 8 : 2 'fL* fLRlK lK^!5l !5r$   