
    i?1iw                         d Z ddlmZmZmZmZ ddlmZ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	e      Z G d
 de
      Z G d de      Zy)a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Preview
    This is the public Twilio REST API.

    NOTE: This class is auto generated by OpenAPI Generator.
    https://openapi-generator.tech
    Do not edit the class manually.
    )AnyDictOptionalUnion)	serializevalues)InstanceContext)InstanceResource)ListResource)Versionc                        e Zd ZdZdedeeef   def fdZe	dd       Z
ddZdd	Zej                  fd
eeef   dd fdZej                  fd
eeef   dd fdZdefdZ xZS )StyleSheetInstancez
    :ivar account_sid: The unique ID of the Account that created this Assistant
    :ivar assistant_sid: The unique ID of the Assistant
    :ivar url:
    :ivar data: The JSON style sheet object
    versionpayloadassistant_sidc                     t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        d|i| _        d | _        y )Naccount_sidr   urldata)	super__init__getr   r   r   r   	_solution_context)selfr   r   r   	__class__s       ~/home/www/therecruiter.miabetepe.com/venv/lib/python3.12/site-packages/twilio/rest/preview/understand/assistant/style_sheet.pyr   zStyleSheetInstance.__init__!   sk    !*1++m*D,3KK,H")++e"418V1D	 ]
 6:    returnc                     | j                   )t        | j                  | j                  d         | _         | j                   S )z
        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
        r   r   )r   StyleSheetContext_versionr   r   s    r   _proxyzStyleSheetInstance._proxy.   s9     == -"nn_=DM }}r   c                 6    | j                   j                         S )a
        Fetch the StyleSheetInstance


        :returns: The fetched StyleSheetInstance
        )r%   fetchr$   s    r   r(   zStyleSheetInstance.fetch=   s     {{  ""r   c                 R   K   | j                   j                          d{   S 7 w){
        Asynchronous coroutine to fetch the StyleSheetInstance


        :returns: The fetched StyleSheetInstance
        N)r%   fetch_asyncr$   s    r   r+   zStyleSheetInstance.fetch_asyncF   s!      [[,,....s   '%'style_sheetc                 :    | j                   j                  |      S )
        Update the StyleSheetInstance

        :param style_sheet: The JSON Style sheet string

        :returns: The updated StyleSheetInstance
        r,   )r%   updater   r,   s     r   r0   zStyleSheetInstance.updateO   s#     {{!!# " 
 	
r   c                 V   K   | j                   j                  |       d{   S 7 w)
        Asynchronous coroutine to update the StyleSheetInstance

        :param style_sheet: The JSON Style sheet string

        :returns: The updated StyleSheetInstance
        r/   N)r%   update_asyncr1   s     r   r4   zStyleSheetInstance.update_async]   s1      [[--# . 
 
 	
 
s    )')c                     dj                  d | j                  j                         D              }dj                  |      S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   F   K   | ]  \  }}d j                  ||        ywz{}={}Nformat.0kvs      r   	<genexpr>z.StyleSheetInstance.__repr__.<locals>.<genexpr>q        SDAq7>>!Q/S   !z1<Twilio.Preview.Understand.StyleSheetInstance {}>joinr   itemsr;   r   contexts     r   __repr__zStyleSheetInstance.__repr__k   s6     ((SDNN<P<P<RSSBII'RRr   )r   r"   )r   r   )__name__
__module____qualname____doc__r   r   strr   r   propertyr%   r(   r+   r   unsetr   objectr0   r4   rH   __classcell__r   s   @r   r   r      s    : :$sCx. :QT :  #/ 4:<<
 0
	
 4:<<
 0
	
S# Sr   r   c                        e Zd Zdedef fdZdefdZdefdZe	j                  fdeeef   defdZe	j                  fdeeef   defd	Zdefd
Z xZS )r"   r   r   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the StyleSheetContext

        :param version: Version that contains the resource
        :param assistant_sid: The unique ID of the Assistant
        r   z&/Assistants/{assistant_sid}/StyleSheetN )r   r   r   r;   _urir   r   r   r   s      r   r   zStyleSheetContext.__init__v   sA     	! ]
 D<CCUdnnU	r   r   c                     | j                   j                  d| j                        }t        | j                   || j                  d         S )r'   GETmethodurir   r!   )r#   r(   rV   r   r   r   r   s     r   r(   zStyleSheetContext.fetch   sL     --%%		 & 

 "MM..9
 	
r   c                    K   | j                   j                  d| j                         d{   }t        | j                   || j                  d         S 7 )w)r*   rY   rZ   Nr   r!   )r#   r+   rV   r   r   r]   s     r   r+   zStyleSheetContext.fetch_async   sZ      11		 2 
 

 "MM..9
 	

s   +AA*Ar,   c                     t        j                  dt        j                  |      i      }| j                  j                  d| j                  |      }t        | j                  || j                  d         S )r.   
StyleSheetPOSTr[   r\   r   r   r!   )	r   ofr   rP   r#   r0   rV   r   r   r   r,   r   r   s       r   r0   zStyleSheetContext.update   sr     yyi..{;
 --&&		 ' 
 "MM7$..2Q
 	
r   c                   K   t        j                  dt        j                  |      i      }| j                  j                  d| j                  |       d{   }t        | j                  || j                  d         S 7 )w)r3   r`   ra   rb   Nr   r!   )	r   rc   r   rP   r#   r4   rV   r   r   rd   s       r   r4   zStyleSheetContext.update_async   s      yyi..{;
 22		 3 
 
 "MM7$..2Q
 	

s   ABB*Bc                     dj                  d | j                  j                         D              }dj                  |      S )r6   r7   c              3   F   K   | ]  \  }}d j                  ||        ywr9   r:   r<   s      r   r@   z-StyleSheetContext.__repr__.<locals>.<genexpr>   rA   rB   z0<Twilio.Preview.Understand.StyleSheetContext {}>rC   rF   s     r   rH   zStyleSheetContext.__repr__   s6     ((SDNN<P<P<RSSAHHQQr   )rI   rJ   rK   r   rM   r   r   r(   r+   r   rO   r   rP   r0   r4   rH   rQ   rR   s   @r   r"   r"   u   s    V V V
) 
&
#5 
( 4:<<
 0
	
6 4:<<
 0
	
4R# Rr   r"   c                   L     e Zd Zdedef fdZdefdZdefdZdefdZ	 xZ
S )StyleSheetListr   r   c                 6    t         |   |       d|i| _        y)z
        Initialize the StyleSheetList

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

        r   N)r   r   r   rW   s      r   r   zStyleSheetList.__init__   s"     	! ]
r   r   c                 J    t        | j                  | j                  d         S z1
        Constructs a StyleSheetContext

        r   r!   r"   r#   r   r$   s    r   r   zStyleSheetList.get   #    
 !MM)H
 	
r   c                 J    t        | j                  | j                  d         S rl   rm   r$   s    r   __call__zStyleSheetList.__call__  rn   r   c                      y)r6   z*<Twilio.Preview.Understand.StyleSheetList>rU   r$   s    r   rH   zStyleSheetList.__repr__  s     <r   )rI   rJ   rK   r   rM   r   r"   r   rp   rH   rQ   rR   s   @r   ri   ri      s<    
 
 

& 

+ 
<# <r   ri   N)rL   typingr   r   r   r   twilio.baser   r   twilio.base.instance_contextr	   twilio.base.instance_resourcer
   twilio.base.list_resourcer   twilio.base.versionr   r   r"   ri   rU   r   r   <module>rx      sP    . - ) 8 : 2 'ZS) ZSzqR qRh(<\ (<r   