
    i?1id                         d Z ddlmZmZmZ ddlmZ ddlmZ ddl	m
Z
 ddlmZ ddlmZ  G d d	e
      Z G d
 de      Z G d de      Zy)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                        e Zd ZdZ	 ddedeeef   dee   f fdZ	e
dd       ZdefdZdefd	Zdd
ZddZdefdZ xZS )SafelistInstancez
    :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         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        d|xs | j                  i| _        d | _        y )Nsidr   url)super__init__getr   r   r   	_solution_context)selfr   r   r   	__class__s       h/home/www/therecruiter.miabetepe.com/venv/lib/python3.12/site-packages/twilio/rest/verify/v2/safelist.pyr   zSafelistInstance.__init__    sg     	!")++e"4+2;;~+F")++e"4 L=D,=,=
 48    returnc                     | j                   )t        | j                  | j                  d         | _         | j                   S )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   _proxyzSafelistInstance._proxy1   s9     == +!^^N;DM }}r   c                 6    | j                   j                         S )k
        Deletes the SafelistInstance


        :returns: True if delete succeeds, False otherwise
        )r"   deleter!   s    r   r%   zSafelistInstance.delete@   s     {{!!##r   c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine that deletes the SafelistInstance


        :returns: True if delete succeeds, False otherwise
        N)r"   delete_asyncr!   s    r   r(   zSafelistInstance.delete_asyncI   s!      [[--////   '%'c                 6    | j                   j                         S )]
        Fetch the SafelistInstance


        :returns: The fetched SafelistInstance
        )r"   fetchr!   s    r   r,   zSafelistInstance.fetchR   s     {{  ""r   c                 R   K   | j                   j                          d{   S 7 w)w
        Asynchronous coroutine to fetch the SafelistInstance


        :returns: The fetched SafelistInstance
        N)r"   fetch_asyncr!   s    r   r/   zSafelistInstance.fetch_async[   s!      [[,,....r)   c                     dj                  d | j                  j                         D              }dj                  |      S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   F   K   | ]  \  }}d j                  ||        ywz{}={}Nformat.0kvs      r   	<genexpr>z,SafelistInstance.__repr__.<locals>.<genexpr>j        SDAq7>>!Q/S   !z&<Twilio.Verify.V2.SafelistInstance {}>joinr   itemsr6   r   contexts     r   __repr__zSafelistInstance.__repr__d   s6     ((SDNN<P<P<RSS7>>wGGr   )N)r   r   )r   r   )__name__
__module____qualname____doc__r
   r   strr   r   r   propertyr"   boolr%   r(   r,   r/   rC   __classcell__r   s   @r   r   r      s~     '+	88 c3h8 sm	8"  $ $0D 0#/H# Hr   r   c                   d     e Zd Zdedef fdZdefdZdefdZde	fdZ
de	fdZdefd	Z xZS )
r   r   r   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)a  
        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   r6   _uri)r   r   r   r   s      r   r   zSafelistContext.__init__o   s@     	! L
 >6==OO	r   r   c                 P    | j                   j                  d| j                        S )r$   DELETEmethoduri)r    r%   rP   r!   s    r   r%   zSafelistContext.delete~   s*     }}##		 $ 
 	
r   c                 l   K   | j                   j                  d| j                         d{   S 7 w)r'   rR   rS   N)r    r(   rP   r!   s    r   r(   zSafelistContext.delete_async   s8      ]]//		 0 
 
 	
 
s   +424c                     | j                   j                  d| j                        }t        | j                   || j                  d         S )r+   GETrS   r   r   )r    r,   rP   r   r   r   r   s     r   r,   zSafelistContext.fetch   sL     --%%		 & 

  MM7
 	
r   c                    K   | j                   j                  d| j                         d{   }t        | j                   || j                  d         S 7 )w)r.   rX   rS   Nr   r   )r    r/   rP   r   r   rY   s     r   r/   zSafelistContext.fetch_async   sZ      11		 2 
 

  MM7
 	

s   +AA*Ac                     dj                  d | j                  j                         D              }dj                  |      S )r1   r2   c              3   F   K   | ]  \  }}d j                  ||        ywr4   r5   r7   s      r   r;   z+SafelistContext.__repr__.<locals>.<genexpr>   r<   r=   z%<Twilio.Verify.V2.SafelistContext {}>r>   rA   s     r   rC   zSafelistContext.__repr__   s6     ((SDNN<P<P<RSS6==gFFr   )rD   rE   rF   r
   rH   r   rJ   r%   r(   r   r,   r/   rC   rK   rL   s   @r   r   r   n   sY    P Ps P

 



D 


' 
&
#3 
&G# Gr   r   c                   p     e Zd Zdef fdZdedefdZdedefdZdede	fdZ
dede	fdZdefd	Z xZS )
SafelistListr   c                 2    t         |   |       d| _        y)zj
        Initialize the SafelistList

        :param version: Version that contains the resource

        z/SafeList/NumbersN)r   r   rP   )r   r   r   s     r   r   zSafelistList.__init__   s     	!'	r   r   r   c                     t        j                  d|i      }| j                  j                  d| j                  |      }t        | j                  |      S )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POSTrT   rU   data)r   ofr    createrP   r   r   r   rd   r   s       r   rf   zSafelistList.create   sW     yy|
 --&&		 ' 
  w77r   c                    K   t        j                  d|i      }| j                  j                  d| j                  |       d{   }t        | j                  |      S 7 w)a  
        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
        ra   rb   rc   N)r   re   r    create_asyncrP   r   rg   s       r   ri   zSafelistList.create_async   se      yy|
 22		 3 
 
  w77
s   AA"A A"c                 0    t        | j                  |      S 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   zSafelistList.get        t}}<HHr   c                 0    t        | j                  |      S rk   rl   rm   s     r   __call__zSafelistList.__call__  rn   r   c                      y)r1   z<Twilio.Verify.V2.SafelistList>rO   r!   s    r   rC   zSafelistList.__repr__  s     1r   )rD   rE   rF   r
   r   rH   r   rf   ri   r   r   rp   rC   rK   rL   s   @r   r^   r^      so    	( 	(83 8+; 8,8s 87G 8,I I IIS I_ I1# 1r   r^   N)rG   typingr   r   r   twilio.baser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer	   twilio.base.versionr
   r   r   r^   rO   r   r   <module>rx      sR    ' &  8 : 2 'SH' SHlUGo UGpN1< N1r   