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

 Twilio - Accounts
 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Union)values)InstanceResource)ListResource)Versionc                   P   ^  \ rS rSrSrS\S\\\4   4U 4S j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.
versionpayloadc                 |   > [         TU ]  U5        UR                  S5      U l        UR                  S5      U l        g )Nsidphone_number)super__init__getr   r   )selfr   r   	__class__s      h/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/accounts/v1/safelist.pyr   SafelistInstance.__init__   s1    !")++e"4+2;;~+F    returnc                     g)N
Provide a friendly representation

:returns: Machine friendly representation
z%<Twilio.Accounts.V1.SafelistInstance> r   s    r   __repr__SafelistInstance.__repr__#   s     7r   )r   r   )__name__
__module____qualname____firstlineno____doc__r
   r   strr   r   r    __static_attributes____classcell__r   s   @r   r   r      s7    
G G$sCx. G7# 7 7r   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	\
R                  4S\\\4   S\4S jjr\
R                  4S\\\4   S\4S	 jjr\
R                  4S\\\4   S\4S
 jjr\
R                  4S\\\4   S\4S j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   _uri)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-urlencodedapplication/jsonAcceptPOSTmethoduridataheaders)r   of_versioncreater/   r   r   r   r;   r<   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
r2   r3   r4   r5   r6   r7   r8   N)r   r=   r>   create_asyncr/   r   r@   s        r   rC   SafelistList.create_asyncT   s      yy|

 ))^-PQR"E.22tyyt 3 
 
  w77	
s   A#B%B &Bc                     [         R                  " SS05      n[         R                  " SU05      nU R                  R                  SU R                  X#S9$ )
Asynchronously delete the SafelistInstance

:param phone_number: The phone number to be removed from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
:returns: True if delete succeeds, False otherwise
r3   r4   r2   DELETEr9   r:   r<   params)r   r=   r>   deleter/   r   r   r<   rI   s       r   rJ   SafelistList.deleten   sY     ))^-PQR|

 }}##G $ 
 	
r   c                    #    [         R                  " SS05      n[         R                  " SU05      nU R                  R                  SU R                  X#S9I Sh  vN $  N7f)rF   r3   r4   r2   rG   rH   N)r   r=   r>   delete_asyncr/   rK   s       r   rN   SafelistList.delete_async   sf      ))^-PQR|

 ]]//G 0 
 
 	
 
s   AA"A A"c                     [         R                  " SS05      nSUS'   [         R                  " SU05      nU R                  R                  SU R                  X#S9n[        U R                  U5      $ )
Asynchronously fetch the SafelistInstance

: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).
:returns: The fetched SafelistInstance
r3   r4   r5   r6   r2   GETrH   )r   r=   r>   fetchr/   r   r   r   r<   rI   r   s        r   rS   SafelistList.fetch   ss     ))^-PQR.|
 --%%dii & 
  w77r   c                    #    [         R                  " SS05      nSUS'   [         R                  " SU05      nU R                  R                  SU R                  X#S9I Sh  vN n[        U R                  U5      $  N7f)	rQ   r3   r4   r5   r6   r2   rR   rH   N)r   r=   r>   fetch_asyncr/   r   rT   s        r   rW   SafelistList.fetch_async   s      ))^-PQR.|
 11dii 2 
 
  w77	
s   AA= A;!A=c                     g)r   z!<Twilio.Accounts.V1.SafelistList>r   r   s    r   r    SafelistList.__repr__   s     3r   )r/   )r"   r#   r$   r%   r
   r   r'   r   r?   rC   r   unsetr   objectboolrJ   rN   rS   rW   r    r(   r)   r*   s   @r   r,   r,   -   s    	( 	(83 8+; 848s 87G 84 9? 
5f#5 
 
& 28
!#v+.
	
* 288!#v+.8	84 288!#v+.8	823# 3 3r   r,   N)r&   typingr   r   r   r   twilio.baser   twilio.base.instance_resourcer   twilio.base.list_resourcer	   twilio.base.versionr
   r   r,   r   r   r   <module>rc      s9    . -  : 2 '7' 7,_3< _3r   