
    gE                         S r SSKJr  SSK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 - 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OptionalUnion)deserialize	serializevalues)InstanceContext)InstanceResource)ListResource)Versionc                      ^  \ rS rSr " S S\5      r " S S\5      r " S S\5      r  SS\S	\	\
\4   S
\
S\
S\\
   4
U 4S jjjr\SS j5       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g)TranscriptionInstance.Status   zin-progressstopped N)__name__
__module____qualname____firstlineno__IN_PROGRESSSTOPPED__static_attributes__r       x/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/api/v2010/account/call/transcription.pyStatusr      s    #r   r    c                        \ rS rSrSrSrSrSrg)TranscriptionInstance.Track   inbound_trackoutbound_trackboth_tracksr   N)r   r   r   r   INBOUND_TRACKOUTBOUND_TRACKBOTH_TRACKSr   r   r   r   Trackr"      s    ')#r   r*   c                       \ rS rSrSrSrg)"TranscriptionInstance.UpdateStatus#   r   r   N)r   r   r   r   r   r   r   r   r   UpdateStatusr,   #   s    r   r.   versionpayloadaccount_sidcall_sidsidc                   > [         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        [        R                  " UR                  S5      5      U l
        UR                  S5      U l        UUU=(       d    U R                  S.U l        S U l        g )	Nr3   r1   r2   namestatusdate_updatedurir1   r2   r3   )super__init__getr3   r1   r2   r5   r6   r   rfc2822_datetimer7   r8   	_solution_context)selfr/   r0   r1   r2   r3   	__class__s         r   r;   TranscriptionInstance.__init__0   s     	!")++e"4*1++m*D'.{{:'>#*;;v#6	@GH@U0;0L0LKK'1
 #*++e"4 ' ?$((

 9=r   returnc                     U R                   cB  [        U R                  U R                  S   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
r1   r2   r3   r9   )r?   TranscriptionContext_versionr>   r@   s    r   _proxyTranscriptionInstance._proxyK   sQ     == 0 NN=9
3NN5)	DM }}r   c                 4    U R                   R                  US9$ )_
Update the TranscriptionInstance

:param status:

:returns: The updated TranscriptionInstance
r6   )rH   updater@   r6   s     r   rM   TranscriptionInstance.update\   s#     {{!! " 
 	
r   c                 P   #    U R                   R                  US9I Sh  vN $  N7f)y
Asynchronous coroutine to update the TranscriptionInstance

:param status:

:returns: The updated TranscriptionInstance
rL   N)rH   update_asyncrN   s     r   rR   "TranscriptionInstance.update_asyncj   s0      [[-- . 
 
 	
 
s   &$&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>   itemsrZ   r@   contexts     r   __repr__TranscriptionInstance.__repr__x   s6     ((SDNN<P<P<RSS<CCGLLr   )	r?   r>   r1   r2   r7   r5   r3   r6   r8   )N)rC   rE   )r6   r,   rC   r   )r   r   r   r   objectr    r*   r.   r   r   strr   r   r;   propertyrH   rM   rR   rh   r   __classcell__rA   s   @r   r   r      s     $ $
v   "== c3h= 	=
 = c]= =6   
:
	 

:
	 
M# M Mr   r   c                   n   ^  \ rS rSrS\S\S\S\4U 4S jjrSSS	\4S
 jrSSS	\4S jr	S	\4S jr
SrU =r$ )rE      r/   r1   r2   r3   c                 |   > [         TU ]  U5        UUUS.U l        SR                  " S0 U R                  D6U l        g)a  
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 this Transcription resource.
:param call_sid: The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Transcription resource is associated with.
:param sid: The SID of the Transcription resource, or the `name` used when creating the resource
r9   zB/Accounts/{account_sid}/Calls/{call_sid}/Transcriptions/{sid}.jsonNr   r:   r;   r>   rZ   _uri)r@   r/   r1   r2   r3   rA   s        r   r;   TranscriptionContext.__init__   sJ     	! ' 
 QWW .. 		r   r6   r,   rC   c                 8   [         R                  " SU05      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  X#S9n[        U R                  UU R                  S   U R                  S	   U R                  S
   S9$ )rK   r    !application/x-www-form-urlencodedContent-Typeapplication/jsonAcceptPOSTmethodr8   dataheadersr1   r2   r3   r9   )r
   ofrF   rM   rs   r   r>   r@   r6   r}   r~   r0   s        r   rM   TranscriptionContext.update   s     yy&

 ))B-"E.--&&tyyt ' 
 %MM}5^^J/u%
 	
