
    g%                         S r SSK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	\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OptionalUnion)	serializevalues)InstanceContext)InstanceResource)ListResource)Versionc            	         ^  \ rS rSrSrS\S\\\4   4U 4S jjr	\
SS j5       r\R                  4S\\\4   SS 4S	 jjr\R                  4S\\\4   SS 4S
 jjr\R                  \R                  \R                  4S\\\4   S\\\4   S\\\4   SS 4S jjr\R                  \R                  \R                  4S\\\4   S\\\4   S\\\4   SS 4S jjrS\4S jrSrU =r$ )SettingInstance   a  
:ivar account_sid: The unique SID identifier of the Account.
:ivar advanced_features: A boolean flag indicating whether Advanced Features for Voice Insights are enabled.
:ivar voice_trace: A boolean flag indicating whether Voice Trace is enabled.
:ivar url: The URL of this resource.
versionpayloadc                    > [         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        S U l        g )Naccount_sidadvanced_featuresvoice_traceurl)super__init__getr   r   r   r   _context)selfr   r   	__class__s      g/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/insights/v1/setting.pyr   SettingInstance.__init__   s[    !*1++m*D18=P1Q+2;;}+E")++e"426    returnc                 h    U R                   c  [        U R                  5      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: SettingContext for this SettingInstance
)r   SettingContext_versionr   s    r   _proxySettingInstance._proxy)   s-     == *DM }}r   subaccount_sidc                 4    U R                   R                  US9$ )
Fetch the SettingInstance

:param subaccount_sid: The unique SID identifier of the Subaccount.

:returns: The fetched SettingInstance
r'   )r%   fetchr   r'   s     r   r+   SettingInstance.fetch7   s#     {{  ) ! 
 	
r   c                 P   #    U R                   R                  US9I Sh  vN $  N7f)
Asynchronous coroutine to fetch the SettingInstance

:param subaccount_sid: The unique SID identifier of the Subaccount.

:returns: The fetched SettingInstance
r*   N)r%   fetch_asyncr,   s     r   r0   SettingInstance.fetch_asyncE   s0      [[,,) - 
 
 	
 
s   &$&r   r   c                 8    U R                   R                  UUUS9$ )  
Update the SettingInstance

:param advanced_features: A boolean flag to enable Advanced Features for Voice Insights.
:param voice_trace: A boolean flag to enable Voice Trace.
:param subaccount_sid: The unique SID identifier of the Subaccount.

:returns: The updated SettingInstance
r   r   r'   )r%   updater   r   r   r'   s       r   r5   SettingInstance.updateS   s)     {{!!/#) " 
 	
r   c                 T   #    U R                   R                  UUUS9I Sh  vN $  N7f)5  
Asynchronous coroutine to update the SettingInstance

:param advanced_features: A boolean flag to enable Advanced Features for Voice Insights.
:param voice_trace: A boolean flag to enable Voice Trace.
:param subaccount_sid: The unique SID identifier of the Subaccount.

:returns: The updated SettingInstance
r4   N)r%   update_asyncr6   s       r   r:   SettingInstance.update_asynch   s6      [[--/#) . 
 
 	
 
s   (&(c                     g)N
Provide a friendly representation

:returns: Machine friendly representation
z$<Twilio.Insights.V1.SettingInstance> r$   s    r   __repr__SettingInstance.__repr__}   s     6r   )r   r   r   r   r   )r    r"   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   propertyr%   r   unsetr   objectr+   r0   boolr5   r:   r?   __static_attributes____classcell__r   s   @r   r   r      sP   7 7$sCx. 7   4:<<
#CK0
	
 4:<<
#CK0
	
  28+1<<-3\\	
 v.
 4<(
 c6k*	

 

. 28+1<<-3\\	
 v.
 4<(
 c6k*	

 

*6# 6 6r   r   c            	         ^  \ rS rSrS\4U 4S jjr\R                  4S\\	\
4   S\4S jjr\R                  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\R                  \R                  \R                  4S\\\
4   S	\\\
4   S\\	\
4   S\4S jjrS\	4S jrSrU =r$ )r"      r   c                 2   > [         TU ]  U5        SU l        g)zS
Initialize the SettingContext

:param version: Version that contains the resource
z/Voice/SettingsN)r   r   _urir   r   r   s     r   r   SettingContext.__init__   s     	!%	r   r'   r    c                     [         R                  " SU05      n[         R                  " 0 5      nSUS'   U R                  R                  SU R                  X#S9n[        U R                  U5      $ )r)   SubaccountSidapplication/jsonAcceptGETmethoduriparamsheaders)r   ofr#   r+   rQ   r   r   r'   datar]   r   s        r   r+   SettingContext.fetch   sr     yy
 ))B-.--%%dii & 
 MM
 	
