
    g[4                         S 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 - Flex
 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ListOptionalUnionIteratorAsyncIterator)deserializevalues)InstanceResource)ListResource)Version)Pagec                   P   ^  \ rS rSrSrS\S\\\4   4U 4S jjr	S\4S jr
SrU =r$ )	InsightsConversationsInstance   z
:ivar account_id: The id of the account.
:ivar conversation_id: The unique id of the conversation
:ivar segment_count: The count of segments for a conversation
:ivar segments: The Segments of a conversation
versionpayloadc                    > [         TU ]  U5        UR                  S5      U l        UR                  S5      U l        [
        R                  " UR                  S5      5      U l        UR                  S5      U l        g )N
account_idconversation_idsegment_countsegments)	super__init__getr   r   r
   integerr   r   )selfr   r   	__class__s      v/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/flex_api/v1/insights_conversations.pyr   &InsightsConversationsInstance.__init__    sd    !)0\)B.5kk:K.L,7,?,?KK(-
 <C;;z;R    returnc                     g)N
Provide a friendly representation

:returns: Machine friendly representation
z1<Twilio.FlexApi.V1.InsightsConversationsInstance> r   s    r    __repr__&InsightsConversationsInstance.__repr__*   s     Cr"   )r   r   r   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r(   __static_attributes____classcell__r   s   @r    r   r      s:    S S$sCx. SC# C Cr"   r   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)InsightsConversationsPage4   r   r#   c                 .    [        U R                  U5      $ )zc
Build an instance of InsightsConversationsInstance

:param payload: Payload response from the API
)r   _version)r   r   s     r    get_instance&InsightsConversationsPage.get_instance6   s     -T]]GDDr"   c                     g)r%   z-<Twilio.FlexApi.V1.InsightsConversationsPage>r&   r'   s    r    r(   "InsightsConversationsPage.__repr__>        ?r"   r&   N)r*   r+   r,   r-   r   r/   r   r   r8   r(   r0   r&   r"   r    r4   r4   4   s-    EDcN E7T E?# ?r"   r4   c                     ^  \ rS rSr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$ )InsightsConversationsListG   r   c                 2   > [         TU ]  U5        SU l        g)z_
Initialize the InsightsConversationsList

:param version: Version that contains the resource

z/Insights/ConversationsN)r   r   _uri)r   r   r   s     r    r   "InsightsConversationsList.__init__I   s     	!-	r"   Nauthorization
segment_idlimit	page_sizer#   c                     U R                   R                  X45      nU R                  UUUS   S9nU R                   R                  XeS   5      $ )a  
Streams InsightsConversationsInstance 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 authorization: The Authorization HTTP request header
:param str segment_id: Unique Id of the segment for which conversation details needs to be fetched
: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
rF   rC   rD   rF   rE   )r7   read_limitspagestreamr   rC   rD   rE   rF   limitsrJ   s          r    rK    InsightsConversationsList.streamT   sT    0 **5<yy'![)  
 }}##D/::r"   c                    #    U R                   R                  X45      nU R                  UUUS   S9I Sh  vN nU R                   R                  XeS   5      $  N"7f)a  
Asynchronously streams InsightsConversationsInstance 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 authorization: The Authorization HTTP request header
:param str segment_id: Unique Id of the segment for which conversation details needs to be fetched
: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
rF   rH   NrE   )r7   rI   
page_asyncstream_asyncrL   s          r    rQ   &InsightsConversationsList.stream_asyncu   sa     0 **5<__'![) % 
 
 }}))$w@@
