
    d{i                         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y)a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Events
    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)ApiResponse)InstanceResource)ListResource)Versionc                   F     e Zd ZdZdedeeef   def fdZdefdZ	 xZ
S )SinkTestInstancezQ
    :ivar result: Feedback indicating whether the test event was generated.
    versionpayloadsidc                 b    t         |   |       |j                  d      | _        d|i| _        y )Nresultr   )super__init__getr   	_solution)selfr   r   r   	__class__s       b/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/events/v1/sink/sink_test.pyr   zSinkTestInstance.__init__   s0    !%,[[%: 3
    returnc                     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,SinkTestInstance.__repr__.<locals>.<genexpr>,   s     SDAq7>>!Q/Ss   !z&<Twilio.Events.V1.SinkTestInstance {}>)joinr   itemsr   )r   contexts     r   __repr__zSinkTestInstance.__repr__&   s6     ((SDNN<P<P<RSS7>>wGGr   )__name__
__module____qualname____doc__r
   r   strr   r   r'   __classcell__r   s   @r   r   r      s8    
 
$sCx. 
s 
H# Hr   r   c                   |     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de
fd
ZdefdZ xZS )SinkTestListr   r   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the SinkTestList

        :param version: Version that contains the resource
        :param sid: A 34 character string that uniquely identifies the Sink to be Tested.

        r   z/Sinks/{sid}/TestN )r   r   r   r   _uri)r   r   r   r   s      r   r   zSinkTestList.__init__2   s@     	! 3
 /'..@@	r   r   c                     t        j                  ddi      }d|d<   | j                  j                  d| j                  |      S )z{
        Internal helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        Content-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduriheaders)r   of_versioncreate_with_response_infor3   r   r=   s     r   _createzSinkTestList._createB   sI     ))^-PQR.}}66tyy' 7 
 	
r   c                 t    | j                         \  }}}t        | j                  || j                  d         S )z^
        Create the SinkTestInstance


        :returns: The created SinkTestInstance
        r   r   )rB   r   r?   r   r   r   _s      r   createzSinkTestList.createR   s1     AwDNN5<QRRr   c                     | j                         \  }}}t        | j                  || j                  d         }t	        |||      S )z
        Create the SinkTestInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r   rD   datastatus_coder=   )rB   r   r?   r   r   r   r   rK   r=   instances        r   create_with_http_infoz"SinkTestList.create_with_http_info\   s@     )-%g#DMM7u@UVk7SSr   c                    K   t        j                  ddi      }d|d<   | j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        r5   r6   r7   r8   r9   r:   N)r   r>   r?   create_with_response_info_asyncr3   rA   s     r   _create_asynczSinkTestList._create_asyncg   sX      ))^-PQR.]]BBtyy' C 
 
 	
 
s   AA
AAc                    K   | j                          d{   \  }}}t        | j                  || j                  d         S 7 -w)zm
        Asynchronously create the SinkTestInstance


        :returns: The created SinkTestInstance
        Nr   rD   )rQ   r   r?   r   rE   s      r   create_asynczSinkTestList.create_asyncw   s@      #0022AwDNN5<QRR 3s   AA.Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)z
        Asynchronously create the SinkTestInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr   rD   rI   )rQ   r   r?   r   r   rL   s        r   create_with_http_info_asyncz(SinkTestList.create_with_http_info_async   sP      /3.@.@.B(B%g#DMM7u@UVk7SS )Cs   AA<Ac                      y)r   z<Twilio.Events.V1.SinkTestList>r2   )r   s    r   r'   zSinkTestList.__repr__   s     1r   )r(   r)   r*   r
   r,   r   tuplerB   r   rG   r   rN   rQ   rS   rU   r'   r-   r.   s   @r   r0   r0   0   sw    A Ac A 
 
 S( S	T{ 	T
U 
 S$4 S	T; 	T1# 1r   r0   N)r+   typingr   r   r   twilio.baser   twilio.base.api_responser   twilio.base.instance_resourcer   twilio.base.list_resourcer	   twilio.base.versionr
   r   r0   r2   r   r   <module>r^      s>    ' &  0 : 2 'H' H0b1< b1r   