
    i?1iD                         d Z ddlmZmZmZmZmZ ddlmZm	Z	 ddl
mZ ddlmZ ddlmZ ddlmZ  G d d	e      Z G d
 de      Z G d de      Zy)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values)InstanceContext)InstanceResource)ListResource)Versionc                       e Zd Z G d de      Z G d de      Z	 dedeee	f   def fdZ
edd
       ZddZddZej                   ej                   ej                   ej                   ej                   ej                   ej                   fdedef   dedef   deeef   deeef   deeef   deeef   deeef   d	d fdZej                   ej                   ej                   ej                   ej                   ej                   ej                   fdedef   dedef   deeef   deeef   deeef   deeef   deeef   d	d fdZd	efdZ xZS )AnnotationInstancec                       e Zd ZdZdZdZy)AnnotationInstance.AnsweredByunknown_answered_byhumanmachineN)__name__
__module____qualname__UNKNOWN_ANSWERED_BYHUMANMACHINE     q/home/www/therecruiter.miabetepe.com/venv/lib/python3.12/site-packages/twilio/rest/insights/v1/call/annotation.py
AnsweredByr      s    3r   r   c                   $    e Zd ZdZdZdZdZdZdZy)$AnnotationInstance.ConnectivityIssueunknown_connectivity_issueno_connectivity_issueinvalid_number	caller_iddropped_callnumber_reachabilityN)	r   r   r   UNKNOWN_CONNECTIVITY_ISSUENO_CONNECTIVITY_ISSUEINVALID_NUMBER	CALLER_IDDROPPED_CALLNUMBER_REACHABILITYr   r   r   ConnectivityIssuer       s#    %A" 7)	%3r   r-   versionpayloadcall_sidc                 "   t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        t        j                  |j                  d            | _        |j                  d      | _        |j                  d	      | _        |j                  d
      | _        d|i| _        d | _        y )Nr0   account_sidanswered_byconnectivity_issuequality_issuesspam
call_scorecommentincidenturl)super__init__getr0   r2   r3   r4   r5   r6   r   integerr7   r8   r9   r:   	_solution_context)selfr.   r/   r0   	__class__s       r   r<   zAnnotationInstance.__init__3   s    !'.{{:'>*1++m*DFMkkG

 KK,- 	 4;;;?O3P$+KK$7	)4)<)<W[[=V)W&-kk)&<'.{{:'>")++e"4 
 6:r   returnc                     | j                   )t        | j                  | j                  d         | _         | j                   S )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
        r0   r0   )r@   AnnotationContext_versionr?   rA   s    r   _proxyzAnnotationInstance._proxyJ   s9     == -