s   3AA#Ac           	      8    [        U R                  UUUUS95      $ )aS  
Lists InsightsConversationsInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param str authorization: The Authorization HTTP request header
:param str segment_id: Unique Id of the segment for which conversation details needs to be fetched
: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
rC   rD   rE   rF   )listrK   )r   rC   rD   rE   rF   s        r    rU   InsightsConversationsList.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)ab  
Asynchronously lists InsightsConversationsInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param str authorization: The Authorization HTTP request header
:param str segment_id: Unique Id of the segment for which conversation details needs to be fetched
: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
rT   N)rQ   )r   rC   rD   rE   rF   records         r    
list_async$InsightsConversationsList.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                  " USS.5      nSUS'   U R                  R                  SU R                  XgS9n[        U R                  U5      $ )a  
Retrieve a single page of InsightsConversationsInstance records from the API.
Request is executed immediately

:param authorization: The Authorization HTTP request header
:param segment_id: Unique Id of the segment for which conversation details needs to be fetched
: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 InsightsConversationsInstance
Authorization	SegmentId	PageTokenr   PageSize!application/x-www-form-urlencodedr_   zContent-Typeapplication/jsonAcceptGETmethoduriparamsheaders)r   ofr7   rJ   rA   r4   	r   rC   rD   r[   r\   rF   datarl   responses	            r    rJ   InsightsConversationsList.page   s    ( yy!.''#%
 ))!. C
 /==%%dii & 
 )AAr"   c                   #    [         R                  " UUUUUS.5      n[         R                  " USS.5      nSUS'   U R                  R                  SU R                  XgS9I Sh  vN n[        U R                  U5      $  N7f)	a  
Asynchronously retrieve a single page of InsightsConversationsInstance records from the API.
Request is executed immediately

:param authorization: The Authorization HTTP request header
:param segment_id: Unique Id of the segment for which conversation details needs to be fetched
: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 InsightsConversationsInstance
r^   rc   rd   re   rf   rg   rh   N)r   rm   r7   rP   rA   r4   rn   s	            r    rP   $InsightsConversationsList.page_async  s     ( yy!.''#%
 ))!. C
 /11dii 2 
 
 )AA
s   A#B%B &B
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   U5      $ )z
Retrieve a specific page of InsightsConversationsInstance records from the API.
Request is executed immediately

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

:returns: Page of InsightsConversationsInstance
rg   )r7   domaintwiliorequestr4   r   rt   rp   s      r    get_page"InsightsConversationsList.get_page/  s7     ==''..66ujI(AAr"   c                    #    U R                   R                  R                  R                  SU5      I Sh  vN n[	        U R                   U5      $  N7f)z
Asynchronously retrieve a specific page of InsightsConversationsInstance records from the API.
Request is executed immediately

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

:returns: Page of InsightsConversationsInstance
rg   N)r7   rv   rw   request_asyncr4   ry   s      r    get_page_async(InsightsConversationsList.get_page_async;  sC      --44BB5*UU(AA Vs   4AAAc                     g)r%   z-<Twilio.FlexApi.V1.InsightsConversationsList>r&   r'   s    r    r(   "InsightsConversationsList.__repr__G  r<   r"   )rA   )r*   r+   r,   r-   r   r   r   unsetr   r/   objectr   intr   r   rK   r	   rQ   r   rU   rY   r4   rJ   rP   rz   r~   r(   r0   r1   r2   s   @r    r>   r>   G   s6   	. 	. -3LL)/##';S&[); #v+&; }	;
 C=; 
/	0;F -3LL)/##'AS&[)A #v+&A }	A
 C=A 
4	5AF -3LL)/##'
S&[)
 #v+&
 }	

 C=
 
+	,
D -3LL)/##'
S&[)
 #v+&
 }	

 C=
 
+	,
F -3LL)/)/*0,,(.*BS&[)*B #v+&*B #v+&	*B
 3;'*B f%*B 
#*B\ -3LL)/)/*0,,(.*BS&[)*B #v+&*B #v+&	*B
 3;'*B f%*B 
#*BX
B3 
B+D 
B
Bs 
B7P 
B?# ? ?r"   r>   N)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   r4   r>   r&   r"   r    <module>r      sN    M L L + : 2 ' !C$4 C8? ?&F? F?r"   