
    gF                         S r SSK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 - Insights
 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)deserialize	serializevalues)InstanceContext)InstanceResource)ListResource)Versionc                     ^  \ rS rSr " S S\5      r " S S\5      r S\S\\	\
4   S\	4U 4S	 jjr\SS j5       rSS jrSS jr\R"                  \R"                  \R"                  \R"                  \R"                  \R"                  \R"                  4S\S\4   S\S\4   S\\	\4   S\\\4   S\\\4   S\\	\4   S\\	\4   S
S 4S jjr\R"                  \R"                  \R"                  \R"                  \R"                  \R"                  \R"                  4S\S\4   S\S\4   S\\	\4   S\\\4   S\\\4   S\\	\4   S\\	\4   S
S 4S jjrS
\	4S jrSrU =r$ )AnnotationInstance   c                        \ rS rSrSrSrSrSrg)AnnotationInstance.AnsweredBy   unknown_answered_byhumanmachine N)__name__
__module____qualname____firstlineno__UNKNOWN_ANSWERED_BYHUMANMACHINE__static_attributes__r       o/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/insights/v1/call/annotation.py
AnsweredByr      s    3r!   r#   c                   ,    \ rS rSrSrSrSrSrSrSr	Sr
g	)
$AnnotationInstance.ConnectivityIssue   unknown_connectivity_issueno_connectivity_issueinvalid_number	caller_iddropped_callnumber_reachabilityr   N)r   r   r   r   UNKNOWN_CONNECTIVITY_ISSUENO_CONNECTIVITY_ISSUEINVALID_NUMBER	CALLER_IDDROPPED_CALLNUMBER_REACHABILITYr    r   r!   r"   ConnectivityIssuer%      s#    %A" 7)	%3r!   r3   versionpayloadcall_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        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        SU0U l        S U l        g )Nr6   account_sidanswered_byconnectivity_issuequality_issuesspam
call_scorecommentincidenturl)super__init__getr6   r8   r9   r:   r;   r<   r   integerr=   r>   r?   r@   	_solution_context)selfr4   r5   r6   	__class__s       r"   rB   AnnotationInstance.__init__3   s    !'.{{:'>*1++m*DFMkkG
 KK,- 	 4;;;?O3P$+KK$7	)4)<)<W[[=V)W&-kk)&<'.{{:'>")++e"4 
 6:r!   returnc                     U R                   c&  [        U R                  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: AnnotationContext for this AnnotationInstance
r6   r6   )rF   AnnotationContext_versionrE   rG   s    r"   _proxyAnnotationInstance._proxyJ   s9     == -
3DM }}r!   c                 6    U R                   R                  5       $ )I
Fetch the AnnotationInstance


:returns: The fetched AnnotationInstance
)rP   fetchrO   s    r"   rT   AnnotationInstance.fetchY   s     {{  ""r!   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)c
Asynchronous coroutine to fetch the AnnotationInstance


:returns: The fetched AnnotationInstance
N)rP   fetch_asyncrO   s    r"   rX   AnnotationInstance.fetch_asyncb   s       [[,,....s   '%'r9   r   r:   r%   r;   r<   r=   r>   r?   c           
      @    U R                   R                  UUUUUUUS9$ )O  
Update the AnnotationInstance

:param answered_by:
:param connectivity_issue:
:param quality_issues: Specify if the call had any subjective quality issues. Possible values, one or more of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`. Use comma separated values to indicate multiple quality issues for the same call.
:param spam: A boolean flag to indicate if the call was a spam call. Use this to provide feedback on whether calls placed from your account were marked as spam, or if inbound calls received by your account were unwanted spam. Use `true` if the call was a spam call.
:param call_score: Specify the call score. This is of type integer. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for rating the call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad].
:param comment: Specify any comments pertaining to the call. `comment` has a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in the `comment`.
:param incident: Associate this call with an incident or support ticket. The `incident` parameter is of type string with a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in `incident`.

:returns: The updated AnnotationInstance
r9   r:   r;   r<   r=   r>   r?   )rP   updaterG   r9   r:   r;   r<   r=   r>   r?   s           r"   r]   AnnotationInstance.updatek   s5    2 {{!!#1)! " 
 	
r!   c           
      \   #    U R                   R                  UUUUUUUS9I Sh  vN $  N7f)i  
Asynchronous coroutine to update the AnnotationInstance

:param answered_by:
:param connectivity_issue:
:param quality_issues: Specify if the call had any subjective quality issues. Possible values, one or more of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`. Use comma separated values to indicate multiple quality issues for the same call.
:param spam: A boolean flag to indicate if the call was a spam call. Use this to provide feedback on whether calls placed from your account were marked as spam, or if inbound calls received by your account were unwanted spam. Use `true` if the call was a spam call.
:param call_score: Specify the call score. This is of type integer. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for rating the call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad].
:param comment: Specify any comments pertaining to the call. `comment` has a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in the `comment`.
:param incident: Associate this call with an incident or support ticket. The `incident` parameter is of type string with a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in `incident`.

:returns: The updated AnnotationInstance
r\   N)rP   update_asyncr^   s           r"   rb   AnnotationInstance.update_async   sB     2 [[--#1)! . 
 
 	
 
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>.AnnotationInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z*<Twilio.Insights.V1.AnnotationInstance {}>joinrE   itemsrj   rG   contexts     r"   __repr__AnnotationInstance.__repr__   s6     ((SDNN<P<P<RSS;BB7KKr!   )rF   rE   r8   r9   r=   r6   r>   r:   r?   r;   r<   r@   )rJ   rM   )rJ   r   )r   r   r   r   objectr#   r3   r   r   strr   rB   propertyrP   rT   rX   r
   unsetr   boolintr]   rb   rx   r    __classcell__rH   s   @r"   r   r      s   V 
