o
    ei#                     @   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 )a[  
        Initialize the StyleSheetList

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

        :returns: twilio.rest.preview.understand.assistant.style_sheet.StyleSheetList
        :rtype: twilio.rest.preview.understand.assistant.style_sheet.StyleSheetList
        assistant_sidN)superr   __init__	_solutionselfversionr
   	__class__ g/var/www/html/venv/lib/python3.10/site-packages/twilio/rest/preview/understand/assistant/style_sheet.pyr      s   
zStyleSheetList.__init__c                 C      t | j| jd dS z
        Constructs a StyleSheetContext

        :returns: twilio.rest.preview.understand.assistant.style_sheet.StyleSheetContext
        :rtype: twilio.rest.preview.understand.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.Preview.Understand.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.preview.understand.assistant.style_sheet.StyleSheetPage
        :rtype: twilio.rest.preview.understand.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.preview.understand.assistant.style_sheet.StyleSheetInstance
        :rtype: twilio.rest.preview.understand.assistant.style_sheet.StyleSheetInstance
        r
   r   )StyleSheetInstancer   r   r   payloadr   r   r   get_instanceV   s   	zStyleSheetPage.get_instancec                 C   r   )r    z*<Twilio.Preview.Understand.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 )ad  
        Initialize the StyleSheetContext

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

        :returns: twilio.rest.preview.understand.assistant.style_sheet.StyleSheetContext
        :rtype: twilio.rest.preview.understand.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   s(   | j jd| jd}t| j || jd dS )
        Fetch the StyleSheetInstance

        :returns: The fetched StyleSheetInstance
        :rtype: twilio.rest.preview.understand.assistant.style_sheet.StyleSheetInstance
        GET)methodurir
   r   )r   fetchr0   r+   r   r,   r   r   r   r5      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: The updated StyleSheetInstance
        :rtype: twilio.rest.preview.understand.assistant.style_sheet.StyleSheetInstance
        
StyleSheetPOST)r3   r4   datar
   r   )	r   ofr   objectr   updater0   r+   r   )r   style_sheetr9   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>z0<Twilio.Preview.Understand.StyleSheetContext {}>joinr   itemsr/   r   contextr   r   r   r!         
zStyleSheetContext.__repr__)r#   r$   r%   r&   r   r5   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                    sL   t t| | |d|d|d|dd| _d| _d|i| _dS )z
        Initialize the StyleSheetInstance

        :returns: twilio.rest.preview.understand.assistant.style_sheet.StyleSheetInstance
        :rtype: twilio.rest.preview.understand.assistant.style_sheet.StyleSheetInstance
        account_sidr
   urlr9   )rP   r
   rQ   r9   N)r   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 )aG  
        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.preview.understand.assistant.style_sheet.StyleSheetContext
        Nr
   r   )rS   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
        rP   rR   r   r   r   r   rP         
zStyleSheetInstance.account_sidc                 C   rU   )zR
        :returns: The unique ID of the Assistant
        :rtype: unicode
        r
   rV   r   r   r   r   r
      rW   z StyleSheetInstance.assistant_sidc                 C   rU   )z;
        :returns: The url
        :rtype: unicode
        rQ   rV   r   r   r   r   rQ      rW   zStyleSheetInstance.urlc                 C   rU   )zL
        :returns: The JSON style sheet object
        :rtype: dict
        r9   rV   r   r   r   r   r9      rW   zStyleSheetInstance.datac                 C   s
   | j  S )r1   )rT   r5   r   r   r   r   r5      s   
zStyleSheetInstance.fetchc                 C   s   | j j|dS )r6   )r=   )rT   r<   )r   r=   r   r   r   r<      s   	zStyleSheetInstance.updatec                 C   r>   )r    r?   c                 s   r@   rA   rB   rC   r   r   r   rG     rH   z.StyleSheetInstance.__repr__.<locals>.<genexpr>z1<Twilio.Preview.Understand.StyleSheetInstance {}>rI   rL   r   r   r   r!      rN   zStyleSheetInstance.__repr__)r#   r$   r%   r&   r   propertyrT   rP   r
   rQ   r9   r5   r   rO   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*: