
    i?1i!                         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 - Autopilot
    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 )DefaultsInstancea  
    :ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Defaults resource.
    :ivar assistant_sid: The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource.
    :ivar url: The absolute URL of the Defaults resource.
    :ivar data: The JSON string that describes the default task links for the `assistant_initiation`, `collect`, and `fallback` situations.
    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       u/home/www/therecruiter.miabetepe.com/venv/lib/python3.12/site-packages/twilio/rest/autopilot/v1/assistant/defaults.pyr   zDefaultsInstance.__init__!   sk    !*1++m*D,3KK,H")++e"418V1D	 ]
 48    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: DefaultsContext for this DefaultsInstance
        r   r   )r   DefaultsContext_versionr   r   s    r   _proxyzDefaultsInstance._proxy.   s9     == +"nn_=DM }}r   c                 6    | j                   j                         S )]
        Fetch the DefaultsInstance


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


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

        :param defaults: A JSON string that describes the default task links for the `assistant_initiation`, `collect`, and `fallback` situations.

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

        :param defaults: A JSON string that describes the default task links for the `assistant_initiation`, `collect`, and `fallback` situations.

        :returns: The updated DefaultsInstance
        r/   N)r%   update_asyncr1   s     r   r4   zDefaultsInstance.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,DefaultsInstance.__repr__.<locals>.<genexpr>q        SDAq7>>!Q/S   !z)<Twilio.Autopilot.V1.DefaultsInstance {}>joinr   itemsr;   r   contexts     r   __repr__zDefaultsInstance.__repr__k   s6     ((SDNN<P<P<RSS:AA'JJr   )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    8 8$sCx. 8QT 8  #/ 17
ffn-
	
 17
ffn-
	
K# K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)a  
        Initialize the DefaultsContext

        :param version: Version that contains the resource
        :param assistant_sid: The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update.
        r   z$/Assistants/{assistant_sid}/DefaultsN )r   r   r   r;   _urir   r   r   r   s      r   r   zDefaultsContext.__init__v   sA     	! ]
 B:AASDNNS	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DefaultsContext.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DefaultsContext.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.   DefaultsPOSTr[   r\   r   r   r!   )	r   ofr   rP   r#   r0   rV   r   r   r   r,   r   r   s       r   r0   zDefaultsContext.update   sr     yyI,,X6
 --&&		 ' 
  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DefaultsContext.update_async   s      yyI,,X6
 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+DefaultsContext.__repr__.<locals>.<genexpr>   rA   rB   z(<Twilio.Autopilot.V1.DefaultsContext {}>rC   rF   s     r   rH   zDefaultsContext.__repr__   s6     ((SDNN<P<P<RSS9@@IIr   )rI   rJ   rK   r   rM   r   r   r(   r+   r   rO   r   rP   r0   r4   rH   rQ   rR   s   @r   r"   r"   u   s    T T T
' 
&
#3 
( 17
ffn-
	
6 17
ffn-
	
4J# J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 )DefaultsListr   r   c                 6    t         |   |       d|i| _        y)a  
        Initialize the DefaultsList

        :param version: Version that contains the resource
        :param assistant_sid: The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch.

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

        r   r!   r"   r#   r   r$   s    r   r   zDefaultsList.get   #    
 MM)H
 	
r   c                 J    t        | j                  | j                  d         S rl   rm   r$   s    r   __call__zDefaultsList.__call__  rn   r   c                      y)r6   z"<Twilio.Autopilot.V1.DefaultsList>rU   r$   s    r   rH   zDefaultsList.__repr__  s     4r   )rI   rJ   rK   r   rM   r   r"   r   rp   rH   rQ   rR   s   @r   ri   ri      s:    
 
 

_ 

/ 
4# 4r   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K' ZKzqJo qJh(4< (4r   