
    gH                         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	KJr   " S
 S\5      r " S S\5      r " S S\5      r " S S\5      rg)a  
 This code was generated by
___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

 Twilio - Api
 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)InstanceContext)InstanceResource)ListResource)Version)Pagec            
          ^  \ rS rSr " S S\5      r  SS\S\\\	4   S\S\
\   4U 4S jjjr\SS
 j5       rS	\4S jrS	\4S jrSS jrSS jrS	\4S jrSrU =r$ )TranscriptionInstance   c                        \ rS rSrSrSrSrSrg)TranscriptionInstance.Status   zin-progress	completedfailed N)__name__
__module____qualname____firstlineno__IN_PROGRESS	COMPLETEDFAILED__static_attributes__r       s/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/api/v2010/account/transcription.pyStatusr      s    #	r#   r%   versionpayloadaccount_sidsidc                    > [         TU ]  U5        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	        [
        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        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UU=(       d    U R                  S.U l        S U l        g )Nr(   api_versiondate_createddate_updateddurationprice
price_unitrecording_sidr)   statustranscription_texttypeurir(   r)   )super__init__getr(   r+   r   rfc2822_datetimer,   r-   r.   decimalr/   r0   r1   r)   r2   r3   r4   r5   	_solution_context)selfr&   r'   r(   r)   	__class__s        r$   r8   TranscriptionInstance.__init__0   s6    	!*1++m*D*1++m*D0;0L0LKK'1
 1<0L0LKK'1
 (/{{:'>&1&9&9'++g:N&O
)0\)B,3KK,H")++e"4@GH@U18=Q1R#*;;v#6	")++e"4 '?$((
 9=r#   returnc                     U R                   c4  [        U R                  U R                  S   U R                  S   S9U l         U R                   $ )z
Generate an instance context for the instance, the context is capable of
performing various actions. All instance actions are proxied to the context

:returns: TranscriptionContext for this TranscriptionInstance
r(   r)   r6   )r=   TranscriptionContext_versionr<   r>   s    r$   _proxyTranscriptionInstance._proxyQ   sE     == 0 NN=9NN5)DM
 }}r#   c                 6    U R                   R                  5       $ )X
Deletes the TranscriptionInstance


:returns: True if delete succeeds, False otherwise
)rF   deleterE   s    r$   rJ   TranscriptionInstance.deletea   s     {{!!##r#   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)t
Asynchronous coroutine that deletes the TranscriptionInstance


:returns: True if delete succeeds, False otherwise
N)rF   delete_asyncrE   s    r$   rN   "TranscriptionInstance.delete_asyncj   s       [[--////   '%'c                 6    U R                   R                  5       $ )O
Fetch the TranscriptionInstance


:returns: The fetched TranscriptionInstance
)rF   fetchrE   s    r$   rS   TranscriptionInstance.fetchs   s     {{  ""r#   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)i
Asynchronous coroutine to fetch the TranscriptionInstance


:returns: The fetched TranscriptionInstance
N)rF   fetch_asyncrE   s    r$   rW   !TranscriptionInstance.fetch_async|   s       [[,,....rP   c                     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>1TranscriptionInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z+<Twilio.Api.V2010.TranscriptionInstance {}>joinr<   itemsr_   r>   contexts     r$   __repr__TranscriptionInstance.__repr__   s6     ((SDNN<P<P<RSS<CCGLLr#   )r=   r<   r(   r+   r,   r-   r.   r/   r0   r1   r)   r2   r3   r4   r5   )N)rA   rC   )rA   r   )r   r   r   r   objectr%   r   r   strr   r   r8   propertyrF   boolrJ   rN   rS   rW   rm   r"   __classcell__r?   s   @r$   r   r      s     
* "== c3h= 	=
 c]= =B  $ $0D 0#/M# M Mr#   r   c                   ~   ^  \ rS rSrS\S\S\4U 4S jjrS\4S jrS\4S jr	S\
4S	 jrS\
4S
 jrS\4S jrSrU =r$ )rC      r&   r(   r)   c                 z   > [         TU ]  U5        UUS.U l        SR                  " S0 U R                  D6U l        g)aJ  
Initialize the TranscriptionContext

:param version: Version that contains the resource
:param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resource to fetch.
:param sid: The Twilio-provided string that uniquely identifies the Transcription resource to fetch.
r6   z1/Accounts/{account_sid}/Transcriptions/{sid}.jsonNr   r7   r8   r<   r_   _uri)r>   r&   r(   r)   r?   s       r$   r8   TranscriptionContext.__init__   sD     	! '
 HNN 
nn
	r#   rA   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )rI   DELETEmethodr5   headers)r   ofrD   rJ   ry   r>   r   s     r$   rJ   TranscriptionContext.delete   s1     ))B-}}##8G#TTr#   c                    #    [         R                  " 0 5      nU R                  R                  SU R                  US9I Sh  vN $  N7f)rM   r|   r}   N)r   r   rD   rN   ry   r   s     r$   rN   !TranscriptionContext.delete_async   sE      ))B-]]//G 0 
 
 	
 
s   ?AAAc                     [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9n[        U R                  UU R                  S   U R                  S   S9$ )rR   application/jsonAcceptGETr}   r(   r)   r6   )r   r   rD   rS   ry   r   r<   r>   r   r'   s      r$   rS   TranscriptionContext.fetch   si     ))B-.--%%U		7%S$MM}5u%	
 	
r#   c                    #    [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9I Sh  vN n[        U R                  UU R                  S   U R                  S   S9$  N47f)	rV   r   r   r   r}   Nr(   r)   r6   )r   r   rD   rW   ry   r   r<   r   s      r$   rW    TranscriptionContext.fetch_async   s}      ))B-.11dii 2 
 
 %MM}5u%	
 	
	
