
    gM                         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 - Conversations
 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                   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$ )ParticipantConversationInstance   c                        \ rS rSrSrSrSrSrg)%ParticipantConversationInstance.State   inactiveactiveclosed N)__name__
__module____qualname____firstlineno__INACTIVEACTIVECLOSED__static_attributes__r       څ/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/conversations/v1/service/participant_conversation.pyStater      s    r#   r%   versionpayloadchat_service_sidc                 F  > [         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
        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        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account_sidr(   participant_sidparticipant_user_sidparticipant_identityparticipant_messaging_bindingconversation_sidconversation_unique_nameconversation_friendly_nameconversation_attributesconversation_date_createdconversation_date_updatedconversation_created_byconversation_stateconversation_timerslinks)super__init__getr*   r(   r+   r,   r-   r.   r/   r0   r1   r2   r   iso8601_datetimer3   r4   r5   r6   r7   r8   	_solution)selfr&   r'   r(   	__class__s       r$   r:   (ParticipantConversationInstance.__init__3   s    	!*1++m*D/6{{;M/N.5kk:K.L3:;;?U3V!3:;;?U3V!JQ+++K
* 07{{;M/N7>{{&8
% :A(:
' 7>kk%7
$ ((5P)QR 	& ((5P)QR 	& 7>kk%7
$ KK,- 	 AH!A
  3:++g2F
  0
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>;ParticipantConversationInstance.__repr__.<locals>.<genexpr>e   s      S<RDA7>>!//<Rs    "z<<Twilio.Conversations.V1.ParticipantConversationInstance {}>)joinr=   itemsrF   )r>   contexts     r$   __repr__(ParticipantConversationInstance.__repr___   s;     ((SDNN<P<P<RSSMTT
 	
r#   )r=   r*   r(   r2   r5   r3   r4   r1   r/   r6   r7   r0   r8   r-   r.   r+   r,   )r   r   r   r   objectr%   r   r   strr   r:   rO   r"   __classcell__r?   s   @r$   r   r      sK     
&*
*
)-c3h*
KN*
X	
# 	
 	
r#   r   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)ParticipantConversationPagek   r'   rA   c                 D    [        U R                  XR                  S   S9$ )ze
Build an instance of ParticipantConversationInstance

:param payload: Payload response from the API
r(   )r(   )r   _versionr=   )r>   r'   s     r$   get_instance(ParticipantConversationPage.get_instancem   s$     /MM7^^DV5W
 	
r#   c                     g)rC   z5<Twilio.Conversations.V1.ParticipantConversationPage>r   r>   s    r$   rO   $ParticipantConversationPage.__repr__w        Gr#   r   N)r   r   r   r   r   rR   r   r   rZ   rO   r"   r   r#   r$   rV   rV   k   s,    
DcN 
7V 
G# Gr#   rV   c                     ^  \ rS rSrS\S\4U 4S jjr\R                  \R                  SS4S\	\\
4   S\	\\
4   S\\   S	\\   S
\\   4
S jjr\R                  \R                  SS4S\	\\
4   S\	\\
4   S\\   S	\\   S
\\   4
S jjr\R                  \R                  SS4S\	\\
4   S\	\\
4   S\\   S	\\   S
\\   4
S jjr\R                  \R                  SS4S\	\\
4   S\	\\
4   S\\   S	\\   S
\\   4
S jjr\R                  \R                  \R                  \R                  \R                  4S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S	\	\\
4   S
\4S jjr\R                  \R                  \R                  \R                  \R                  4S\	\\
4   S\	\\
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$ )ParticipantConversationList   r&   r(   c                 x   > [         TU ]  U5        SU0U l        SR                  " S0 U R                  D6U l        g)a  
Initialize the ParticipantConversationList

:param version: Version that contains the resource
:param chat_service_sid: The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant Conversations resource is associated with.

r(   z5/Services/{chat_service_sid}/ParticipantConversationsNr   )r9   r:   r=   rF   _uri)r>   r&   r(   r?   s      r$   r:   $ParticipantConversationList.__init__   sD     	!  0
 LRR 
nn
	r#   Nidentityaddresslimit	page_sizerA   c                     U R                   R                  X45      nU R                  XUS   S9nU R                   R                  XeS   5      $ )a  
Streams ParticipantConversationInstance 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 str identity: A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters.
:param str address: A unique string identifier for the conversation participant who's not a Conversation User. This parameter could be found in messaging_binding.address field of Participant resource. It should be url-encoded.
: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
ri   rf   rg   ri   rh   )rY   read_limitspagestreamr>   rf   rg   rh   ri   limitsrm   s          r$   rn   "ParticipantConversationList.stream   sP    0 **5<yy&:M  
 }}##D/::r#   c                    #    U R                   R                  X45      nU R                  XUS   S9I Sh  vN nU R                   R                  XeS   5      $  N"7f)a+  
Asynchronously streams ParticipantConversationInstance 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 str identity: A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters.
:param str address: A unique string identifier for the conversation participant who's not a Conversation User. This parameter could be found in messaging_binding.address field of Participant resource. It should be url-encoded.
: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
ri   rk   Nrh   )rY   rl   
page_asyncstream_asyncro   s          r$   rt   (ParticipantConversationList.stream_async   s]     0 **5<__&:M % 
 
 }}))$w@@	