r   c                 T  #    [         R                  " SU05      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  X#S9I Sh  vN n[        U R                  UU R                  S	   U R                  S
   U R                  S   S9$  NB7f)rQ   r    rv   rw   rx   ry   rz   r{   Nr1   r2   r3   r9   )r
   r   rF   rR   rs   r   r>   r   s        r   rR   !TranscriptionContext.update_async   s      yy&

 ))B-"E.22tyyt 3 
 
 %MM}5^^J/u%
 	
	
s   A!B(#B&$AB(c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rU   rV   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frX   rY   r[   s      r   r_   0TranscriptionContext.__repr__.<locals>.<genexpr>   ra   rb   z*<Twilio.Api.V2010.TranscriptionContext {}>rc   rf   s     r   rh   TranscriptionContext.__repr__   s6     ((SDNN<P<P<RSS;BB7KKr   r>   rs   )r   r   r   r   r   rk   r;   r   rM   rR   rh   r   rm   rn   s   @r   rE   rE      sd    
 
c 
S 
s 
. 
: 
	 
D 
: 
	 
DL# L Lr   rE   c                   ~  ^  \ rS rSrS\S\S\4U 4S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4S\	\\
4   S\	S\
4   S	\	\\
4   S
\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
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                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4S\	\\
4   S\	S\
4   S	\	\\
4   S
\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
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$ )TranscriptionList   r/   r1   r2   c                 z   > [         TU ]  U5        UUS.U l        SR                  " S0 U R                  D6U l        g)af  
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 this Transcription resource.
:param call_sid: The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Transcription resource is associated with.

r1   r2   z</Accounts/{account_sid}/Calls/{call_sid}/Transcriptions.jsonNr   rr   )r@   r/   r1   r2   rA   s       r   r;   TranscriptionList.__init__   sG     	! ' 

 KQQ .. 		r   r5   trackr"   status_callback_urlstatus_callback_methodinbound_track_labeloutbound_track_labelpartial_resultslanguage_codetranscription_engineprofanity_filterspeech_modelhintsenable_automatic_punctuationintelligence_servicerC   c                    [         R                  " UUUUUU[        R                  " U5      UU	[        R                  " U
5      UU[        R                  " U5      US.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  UUS9n[        U R                  UU R                  S   U R                  S	   S
9$ )aG  
Create the TranscriptionInstance

:param name: The user-specified name of this Transcription, if one was given when the Transcription was created. This may be used to stop the Transcription.
:param track:
:param status_callback_url: Absolute URL of the status callback.
:param status_callback_method: The http method for the status_callback (one of GET, POST).
:param inbound_track_label: Friendly name given to the Inbound Track
:param outbound_track_label: Friendly name given to the Outbound Track
:param partial_results: Indicates if partial results are going to be sent to the customer
:param language_code: Language code used by the transcription engine, specified in [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) format
:param transcription_engine: Definition of the transcription engine to be used, among those supported by Twilio
:param profanity_filter: indicates if the server will attempt to filter out profanities, replacing all but the initial character in each filtered word with asterisks
:param speech_model: Recognition model used by the transcription engine, among those supported by the provider
:param hints: A Phrase contains words and phrase \"hints\" so that the speech recognition engine is more likely to recognize them.
:param enable_automatic_punctuation: The provider will add punctuation to recognition result
:param intelligence_service: The SID of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators .

:returns: The created TranscriptionInstance
Namer*   StatusCallbackUrlStatusCallbackMethodInboundTrackLabelOutboundTrackLabelPartialResultsLanguageCodeTranscriptionEngineProfanityFilterSpeechModelHintsEnableAutomaticPunctuationIntelligenceServicerw   rv   rx   ry   rz   r{   r1   r2   r   )	r
   r   r	   boolean_to_stringrF   creaters   r   r>   r@   r5   r   r   r   r   r   r   r   r   r   r   r   r   r   r}   r~   r0   s                     r   r   TranscriptionList.create  s    L yy%8(>%8&:"+"="=o"N -';#,#>#>?O#P+.7.I.I0/ (<!
( ))^-PQR"E.--&&tyytW ' 
 %MM}5^^J/	
 	
