
    d{i2                         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 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)ApiResponse)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 or phone number 1k prefix in SafeList.
    versionpayloadc                 |    t         |   |       |j                  d      | _        |j                  d      | _        y )Nsidphone_number)super__init__getr   r   )selfr   r   	__class__s      ^/home/sas/my/fyp/ringai/.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	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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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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      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||      S )z{
        Internal helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        PhoneNumberContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheaders)r   of_versioncreate_with_response_infor*   r   r   r5   r6   s       r   _createzSafelistList._create;   so     yy|

 ))^-PQR"E.}}66tyytW 7 
 	
r   c                 Z    | j                  |      \  }}}t        | j                  |      S )a  
        Create the SafelistInstance

        :param phone_number: The phone number or phone number 1k prefix 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   r8   r   r   r   _s       r   createzSafelistList.createR   s+     ,?Aw77r   c                 v    | j                  |      \  }}}t        | j                  |      }t        |||      S )aL  
        Create the SafelistInstance and return response metadata

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

        :returns: ApiResponse with instance, status code, and headers
        r=   r5   status_coder6   )r;   r   r8   r   r   r   r   rC   r6   instances         r   create_with_http_infoz"SafelistList.create_with_http_info]   s:     )-,(O%g#DMM7;k7SSr   c                    K   t        j                  d|i      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||       d{   S 7 w)	z
        Internal async helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        r,   r-   r.   r/   r0   r1   r2   N)r   r7   r8   create_with_response_info_asyncr*   r:   s       r   _create_asynczSafelistList._create_asynci   s~      yy|

 ))^-PQR"E.]]BBtyytW C 
 
 	
 
s   A%A.'A,(A.c                 v   K   | j                  |       d{   \  }}}t        | j                  |      S 7 w)a'  
        Asynchronously create the SafelistInstance

        :param phone_number: The phone number or phone number 1k prefix 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=   N)rI   r   r8   r>   s       r   create_asynczSafelistList.create_async   s;      #00l0KKAw77 L   979c                    K   | j                  |       d{   \  }}}t        | j                  |      }t        |||      S 7 ,w)a[  
        Asynchronously create the SafelistInstance and return response metadata

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

        :returns: ApiResponse with instance, status code, and headers
        r=   NrB   )rI   r   r8   r   rD   s         r   create_with_http_info_asyncz(SafelistList.create_with_http_info_async   sS      /3.@.@% /A /
 )
%g $DMM7;k7SS	)
   AA-Ac                     t        j                  ddi      }t        j                  d|i      }| j                  j                  d| j                  ||      S )z
        Internal helper for delete operation

        Returns:
            tuple: (success_boolean, status_code, headers)
        r-   r.   r,   DELETEr3   r4   r6   params)r   r7   r8   delete_with_response_infor*   r   r   r6   rS   s       r   _deletezSafelistList._delete   s[     ))^-PQR|

 }}66GF 7 
 	
r   c                 2    | j                  |      \  }}}|S )a'  
        Delete the SafelistInstance

        :param phone_number: The phone number or phone number 1k prefix 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=   )rV   r   r   successr?   s       r   deletezSafelistList.delete   s     ,?Ar   c                 J    | j                  |      \  }}}t        |||      S )aV  
        Delete the SafelistInstance and return response metadata

        :param phone_number: The phone number or phone number 1k prefix to be removed from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
        :returns: ApiResponse with success boolean, status code, and headers
        r=   rB   )rV   r   r   r   rY   rC   r6   s        r   delete_with_http_infoz"SafelistList.delete_with_http_info   s*     )-,(O%g['RRr   c                    K   t        j                  ddi      }t        j                  d|i      }| j                  j                  d| j                  ||       d{   S 7 w)z
        Internal async helper for delete operation

        Returns:
            tuple: (success_boolean, status_code, headers)
        r-   r.   r,   rQ   rR   N)r   r7   r8   delete_with_response_info_asyncr*   rU   s       r   _delete_asynczSafelistList._delete_async   sj      ))^-PQR|

 ]]BBGF C 
 
 	
 