4F 4: :$sCx. :C :.  #/ GMll LL-3\\$*LL)/&,ll'-||!
:FBC!
 "2F:
!
 c6k*!
 D&L!!
 #v+&!
 sF{#!
 V$!
 
!
J GMll LL-3\\$*LL)/&,ll'-||!
:FBC!
 "2F:
!
 c6k*!
 D&L!!
 #v+&!
 sF{#!
 V$!
 
!
FL# L Lr!   r   c                   z  ^  \ rS rSrS\S\4U 4S jjrS\4S jrS\4S jr	\
R                  \
R                  \
R                  \
R                  \
R                  \
R                  \
R                  4S\S	\4   S
\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                  4S\S	\4   S
\S\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\4S jjrS\4S jrSrU =r$ )rM      r4   r6   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 AnnotationContext

:param version: Version that contains the resource
:param call_sid: The unique string that Twilio created to identify this Call resource. It always starts with a CA.
r6   z/Voice/{call_sid}/AnnotationNr   )rA   rB   rE   rj   _urirG   r4   r6   rH   s      r"   rB   AnnotationContext.__init__   s=     	! 
 399KDNNK	r!   rJ   c                     [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9n[        U R                  UU R                  S   S9$ )rS   application/jsonAcceptGETmethoduriheadersr6   rL   )r
   ofrN   rT   r   r   rE   rG   r   r5   s      r"   rT   AnnotationContext.fetch   s]     ))B-.--%%U		7%S!MM^^J/
 	
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   S9$  N&7f)rW   r   r   r   r   Nr6   rL   )r
   r   rN   rX   r   r   rE   r   s      r"   rX   AnnotationContext.fetch_async   sq      ))B-.11dii 2 
 
 "MM^^J/
 	
	
s   AA/A-'A/r9   r   r:   r%   r;   r<   r=   r>   r?   c           
      2   [         R                  " UUU[        R                  " U5      UUUS.5      n[         R                  " 0 5      n	SU	S'   SU	S'   U R                  R                  SU R                  XS9n
[        U R                  XR                  S   S	9$ )
r[   r#   r3   QualityIssuesSpam	CallScoreCommentIncident!application/x-www-form-urlencodedContent-Typer   r   POSTr   r   datar   r6   rL   )	r
   r   r	   boolean_to_stringrN   r]   r   r   rE   rG   r9   r:   r;   r<   r=   r>   r?   r   r   r5   s              r"   r]   AnnotationContext.update   s    4 yy)%7!/!33D9'"$

 ))B-"E.--&&tyyt ' 
 "MM7^^J-G
 	
r!   c           
      N  #    [         R                  " UUU[        R                  " U5      UUUS.5      n[         R                  " 0 5      n	SU	S'   SU	S'   U R                  R                  SU R                  XS9I Sh  vN n
[        U R                  XR                  S	   S
9$  N%7f)ra   r   r   r   r   r   r   r   Nr6   rL   )	r
   r   r	   r   rN   rb   r   r   rE   r   s              r"   rb   AnnotationContext.update_async)  s     4 yy)%7!/!33D9'"$

 ))B-"E.22tyyt 3 
 
 "MM7^^J-G
 	
	
s   A;B%=B#>&B%c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )re   rf   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frh   ri   rk   s      r"   ro   -AnnotationContext.__repr__.<locals>.<genexpr>b  rq   rr   z)<Twilio.Insights.V1.AnnotationContext {}>rs   rv   s     r"   rx   AnnotationContext.__repr__\  s6     ((SDNN<P<P<RSS:AA'JJr!   )rE   r   )r   r   r   r   r   r{   rB   r   rT   rX   r
   r}   r   rz   r~   r   r]   rb   rx   r    r   r   s   @r"   rM   rM      s   L L3 L
) 
(
#5 
0 GMll LL-3\\$*LL)/&,ll'-||1
:FBC1
 "2F:
1
 c6k*1
 D&L!1
 #v+&1
 sF{#1
 V$1
 
1
j GMll LL-3\\$*LL)/&,ll'-||1
:FBC1
 "2F:
1
 c6k*1
 D&L!1
 #v+&1
 sF{#1
 V$1
 
1
fK# K Kr!   rM   c                   ^   ^  \ rS rSr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	rU =r$ )
AnnotationListif  r4   r6   c                 6   > [         TU ]  U5        SU0U l        g)z
Initialize the AnnotationList

:param version: Version that contains the resource
:param call_sid: The unique SID identifier of the Call.

r6   N)rA   rB   rE   r   s      r"   rB   AnnotationList.__init__h  s"     	! 
r!   rJ   c                 D    [        U R                  U R                  S   S9$ z!
Constructs a AnnotationContext

r6   rL   rM   rN   rE   rO   s    r"   rC   AnnotationList.getw      
 !
9STTr!   c                 D    [        U R                  U R                  S   S9$ r   r   rO   s    r"   __call__AnnotationList.__call__~  r   r!   c                     g)re   z#<Twilio.Insights.V1.AnnotationList>r   rO   s    r"   rx   AnnotationList.__repr__  s     5r!   )rE   )r   r   r   r   r   r{   rB   rM   rC   r   rx   r    r   r   s   @r"   r   r   f  sE    
 
3 
U& UU+ U5# 5 5r!   r   N)__doc__typingr   r   r   r   r   twilio.baser   r	   r
   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   rM   r   r   r!   r"   <module>r      sS    4 3 6 6 8 : 2 'aL) aLHhK hKV%5\ %5r!   