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 )ÚSinkTestInstancezQ
    :ivar result: Feedback indicating whether the test event was generated.
    )ÚversionÚpayloadÚsidc                    s&   t ƒ  |¡ | d¡| _d|i| _d S )NÚresultr   )ÚsuperÚ__init__Úgetr   Ú	_solution)Úselfr
   r   r   ©Ú	__class__© úc/var/www/html/api-medvista/venv/lib/python3.8/site-packages/twilio/rest/events/v1/sink/sink_test.pyr      s
     ÿzSinkTestInstance.__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     z,SinkTestInstance.__repr__.<locals>.<genexpr>z&<Twilio.Events.V1.SinkTestInstance {}>)Újoinr   Úitemsr   )r   Úcontextr   r   r   Ú__repr__%   s    zSinkTestInstance.__repr__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ústrr   r   r#   Ú__classcell__r   r   r   r   r	      s   	r	   c                       sN   e Zd Zeedœ‡ fdd„Zedœdd„Zedœdd„Zedœd	d
„Z	‡  Z
S )ÚSinkTestList)r
   r   c                    s*   t ƒ  |¡ d|i| _djf | jŽ| _dS )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   r   r   r   1   s
     ÿzSinkTestList.__init__r   c                 C   s@   t  ddi¡}d|d< | jjd| j|d}t| j|| jd dS )	z^
        Create the SinkTestInstance


        :returns: The created SinkTestInstance
        úContent-Typeú!application/x-www-form-urlencodedúapplication/jsonÚAcceptÚPOST©ÚmethodÚuriÚheadersr   ©r   )r   ÚofÚ_versionÚcreater+   r	   r   ©r   r4   r   r   r   r   r8   A   s    zSinkTestList.createc                 Ã   sF   t  ddi¡}d|d< | jjd| j|dI dH }t| j|| jd d	S )
zm
        Asynchronously create the SinkTestInstance


        :returns: The created SinkTestInstance
        r,   r-   r.   r/   r0   r1   Nr   r5   )r   r6   r7   Úcreate_asyncr+   r	   r   r9   r   r   r   r:   Q   s      ÿzSinkTestList.create_asyncc                 C   s   dS )r   z<Twilio.Events.V1.SinkTestList>r   )r   r   r   r   r#   c   s    zSinkTestList.__repr__)r$   r%   r&   r   r(   r   r	   r8   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   