s   AA=A;5A=c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rZ   r[   c              3   H   #    U  H  u  pS R                  X5      v   M     g7fr]   r^   r`   s      r$   rd   0TranscriptionContext.__repr__.<locals>.<genexpr>   rf   rg   z*<Twilio.Api.V2010.TranscriptionContext {}>rh   rk   s     r$   rm   TranscriptionContext.__repr__   s6     ((SDNN<P<P<RSS;BB7KKr#   r<   ry   )r   r   r   r   r   rp   r8   rr   rJ   rN   r   rS   rW   rm   r"   rs   rt   s   @r$   rC   rC      se    
 
c 
 
&
U 
U
D 

, 
*
#8 
.L# L Lr#   rC   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)TranscriptionPage   r'   rA   c                 D    [        U R                  XR                  S   S9$ )z[
Build an instance of TranscriptionInstance

:param payload: Payload response from the API
r(   )r(   )r   rD   r<   )r>   r'   s     r$   get_instanceTranscriptionPage.get_instance   s#     %MM7}0M
 	
r#   c                     g)rZ   z$<Twilio.Api.V2010.TranscriptionPage>r   rE   s    r$   rm   TranscriptionPage.__repr__        6r#   r   N)r   r   r   r   r   rp   r   r   r   rm   r"   r   r#   r$   r   r      s*    
DcN 
7L 
6# 6r#   r   c            	       F  ^  \ 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\S\4S jrS\S\4S jrS\4S jrSrU =r$ )TranscriptionListi	  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 TranscriptionList

:param version: Version that contains the resource
:param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to read.

r(   z+/Accounts/{account_sid}/Transcriptions.jsonNr   rx   )r>   r&   r(   r?   s      r$   r8   TranscriptionList.__init__  sC     	! ;
 BHH 
nn
	r#   limit	page_sizerA   c                     U R                   R                  X5      nU R                  US   S9nU R                   R                  XCS   5      $ )a  
Streams TranscriptionInstance 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
r   r   r   )rD   read_limitspagestreamr>   r   r   limitsr   s        r$   r   TranscriptionList.stream  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 TranscriptionInstance 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
r   r   Nr   )rD   r   
page_asyncstream_asyncr   s        r$   r   TranscriptionList.stream_async6  sR     ( **5<__vk/B_CC}}))$w@@ Ds   1AA#Ac                 4    [        U R                  UUS95      $ )a  
Lists TranscriptionInstance 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
r   r   )listr   )r>   r   r   s      r$   r   TranscriptionList.listO  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 TranscriptionInstance 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
r   N)r   )r>   r   r   records       r$   
list_asyncTranscriptionList.list_asynci  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      $ )aG  
Retrieve a single page of TranscriptionInstance 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 TranscriptionInstance
	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedr   r   r   r~   r5   paramsr   )r   r   rD   r   ry   r   r<   r>   r   r   r   datar   responses          r$   r   TranscriptionList.page  s{      yy'#%
 ))^-PQR.==%%dii & 
 !..IIr#   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)	aV  
Asynchronously retrieve a single page of TranscriptionInstance 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 TranscriptionInstance
r   r   r   r   r   r   r   N)r   r   rD   r   ry   r   r<   r   s          r$   r   TranscriptionList.page_async  s       yy'#%
 ))^-PQR.11dii 2 
 
 !..II
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 TranscriptionInstance records from the API.
Request is executed immediately

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

:returns: Page of TranscriptionInstance
r   )rD   domaintwiliorequestr   r<   r>   r   r   s      r$   get_pageTranscriptionList.get_page  s;     ==''..66ujI ..IIr#   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 TranscriptionInstance records from the API.
Request is executed immediately

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

:returns: Page of TranscriptionInstance
r   N)rD   r   r   request_asyncr   r<   r   s      r$   get_page_async TranscriptionList.get_page_async  sG      --44BB5*UU ..II Vs   4AA%Ar)   c                 F    [        U R                  U R                  S   US9$ z
Constructs a TranscriptionContext

:param sid: The Twilio-provided string that uniquely identifies the Transcription resource to fetch.
r(   r6   rC   rD   r<   r>   r)   s     r$   r9   TranscriptionList.get  %     $MMt~~m'D#
 	
r#   c                 F    [        U R                  U R                  S   US9$ r   r   r   s     r$   __call__TranscriptionList.__call__  r   r#   c                     g)rZ   z$<Twilio.Api.V2010.TranscriptionList>r   rE   s    r$   rm   TranscriptionList.__repr__  r   r#   r   )NN) r   r   r   r   r   rp   r8   r   intr	   r   r   r
   r   r   r   r   r   unsetr   ro   r   r   r   r   r   rC   r9   r   rm   r"   rs   rt   s   @r$   r   r   	  s#   
 
c 
(  $#';}; C=; 
'	(	;6  $#'A}A C=A 
,	-	A6  $#'
}
 C=
 
#	$	
8  $#'
}
 C=
 
#	$	
: *0*0,,(.	J#v+&J 3;'J f%	J
 
JF *0*0,,(.	J#v+&J 3;'J f%	J
 
JB
J3 
J+< 
J
Js 
J7H 
J
s 
3 

C 
$8 
6# 6 6r#   r   N)__doc__r   typingr   r   r   r   r   r	   r
   twilio.baser   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   rC   r   r   r   r#   r$   <module>r      sg     L L L + 8 : 2 ' !sM, sMlbL? bLJ6 6*o6 o6r#   