
    d{i-D                         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 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)ApiResponse)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                  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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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 )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      ]/home/sas/my/fyp/ringai/.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 z
        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.fetch8   s#     {{  ) ! 
 	
r   c                 V   K   | j                   j                  |       d{   S 7 wz
        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_asyncF   s1      [[,,) - 
 
 	
 
    )')c                 :    | j                   j                  |      S )z
        Fetch the SettingInstance with HTTP info

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

        :returns: ApiResponse with instance, status code, and headers
        r(   )r$   fetch_with_http_infor*   s     r   r0   z$SettingInstance.fetch_with_http_infoT   s#     {{//) 0 
 	
r   c                 V   K   | j                   j                  |       d{   S 7 w)z
        Asynchronous coroutine to fetch the SettingInstance with HTTP info

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

        :returns: ApiResponse with instance, status code, and headers
        r(   N)r$   fetch_with_http_info_asyncr*   s     r   r2   z*SettingInstance.fetch_with_http_info_asyncb   s1      [[;;) < 
 
 	
 
r.   r   r   c                 >    | j                   j                  |||      S aK  
        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   r6   zSettingInstance.updatep   s)     {{!!/#) " 
 	
r   c                 Z   K   | j                   j                  |||       d{   S 7 wae  
        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
        r5   N)r$   update_asyncr7   s       r   r:   zSettingInstance.update_async   s7      [[--/#) . 
 
 	
 
   "+)+c                 >    | j                   j                  |||      S )ar  
        Update the SettingInstance with HTTP info

        :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: ApiResponse with instance, status code, and headers
        r5   )r$   update_with_http_infor7   s       r   r=   z%SettingInstance.update_with_http_info   s)     {{00/#) 1 
 	
r   c                 Z   K   | j                   j                  |||       d{   S 7 w)a  
        Asynchronous coroutine to update the SettingInstance with HTTP info

        :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: ApiResponse with instance, status code, and headers
        r5   N)r$   update_with_http_info_asyncr7   s       r   r?   z+SettingInstance.update_with_http_info_async   s7      [[<</#) = 
 
 	
 
r;   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-   r	   r0   r2   boolr6   r:   r=   r?   rC   __classcell__r   s   @r   r   r      sS   7 7$sCx. 7   4:<<
#CK0
	
 4:<<
#CK0
	
 4:<<
#CK0
	
 4:<<
#CK0
	
  28+1<<-3\\	
 v.
 4<(
 c6k*	

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

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

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

 

*6# 6r   r   c            	       8    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                  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                  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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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                  ||      S )zz
        Internal helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        SubaccountSidapplication/jsonAcceptGETmethoduriparamsheaders)r   ofr"   fetch_with_response_inforQ   r   r%   r[   r\   s       r   _fetchzSettingContext._fetch   s^     
 ))B-.}}55dii 6 
 	
r   c                 Z    | j                  |      \  }}}t        | j                  |      S r'   )r`   r   r"   r   r%   r   _s       r   r)   zSettingContext.fetch   s1     >BAMM
 	
