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 )
ÚStyleSheetListúÉ 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 )aO  
        Initialize the StyleSheetList

        :param Version version: Version that contains the resource
        :param assistant_sid: The unique ID of the Assistant

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

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

        :returns: Machine friendly representation
        :rtype: str
        z$<Twilio.Autopilot.V1.StyleSheetList>r   r   r   r   r   Ú__repr__7   ó   zStyleSheetList.__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 )ÚStyleSheetPager	   c                    s   t t| ƒ ||¡ || _dS )a‡  
        Initialize the StyleSheetPage

        :param Version version: Version that contains the resource
        :param Response response: Response from the API
        :param assistant_sid: The unique ID of the Assistant

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

        :param dict payload: Payload response from the API

        :returns: twilio.rest.autopilot.v1.assistant.style_sheet.StyleSheetInstance
        :rtype: twilio.rest.autopilot.v1.assistant.style_sheet.StyleSheetInstance
        r
   r   )ÚStyleSheetInstancer   r   )r   Úpayloadr   r   r   Úget_instanceV   s   	zStyleSheetPage.get_instancec                 C   r   )r    z$<Twilio.Autopilot.V1.StyleSheetPage>r   r   r   r   r   r!   a   r"   zStyleSheetPage.__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 )aX  
        Initialize the StyleSheetContext

        :param Version version: Version that contains the resource
        :param assistant_sid: The unique ID of the Assistant

        :returns: twilio.rest.autopilot.v1.assistant.style_sheet.StyleSheetContext
        :rtype: twilio.rest.autopilot.v1.assistant.style_sheet.StyleSheetContext
        r
   z&/Assistants/{assistant_sid}/StyleSheetNr   )r   r   r   r   ÚformatÚ_urir   r   r   r   r   p   s   

zStyleSheetContext.__init__c                 C   s4   t  i ¡}| jjd| j|d�}t| j|| jd d�S )ú¬
        Fetch a StyleSheetInstance

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

        :param dict style_sheet: The JSON Style sheet string

        :returns: Updated StyleSheetInstance
        :rtype: twilio.rest.autopilot.v1.assistant.style_sheet.StyleSheetInstance
        Ú
StyleSheetÚPOST)Údatar
   r   )	r   r3   r   Úobjectr   Úupdater/   r+   r   )r   Ústyle_sheetr8   r,   r   r   r   r:   ‘   s   	ýzStyleSheetContext.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-StyleSheetContext.__repr__.<locals>.<genexpr>z*<Twilio.Autopilot.V1.StyleSheetContext {}>©Újoinr   Úitemsr.   ©r   Úcontextr   r   r   r!   ¤   ó   
zStyleSheetContext.__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 StyleSheetInstance

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

        :returns: StyleSheetContext for this StyleSheetInstance
        :rtype: twilio.rest.autopilot.v1.assistant.style_sheet.StyleSheetContext
        Nr
   r   )rQ   r   r   r   r   r   r   r   Ú_proxyÉ   s   
	zStyleSheetInstance._proxyc                 C   ó
   | j d S )zl
        :returns: The unique ID of the Account that created this Assistant
        :rtype: unicode
        rN   ©rP   r   r   r   r   rN   Ö   ó   
zStyleSheetInstance.account_sidc                 C   rS   )zR
        :returns: The unique ID of the Assistant
        :rtype: unicode
        r
   rT   r   r   r   r   r
   Þ   rU   z StyleSheetInstance.assistant_sidc                 C   rS   )z;
        :returns: The url
        :rtype: unicode
        rO   rT   r   r   r   r   rO   æ   rU   zStyleSheetInstance.urlc                 C   rS   )zL
        :returns: The JSON style sheet object
        :rtype: dict
        r8   rT   r   r   r   r   r8   î   rU   zStyleSheetInstance.datac                 C   s
   | j  ¡ S )r0   )rR   r4   r   r   r   r   r4   ö   s   
zStyleSheetInstance.fetchc                 C   s   | j j|d�S )r5   )r;   )rR   r:   )r   r;   r   r   r   r:   ÿ   s   	zStyleSheetInstance.updatec                 C   r<   )r    r=   c                 s   r>   r?   r@   rA   r   r   r   rE     rF   z.StyleSheetInstance.__repr__.<locals>.<genexpr>z+<Twilio.Autopilot.V1.StyleSheetInstance {}>rG   rJ   r   r   r   r!   
  rL   zStyleSheetInstance.__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