
    m>h                     x    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  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)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       l/var/www/html/DP/alpha_backend/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"     S<RDAq7>>!Q/<Rs   !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                   T     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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__1   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                  ||      }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
        TestIdContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheadersr   r   )r   of_versioncreater2   r   r   r   r3   r>   r?   r   s        r   rC   zSinkValidateList.createA   s     yy'

 ))^-PQR"E.--&&tyytW ' 
 $DMM7u@UVVr   c                 *  K   t        j                  d|i      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| 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
        r5   r6   r7   r8   r9   r:   r;   Nr   r@   )r   rA   rB   create_asyncr2   r   r   rD   s        r   rF   zSinkValidateList.create_async[   s      yy'

 ))^-PQR"E.22tyytW 3 
 
 $DMM7u@UVV	
s   A%B'B(*Bc                      y)r   z#<Twilio.Events.V1.SinkValidateList>r1   )r   s    r   r&   zSinkValidateList.__repr__u   s     5r   )r'   r(   r)   r	   r+   r   r   rC   rF   r&   r,   r-   s   @r   r/   r/   /   sS    E Ec E Wc W&: W4W# W2F W45# 5r   r/   N)r*   typingr   r   r   twilio.baser   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr	   r   r/   r1   r   r   <module>rM      s;    ' &  : 2 'L+ L0L5| L5r   