o
    e                     @   st   d Z ddl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G dd deZdS )za
This code was generated by
\ / _    _  _|   _  _
 | (_)\/(_)(_|\/| |(/_  v1.0.0
      /       /
    )deserialize)values)InstanceResource)ListResource)Pagec                       0   e Zd ZdZ fddZdd Zdd Z  ZS )RestoreAssistantList PLEASE NOTE that this class contains preview products that are subject
    to change. Use them with caution. If you currently do not have developer
    preview access, please contact help@twilio.com. c                    s.   t t| | i | _djdi | j| _dS )a  
        Initialize the RestoreAssistantList

        :param Version version: Version that contains the resource

        :returns: twilio.rest.autopilot.v1.restore_assistant.RestoreAssistantList
        :rtype: twilio.rest.autopilot.v1.restore_assistant.RestoreAssistantList
        z/Assistants/RestoreN )superr   __init__	_solutionformat_uri)selfversion	__class__r
   ]/var/www/html/venv/lib/python3.10/site-packages/twilio/rest/autopilot/v1/restore_assistant.pyr      s   	zRestoreAssistantList.__init__c                 C   s.   t d|i}| jjd| j|d}t| j|S )a  
        Update the RestoreAssistantInstance

        :param unicode assistant: The unique string that identifies the resource

        :returns: The updated RestoreAssistantInstance
        :rtype: twilio.rest.autopilot.v1.restore_assistant.RestoreAssistantInstance
        	AssistantPOST)methoduridata)r   of_versionupdater   RestoreAssistantInstance)r   	assistantr   payloadr
   r
   r   r   $   s   	zRestoreAssistantList.updatec                 C      dS )z
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z*<Twilio.Autopilot.V1.RestoreAssistantList>r
   r   r
   r
   r   __repr__3      zRestoreAssistantList.__repr__)__name__
__module____qualname____doc__r   r   r#   __classcell__r
   r
   r   r   r      s
    r   c                       r   )RestoreAssistantPager	   c                    s   t t| || || _dS )aT  
        Initialize the RestoreAssistantPage

        :param Version version: Version that contains the resource
        :param Response response: Response from the API

        :returns: twilio.rest.autopilot.v1.restore_assistant.RestoreAssistantPage
        :rtype: twilio.rest.autopilot.v1.restore_assistant.RestoreAssistantPage
        N)r   r*   r   r   )r   r   responsesolutionr   r
   r   r   B   s   

zRestoreAssistantPage.__init__c                 C   s   t | j|S )a&  
        Build an instance of RestoreAssistantInstance

        :param dict payload: Payload response from the API

        :returns: twilio.rest.autopilot.v1.restore_assistant.RestoreAssistantInstance
        :rtype: twilio.rest.autopilot.v1.restore_assistant.RestoreAssistantInstance
        )r   r   )r   r   r
   r
   r   get_instanceQ   s   	z!RestoreAssistantPage.get_instancec                 C   r    )r!   z*<Twilio.Autopilot.V1.RestoreAssistantPage>r
   r"   r
   r
   r   r#   \   r$   zRestoreAssistantPage.__repr__)r%   r&   r'   r(   r   r-   r#   r)   r
   r
   r   r   r*   =   s
    r*   c                       s   e Zd ZdZ fddZedd Zedd Zedd	 Zed
d Z	edd Z
edd Zedd Zedd Zedd Zedd Zedd Zedd Zdd Z  ZS )r   r	   c                    s   t t| | |d|dt|dt|d|d|d|d|d|d	|d
|d|dd| _d| _i | _dS )z
        Initialize the RestoreAssistantInstance

        :returns: twilio.rest.autopilot.v1.restore_assistant.RestoreAssistantInstance
        :rtype: twilio.rest.autopilot.v1.restore_assistant.RestoreAssistantInstance
        account_sidsiddate_createddate_updatedunique_namefriendly_nameneeds_model_buildlatest_model_build_sidlog_queriesdevelopment_stagecallback_urlcallback_events)r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   N)	r   r   r   getr   iso8601_datetime_properties_contextr   )r   r   r   r   r
   r   r   k   s    
z!RestoreAssistantInstance.__init__c                 C   
   | j d S )zd
        :returns: The SID of the Account that created the resource
        :rtype: unicode
        r.   r<   r"   r
   r
   r   r.         
z$RestoreAssistantInstance.account_sidc                 C   r>   )zb
        :returns: The unique string that identifies the resource
        :rtype: unicode
        r/   r?   r"   r
   r
   r   r/      r@   zRestoreAssistantInstance.sidc                 C   r>   )zt
        :returns: The RFC 2822 date and time in GMT when the resource was created
        :rtype: datetime
        r0   r?   r"   r
   r
   r   r0      r@   z%RestoreAssistantInstance.date_createdc                 C   r>   )zy
        :returns: The RFC 2822 date and time in GMT when the resource was last updated
        :rtype: datetime
        r1   r?   r"   r
   r
   r   r1      r@   z%RestoreAssistantInstance.date_updatedc                 C   r>   )zw
        :returns: An application-defined string that uniquely identifies the resource
        :rtype: unicode
        r2   r?   r"   r
   r
   r   r2      r@   z$RestoreAssistantInstance.unique_namec                 C   r>   )zi
        :returns: The string that you assigned to describe the resource
        :rtype: unicode
        r3   r?   r"   r
   r
   r   r3      r@   z&RestoreAssistantInstance.friendly_namec                 C   r>   )zR
        :returns: Whether model needs to be rebuilt
        :rtype: bool
        r4   r?   r"   r
   r
   r   r4      r@   z*RestoreAssistantInstance.needs_model_buildc                 C   r>   )<
        :returns: Reserved
        :rtype: unicode
        r5   r?   r"   r
   r
   r   r5      r@   z/RestoreAssistantInstance.latest_model_build_sidc                 C   r>   )zi
        :returns: Whether queries should be logged and kept after training
        :rtype: bool
        r6   r?   r"   r
   r
   r   r6      r@   z$RestoreAssistantInstance.log_queriesc                 C   r>   )zc
        :returns: A string describing the state of the assistant.
        :rtype: unicode
        r7   r?   r"   r
   r
   r   r7      r@   z*RestoreAssistantInstance.development_stagec                 C   r>   )rA   r8   r?   r"   r
   r
   r   r8      r@   z%RestoreAssistantInstance.callback_urlc                 C   r>   )rA   r9   r?   r"   r
   r
   r   r9      r@   z(RestoreAssistantInstance.callback_eventsc                 C   r    )r!   z.<Twilio.Autopilot.V1.RestoreAssistantInstance>r
   r"   r
   r
   r   r#      r$   z!RestoreAssistantInstance.__repr__)r%   r&   r'   r(   r   propertyr.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r#   r)   r
   r
   r   r   r   f   s8    











r   N)r(   twilio.baser   r   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.pager   r   r*   r   r
   r
   r
   r   <module>   s   -)