
    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 )SinkValidateInstancezQ
    :ivar result: Feedback indicating whether the given Sink was validated.
    versionpayloadsidc                 b    t         |   |       |j                  d      | _        d|i| _        y )Nresultr   )super__init__getr   	_solution)selfr   r   r   	__class__s       f/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/events/v1/sink/sink_validate.pyr   zSinkValidateInstance.__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>z0SinkValidateInstance.__repr__.<locals>.<genexpr>,   s     SDAq7>>!Q/Ss   !z*<Twilio.Events.V1.SinkValidateInstance {}>)joinr   itemsr   )r   contexts     r   __repr__zSinkValidateInstance.__repr__&   s6     ((SDNN<P<P<RSS;BB7KKr   )__name__
__module____qualname____doc__r
   r   strr   r   r'   __classcell__r   s   @r   r   r      s8    
 
$sCx. 
s 
L# Lr   r   c                        e Zd Zde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defdZ xZS )SinkValidateListr   r   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the SinkValidateList

        :param version: Version that contains the resource
        :param sid: A 34 character string that uniquely identifies the Sink being validated.

        r   z/Sinks/{sid}/ValidateN )r   r   r   r   _uri)r   r   r   r   s      r   r   zSinkValidateList.__init__2   s@     	! 3
 3+22DT^^D	r   test_idr   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)
        TestIdContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheaders)r   of_versioncreate_with_response_infor3   r   r4   r?   r@   s       r   _createzSinkValidateList._createB   so     yy'

 ))^-PQR"E.}}66tyytW 7 
 	
r   c                 x    | j                  |      \  }}}t        | j                  || j                  d         S )z
        Create the SinkValidateInstance

        :param test_id: A 34 character string that uniquely identifies the test event for a Sink being validated.

        :returns: The created SinkValidateInstance
        r4   r   r   )rE   r   rB   r   r   r4   r   _s       r   createzSinkValidateList.createY   s6     W5A#DMM7u@UVVr   c                     | j                  |      \  }}}t        | j                  || j                  d         }t	        |||      S )a  
        Create the SinkValidateInstance and return response metadata

        :param test_id: A 34 character string that uniquely identifies the test event for a Sink being validated.

        :returns: ApiResponse with instance, status code, and headers
        rG   r   rH   r?   status_coder@   )rE   r   rB   r   r   r   r4   r   rN   r@   instances         r   create_with_http_infoz&SinkValidateList.create_with_http_infod   sJ     )-W(E%g'MM7u(=
 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)
        r6   r7   r8   r9   r:   r;   r<   N)r   rA   rB   create_with_response_info_asyncr3   rD   s       r   _create_asynczSinkValidateList._create_asyncr   s~      yy'

 ))^-PQR"E.]]BBtyytW C 
 
 	
 
s   A%A.'A,(A.c                    K   | j                  |       d{   \  }}}t        | j                  || j                  d         S 7 -w)z
        Asynchronously create the SinkValidateInstance

        :param test_id: A 34 character string that uniquely identifies the test event for a Sink being validated.

        :returns: The created SinkValidateInstance
        rG   Nr   rH   )rT   r   rB   r   rI   s       r   create_asynczSinkValidateList.create_async   sF      #000AAA#DMM7u@UVV Bs   AA.Ac                    K   | j                  |       d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)a  
        Asynchronously create the SinkValidateInstance and return response metadata

        :param test_id: A 34 character string that uniquely identifies the test event for a Sink being validated.

        :returns: ApiResponse with instance, status code, and headers
        rG   Nr   rH   rM   )rT   r   rB   r   r   rO   s         r   create_with_http_info_asyncz,SinkValidateList.create_with_http_info_async   sZ      /3.@.@.@.Q(Q%g'MM7u(=
 k7SS	 )Rs   AA<Ac                      y)r   z#<Twilio.Events.V1.SinkValidateList>r2   )r   s    r   r'   zSinkValidateList.__repr__   s     5r   )r(   r)   r*   r
   r,   r   tuplerE   r   rK   r   rQ   rT   rV   rX   r'   r-   r.   s   @r   r0   r0   0   s    E Ec E 
s 
u 
.	Wc 	W&: 	WTS T[ T
3 
5 
.	W# 	W2F 	WT T T5# 5r   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>ra      s>    ' &  0 : 2 'L+ L0x5| x5r   