o
    er                     @   sh   d 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
G d
d deZdS )za
This code was generated by
\ / _    _  _|   _  _
 | (_)\/(_)(_|\/| |(/_  v1.0.0
      /       /
    )values)InstanceResource)ListResource)Pagec                       0   e Zd ZdZ fddZdd Zdd Z  ZS )SinkTestListk PLEASE NOTE that this class contains beta products that are subject to
    change. Use them with caution. c                    s2   t t| | d|i| _djdi | j| _dS )a9  
        Initialize the SinkTestList

        :param Version version: Version that contains the resource
        :param sid: A string that uniquely identifies this Sink.

        :returns: twilio.rest.events.v1.sink.sink_test.SinkTestList
        :rtype: twilio.rest.events.v1.sink.sink_test.SinkTestList
        sidz/Sinks/{sid}/TestN )superr   __init__	_solutionformat_uri)selfversionr	   	__class__r
   W/var/www/html/venv/lib/python3.10/site-packages/twilio/rest/events/v1/sink/sink_test.pyr      s   

zSinkTestList.__init__c                 C   s(   | j jd| jd}t| j || jd dS )z
        Create the SinkTestInstance

        :returns: The created SinkTestInstance
        :rtype: twilio.rest.events.v1.sink.sink_test.SinkTestInstance
        POST)methodurir	   r	   )_versioncreater   SinkTestInstancer   r   payloadr
   r
   r   r   #   s   zSinkTestList.createc                 C      dS )z
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z<Twilio.Events.V1.SinkTestList>r
   r   r
   r
   r   __repr__.      zSinkTestList.__repr__)__name__
__module____qualname____doc__r   r   r!   __classcell__r
   r
   r   r   r      
    r   c                       r   )SinkTestPager   c                    s   t t| || || _dS )aq  
        Initialize the SinkTestPage

        :param Version version: Version that contains the resource
        :param Response response: Response from the API
        :param sid: A string that uniquely identifies this Sink.

        :returns: twilio.rest.events.v1.sink.sink_test.SinkTestPage
        :rtype: twilio.rest.events.v1.sink.sink_test.SinkTestPage
        N)r   r)   r   r   )r   r   responsesolutionr   r
   r   r   <   s   
zSinkTestPage.__init__c                 C   s   t | j|| jd dS )a  
        Build an instance of SinkTestInstance

        :param dict payload: Payload response from the API

        :returns: twilio.rest.events.v1.sink.sink_test.SinkTestInstance
        :rtype: twilio.rest.events.v1.sink.sink_test.SinkTestInstance
        r	   r   )r   r   r   r   r
   r
   r   get_instanceL   s   	zSinkTestPage.get_instancec                 C   r   )r   z<Twilio.Events.V1.SinkTestPage>r
   r    r
   r
   r   r!   W   r"   zSinkTestPage.__repr__)r#   r$   r%   r&   r   r,   r!   r'   r
   r
   r   r   r)   8   r(   r)   c                       s4   e Zd ZdZ fddZedd Zdd Z  ZS )r   r   c                    s4   t t| | d|di| _d| _d|i| _dS )z
        Initialize the SinkTestInstance

        :returns: twilio.rest.events.v1.sink.sink_test.SinkTestInstance
        :rtype: twilio.rest.events.v1.sink.sink_test.SinkTestInstance
        resultNr	   )r   r   r   get_properties_contextr   )r   r   r   r	   r   r
   r   r   e   s   zSinkTestInstance.__init__c                 C   s
   | j d S )zm
        :returns: Feedback indicating whether the test event was generated.
        :rtype: unicode
        r-   )r/   r    r
   r
   r   r-   u   s   
zSinkTestInstance.resultc                 C   r   )r   z#<Twilio.Events.V1.SinkTestInstance>r
   r    r
   r
   r   r!   }   r"   zSinkTestInstance.__repr__)	r#   r$   r%   r&   r   propertyr-   r!   r'   r
   r
   r   r   r   a   s    
r   N)r&   twilio.baser   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.pager   r   r)   r   r
   r
   r
   r   <module>   s   ))