
    i?1i                     |    d Z ddlmZ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  G d de	      Z G d	 d
e      Zy)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                   B     e Zd ZdZdedeeef   f f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.
    versionpayloadc                 |    t         |   |       |j                  d      | _        |j                  d      | _        y )Nsidphone_number)super__init__getr   r   )selfr   r   	__class__s      j/home/www/therecruiter.miabetepe.com/venv/lib/python3.12/site-packages/twilio/rest/accounts/v1/safelist.pyr   zSafelistInstance.__init__   s1    !")++e"4+2;;~+F    returnc                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z%<Twilio.Accounts.V1.SafelistInstance> r   s    r   __repr__zSafelistInstance.__repr__%   s     7r   )__name__
__module____qualname____doc__r
   r   strr   r   r   __classcell__r   s   @r   r   r      s2    
G G$sCx. G7# 7r   r   c                       e Zd Zdef fdZdedefdZdedefdZe	j                  fdeeef   defdZe	j                  fdeeef   defdZe	j                  fdeeef   defd	Ze	j                  fdeeef   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   _uri)r   r   r   s     r   r   zSafelistList.__init__0   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methoduridata)r   of_versioncreater)   r   r   r   r0   r   s       r   r3   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
        r+   r,   r-   N)r   r1   r2   create_asyncr)   r   r4   s       r   r6   zSafelistList.create_asyncQ   se      yy|
 22		 3 
 
  w77
   AA"A A"c                     t        j                  d|i      }| j                  j                  d| j                  |      S )  
        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
        r+   DELETEr.   r/   params)r   r1   r2   deleter)   r   r   r<   s      r   r=   zSafelistList.deleteg   s>     |

 }}##86#RRr   c                    K   t        j                  d|i      }| j                  j                  d| j                  |       d{   S 7 w)r9   r+   r:   r;   N)r   r1   r2   delete_asyncr)   r>   s      r   r@   zSafelistList.delete_asyncv   sS      |

 ]]//6 0 
 
 	
 
s   AAA
Ac                     t        j                  d|i      }| j                  j                  d| j                  |      }t        | j                  |      S )  
        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
        r+   GETr;   )r   r1   r2   fetchr)   r   r   r   r<   r   s       r   rD   zSafelistList.fetch   sN     |

 --%%U		&%Qw77r   c                    K   t        j                  d|i      }| j                  j                  d| j                  |       d{   }t        | j                  |      S 7 w)rB   r+   rC   r;   N)r   r1   r2   fetch_asyncr)   r   rE   s       r   rG   zSafelistList.fetch_async   sc      |

 11dii 2 
 
  w77	
r7   c                      y)r   z!<Twilio.Accounts.V1.SafelistList>r   r   s    r   r   zSafelistList.__repr__   s     3r   )r   r    r!   r
   r   r#   r   r3   r6   r   unsetr   objectboolr=   r@   rD   rG   r   r$   r%   s   @r   r'   r'   /   s    	( 	(83 8+; 8,8s 87G 8, 9? S5f#5 S S  28
!#v+.
	
( 288!#v+.8	8( 288!#v+.8	8*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>rQ      s9    . -  : 2 '7' 7.H3< H3r   