U
    ^g%i£  ã                   @   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                       s@   e Zd ZdZeeeef edœ‡ fdd„Zedœ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__© úg/var/www/html/api-medvista/venv/lib/python3.8/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                       sR   e Zd Zeedœ‡ fdd„Zeedœdd„Zeedœdd„Zed	œd
d„Z	‡  Z
S )ÚSinkValidateList)r
   r   c                    s*   t ƒ  |¡ d|i| _djf | 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}/ValidateN)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,   r6   r7   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/   r0   r1   r2   r3   Nr   r8   )r   r9   r:   Úcreate_asyncr+   r	   r   r<   r   r   r   r=   [   s    	 ÿÿ   ÿzSinkValidateList.create_asyncr   c                 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   Ztwilio.baser   Ztwilio.base.instance_resourcer   Ztwilio.base.list_resourcer   Ztwilio.base.versionr   r	   r*   r   r   r   r   Ú<module>   s   