s   2AA#Ac           	      8    [        U R                  UUUUS95      $ )a  
Lists ParticipantConversationInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param str identity: A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters.
:param str address: A unique string identifier for the conversation participant who's not a Conversation User. This parameter could be found in messaging_binding.address field of Participant resource. It should be url-encoded.
: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
rf   rg   rh   ri   )listrn   )r>   rf   rg   rh   ri   s        r$   rx    ParticipantConversationList.list   s.    . KK!#	  
 	
r#   c                 z   #    U R                  UU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 ParticipantConversationInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param str identity: A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters.
:param str address: A unique string identifier for the conversation participant who's not a Conversation User. This parameter could be found in messaging_binding.address field of Participant resource. It should be url-encoded.
: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
rw   N)rt   )r>   rf   rg   rh   ri   records         r$   
list_async&ParticipantConversationList.list_async   sW     2 '+&7&7!#	 '8 ' ! !
 
 !
 	
 
s0   ;.;620
26;26;
page_tokenpage_numberc                     [         R                  " UUUUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XgS9n[        U R                  XR                  5      $ )ab  
Retrieve a single page of ParticipantConversationInstance records from the API.
Request is executed immediately

:param identity: A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters.
:param address: A unique string identifier for the conversation participant who's not a Conversation User. This parameter could be found in messaging_binding.address field of Participant resource. It should be url-encoded.
: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 ParticipantConversationInstance
IdentityAddress	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptGETmethoduriparamsheaders)r   ofrY   rm   rd   rV   r=   	r>   rf   rg   r~   r   ri   datar   responses	            r$   rm    ParticipantConversationList.page  s    ( yy$"'#%
 ))^-PQR.==%%dii & 
 +4==(NNSSr#   c                   #    [         R                  " UUUUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XgS9I Sh  vN n[        U R                  XR                  5      $  N$7f)	aq  
Asynchronously retrieve a single page of ParticipantConversationInstance records from the API.
Request is executed immediately

:param identity: A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters.
:param address: A unique string identifier for the conversation participant who's not a Conversation User. This parameter could be found in messaging_binding.address field of Participant resource. It should be url-encoded.
: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 ParticipantConversationInstance
r   r   r   r   r   r   r   N)r   r   rY   rs   rd   rV   r=   r   s	            r$   rs   &ParticipantConversationList.page_async:  s     ( yy$"'#%
 ))^-PQR.11dii 2 
 
 +4==(NNSS
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 ParticipantConversationInstance records from the API.
Request is executed immediately

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

:returns: Page of ParticipantConversationInstance
r   )rY   domaintwiliorequestrV   r=   r>   r   r   s      r$   get_page$ParticipantConversationList.get_pagea  s;     ==''..66ujI*4==(NNSSr#   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 ParticipantConversationInstance records from the API.
Request is executed immediately

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

:returns: Page of ParticipantConversationInstance
r   N)rY   r   r   request_asyncrV   r=   r   s      r$   get_page_async*ParticipantConversationList.get_page_asyncm  sG      --44BB5*UU*4==(NNSS Vs   4AA%Ac                     g)rC   z5<Twilio.Conversations.V1.ParticipantConversationList>r   r]   s    r$   rO   $ParticipantConversationList.__repr__y  r_   r#   )r=   rd   )r   r   r   r   r   rR   r:   r   unsetr   rQ   r   intr	   r   rn   r
   rt   r   rx   r|   rV   rm   rs   r   r   rO   r"   rS   rT   s   @r$   ra   ra      s@   
 
3 
( (.||&,ll##';V$; sF{#; }	;
 C=; 
1	2;B (.||&,ll##'AV$A sF{#A }	A
 C=A 
6	7AB (.||&,ll##'
V$
 sF{#
 }	

 C=
 
-	.
D (.||&,ll##'
V$
 sF{#
 }	

 C=
 
-	.
F (.||&,ll)/*0,,(.%TV$%T sF{#%T #v+&	%T
 3;'%T f%%T 
%%TR (.||&,ll)/*0,,(.%TV$%T sF{#%T #v+&	%T
 3;'%T f%%T 
%%TN
T3 
T+F 
T
Ts 
T7R 
TG# G Gr#   ra   N)__doc__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   rV   ra   r   r#   r$   <module>r      sU     L L L + : 2 ' !O
&6 O
dG$ G*G, Gr#   