o
    /iM#                     @   s   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	 d	eZG d
d de	ZG d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)values)InstanceContext)InstanceResource)ListResource)Versionc                	       s  e Zd ZdZdedeeef f fddZe	ddd	Z
ejfd
eeef dd fddZejfd
eeef dd fd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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dZdefddZ  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                    sF   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__ Z/var/www/html/philips/venv/lib/python3.10/site-packages/twilio/rest/insights/v1/setting.pyr   !   s   
zSettingInstance.__init__returnSettingContextc                 C   s   | j du r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
        N)r   r   _versionr   r   r   r   _proxy+   s
   
zSettingInstance._proxysubaccount_sidc                 C   s   | j j|dS )
        Fetch the SettingInstance

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

        :returns: The fetched SettingInstance
        r    )r   fetchr   r    r   r   r   r#   9   s   
zSettingInstance.fetchc                    s   | j j|dI dH 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$   r   r   r   r&   G   s   
zSettingInstance.fetch_asyncr   r   c                 C   s   | j j|||d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    r   r   r   r)   U   s
   zSettingInstance.updatec                    s   | j j|||dI dH 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_asyncr*   r   r   r   r,   j   s   zSettingInstance.update_asyncc                 C      dS )f
        Provide a friendly representation

        :returns: Machine friendly representation
        z$<Twilio.Insights.V1.SettingInstance>r   r   r   r   r   __repr__      zSettingInstance.__repr__)r   r   )__name__
__module____qualname____doc__r
   r   strr   r   propertyr   r   unsetr   objectr#   r&   boolr)   r,   r/   __classcell__r   r   r   r   r      sT    












r   c                	       s   e Zd Zdef fddZejfdeee	f de
fddZejfdeee	f de
fd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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dZdefddZ  ZS )r   r   c                    s   t  | d| _dS )zk
        Initialize the SettingContext

        :param version: Version that contains the resource
        z/Voice/SettingsN)r   r   _urir   r   r   r   r   r      s   
zSettingContext.__init__r    r   c                 C   s.   t d|i}| jjd| j|d}t| j|S )r!   SubaccountSidGETmethoduriparams)r   ofr   r#   r;   r   r   r    datar   r   r   r   r#      s   zSettingContext.fetchc                    s6   t d|i}| jjd| j|dI dH }t| j|S )r%   r=   r>   r?   N)r   rC   r   r&   r;   r   rD   r   r   r   r&      s   zSettingContext.fetch_asyncr   r   c                 C   s2   t |||d}| jjd| j|d}t| j|S )r'   AdvancedFeatures
VoiceTracer=   POSTr@   rA   rE   )r   rC   r   r)   r;   r   r   r   r   r    rE   r   r   r   r   r)      s   zSettingContext.updatec                    s:   t |||d}| jjd| j|dI dH }t| j|S )r+   rF   rI   rJ   N)r   rC   r   r,   r;   r   rK   r   r   r   r,      s   zSettingContext.update_asyncc                 C   r-   )r.   z#<Twilio.Insights.V1.SettingContext>r   r   r   r   r   r/     r0   zSettingContext.__repr__)r1   r2   r3   r
   r   r   r7   r   r5   r8   r   r#   r&   r9   r)   r,   r/   r:   r   r   r   r   r      sN    







!



r   c                       sL   e Zd Zdef fddZdefddZdefddZdefd	d
Z	  Z
S )SettingListr   c                    s   t  | dS )zi
        Initialize the SettingList

        :param version: Version that contains the resource

        N)r   r   r<   r   r   r   r     s   zSettingList.__init__r   c                 C   
   t | jS z.
        Constructs a SettingContext

        r   r   r   r   r   r   r        
zSettingList.getc                 C   rM   rN   rO   r   r   r   r   __call__  rP   zSettingList.__call__c                 C   r-   )r.   z <Twilio.Insights.V1.SettingList>r   r   r   r   r   r/   &  s   zSettingList.__repr__)r1   r2   r3   r
   r   r   r   rQ   r5   r/   r:   r   r   r   r   rL     s
    	rL   N)r4   typingr   r   r   r   twilio.baser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer	   twilio.base.versionr
   r   r   rL   r   r   r   r   <module>   s    q 