
    m>h%                         d Z ddl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OptionalUnion)	serializevalues)InstanceContext)InstanceResource)ListResource)Versionc            	           e Zd ZdZdedeeef   f fdZe	dd       Z
ej                  fdeeef   dd fdZej                  fdeeef   dd fd	Zej                  ej                  ej                  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                  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 )SettingInstancea1  
    :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         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        d | _        y )Naccount_sidadvanced_featuresvoice_traceurl)super__init__getr   r   r   r   _context)selfr   r   	__class__s      c/var/www/html/DP/alpha_backend/venv/lib/python3.12/site-packages/twilio/rest/insights/v1/setting.pyr   zSettingInstance.__init__   s[    !*1++m*D18=P1Q+2;;}+E")++e"426    returnc                 f    | j                   t        | j                        | _         | 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: SettingContext for this SettingInstance
        )r   SettingContext_versionr   s    r   _proxyzSettingInstance._proxy)   s-     == *DM }}r   subaccount_sidc                 :    | j                   j                  |      S )
        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(   zSettingInstance.fetch7   s#     {{  ) ! 
 	
r   c                 V   K   | j                   j                  |       d{   S 7 w)
        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   r,   zSettingInstance.fetch_asyncE   s1      [[,,) - 
 
 	
 
s    )')r   r   c                 >    | j                   j                  |||      S )K  
        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   r0   zSettingInstance.updateS   s)     {{!!/#) " 
 	
r   c                 Z   K   | j                   j                  |||       d{   S 7 w)e  
        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
        r/   N)r#   update_asyncr1   s       r   r4   zSettingInstance.update_asynch   s7      [[--/#) . 
 
 	
 
s   "+)+c                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z$<Twilio.Insights.V1.SettingInstance> r"   s    r   __repr__zSettingInstance.__repr__}   s     6r   )r   r    )__name__
__module____qualname____doc__r   r   strr   r   propertyr#   r   unsetr   objectr(   r,   boolr0   r4   r8   __classcell__r   s   @r   r   r      sK   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# 6r   r   c            	           e Zd Zdef fdZej                  fdeee	f   de
fdZej                  fdeee	f   de
fdZej                  ej                  ej                  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                  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 )r    r   c                 2    t         |   |       d| _        y)zk
        Initialize the SettingContext

        :param version: Version that contains the resource
        z/Voice/SettingsN)r   r   _urir   r   r   s     r   r   zSettingContext.__init__   s     	!%	r   r$   r   c                     t        j                  d|i      }t        j                  i       }d|d<   | j                  j                  d| j                  ||      }t        | j                  |      S )r&   SubaccountSidapplication/jsonAcceptGETmethoduriparamsheaders)r   ofr!   r(   rF   r   r   r$   datarQ   r   s        r   r(   zSettingContext.fetch   st     yy
 ))B-.--%%diig & 
 MM
 	
r   c                    K   t        j                  d|i      }t        j                  i       }d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  |      S 7 w)r+   rI   rJ   rK   rL   rM   N)r   rR   r!   r,   rF   r   rS   s        r   r,   zSettingContext.fetch_async   s      yy
 ))B-.11diig 2 
 
 MM
 	
	
s   AA= A;!A=r   r   c                 <   t        j                  t        j                  |      t        j                  |      |d      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||      }t        | j                  |      S )r.   AdvancedFeatures
VoiceTracerI   !application/x-www-form-urlencodedContent-TyperJ   rK   POSTrN   rO   rT   rQ   )r   rR   r   boolean_to_stringr!   r0   rF   r   r   r   r   r$   rT   rQ   r   s          r   r0   zSettingContext.update   s      yy$-$?$?@Q$R'99+F!/
 ))B-"E.--&&tyytW ' 
 t}}g66r   c                 X  K   t        j                  t        j                  |      t        j                  |      |d      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  |      S 7 w)	r3   rW   rZ   r[   rJ   rK   r\   r]   N)r   rR   r   r^   r!   r4   rF   r   r_   s          r   r4   zSettingContext.update_async   s       yy$-$?$?@Q$R'99+F!/
 ))B-"E.22tyytW 3 
 
 t}}g66	
s   BB*B(B*c                      y)r6   z#<Twilio.Insights.V1.SettingContext>r7   r"   s    r   r8   zSettingContext.__repr__  s     5r   )r9   r:   r;   r   r   r   r?   r   r=   r@   r   r(   r,   rA   r0   r4   r8   rB   rC   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# 5r   r    c                   H     e Zd Zdef fdZdefdZdefdZdefdZ	 xZ
S )SettingListr   c                 $    t         |   |       y)zi
        Initialize the SettingList

        :param version: Version that contains the resource

        N)r   r   rG   s     r   r   zSettingList.__init__!  s     	!r   r   c                 ,    t        | j                        S z.
        Constructs a SettingContext

        r    r!   r"   s    r   r   zSettingList.get*      
 dmm,,r   c                 ,    t        | j                        S rf   rg   r"   s    r   __call__zSettingList.__call__1  rh   r   c                      y)r6   z <Twilio.Insights.V1.SettingList>r7   r"   s    r   r8   zSettingList.__repr__8  s     2r   )r9   r:   r;   r   r   r    r   rj   r=   r8   rB   rC   s   @r   rc   rc     s3    " "-^ --. -2# 2r   rc   N)r<   typingr   r   r   r   twilio.baser   r   twilio.base.instance_contextr	   twilio.base.instance_resourcer
   twilio.base.list_resourcer   twilio.base.versionr   r   r    rc   r7   r   r   <module>rr      sL    . - ) 8 : 2 'm6& m6`U5_ U5p2, 2r   