
    g_                     x    S r SSKJrJrJr  SSKJr  SSKJr  SSK	J
r
  SSKJr   " S S\5      r " S	 S
\
5      rg)a  
 This code was generated by
___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

 Twilio - Assistants
 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)values)InstanceResource)ListResource)Versionc                   h   ^  \ rS rSr " S S\5      r S\S\\\	4   S\4U 4S jjr
S\4S	 jrS
rU =r$ )MessageInstance   c                   6    \ rS rSrSrS\\\4   4S jrS r	Sr
g)>MessageInstance.AssistantsV1ServiceAssistantSendMessageRequest   =  
:ivar identity: The unique identity of user for the session.
:ivar session_id: The unique name for the session.
:ivar body: The query to ask the assistant.
:ivar webhook: The webhook url to call after the assistant has generated a response or report an error.
:ivar mode: one of the modes 'chat', 'email' or 'voice'
payloadc                     UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        g Nidentity
session_idbodywebhookmodegetr   r   r   r   r   selfr   s     s/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/assistants/v1/assistant/message.py__init__GMessageInstance.AssistantsV1ServiceAssistantSendMessageRequest.__init__"   R    +2;;z+BDM-4[[-FDO'.{{6':DI*1++i*@DL'.{{6':DI    c                 v    U R                   U R                  U R                  U R                  U R                  S.$ Nr   r   r   r   r   r$   r   s    r   to_dictFMessageInstance.AssistantsV1ServiceAssistantSendMessageRequest.to_dict*   /     MM"oo		<<		 r!   r   r   r   r   r   N__name__
__module____qualname____firstlineno____doc__r   strr   r   r&   __static_attributes__ r!   r   .AssistantsV1ServiceAssistantSendMessageRequestr           		;DcN 	;	r!   r3   versionr   idc                 j  > [         TU ]  U5        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l	        SU0U l
        g )	Nstatusflaggedabortedr   account_sidr   errorr6   )superr   r   r8   r9   r:   r   r;   r   r<   	_solution)r   r5   r   r6   	__class__s       r   r   MessageInstance.__init__=   s    !%,[[%:'.{{9'='.{{9'=)0\)B*1++m*D#*;;v#6	$+KK$8
 "
r!   returnc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )N
Provide a friendly representation

:returns: Machine friendly representation
 c              3   H   #    U  H  u  pS R                  X5      v   M     g7f)z{}={}N)format).0kvs      r   	<genexpr>+MessageInstance.__repr__.<locals>.<genexpr>R   s      S<RDA7>>!//<Rs    "z)<Twilio.Assistants.V1.MessageInstance {}>)joinr>   itemsrF   )r   contexts     r   __repr__MessageInstance.__repr__L   s6     ((SDNN<P<P<RSS:AA'JJr!   )r>   r:   r;   r   r<   r9   r   r8   )r+   r,   r-   r.   objectr3   r	   r   r0   r   r   rO   r1   __classcell__r?   s   @r   r   r      sJ     4
 
$sCx. 
c 
K# K Kr!   r   c                   |   ^  \ rS rSr " S S\5      rS\S\4U 4S jjrS\S\	4S	 jr
S\S\	4S
 jrS\4S jrSrU =r$ )MessageListV   c                   6    \ rS rSrSrS\\\4   4S jrS r	Sr
g):MessageList.AssistantsV1ServiceAssistantSendMessageRequestX   r   r   c                     UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        g r   r   r   s     r   r   CMessageList.AssistantsV1ServiceAssistantSendMessageRequest.__init__a   r    r!   c                 v    U R                   U R                  U R                  U R                  U R                  S.$ r#   r$   r%   s    r   r&   BMessageList.AssistantsV1ServiceAssistantSendMessageRequest.to_dicti   r(   r!   r)   Nr*   r2   r!   r   r3   rX   X   r4   r!   r3   r5   r6   c                 x   > [         TU ]  U5        SU0U l        SR                  " S0 U R                  D6U l        g)zn
Initialize the MessageList

:param version: Version that contains the resource
:param id: the Assistant ID.

r6   z/Assistants/{id}/MessagesNr2   )r=   r   r>   rF   _uri)r   r5   r6   r?   s      r   r   MessageList.__init__r   s=     	! "
 066HH	r!   4assistants_v1_service_assistant_send_message_requestrA   c                     UR                  5       n[        R                  " SS05      nSUS'   SUS'   U R                  R	                  SU R
                  X#S9n[        U R                  X@R                  S   S9$ )	z
Create the MessageInstance

:param assistants_v1_service_assistant_send_message_request:

:returns: The created MessageInstance
Content-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheadersr6   r6   )r&   r   of_versioncreater_   r   r>   r   ra   rk   rl   r   s        r   rp   MessageList.create   s{     DKKM))^-PQR"4.--&&tyyt ' 
 t}}g..:NOOr!   c                   #    UR                  5       n[        R                  " SS05      nSUS'   SUS'   U R                  R	                  SU R
                  X#S9I Sh  vN n[        U R                  X@R                  S   S	9$  N%7f)
z
Asynchronously create the MessageInstance

:param assistants_v1_service_assistant_send_message_request:

:returns: The created MessageInstance
rc   rd   re   rf   rg   rh   Nr6   rm   )r&   r   rn   ro   create_asyncr_   r   r>   rq   s        r   rt   MessageList.create_async   s      DKKM))^-PQR"4.22tyyt 3 
 
 t}}g..:NOO	
s   ABB&Bc                     g)rC   z"<Twilio.Assistants.V1.MessageList>r2   r%   s    r   rO   MessageList.__repr__   s     4r!   )r>   r_   )r+   r,   r-   r.   rQ   r3   r	   r0   r   r   rp   rt   rO   r1   rR   rS   s   @r   rU   rU   V   sj     4I IS I P>lP 
P2P>lP 
P24# 4 4r!   rU   N)r/   typingr   r   r   twilio.baser   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr	   r   rU   r2   r!   r   <module>r}      s<    ' &  : 2 '<K& <K~d4, d4r!   