
    i?1i*                         d Z ddlmZ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)InstanceContext)InstanceResource)ListResource)Versionc            
       v     e Zd ZdZ	 ddedeeef   dedee   f fdZ	e
dd       Zdd	Zdd
ZdefdZ xZS )DialogueInstancea  
    :ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Dialogue 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 sid: The unique string that we created to identify the Dialogue resource.
    :ivar data: The JSON string that describes the dialogue session object.
    :ivar url: The absolute URL of the Dialogue resource.
    versionpayloadassistant_sidsidc                 >   t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        ||xs | j
                  d| _        d | _	        y )Naccount_sidr   r   dataurlr   r   )
super__init__getr   r   r   r   r   	_solution_context)selfr   r   r   r   	__class__s        u/home/www/therecruiter.miabetepe.com/venv/lib/python3.12/site-packages/twilio/rest/autopilot/v1/assistant/dialogue.pyr   zDialogueInstance.__init__!   s     	!*1++m*D,3KK,H")++e"418V1D	")++e"4 +?$((
 48    returnc                     | j                   7t        | j                  | j                  d   | 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: DialogueContext for this DialogueInstance
        r   r   r   )r   DialogueContext_versionr   r   s    r   _proxyzDialogueInstance._proxy6   sE     == +"nn_=NN5)DM
 }}r   c                 6    | j                   j                         S )]
        Fetch the DialogueInstance


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


        :returns: The fetched DialogueInstance
        N)r#   fetch_asyncr"   s    r   r)   zDialogueInstance.fetch_asyncO   s!      [[,,....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,DialogueInstance.__repr__.<locals>.<genexpr>^        SDAq7>>!Q/S   !z)<Twilio.Autopilot.V1.DialogueInstance {}>joinr   itemsr0   r   contexts     r   __repr__zDialogueInstance.__repr__X   s6     ((SDNN<P<P<RSS:AA'JJr   )N)r   r    )r   r   )__name__
__module____qualname____doc__r	   r   strr   r   r   propertyr#   r&   r)   r=   __classcell__r   s   @r   r   r      sp     "88 c3h8 	8
 c]8*  #/K# Kr   r   c                   P     e Zd Zde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 )	r    r   r   r   c                 z    t         |   |       ||d| _         dj                  di | j                  | _        y)ao  
        Initialize the DialogueContext

        :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.
        :param sid: The Twilio-provided string that uniquely identifies the Dialogue resource to fetch.
        r   z+/Assistants/{assistant_sid}/Dialogues/{sid}N )r   r   r   r0   _uri)r   r   r   r   r   s       r   r   zDialogueContext.__init__c   sG     	! +
 IAHH 
nn
	r   r   c                     | j                   j                  d| j                        }t        | j                   || j                  d   | j                  d         S )r%   GETmethodurir   r   r   )r!   r&   rI   r   r   r   r   s     r   r&   zDialogueContext.fetchv   sX     --%%		 & 

  MM..9u%	
 	
r   c                    K   | j                   j                  d| j                         d{   }t        | j                   || j                  d   | j                  d         S 7 7w)r(   rK   rL   Nr   r   r   )r!   r)   rI   r   r   rO   s     r   r)   zDialogueContext.fetch_async   sf      11		 2 
 

  MM..9u%	
 	

s   +A'A%8A'c                     dj                  d | j                  j                         D              }dj                  |      S )r+   r,   c              3   F   K   | ]  \  }}d j                  ||        ywr.   r/   r1   s      r   r5   z+DialogueContext.__repr__.<locals>.<genexpr>   r6   r7   z(<Twilio.Autopilot.V1.DialogueContext {}>r8   r;   s     r   r=   zDialogueContext.__repr__   s6     ((SDNN<P<P<RSS9@@IIr   )r>   r?   r@   r	   rB   r   r   r&   r)   r=   rD   rE   s   @r   r    r    b   sE    
 
 
# 
&
' 
(
#3 
(J# Jr   r    c                   T     e Zd Zdedef fdZdedefdZdedefdZdefdZ	 xZ
S )	DialogueListr   r   c                 6    t         |   |       d|i| _        y)a  
        Initialize the DialogueList

        :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   )r   r   r   r   s      r   r   zDialogueList.__init__   s"     	! ]
r   r   r   c                 L    t        | j                  | j                  d   |      S z
        Constructs a DialogueContext

        :param sid: The Twilio-provided string that uniquely identifies the Dialogue resource to fetch.
        r   r   r    r!   r   r   r   s     r   r   zDialogueList.get   %     MM)Hc
 	
r   c                 L    t        | j                  | j                  d   |      S rW   rX   rY   s     r   __call__zDialogueList.__call__   rZ   r   c                      y)r+   z"<Twilio.Autopilot.V1.DialogueList>rH   r"   s    r   r=   zDialogueList.__repr__   s     4r   )r>   r?   r@   r	   rB   r   r    r   r\   r=   rD   rE   s   @r   rT   rT      sH    
 
 

s 
 

C 
O 
4# 4r   rT   N)rA   typingr   r   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr	   r   r    rT   rH   r   r   <module>rc      sM    ' & 8 : 2 'HK' HKVCJo CJL*4< *4r   