
    g.                         S r SSKJr  SSKJrJrJrJrJrJrJ	r	  SSK
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 " 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.
    )datetime)AnyDictListOptionalUnionIteratorAsyncIterator)deserializevalues)InstanceResource)ListResource)Version)Pagec                   T   ^  \ rS rSrSrS\S\\\4   S\4U 4S jjr	S\4S jr
S	rU =r$ )
MessageInstance   a  
:ivar id: The message ID.
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resource.
:ivar assistant_id: The Assistant ID.
:ivar session_id: The Session ID.
:ivar identity: The identity of the user.
:ivar role: The role of the user associated with the message.
:ivar content: The content of the message.
:ivar meta: The metadata of the message.
:ivar date_created: The date and time in GMT when the Message was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
:ivar date_updated: The date and time in GMT when the Message was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
versionpayload
session_idc                 >  > [         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	        UR                  S5      U l
        [        R                  " UR                  S	5      5      U l        [        R                  " UR                  S
5      5      U l        SU0U l        g )Nidaccount_sidassistant_idr   identityrolecontentmetadate_createddate_updated)super__init__getr   r   r   r   r   r   r   r   r   iso8601_datetimer   r    	_solution)selfr   r   r   	__class__s       q/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/assistants/v1/session/message.pyr"   MessageInstance.__init__'   s    !!(T!2*1++m*D+2;;~+F)0\)B'.{{:'>#*;;v#6	4;KK	4J18V1D	0;0L0LKK'1
 1<0L0LKK'1

 *
    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>C   s      S<RDA7>>!//<Rs    "z)<Twilio.Assistants.V1.MessageInstance {}>)joinr%   itemsr0   )r&   contexts     r(   __repr__MessageInstance.__repr__=   s6     ((SDNN<P<P<RSS:AA'JJr*   )r%   r   r   r   r   r    r   r   r   r   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r"   r9   __static_attributes____classcell__r'   s   @r(   r   r      s>    
 
$sCx. 
c 
,K# K Kr*   r   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)MessagePageG   r   r+   c                 D    [        U R                  XR                  S   S9$ )zU
Build an instance of MessageInstance

:param payload: Payload response from the API
r   )r   )r   _versionr%   )r&   r   s     r(   get_instanceMessagePage.get_instanceI   s#     MM7~~l/K
 	
r*   c                     g)r-   z"<Twilio.Assistants.V1.MessagePage> r&   s    r(   r9   MessagePage.__repr__S        4r*   rL   N)r;   r<   r=   r>   r   r@   r   r   rI   r9   rA   rL   r*   r(   rE   rE   G   s)    
DcN 
 
4# 4r*   rE   c            	       "  ^  \ rS rSrS\S\4U 4S jjr  SS\\   S\\   S\	\
   4S jjr  SS\\   S\\   S\\
   4S	 jjr  SS\\   S\\   S\\
   4S
 jjr  SS\\   S\\   S\\
   4S jjr\R$                  \R$                  \R$                  4S\\\4   S\\\4   S\\\4   S\4S jjr\R$                  \R$                  \R$                  4S\\\4   S\\\4   S\\\4   S\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$ )MessageList\   r   r   c                 x   > [         TU ]  U5        SU0U l        SR                  " S0 U R                  D6U l        g)zw
Initialize the MessageList

:param version: Version that contains the resource
:param session_id: Session id or name

r   z/Sessions/{session_id}/MessagesNrL   )r!   r"   r%   r0   _uri)r&   r   r   r'   s      r(   r"   MessageList.__init__^   s=     	! *
 6<<Nt~~N	r*   limit	page_sizer+   c                     U R                   R                  X5      nU R                  US   S9nU R                   R                  XCS   5      $ )a  
Streams MessageInstance records from the API as a generator stream.
This operation lazily loads records as efficiently as possible until the limit
is reached.
The results are returned as a generator, so this operation is memory efficient.

:param limit: Upper limit for the number of records to return. stream()
              guarantees to never return more than limit.  Default is no limit
:param page_size: Number of records to fetch per request, when not set will use
                  the default value of 50 records.  If no page_size is defined
                  but a limit is defined, stream() will attempt to read the
                  limit with the most efficient page size, i.e. min(limit, 1000)

:returns: Generator that will yield up to limit results
rW   rW   rV   )rH   read_limitspagestreamr&   rV   rW   limitsr[   s        r(   r\   MessageList.streamn   sF    ( **5<yy6+#6y7}}##D/::r*   c                    #    U R                   R                  X5      nU R                  US   S9I Sh  vN nU R                   R                  XCS   5      $  N"7f)a  
Asynchronously streams MessageInstance records from the API as a generator stream.
This operation lazily loads records as efficiently as possible until the limit
is reached.
The results are returned as a generator, so this operation is memory efficient.

:param limit: Upper limit for the number of records to return. stream()
              guarantees to never return more than limit.  Default is no limit
:param page_size: Number of records to fetch per request, when not set will use
                  the default value of 50 records.  If no page_size is defined
                  but a limit is defined, stream() will attempt to read the
                  limit with the most efficient page size, i.e. min(limit, 1000)

:returns: Generator that will yield up to limit results
rW   rY   NrV   )rH   rZ   
page_asyncstream_asyncr]   s        r(   rb   MessageList.stream_async   sR     ( **5<__vk/B_CC}}))$w@@ Ds   1AA#Ac                 4    [        U R                  UUS95      $ )a  
Lists MessageInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param limit: Upper limit for the number of records to return. list() guarantees
              never to return more than limit.  Default is no limit
