o
    �¨Êhá!  ã                   @   s�   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	 ddl
mZ G dd	„ d	e	ƒ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
      /       /
é    )Ú	serialize)Úvalues)ÚInstanceContext)ÚInstanceResource)ÚListResource)ÚPagec                       s8   e Zd ZdZ‡ fdd„Zdd„ Zdd„ Zdd	„ Z‡  ZS )
ÚDefaultsListúÉ 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| ƒ |¡ d|i| _dS )a6  
        Initialize the DefaultsList

        :param Version version: Version that contains the resource
        :param assistant_sid: The assistant_sid

        :returns: twilio.rest.autopilot.v1.assistant.defaults.DefaultsList
        :rtype: twilio.rest.autopilot.v1.assistant.defaults.DefaultsList
        Úassistant_sidN)Úsuperr   Ú__init__Ú	_solution©ÚselfÚversionr
   ©Ú	__class__© ú]/var/www/html/env/lib/python3.10/site-packages/twilio/rest/autopilot/v1/assistant/defaults.pyr      s   
zDefaultsList.__init__c                 C   ó   t | j| jd d�S ©zÉ
        Constructs a DefaultsContext

        :returns: twilio.rest.autopilot.v1.assistant.defaults.DefaultsContext
        :rtype: twilio.rest.autopilot.v1.assistant.defaults.DefaultsContext
        r
   ©r
   ©ÚDefaultsContextÚ_versionr   ©r   r   r   r   Úget%   ó   zDefaultsList.getc                 C   r   r   r   r   r   r   r   Ú__call__.   r   zDefaultsList.__call__c                 C   ó   dS )úz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z"<Twilio.Autopilot.V1.DefaultsList>r   r   r   r   r   Ú__repr__7   ó   zDefaultsList.__repr__)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r!   Ú__classcell__r   r   r   r   r      s    		r   c                       s0   e Zd ZdZ‡ fdd„Zdd„ Zdd„ Z‡  ZS )ÚDefaultsPager	   c                    s   t t| ƒ ||¡ || _dS )an  
        Initialize the DefaultsPage

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

        :returns: twilio.rest.autopilot.v1.assistant.defaults.DefaultsPage
        :rtype: twilio.rest.autopilot.v1.assistant.defaults.DefaultsPage
        N)r   r(   r   r   )r   r   ÚresponseÚsolutionr   r   r   r   F   s   
zDefaultsPage.__init__c                 C   s   t | j|| jd d�S )a  
        Build an instance of DefaultsInstance

        :param dict payload: Payload response from the API

        :returns: twilio.rest.autopilot.v1.assistant.defaults.DefaultsInstance
        :rtype: twilio.rest.autopilot.v1.assistant.defaults.DefaultsInstance
        r
   r   )ÚDefaultsInstancer   r   )r   Úpayloadr   r   r   Úget_instanceV   s   	zDefaultsPage.get_instancec                 C   r   )r    z"<Twilio.Autopilot.V1.DefaultsPage>r   r   r   r   r   r!   a   r"   zDefaultsPage.__repr__)r#   r$   r%   r&   r   r-   r!   r'   r   r   r   r   r(   A   s
    r(   c                       s>   e Zd ZdZ‡ fdd„Zdd„ Zejfdd„Zdd	„ Z	‡  Z
S )
r   r	   c                    s2   t t| ƒ |¡ d|i| _djdi | j¤Ž| _dS )a?  
        Initialize the DefaultsContext

        :param Version version: Version that contains the resource
        :param assistant_sid: The assistant_sid

        :returns: twilio.rest.autopilot.v1.assistant.defaults.DefaultsContext
        :rtype: twilio.rest.autopilot.v1.assistant.defaults.DefaultsContext
        r
   z$/Assistants/{assistant_sid}/DefaultsNr   )r   r   r   r   ÚformatÚ_urir   r   r   r   r   p   s   

zDefaultsContext.__init__c                 C   s4   t  i ¡}| jjd| j|d�}t| j|| jd d�S )ú£
        Fetch a DefaultsInstance

        :returns: Fetched DefaultsInstance
        :rtype: twilio.rest.autopilot.v1.assistant.defaults.DefaultsInstance
        ÚGET)Úparamsr
   r   )r   Úofr   Úfetchr/   r+   r   )r   r2   r,   r   r   r   r4   €   s   
