o
    f>h                     @   sl   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 deZG d	d
 d
e
ZdS )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                       sD   e Zd ZdZdedeeef def fddZdefdd	Z	  Z
S )
SinkValidateInstancezQ
    :ivar result: Feedback indicating whether the given Sink was validated.
    versionpayloadsidc                    s&   t  | |d| _d|i| _d S )Nresultr   )super__init__getr   	_solution)selfr
   r   r   	__class__ [/var/www/html/venv/lib/python3.10/site-packages/twilio/rest/events/v1/sink/sink_validate.pyr      s   
zSinkValidateInstance.__init__returnc                 C   s$   d dd | j D }d|S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c                 s   s     | ]\}}d  ||V  qdS )z{}={}N)format).0kvr   r   r   	<genexpr>+   s    z0SinkValidateInstance.__repr__.<locals>.<genexpr>z*<Twilio.Events.V1.SinkValidateInstance {}>)joinr   itemsr   )r   contextr   r   r   __repr__%   s   
zSinkValidateInstance.__repr__)__name__
__module____qualname____doc__r   r   strr   r   r"   __classcell__r   r   r   r   r	      s    "	r	   c                       sX   e Zd Zdedef fddZdedefddZdedefd	d
ZdefddZ	  Z
S )SinkValidateListr
   r   c                    s.   t  | d|i| _djdi | j| _dS )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}/ValidateNr   )r   r   r   r   _uri)r   r
   r   r   r   r   r   1   s   zSinkValidateList.__init__test_idr   c                 C   sX   t d|i}t ddi}d|d< d|d< | jjd| j||d}t| j|| jd 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creater*   r	   r   r   r+   r5   r6   r   r   r   r   r:   A   s   	
zSinkValidateList.createc                    s`   t d|i}t ddi}d|d< d|d< | jjd| j||dI dH }t| j|| jd	 d
S )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
        r,   r-   r.   r/   r0   r1   r2   Nr   r7   )r   r8   r9   create_asyncr*   r	   r   r;   r   r   r   r<   [   s   	
zSinkValidateList.create_asyncc                 C   s   dS )r   z#<Twilio.Events.V1.SinkValidateList>r   )r   r   r   r   r"   u   s   zSinkValidateList.__repr__)r#   r$   r%   r   r'   r   r	   r:   r<   r"   r(   r   r   r   r   r)   /   s
    r)   N)r&   typingr   r   r   twilio.baser   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r	   r)   r   r   r   r   <module>   s    