
    g":                         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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 - Intelligence
 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	serialize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$ )
SentenceInstance   a  
:ivar media_channel: The channel number.
:ivar sentence_index: The index of the sentence in the transcript.
:ivar start_time: Offset from the beginning of the transcript when this sentence starts.
:ivar end_time: Offset from the beginning of the transcript when this sentence ends.
:ivar transcript: Transcript text.
:ivar sid: A 34 character string that uniquely identifies this Sentence.
:ivar confidence:
:ivar words: Detailed information for each of the words of the given Sentence.
versionpayloadtranscript_sidc                 ^  > [         TU ]  U5        [        R                  " UR	                  S5      5      U l        [        R                  " UR	                  S5      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        [        R                  " UR	                  S5      5      U l        UR	                  S5      U l        S	U0U l        g )
Nmedia_channelsentence_index
start_timeend_time
transcriptsid
confidencewordsr   )super__init__r
   integergetr   r   decimalr   r   r   r   r   r   	_solution)selfr   r   r   	__class__s       w/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/intelligence/v2/transcript/sentence.pyr!   SentenceInstance.__init__$   s    !,7,?,?KK(-
 .9-@-@KK().
 ,7+>+>KK%,
 *5)<)<W[[=T)U)0\)B")++e"4+6+>+>KK%,
 9@G8L
 n
    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>,SentenceInstance.__repr__.<locals>.<genexpr>B   s      S<RDA7>>!//<Rs    "z,<Twilio.Intelligence.V2.SentenceInstance {}>)joinr%   itemsr0   )r&   contexts     r(   __repr__SentenceInstance.__repr__<   s6     ((SDNN<P<P<RSS=DDWMMr*   )	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. 
RU 
0N# N Nr*   r   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)SentencePageF   r   r+   c                 D    [        U R                  XR                  S   S9$ )zV
Build an instance of SentenceInstance

:param payload: Payload response from the API
r   )r   )r   _versionr%   )r&   r   s     r(   get_instanceSentencePage.get_instanceH   s$      MM7>>BR3S
 	
r*   c                     g)r-   z%<Twilio.Intelligence.V2.SentencePage> r&   s    r(   r9   SentencePage.__repr__R        7r*   rL   N)r;   r<   r=   r>   r   r@   r   r   rI   r9   rA   rL   r*   r(   rE   rE   F   s*    
DcN 
7G 
7# 7r*   rE   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$ )SentenceList[   r   r   c                 x   > [         TU ]  U5        SU0U l        SR                  " S0 U R                  D6U l        g)z
Initialize the SentenceList

:param version: Version that contains the resource
:param transcript_sid: The unique SID identifier of the Transcript.

r   z'/Transcripts/{transcript_sid}/SentencesNrL   )r    r!   r%   r0   _uri)r&   r   r   r'   s      r(   r!   SentenceList.__init__]   s=     	! n
 >DDVt~~V	r*   Nredactedword_timestamps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 SentenceInstance 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 bool redacted: Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences.
:param bool word_timestamps: Returns word level timestamps information, if word_timestamps is enabled. The default is `false`.
: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
rY   rV   rW   rY   rX   )rH   read_limitspagestreamr&   rV   rW   rX   rY   limitsr]   s          r(   r^   SentenceList.streamm   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 SentenceInstance 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 bool redacted: Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences.
:param bool word_timestamps: Returns word level timestamps information, if word_timestamps is enabled. The default is `false`.
: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
rY   r[   NrX   )rH   r\   
page_asyncstream_asyncr_   s          r(   rd   SentenceList.stream_async   sa     0 **5<__+[) % 
 
 }}))$w@@
s   3AA#Ac           	      8    [        U R                  UUUUS95      $ )a  
Lists SentenceInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param bool redacted: Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences.
:param bool word_timestamps: Returns word level timestamps information, if word_timestamps is enabled. The default is `false`.
: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   rX   rY   )listr^   )r&   rV   rW   rX   rY   s        r(   rh   SentenceList.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 SentenceInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param bool redacted: Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences.
:param bool word_timestamps: Returns word level timestamps information, if word_timestamps is enabled. The default is `false`.
: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
rg   N)rd   )r&   rV   rW   rX   rY   records         r(   
list_asyncSentenceList.list_async   sW     2 '+&7&7! /#	 '8 ' ! !
 
 !
 	
 
s0   ;.;620
26;26;
page_tokenpage_numberc                 N   [         R                  " [        R                  " U5      [        R                  " U5      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      $ )aH  
Retrieve a single page of SentenceInstance records from the API.
Request is executed immediately

:param redacted: Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences.
:param word_timestamps: Returns word level timestamps information, if word_timestamps is enabled. The default is `false`.
: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 SentenceInstance
RedactedWordTimestamps	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptGETmethoduriparamsheaders)	r   ofr   boolean_to_stringrH   r]   rT   rE   r%   	r&   rV   rW   rn   ro   rY   datar   responses	            r(   r]   SentenceList.page   s    ( yy%77A"+"="=o"N'#%
 ))^-PQR.==%%dii & 
 DMM8^^DDr*   c                 j  #    [         R                  " [        R                  " U5      [        R                  " U5      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)	aW  
Asynchronously retrieve a single page of SentenceInstance records from the API.
Request is executed immediately

:param redacted: Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences.
:param word_timestamps: Returns word level timestamps information, if word_timestamps is enabled. The default is `false`.
: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 SentenceInstance
rq   rv   rw   rx   ry   rz   r{   N)	r   r   r   r   rH   rc   rT   rE   r%   r   s	            r(   rc   SentenceList.page_async  s     ( yy%77A"+"="=o"N'#%
 ))^-PQR.11dii 2 
 
 DMM8^^DD
s   B
B3B1%B3
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   X R
                  5      $ )z
Retrieve a specific page of SentenceInstance records from the API.
Request is executed immediately

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

:returns: Page of SentenceInstance
rz   )rH   domaintwiliorequestrE   r%   r&   r   r   s      r(   get_pageSentenceList.get_page>  s;     ==''..66ujIDMM8^^DDr*   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 SentenceInstance records from the API.
Request is executed immediately

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

:returns: Page of SentenceInstance
rz   N)rH   r   r   request_asyncrE   r%   r   s      r(   get_page_asyncSentenceList.get_page_asyncJ  sG      --44BB5*UUDMM8^^DD Vs   4AA%Ac                     g)r-   z%<Twilio.Intelligence.V2.SentenceList>rL   rM   s    r(   r9   SentenceList.__repr__V  rO   r*   )r%   rT   )r;   r<   r=   r>   r   r@   r!   r   unsetr   boolobjectr   intr   r   r^   r	   rd   r   rh   rl   rE   r]   rc   r   r   r9   rA   rB   rC   s   @r(   rQ   rQ   [   s>   W W W$ )//5||##';f%; tV|,; }	;
 C=; 
"	#;F )//5||##'Af%A tV|,A }	A
 C=A 
'	(AF )//5||##'
f%
 tV|,
 }	

 C=
 
	
D )//5||##'
f%
 tV|,
 }	

 C=
 
	
F )//5||)/*0,,(.%Ef%%E tV|,%E #v+&	%E
 3;'%E f%%E 
%ER )//5||)/*0,,(.%Ef%%E tV|,%E #v+&	%E
 3;'%E f%%E 
%EN
E3 
E< 
E
Es 
E| 
E7# 7 7r*   rQ   N)r?   typingr   r   r   r   r   r   r	   twilio.baser
   r   r   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   rE   rQ   rL   r*   r(   <module>r      sR    M L L 6 6 : 2 ' !+N' +N\74 7*A7< A7r*   