ýzDefaultsContext.fetchc                 C   s>   t  dt |¡i¡}| jjd| j|d�}t| j|| jd d�S )úÒ
        Update the DefaultsInstance

        :param dict defaults: The defaults

        :returns: Updated DefaultsInstance
        :rtype: twilio.rest.autopilot.v1.assistant.defaults.DefaultsInstance
        ÚDefaultsÚPOST)Údatar
   r   )	r   r3   r   Úobjectr   Úupdater/   r+   r   )r   Údefaultsr8   r,   r   r   r   r:   ‘   s   	ýzDefaultsContext.updatec                 C   ó$   d  dd„ | j ¡ D ƒ¡}d |¡S )r    ú c                 s   ó    � | ]\}}d   ||¡V  qdS ©z{}={}N©r.   ©Ú.0ÚkÚvr   r   r   Ú	<genexpr>«   ó   € z+DefaultsContext.__repr__.<locals>.<genexpr>z(<Twilio.Autopilot.V1.DefaultsContext {}>©Újoinr   Úitemsr.   ©r   Úcontextr   r   r   r!   ¤   ó   
zDefaultsContext.__repr__)r#   r$   r%   r&   r   r4   r   Úunsetr:   r!   r'   r   r   r   r   r   k   s    r   c                       sz   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
dd„ Zejfdd„Zdd„ Z‡  ZS )r+   r	   c                    sD   t t| ƒ |¡ |d |d |d |d dœ| _d| _d|i| _dS )zÎ
        Initialize the DefaultsInstance

        :returns: twilio.rest.autopilot.v1.assistant.defaults.DefaultsInstance
        :rtype: twilio.rest.autopilot.v1.assistant.defaults.DefaultsInstance
        Úaccount_sidr
   Úurlr8   )rN   r
   rO   r8   N)r   r+   r   Ú_propertiesÚ_contextr   )r   r   r,   r
   r   r   r   r   ´   s   üzDefaultsInstance.__init__c                 C   s&   | j du rt| j| jd d�| _ | j S )a8  
        Generate an instance context for the instance, the context is capable of
        performing various actions.  All instance actions are proxied to the context

        :returns: DefaultsContext for this DefaultsInstance
        :rtype: twilio.rest.autopilot.v1.assistant.defaults.DefaultsContext
        Nr
   r   )rQ   r   r   r   r   r   r   r   Ú_proxyÉ   s   
	zDefaultsInstance._proxyc                 C   ó
   | j d S )zC
        :returns: The account_sid
        :rtype: unicode
        rN   ©rP   r   r   r   r   rN   Ö   ó   
zDefaultsInstance.account_sidc                 C   rS   )zE
        :returns: The assistant_sid
        :rtype: unicode
        r
   rT   r   r   r   r   r
   Þ   rU   zDefaultsInstance.assistant_sidc                 C   rS   )z;
        :returns: The url
        :rtype: unicode
        rO   rT   r   r   r   r   rO   æ   rU   zDefaultsInstance.urlc                 C   rS   )z9
        :returns: The data
        :rtype: dict
        r8   rT   r   r   r   r   r8   î   rU   zDefaultsInstance.datac                 C   s
   | j  ¡ S )r0   )rR   r4   r   r   r   r   r4   ö   s   
zDefaultsInstance.fetchc                 C   s   | j j|d�S )r5   )r;   )rR   r:   )r   r;   r   r   r   r:   ÿ   s   	zDefaultsInstance.updatec                 C   r<   )r    r=   c                 s   r>   r?   r@   rA   r   r   r   rE     rF   z,DefaultsInstance.__repr__.<locals>.<genexpr>z)<Twilio.Autopilot.V1.DefaultsInstance {}>rG   rJ   r   r   r   r!   
  rL   zDefaultsInstance.__repr__)r#   r$   r%   r&   r   ÚpropertyrR   rN   r
   rO   r8   r4   r   rM   r:   r!   r'   r   r   r   r   r+   ¯   s     




	r+   N)r&   Útwilio.baser   r   Útwilio.base.instance_contextr   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.pager   r   r(   r   r+   r   r   r   r   Ú<module>   s   0*D