:param page_size: Number of records to fetch per request, when not set will use
                  the default value of 50 records.  If no page_size is defined
                  but a limit is defined, list() will attempt to read the limit
                  with the most efficient page size, i.e. min(limit, 1000)

:returns: list that will contain up to limit results
rV   rW   )listr\   )r&   rV   rW   s      r(   rf   MessageList.list   s(    & KK#  
 	
r*   c                 v   #    U R                  UUS9I Sh  vN  Vs/ s Sh  vN nUPM   N N

 sn$ s  snf 7f)a  
Asynchronously lists MessageInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param limit: Upper limit for the number of records to return. list() guarantees
              never to return more than limit.  Default is no limit
:param page_size: Number of records to fetch per request, when not set will use
                  the default value of 50 records.  If no page_size is defined
                  but a limit is defined, list() will attempt to read the limit
                  with the most efficient page size, i.e. min(limit, 1000)

:returns: list that will contain up to limit results
re   N)rb   )r&   rV   rW   records       r(   
list_asyncMessageList.list_async   sQ     * '+&7&7# '8 ' ! !
 
 !
 	
 
s0   9,940.
049049
page_tokenpage_numberc                     [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XES9n[        U R                  X`R                  5      $ )a;  
Retrieve a single page of MessageInstance records from the API.
Request is executed immediately

:param page_token: PageToken provided by the API
:param page_number: Page Number, this value is simply for client state
:param page_size: Number of records to return, defaults to 50

:returns: Page of MessageInstance
	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptGETmethoduriparamsheaders)r   ofrH   r[   rT   rE   r%   r&   rl   rm   rW   datar{   responses          r(   r[   MessageList.page   s{      yy'#%
 ))^-PQR.==%%dii & 
 4==(NNCCr*   c                   #    [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XES9I Sh  vN n[        U R                  X`R                  5      $  N$7f)	aJ  
Asynchronously retrieve a single page of MessageInstance records from the API.
Request is executed immediately

:param page_token: PageToken provided by the API
:param page_number: Page Number, this value is simply for client state
:param page_size: Number of records to return, defaults to 50

:returns: Page of MessageInstance
ro   rr   rs   rt   ru   rv   rw   N)r   r|   rH   ra   rT   rE   r%   r}   s          r(   ra   MessageList.page_async   s       yy'#%
 ))^-PQR.11dii 2 
 
 4==(NNCC
s   A B	"B#%B	
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   X R
                  5      $ )z
Retrieve a specific page of MessageInstance records from the API.
Request is executed immediately

:param target_url: API-generated URL for the requested results page

:returns: Page of MessageInstance
rv   )rH   domaintwiliorequestrE   r%   r&   r   r   s      r(   get_pageMessageList.get_page  s;     ==''..66ujI4==(NNCCr*   c                    #    U R                   R                  R                  R                  SU5      I Sh  vN n[	        U R                   X R
                  5      $  N$7f)z
Asynchronously retrieve a specific page of MessageInstance records from the API.
Request is executed immediately

:param target_url: API-generated URL for the requested results page

:returns: Page of MessageInstance
rv   N)rH   r   r   request_asyncrE   r%   r   s      r(   get_page_asyncMessageList.get_page_async#  sG      --44BB5*UU4==(NNCC Vs   4AA%Ac                     g)r-   z"<Twilio.Assistants.V1.MessageList>rL   rM   s    r(   r9   MessageList.__repr__/  rO   r*   )r%   rT   )NN)r;   r<   r=   r>   r   r@   r"   r   intr	   r   r\   r
   rb   r   rf   rj   r   unsetr   objectrE   r[   ra   r   r   r9   rA   rB   rC   s   @r(   rQ   rQ   \   s   O OS O$  $#';}; C=; 
/	"	;6  $#'A}A C=A 
	'	A6  $#'
}
 C=
 
o		
8  $#'
}
 C=
 
o		
: *0*0,,(.	D#v+&D 3;'D f%	D
 
DF *0*0,,(.	D#v+&D 3;'D f%	D
 
DB
D3 
D; 
D
Ds 
D{ 
D4# 4 4r*   rQ   N)r?   r   typingr   r   r   r   r   r	   r
   twilio.baser   r   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   rE   rQ   rL   r*   r(   <module>r      sQ     L L L + : 2 ' !+K& +K\4$ 4*Y4, Y4r*   