
    g!                         S 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g)a  
 This code was generated by
___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

 Twilio - Verify
 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Optional)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\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$ )SafelistInstance   z
:ivar sid: The unique string that we created to identify the SafeList resource.
:ivar phone_number: The phone number in SafeList.
:ivar url: The absolute URL of the SafeList 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        SU=(       d    U R                  0U l        S U l        g )Nsidr   url)super__init__getr   r   r   	_solution_context)selfr   r   r   	__class__s       f/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/verify/v2/safelist.pyr   SafelistInstance.__init__   sg     	!")++e"4+2;;~+F")++e"4 L=D,=,=
 48    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: SafelistContext for this SafelistInstance
r   r   )r   SafelistContext_versionr   r   s    r   _proxySafelistInstance._proxy/   s9     == +!^^N;DM }}r   c                 6    U R                   R                  5       $ )S
Deletes the SafelistInstance


:returns: True if delete succeeds, False otherwise
)r$   deleter#   s    r   r(   SafelistInstance.delete>   s     {{!!##r   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)o
Asynchronous coroutine that deletes the SafelistInstance


:returns: True if delete succeeds, False otherwise
N)r$   delete_asyncr#   s    r   r,   SafelistInstance.delete_asyncG   s       [[--////   '%'c                 6    U R                   R                  5       $ )E
Fetch the SafelistInstance


:returns: The fetched SafelistInstance
)r$   fetchr#   s    r   r1   SafelistInstance.fetchP   s     {{  ""r   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)_
Asynchronous coroutine to fetch the SafelistInstance


:returns: The fetched SafelistInstance
N)r$   fetch_asyncr#   s    r   r5   SafelistInstance.fetch_asyncY   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>,SafelistInstance.__repr__.<locals>.<genexpr>h         S<RDA7>>!//<R    "z&<Twilio.Verify.V2.SafelistInstance {}>joinr   itemsr=   r   contexts     r   __repr__SafelistInstance.__repr__b   s6     ((SDNN<P<P<RSS7>>wGGr   )r   r   r   r   r   )N)r   r!   )r   r   )__name__
__module____qualname____firstlineno____doc__r
   r   strr   r   r   propertyr$   boolr(   r,   r1   r5   rK   __static_attributes____classcell__r   s   @r   r   r      s     '+	88 c3h8 sm	8 8"  $ $0D 0#/H# H Hr   r   c                   z   ^  \ 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S\4S
 jrSrU =r$ )r!   l   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 SafelistContext

:param version: Version that contains the resource
:param phone_number: The phone number to be fetched from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
r   z /SafeList/Numbers/{phone_number}N )r   r   r   r=   _uri)r   r   r   r   s      r   r   SafelistContext.__init__n   s=     	! L
 7==OO	r   r   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )r'   DELETEmethoduriheaders)r   ofr"   r(   r\   r   rc   s     r   r(   SafelistContext.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   rd   r"   r,   r\   re   s     r   r,   SafelistContext.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$ )r0   application/jsonAcceptGETr`   r   r    )r   rd   r"   r1   r\   r   r   r   rc   r   s      r   r1   SafelistContext.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   rj   rk   rl   r`   Nr   r    )r   rd   r"   r5   r\   r   r   rm   s      r   r5   SafelistContext.fetch_async   sq      ))B-.11dii 2 
 
  MM7
 	
	
s   AA/A-'A/c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )r8   r9   c              3   H   #    U  H  u  pS R                  X5      v   M     g7fr;   r<   r>   s      r   rB   +SafelistContext.__repr__.<locals>.<genexpr>   rD   rE   z%<Twilio.Verify.V2.SafelistContext {}>rF   rI   s     r   rK   SafelistContext.__repr__   s6     ((SDNN<P<P<RSS6==gFFr   )r   r\   )rM   rN   rO   rP   r
   rR   r   rT   r(   r,   r   r1   r5   rK   rU   rV   rW   s   @r   r!   r!   l   sa    P Ps P
U 
U
D 

' 
(
#3 
,G# G Gr   r!   c                      ^  \ 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\S\
4S jrS\S\
4S	 jrS\4S
 jrSrU =r$ )SafelistList   r   c                 2   > [         TU ]  U5        SU l        g)zR
Initialize the SafelistList

:param version: Version that contains the resource

z/SafeList/NumbersN)r   r   r\   )r   r   r   s     r   r   SafelistList.__init__   s     	!'	r   r   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n[        U R                  U5      $ )z
Create the SafelistInstance

:param phone_number: The phone number to be added in SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).

:returns: The created SafelistInstance
PhoneNumberContent-Type!application/x-www-form-urlencodedrj   rk   POSTra   rb   datarc   )r   rd   r"   creater\   r   r   r   r   rc   r   s        r   r   SafelistList.create   s}     yy|

 ))^-PQR"E.--&&tyyt ' 
  w77r   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                  U5      $  N7f)	z
Asynchronously create the SafelistInstance

:param phone_number: The phone number to be added in SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).

:returns: The created SafelistInstance
r{   r|   r}   rj   rk   r~   r   N)r   rd   r"   create_asyncr\   r   r   s        r   r   SafelistList.create_async   s      yy|

 ))^-PQR"E.22tyyt 3 
 
  w77	
s   A#B%B &Bc                 *    [        U R                  US9$ z
Constructs a SafelistContext

:param phone_number: The phone number to be fetched from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
r    r!   r"   r   r   s     r   r   SafelistList.get       t}}<HHr   c                 *    [        U R                  US9$ r   r   r   s     r   __call__SafelistList.__call__  r   r   c                     g)r8   z<Twilio.Verify.V2.SafelistList>r[   r#   s    r   rK   SafelistList.__repr__  s     1r   )r\   )rM   rN   rO   rP   r
   r   rR   r   r   r   r!   r   r   rK   rU   rV   rW   s   @r   rv   rv      st    	( 	(83 8+; 848s 87G 84I I IIS I_ I1# 1 1r   rv   N)rQ   typingr   r   r   twilio.baser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer	   twilio.base.versionr
   r   r!   rv   r[   r   r   <module>r      sR    ' &  8 : 2 'RH' RHj\Go \G~W1< W1r   