
    gR@                         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)	serialize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$ )	InsightsSegmentsInstance   aa  
:ivar segment_id: To unique id of the segment
:ivar external_id: The unique id for the conversation.
:ivar queue:
:ivar external_contact:
:ivar external_segment_link_id: The uuid for the external_segment_link.
:ivar date: The date of the conversation.
:ivar account_id: The unique id for the account.
:ivar external_segment_link: The hyperlink to recording of the task event.
:ivar agent_id: The unique id for the agent.
:ivar agent_phone: The phone number of the agent.
:ivar agent_name: The name of the agent.
:ivar agent_team_name: The team name to which agent belongs.
:ivar agent_team_name_in_hierarchy: he team name to which agent belongs.
:ivar agent_link: The link to the agent conversation.
:ivar customer_phone: The phone number of the customer.
:ivar customer_name: The name of the customer.
:ivar customer_link: The link to the customer conversation.
:ivar segment_recording_offset: The offset value for the recording.
:ivar media: The media identifiers of the conversation.
:ivar assessment_type: The type of the assessment.
:ivar assessment_percentage: The percentage scored on the Assessments.
:ivar url:
versionpayloadc                   > [         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        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        UR                  S5      U l        UR                  S5      U l        g )N
segment_idexternal_idqueueexternal_contactexternal_segment_link_iddate
account_idexternal_segment_linkagent_idagent_phone
agent_nameagent_team_nameagent_team_name_in_hierarchy
agent_linkcustomer_phonecustomer_namecustomer_linksegment_recording_offsetmediaassessment_typeassessment_percentageurl)super__init__getr   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   )selfr   r   	__class__s      q/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/flex_api/v1/insights_segments.pyr-   !InsightsSegmentsInstance.__init__2   s   !)0\)B*1++m*D$+KK$8
/6{{;M/N7>{{&8
% $+;;v#6	)0\)B4;KK@W4X"'.{{:'>*1++m*D)0\)B.5kk:K.L;B;;*<
) *1\)B-4[[9I-J,3KK,H,3KK,H7>{{&8
% 3:++g2F
<CKK=
 CJ++#C
" #*++e"4    returnc                     g)N
Provide a friendly representation

:returns: Machine friendly representation
z,<Twilio.FlexApi.V1.InsightsSegmentsInstance> r/   s    r1   __repr__!InsightsSegmentsInstance.__repr__V   s     >r3   )r   r   r#   r    r   r!   r"   r*   r)   r&   r%   r$   r   r   r   r   r   r(   r   r   r'   r+   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r-   r9   __static_attributes____classcell__r0   s   @r1   r   r      s5    2"5 "5$sCx. "5H># > >r3   r   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)InsightsSegmentsPage`   r   r4   c                 .    [        U R                  U5      $ )z^
Build an instance of InsightsSegmentsInstance

:param payload: Payload response from the API
)r   _version)r/   r   s     r1   get_instance!InsightsSegmentsPage.get_instanceb   s     (w??r3   c                     g)r6   z(<Twilio.FlexApi.V1.InsightsSegmentsPage>r7   r8   s    r1   r9   InsightsSegmentsPage.__repr__j        :r3   r7   N)r;   r<   r=   r>   r   r@   r   r   rI   r9   rA   r7   r3   r1   rE   rE   `   s-    @DcN @7O @:# :r3   rE   c                     ^  \ rS rSrS\4U 4S jjr\R                  \R                  \R                  SS4S\\	\
4   S\\	\
4   S\\\	   \
4   S\\   S	\\   S
\\   4S jjr\R                  \R                  \R                  SS4S\\	\
4   S\\	\
4   S\\\	   \
4   S\\   S	\\   S
\\   4S jjr\R                  \R                  \R                  SS4S\\	\
4   S\\	\
4   S\\\	   \
4   S\\   S	\\   S
\\   4S jjr\R                  \R                  \R                  SS4S\\	\
4   S\\	\
4   S\\\	   \
4   S\\   S	\\   S
\\   4S jjr\R                  \R                  \R                  \R                  \R                  \R                  4S\\	\
4   S\\	\
4   S\\\	   \
4   S\\	\
4   S\\\
4   S	\\\
4   S
\4S jjr\R                  \R                  \R                  \R                  \R                  \R                  4S\\	\
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$ )InsightsSegmentsLists   r   c                 2   > [         TU ]  U5        SU l        g)zZ
Initialize the InsightsSegmentsList

:param version: Version that contains the resource

z/Insights/SegmentsN)r,   r-   _uri)r/   r   r0   s     r1   r-   InsightsSegmentsList.__init__u   s     	!(	r3   Nauthorizationr   reservation_idlimit	page_sizer4   c                     U R                   R                  XE5      nU R                  UUUUS   S9nU R                   R                  XvS   5      $ )a  
Streams InsightsSegmentsInstance 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: To unique id of the segment
:param List[str] reservation_id: The list of reservation Ids
: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   rT   r   rU   rW   rV   )rH   read_limitspagestreamr/   rT   r   rU   rV   rW   limitsr[   s           r1   r\   InsightsSegmentsList.stream   sW    4 **5<yy'!)[)	  
 }}##D/::r3   c                    #    U R                   R                  XE5      nU R                  UUUUS   S9I Sh  vN nU R                   R                  XvS   5      $  N"7f)a  
Asynchronously streams InsightsSegmentsInstance 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: To unique id of the segment
:param List[str] reservation_id: The list of reservation Ids
: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           r1   rb   !InsightsSegmentsList.stream_async   sd     4 **5<__'!)[)	 % 
 
 }}))$w@@
s   4AA#Ac           
      :    [        U R                  UUUUUS95      $ )a[  
Lists InsightsSegmentsInstance 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: To unique id of the segment
:param List[str] reservation_id: The list of reservation Ids
: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   r   rU   rV   rW   )listr\   )r/   rT   r   rU   rV   rW   s         r1   rf   InsightsSegmentsList.list   s1    2 KK+%-#  
 	
r3   c                 |   #    U R                  U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)aj  
Asynchronously lists InsightsSegmentsInstance 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: To unique id of the segment
:param List[str] reservation_id: The list of reservation Ids
: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/   rT   r   rU   rV   rW   records          r1   
list_asyncInsightsSegmentsList.list_async   sZ     6 '+&7&7+%-# '8 ' ! !	
 	
 !	
 		
 	
s0   </<731
37<37<
page_tokenpage_numberc           	         [         R                  " UU[        R                  " US 5      UUUS.5      n[         R                  " USS.5      nSUS'   U R                  R                  SU R                  XxS9n	[        U R                  U	5      $ )	a  
Retrieve a single page of InsightsSegmentsInstance records from the API.
Request is executed immediately

:param authorization: The Authorization HTTP request header
:param segment_id: To unique id of the segment
:param reservation_id: The list of reservation Ids
: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 InsightsSegmentsInstance
c                     U $ Nr7   es    r1   <lambda>+InsightsSegmentsList.page.<locals>.<lambda>)      r3   Authorization	SegmentIdReservationId	PageTokenr   PageSize!application/x-www-form-urlencodedrw   zContent-Typeapplication/jsonAcceptGETmethoduriparamsheaders)r   ofr
   maprH   r[   rR   rE   
r/   rT   r   rU   rl   rm   rW   datar   responses
             r1   r[   InsightsSegmentsList.page  s    , yy!.'!*~{!K'#%	
 ))!. C
 /==%%dii & 
 $DMM8<<r3   c           	      6  #    [         R                  " UU[        R                  " US 5      UUUS.5      n[         R                  " USS.5      nSUS'   U R                  R                  SU R                  XxS9I S	h  vN n	[        U R                  U	5      $  N7f)
a  
Asynchronously retrieve a single page of InsightsSegmentsInstance records from the API.
Request is executed immediately

:param authorization: The Authorization HTTP request header
:param segment_id: To unique id of the segment
:param reservation_id: The list of reservation Ids
: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 InsightsSegmentsInstance
c                     U $ rp   r7   rq   s    r1   rs   1InsightsSegmentsList.page_async.<locals>.<lambda>X  ru   r3   rv   r|   r}   r~   r   r   r   N)r   r   r
   r   rH   ra   rR   rE   r   s
             r1   ra   InsightsSegmentsList.page_async>  s     , yy!.'!*~{!K'#%	
 ))!. C
 /11dii 2 
 
 $DMM8<<
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 InsightsSegmentsInstance records from the API.
Request is executed immediately

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

:returns: Page of InsightsSegmentsInstance
r   )rH   domaintwiliorequestrE   r/   r   r   s      r1   get_pageInsightsSegmentsList.get_pagem  s7     ==''..66ujI#DMM8<<r3   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 InsightsSegmentsInstance records from the API.
Request is executed immediately

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

:returns: Page of InsightsSegmentsInstance
r   N)rH   r   r   request_asyncrE   r   s      r1   get_page_async#InsightsSegmentsList.get_page_asyncy  sC      --44BB5*UU#DMM8<< Vs   4AAAc                     g)r6   z(<Twilio.FlexApi.V1.InsightsSegmentsList>r7   r8   s    r1   r9   InsightsSegmentsList.__repr__  rM   r3   )rR   )r;   r<   r=   r>   r   r-   r   unsetr   r@   objectr   r   intr   r   r\   r	   rb   rf   rj   rE   r[   ra   r   r   r9   rA   rB   rC   s   @r1   rO   rO   s   s   	) 	) -3LL)/39<<##'";S&[)"; #v+&"; d3i/0	";
 }"; C="; 
*	+";L -3LL)/39<<##'"AS&[)"A #v+&"A d3i/0	"A
 }"A C="A 
/	0"AL -3LL)/39<<##'!
S&[)!
 #v+&!
 d3i/0	!

 }!
 C=!
 
&	'!
J -3LL)/39<<##'"
S&[)"
 #v+&"
 d3i/0	"

 }"
 C="
 
&	'"
L -3LL)/39<<)/*0,,(.-=S&[)-= #v+&-= d3i/0	-=
 #v+&-= 3;'-= f%-= 
-=b -3LL)/39<<)/*0,,(.-=S&[)-= #v+&-= d3i/0	-=
 #v+&-= 3;'-= f%-= 
-=^
=3 
=+? 
=
=s 
=7K 
=:# : :r3   rO   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   rE   rO   r7   r3   r1   <module>r      sO    M L L ) : 2 ' !E>/ E>P:4 :&X:< X:r3   