3DM }}r   c                 6    | j                   j                         S )a
        Fetch the AnnotationInstance


        :returns: The fetched AnnotationInstance
        )rI   fetchrH   s    r   rL   zAnnotationInstance.fetchY   s     {{  ""r   c                 R   K   | j                   j                          d{   S 7 w){
        Asynchronous coroutine to fetch the AnnotationInstance


        :returns: The fetched AnnotationInstance
        N)rI   fetch_asyncrH   s    r   rO   zAnnotationInstance.fetch_asyncb   s!      [[,,....s   '%'r3   r   r4   r    r5   r6   r7   r8   r9   c           	      F    | j                   j                  |||||||      S )  
        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
        r3   r4   r5   r6   r7   r8   r9   )rI   updaterA   r3   r4   r5   r6   r7   r8   r9   s           r   rS   zAnnotationInstance.updatek   s5    2 {{!!#1)! " 
 	
r   c           	      b   K   | j                   j                  |||||||       d{   S 7 w)  
        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
        rR   N)rI   update_asyncrT   s           r   rW   zAnnotationInstance.update_async   sC     2 [[--#1)! . 
 
 	
 
s   &/-/c                     dj                  d | j                  j                         D              }dj                  |      S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   F   K   | ]  \  }}d j                  ||        ywz{}={}Nformat.0kvs      r   	<genexpr>z.AnnotationInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z*<Twilio.Insights.V1.AnnotationInstance {}>joinr?   itemsr^   rA   contexts     r   __repr__zAnnotationInstance.__repr__   s6     ((SDNN<P<P<RSS;BB7KKr   )rC   rF   )rC   r   )r   r   r   objectr   r-   r   r   strr   r<   propertyrI   rL   rO   r	   unsetr   boolintrS   rW   rk   __classcell__rB   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r   r   c                   `    e Zd Zdedef fdZdefdZdefdZe	j                  e	j                  e	j                  e	j                  e	j                  e	j                  e	j                  fdedef   d	ed
ef   deeef   deeef   deeef   deeef   deeef   defdZe	j                  e	j                  e	j                  e	j                  e	j                  e	j                  e	j                  fdedef   d	ed
ef   deeef   deeef   deeef   deeef   deeef   defdZdefdZ xZS )rF   r.   r0   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)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.
        r0   z/Voice/{call_sid}/AnnotationNr   )r;   r<   r?   r^   _urirA   r.   r0   rB   s      r   r<   zAnnotationContext.__init__   s@     	! 
 :299KDNNK	r   rC   c                     | j                   j                  d| j                        }t        | j                   || j                  d         S )rK   GETmethodurir0   rE   )rG   rL   rv   r   r?   rA   r/   s     r   rL   zAnnotationContext.fetch   sL     --%%		 & 

 "MM^^J/
 	
r   c                    K   | j                   j                  d| j                         d{   }t        | j                   || j                  d         S 7 )w)rN   ry   rz   Nr0   rE   )rG   rO   rv   r   r?   r}   s     r   rO   zAnnotationContext.fetch_async   sZ      11		 2 
 

 "MM^^J/
 	

s   +AA*Ar3   r   r4   r    r5   r6   r7   r8   r9   c           
          t        j                  |||||||d      }| j                  j                  d| j                  |      }	t        | j                  |	| j                  d         S )rQ   r   r-   QualityIssuesSpam	CallScoreCommentIncidentPOSTr{   r|   datar0   rE   )r	   ofrG   rS   rv   r   r?   
rA   r3   r4   r5   r6   r7   r8   r9   r   r/   s
             r   rS   zAnnotationContext.update   sw    2 yy)%7!/'"$

 --&&		 ' 
 "MM7T^^J-G
 	
r   c           
         K   t        j                  |||||||d      }| j                  j                  d| j                  |       d{   }	t        | j                  |	| j                  d         S 7 )w)rV   r   r   r   Nr0   rE   )r	   r   rG   rW   rv   r   r?   r   s
             r   rW   zAnnotationContext.update_async   s     2 yy)%7!/'"$

 22		 3 
 
 "MM7T^^J-G
 	

s   A	A7A5*A7c                     dj                  d | j                  j                         D              }dj                  |      S )rY   rZ   c              3   F   K   | ]  \  }}d j                  ||        ywr\   r]   r_   s      r   rc   z-AnnotationContext.__repr__.<locals>.<genexpr>U  rd   re   z)<Twilio.Insights.V1.AnnotationContext {}>rf   ri   s     r   rk   zAnnotationContext.__repr__O  s6     ((SDNN<P<P<RSS:AA'JJr   )r   r   r   r   rm   r<   r   rL   rO   r	   ro   r   rl   rp   rq   rS   rW   rk   rr   rs   s   @r   rF   rF      s   L L3 L
) 
&
#5 
* GMll LL-3\\$*LL)/&,ll'-||-
:FBC-
 "2F:
-
 c6k*-
 D&L!-
 #v+&-
 sF{#-
 V$-
 
-
b GMll LL-3\\$*LL)/&,ll'-||-
:FBC-
 "2F:
-
 c6k*-
 D&L!-
 #v+&-
 sF{#-
 V$-
 
-
^K# Kr   rF   c                   L     e Zd Zdedef fdZdefdZdefdZdefdZ	 xZ
S )AnnotationListr.   r0   c                 6    t         |   |       d|i| _        y)z
        Initialize the AnnotationList

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

        r0   N)r;   r<   r?   rw   s      r   r<   zAnnotationList.__init__Z  s"     	! 
r   rC   c                 J    t        | j                  | j                  d         S z1
        Constructs a AnnotationContext

        r0   rE   rF   rG   r?   rH   s    r   r=   zAnnotationList.geti      
 !
9STTr   c                 J    t        | j                  | j                  d         S r   r   rH   s    r   __call__zAnnotationList.__call__p  r   r   c                      y)rY   z#<Twilio.Insights.V1.AnnotationList>r   rH   s    r   rk   zAnnotationList.__repr__w  s     5r   )r   r   r   r   rm   r<   rF   r=   r   rk   rr   rs   s   @r   r   r   Y  s@    
 
3 
U& UU+ U5# 5r   r   N)__doc__typingr   r   r   r   r   twilio.baser   r	   twilio.base.instance_contextr
   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   rF   r   r   r   r   <module>r      sP    4 3 + 8 : 2 '`L) `LF[K [K|$5\ $5r   