r   c                 v    | j                  |      \  }}}t        | j                  |      }t        |||      S )z
        Fetch the SettingInstance and return response metadata

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

        :returns: ApiResponse with instance, status code, and headers
        r(   datastatus_coder\   )r`   r   r"   r	   r   r%   r   rg   r\   instances         r   r0   z#SettingContext.fetch_with_http_info   s@     )->(R%g"MM
 k7SSr   c                    K   t        j                  d|i      }t        j                  i       }d|d<   | j                  j                  d| j                  ||       d{   S 7 w)z
        Internal async helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        rT   rU   rV   rW   rX   N)r   r]   r"   fetch_with_response_info_asyncrQ   r_   s       r   _fetch_asynczSettingContext._fetch_async  sm      
 ))B-.]]AAdii B 
 
 	
 
s   AA' A%!A'c                 v   K   | j                  |       d{   \  }}}t        | j                  |      S 7 wr,   )rl   r   r"   rb   s       r   r-   zSettingContext.fetch_async)  sA      #//~/NNAMM
 	
 Os   979c                    K   | j                  |       d{   \  }}}t        | j                  |      }t        |||      S 7 ,w)z
        Asynchronous coroutine to fetch the SettingInstance and return response metadata

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

        :returns: ApiResponse with instance, status code, and headers
        r(   Nre   )rl   r   r"   r	   rh   s         r   r2   z)SettingContext.fetch_with_http_info_async9  sY      /3.?.?) /@ /
 )
%g #MM
 k7SS)
s   AA-Ar   r   c                    t        j                  t        j                  |      t        j                  |      |d      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||      S )z{
        Internal helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        AdvancedFeatures
VoiceTracerT   !application/x-www-form-urlencodedContent-TyperU   rV   POSTrY   rZ   rf   r\   )r   r]   r   boolean_to_stringr"   update_with_response_inforQ   r   r   r   r%   rf   r\   s         r   _updatezSettingContext._updateL  s     yy$-$?$?@Q$R'99+F!/
 ))B-"E.}}66tyytW 7 
 	
r   c                 ^    | j                  |||      \  }}}t        | j                  |      S r4   )rz   r   r"   r   r   r   r%   r   rc   s         r   r6   zSettingContext.updatej  s9     /#) % 
A
 t}}g66r   c                 z    | j                  |||      \  }}}t        | j                  |      }t        |||      S )a  
        Update the SettingInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        r5   re   )rz   r   r"   r	   r   r   r   r%   r   rg   r\   ri   s           r   r=   z$SettingContext.update_with_http_info  sH     )-/#) )5 )
%g
 #4==':k7SSr   c                 ,  K   t        j                  t        j                  |      t        j                  |      |d      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||       d{   S 7 w)	z
        Internal async helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        rp   rs   rt   rU   rV   ru   rv   N)r   r]   r   rw   r"   update_with_response_info_asyncrQ   ry   s         r   _update_asynczSettingContext._update_async  s      yy$-$?$?@Q$R'99+F!/
 ))B-"E.]]BBtyytW C 
 
 	
 
s   BBBBc                 z   K   | j                  |||       d{   \  }}}t        | j                  |      S 7 wr9   )r   r   r"   r|   s         r   r:   zSettingContext.update_async  sI      #00/#) 1 
 
A
 t}}g66
s   ;9;c                    K   | j                  |||       d{   \  }}}t        | j                  |      }t        |||      S 7 ,w)a  
        Asynchronous coroutine to update the SettingInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        r5   Nre   )r   r   r"   r	   r~   s           r   r?   z*SettingContext.update_with_http_info_async  sY      /3.@.@/#) /A /
 )
%g
 #4==':k7SS)
s   A	A-A	c                      y)rA   z#<Twilio.Insights.V1.SettingContext>rB   r#   s    r   rC   zSettingContext.__repr__  s     5r   )rD   rE   rF   r   r   r   rJ   r   rH   rK   tupler`   r   r)   r	   r0   rl   r-   r2   rL   rz   r6   r=   r   r:   r?   rC   rM   rN   s   @r   r!   r!      sD   & & ;A,, 
U3;%7 
5 
. 4:<<
#CK0
	
" 4:<<T#CK0T	T$ 4:<<
#CK0
	
2 4:<<
#CK0
	
" 4:<<T#CK0T	T* 28+1<<-3\\	
 v.
 4<(
 c6k*	

 

@ 28+1<<-3\\	7 v.7 4<(7 c6k*	7
 
70 28+1<<-3\\	T v.T 4<(T c6k*	T
 
T2 28+1<<-3\\	
 v.
 4<(
 c6k*	

 

@ 28+1<<-3\\	7 v.7 4<(7 c6k*	7
 
70 28+1<<-3\\	T v.T 4<(T c6k*	T
 
T.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   rR   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 r   r   r#   s    r   __call__zSettingList.__call__  r   r   c                      y)rA   z <Twilio.Insights.V1.SettingList>rB   r#   s    r   rC   zSettingList.__repr__  s     2r   )rD   rE   rF   r   r   r!   r   r   rH   rC   rM   rN   s   @r   r   r     s3    " "-^ --. -2# 2r   r   N)rG   typingr   r   r   r   twilio.baser   r   twilio.base.api_responser	   twilio.base.instance_contextr
   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   r!   r   rB   r   r   <module>r      sO    . - ) 0 8 : 2 's6& s6l[5_ [5|2, 2r   