r   c                    #    [         R                  " SU05      n[         R                  " 0 5      nSUS'   U R                  R                  SU R                  X#S9I Sh  vN n[        U R                  U5      $  N7f)r/   rU   rV   rW   rX   rY   N)r   r^   r#   r0   rQ   r   r_   s        r   r0   SettingContext.fetch_async   s      yy
 ))B-.11dii 2 
 
 MM
 	
	
s   AA;A9A;r   r   c                 <   [         R                  " [        R                  " U5      [        R                  " U5      US.5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  XES9n[        U R                  U5      $ )r3   AdvancedFeatures
VoiceTracerU   !application/x-www-form-urlencodedContent-TyperV   rW   POSTrZ   r[   r`   r]   )r   r^   r   boolean_to_stringr#   r5   rQ   r   r   r   r   r'   r`   r]   r   s          r   r5   SettingContext.update   s      yy$-$?$?@Q$R'99+F!/
 ))B-"E.--&&tyyt ' 
 t}}g66r   c                 X  #    [         R                  " [        R                  " U5      [        R                  " U5      US.5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  XES9I Sh  vN n[        U R                  U5      $  N7f)	r9   re   rh   ri   rV   rW   rj   rk   N)r   r^   r   rl   r#   r:   rQ   r   rm   s          r   r:   SettingContext.update_async   s       yy$-$?$?@Q$R'99+F!/
 ))B-"E.22tyyt 3 
 
 t}}g66	
s   BB*B(B*c                     g)r=   z#<Twilio.Insights.V1.SettingContext>r>   r$   s    r   r?   SettingContext.__repr__  s     5r   )rQ   )rA   rB   rC   rD   r   r   r   rH   r   rF   rI   r   r+   r0   rJ   r5   r:   r?   rK   rL   rM   s   @r   r"   r"      s+   & & 4:<<
#CK0
	
> 4:<<
#CK0
	
@ 28+1<<-3\\	!7 v.!7 4<(!7 c6k*	!7
 
!7J 28+1<<-3\\	!7 v.!7 4<(!7 c6k*	!7
 
!7F5# 5 5r   r"   c                   Z   ^  \ rS rSr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$ )	SettingListi  r   c                 $   > [         TU ]  U5        g)zQ
Initialize the SettingList

:param version: Version that contains the resource

N)r   r   rR   s     r   r   SettingList.__init__!  s     	!r   r    c                 ,    [        U R                  5      $ z
Constructs a SettingContext

r"   r#   r$   s    r   r   SettingList.get*      
 dmm,,r   c                 ,    [        U R                  5      $ rx   ry   r$   s    r   __call__SettingList.__call__1  r{   r   c                     g)r=   z <Twilio.Insights.V1.SettingList>r>   r$   s    r   r?   SettingList.__repr__8  s     2r   r>   )rA   rB   rC   rD   r   r   r"   r   r}   rF   r?   rK   rL   rM   s   @r   rt   rt     s8    " "-^ --. -2# 2 2r   rt   N)rE   typingr   r   r   r   twilio.baser   r   twilio.base.instance_contextr	   twilio.base.instance_resourcer
   twilio.base.list_resourcer   twilio.base.versionr   r   r"   rt   r>   r   r   <module>r      sL    . - ) 8 : 2 'm6& m6`U5_ U5p2, 2r   