r   c                   #    [         R                  " UUUUUU[        R                  " U5      UU	[        R                  " U
5      UU[        R                  " U5      US.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  UUS9I Sh  vN n[        U R                  UU R                  S	   U R                  S
   S9$  N47f)aV  
Asynchronously create the TranscriptionInstance

:param name: The user-specified name of this Transcription, if one was given when the Transcription was created. This may be used to stop the Transcription.
:param track:
:param status_callback_url: Absolute URL of the status callback.
:param status_callback_method: The http method for the status_callback (one of GET, POST).
:param inbound_track_label: Friendly name given to the Inbound Track
:param outbound_track_label: Friendly name given to the Outbound Track
:param partial_results: Indicates if partial results are going to be sent to the customer
:param language_code: Language code used by the transcription engine, specified in [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) format
:param transcription_engine: Definition of the transcription engine to be used, among those supported by Twilio
:param profanity_filter: indicates if the server will attempt to filter out profanities, replacing all but the initial character in each filtered word with asterisks
:param speech_model: Recognition model used by the transcription engine, among those supported by the provider
:param hints: A Phrase contains words and phrase \"hints\" so that the speech recognition engine is more likely to recognize them.
:param enable_automatic_punctuation: The provider will add punctuation to recognition result
:param intelligence_service: The SID of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators .

:returns: The created TranscriptionInstance
r   rw   rv   rx   ry   rz   r{   Nr1   r2   r   )	r
   r   r	   r   rF   create_asyncrs   r   r>   r   s                     r   r   TranscriptionList.create_asyncL  s     L yy%8(>%8&:"+"="=o"N -';#,#>#>?O#P+.7.I.I0/ (<!
( ))^-PQR"E.22tyytW 3 
 
 %MM}5^^J/	
 	
	
s   B-C&/C$05C&r3   c                 b    [        U R                  U R                  S   U R                  S   US9$ z
Constructs a TranscriptionContext

:param sid: The SID of the Transcription resource, or the `name` used when creating the resource
r1   r2   r9   rE   rF   r>   r@   r3   s     r   r<   TranscriptionList.get  3     $MM}5^^J/	
 	
r   c                 b    [        U R                  U R                  S   U R                  S   US9$ r   r   r   s     r   __call__TranscriptionList.__call__  r   r   c                     g)rU   z$<Twilio.Api.V2010.TranscriptionList>r   rG   s    r   rh   TranscriptionList.__repr__  s     6r   r   )r   r   r   r   r   rk   r;   r
   unsetr   rj   boolr   r   r   rE   r<   r   rh   r   rm   rn   s   @r   r   r      sr   
 
c 
S 
0 $*<<>Dll28,,5;\\28,,39<</5||,2LL39<<06+1<<$*LL<BLL39<<I
CK I
 2F:;I
 #3;/	I

 !&c6k 2I
 #3;/I
 $CK0I
 tV|,I
 S&[)I
 $CK0I
  f-I
 CK(I
 S&[!I
 ',D&L&9I
 $CK0I
  
!I
Z $*<<>Dll28,,5;\\28,,39<</5||,2LL39<<06+1<<$*LL<BLL39<<I
CK I
 2F:;I
 #3;/	I

 !&c6k 2I
 #3;/I
 $CK0I
 tV|,I
 S&[)I
 $CK0I
  f-I
 CK(I
 S&[!I
 ',D&L&9I
 $CK0I
  
!I
V
s 
3 

C 
$8 
6# 6 6r   r   N)__doc__r   typingr   r   r   r   twilio.baser   r	   r
   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   rE   r   r   r   r   <module>r      sX     - - 6 6 8 : 2 'gM, gMTdL? dLNN6 N6r   