s   AA$A"A$c                 N   K   | j                  |       d{   \  }}}|S 7 
w)a6  
        Asynchronously delete the SafelistInstance

        :param phone_number: The phone number or phone number 1k prefix 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=   N)r`   rX   s       r   delete_asynczSafelistList.delete_async   s/      #00l0KKA Ls   %#%c                 f   K   | j                  |       d{   \  }}}t        |||      S 7 w)ae  
        Asynchronously delete the SafelistInstance and return response metadata

        :param phone_number: The phone number or phone number 1k prefix to be removed from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
        :returns: ApiResponse with success boolean, status code, and headers
        r=   NrB   )r`   r   r\   s        r   delete_with_http_info_asyncz(SafelistList.delete_with_http_info_async   sC      /3.@.@% /A /
 )
%g ['RR)
s   1/1c                     t        j                  ddi      }d|d<   t        j                  d|i      }| j                  j                  d| j                  ||      S )zz
        Internal helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        r-   r.   r/   r0   r,   GETrR   )r   r7   r8   fetch_with_response_infor*   rU   s       r   _fetchzSafelistList._fetch   se     ))^-PQR.|
 }}55dii 6 
 	
r   c                 Z    | j                  |      \  }}}t        | j                  |      S )a  
        Fetch the SafelistInstance

        :param phone_number: The phone number or phone number 1k prefix 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=   )rh   r   r8   r>   s       r   fetchzSafelistList.fetch  s+     >Aw77r   c                 v    | j                  |      \  }}}t        | j                  |      }t        |||      S )aN  
        Fetch the SafelistInstance and return response metadata

        :param phone_number: The phone number or phone number 1k prefix to be fetched from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
        :returns: ApiResponse with instance, status code, and headers
        r=   rB   )rh   r   r8   r   rD   s         r   fetch_with_http_infoz!SafelistList.fetch_with_http_info  s:     )-(N%g#DMM7;k7SSr   c                    K   t        j                  ddi      }d|d<   t        j                  d|i      }| j                  j                  d| j                  ||       d{   S 7 w)	z
        Internal async helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        r-   r.   r/   r0   r,   rf   rR   N)r   r7   r8   fetch_with_response_info_asyncr*   rU   s       r   _fetch_asynczSafelistList._fetch_async  st      ))^-PQR.|
 ]]AAdii B 
 
 	
 
s   A A)"A'#A)c                 v   K   | j                  |       d{   \  }}}t        | j                  |      S 7 w)a)  
        Asynchronously fetch the SafelistInstance

        :param phone_number: The phone number or phone number 1k prefix 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=   N)ro   r   r8   r>   s       r   fetch_asynczSafelistList.fetch_async4  s;      #//\/JJAw77 KrL   c                    K   | j                  |       d{   \  }}}t        | j                  |      }t        |||      S 7 ,w)a]  
        Asynchronously fetch the SafelistInstance and return response metadata

        :param phone_number: The phone number or phone number 1k prefix to be fetched from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
        :returns: ApiResponse with instance, status code, and headers
        r=   NrB   )ro   r   r8   r   rD   s         r   fetch_with_http_info_asyncz'SafelistList.fetch_with_http_info_async@  sS      /3.?.?% /@ /
 )
%g $DMM7;k7SS	)
rO   c                      y)r   z!<Twilio.Accounts.V1.SafelistList>r   r   s    r   r   zSafelistList.__repr__O  s     3r   )"r    r!   r"   r   r   r$   tupler;   r   r@   r   rF   rI   rK   rN   r   unsetr   objectrV   boolrZ   r]   r`   rb   rd   rh   rj   rl   ro   rq   rs   r   r%   r&   s   @r   r(   r(   .   sp   	( 	(
C 
E 
.	83 	8+; 	8
T# 
T+ 
T
 
 
.	8s 	87G 	8Tc Tk T :@ 
E#v+$6 
% 
$ 9? 5f#5   28
S!#v+.
S	
S 28
!#v+.
	
* 28
!#v+.
	
 28S!#v+.S	S 9? 
5f#5 
 
, 28
8!#v+.
8	
8 28T!#v+.T	T 28
!#v+.
	
0 28
8!#v+.
8	
8 28T!#v+.T	T3# 3r   r(   N)r#   typingr   r   r   r   twilio.baser   twilio.base.api_responser   twilio.base.instance_resourcer	   twilio.base.list_resourcer
   twilio.base.versionr   r   r(   r   r   r   <module>r      s<    . -  0 : 2 '7' 7,g3< g3r   