
    i?1iM#                         d Z ddlmZmZ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)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      i/home/www/therecruiter.miabetepe.com/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.fetch9   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_asyncG   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   r/   zSettingInstance.updateU   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_asyncr0   s       r   r3   zSettingInstance.update_asyncj   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+   boolr/   r3   r7   __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      }| j                  j                  d| j                  |      }t        | j                  |      S )r%   SubaccountSidGETmethoduriparams)r   ofr    r'   rE   r   r   r#   datar   s       r   r'   zSettingContext.fetch   sT     yy
 --%%U		$%OMM
 	
r   c                    K   t        j                  d|i      }| j                  j                  d| j                  |       d{   }t        | j                  |      S 7 w)r*   rH   rI   rJ   N)r   rN   r    r+   rE   r   rO   s       r   r+   zSettingContext.fetch_async   si      yy
 11dii 2 
 
 MM
 	
	
s   AA"A A"r   r   c                     t        j                  |||d      }| j                  j                  d| j                  |      }t        | j                  |      S )r-   AdvancedFeatures
VoiceTracerH   POSTrK   rL   rP   )r   rN   r    r/   rE   r   r   r   r   r#   rP   r   s         r   r/   zSettingContext.update   s[     yy$5)!/
 --&&		 ' 
 t}}g66r   c                    K   t        j                  |||d      }| j                  j                  d| j                  |       d{   }t        | j                  |      S 7 w)r2   rS   rV   rW   N)r   rN   r    r3   rE   r   rX   s         r   r3   zSettingContext.update_async   si      yy$5)!/
 22		 3 
 
 t}}g66
s   AA$A"A$c                      y)r5   z#<Twilio.Insights.V1.SettingContext>r6   r!   s    r   r7   zSettingContext.__repr__  s     5r   )r8   r9   r:   r   r   r   r>   r   r<   r?   r   r'   r+   r@   r/   r3   r7   rA   rB   s   @r   r   r      s$   & & 4:<<
#CK0
	
2 4:<<
#CK0
	
8 28+1<<-3\\	7 v.7 4<(7 c6k*	7
 
7B 28+1<<-3\\	7 v.7 4<(7 c6k*	7
 
7>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   rF   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__  ra   r   c                      y)r5   z <Twilio.Insights.V1.SettingList>r6   r!   s    r   r7   zSettingList.__repr__&  s     2r   )r8   r9   r:   r   r   r   r   rc   r<   r7   rA   rB   s   @r   r\   r\     s3    " "-^ --. -2# 2r   r\   N)r;   typingr   r   r   r   twilio.baser   twilio.base.instance_contextr   twilio.base.instance_resourcer	   twilio.base.list_resourcer
   twilio.base.versionr   r   r   r\   r6   r   r   <module>rk      sL    . -  8 : 2 'n6& n6bB5_ B5J2, 2r   