
    p 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dS )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                                          |           |                    d          | _        |                    d          | _        |                    d          | _        |                    d          | _        d | _        d S )Naccount_sidadvanced_featuresvoice_traceurl)super__init__getr   r   r   r   _context)selfr   r   	__class__s      [/var/www/html/Sam_Eipo/venv/lib/python3.11/site-packages/twilio/rest/insights/v1/setting.pyr   zSettingInstance.__init__   sv    !!!*1++m*D*D18=P1Q1Q+2;;}+E+E")++e"4"426    returnSettingContextc                 P    | 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   r   _versionr   s    r   _proxyzSettingInstance._proxy)   s,     = * DM }r   subaccount_sidc                 8    | 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                 H   K   | j                             |           d{V S )
        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   sH       [,,) - 
 
 
 
 
 
 
 
 	
r   r   r   c                 <    | 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                 L   K   | j                             |||           d{V S )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   sN       [--/#) . 
 
 
 
 
 
 
 
 	
r   c                     dS )f
        Provide a friendly representation

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

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

 

 
 
 
*6# 6 6 6 6 6 6 6 6r   r   c            	       h    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                 X    t                                          |           d| _        dS )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                            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   s{     y
 
 )B--.-%%dig & 
 
 M
 
 	
r   c                    K   t          j        d|i          }t          j        i           }d|d<   | j                            d| j        ||           d{V }t          | j        |          S )r+   rI   rJ   rK   rL   rM   N)r   rR   r!   r,   rF   r   rS   s        r   r,   zSettingContext.fetch_async   s       y
 
 )B--.11dig 2 
 
 
 
 
 
 
 
 M
 
 	
r   r   r   c                 &   t          j        t          j        |          t          j        |          |d          }t          j        i           }d|d<   d|d<   | 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      y$-$?@Q$R$R'9+FF!/ 
 
 )B--"E.-&&tytW ' 
 
 t}g666r   c                 6  K   t          j        t          j        |          t          j        |          |d          }t          j        i           }d|d<   d|d<   | j                            d| j        ||           d{V }t          | j        |          S )	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        y$-$?@Q$R$R'9+FF!/ 
 
 )B--"E.22tytW 3 
 
 
 
 
 
 
 
 t}g666r   c                     dS )r6   z#<Twilio.Insights.V1.SettingContext>r7   r"   s    r   r8   zSettingContext.__repr__  s
     54r   )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 !7 v.!7 4<(!7 c6k*	!7
 
!7 !7 !7 !7J 28+1<-3\	!7 !7 v.!7 4<(!7 c6k*	!7
 
!7 !7 !7 !7F5# 5 5 5 5 5 5 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                 J    t                                          |           dS )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*      
 dm,,,r   c                 *    t          | j                  S rf   rg   r"   s    r   __call__zSettingList.__call__1  rh   r   c                     dS )r6   z <Twilio.Insights.V1.SettingList>r7   r"   s    r   r8   zSettingList.__repr__8  s
     21r   )r9   r:   r;   r   r   r   r   rj   r=   r8   rB   rC   s   @r   rc   rc     s        " " " " " " "-^ - - - --. - - - -2# 2 2 2 2 2 2 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      s0    . - - - - - - - - - - - ) ) ) ) ) ) ) ) 8 8 8 8 8 8 : : : : : : 2 2 2 2 2 2 ' ' ' ' ' 'm6 m6 m6 m6 m6& m6 m6 m6`U5 U5 U5 U5 U5_ U5 U5 U5p2 2 2 2 2, 2 2 2 2 2r   