o
    e}                     @   s   d 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G dd deZdS )za
This code was generated by
\ / _    _  _|   _  _
 | (_)\/(_)(_|\/| |(/_  v1.0.0
      /       /
    )values)InstanceContext)InstanceResource)ListResource)Pagec                       s4   e Zd Z fddZdd Zdd Zdd Z  ZS )	SettingListc                    s   t t| | i | _dS )z
        Initialize the SettingList

        :param Version version: Version that contains the resource

        :returns: twilio.rest.insights.v1.setting.SettingList
        :rtype: twilio.rest.insights.v1.setting.SettingList
        N)superr   __init__	_solutionselfversion	__class__ R/var/www/html/venv/lib/python3.10/site-packages/twilio/rest/insights/v1/setting.pyr	      s   	
zSettingList.__init__c                 C   
   t | jS z
        Constructs a SettingContext

        :returns: twilio.rest.insights.v1.setting.SettingContext
        :rtype: twilio.rest.insights.v1.setting.SettingContext
        SettingContext_versionr   r   r   r   get       
zSettingList.getc                 C   r   r   r   r   r   r   r   __call__)   r   zSettingList.__call__c                 C      dS )z
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z <Twilio.Insights.V1.SettingList>r   r   r   r   r   __repr__2      zSettingList.__repr__)__name__
__module____qualname__r	   r   r   r   __classcell__r   r   r   r   r      s
    		r   c                       s,   e Zd Z fddZdd Zdd Z  ZS )SettingPagec                    s   t t| || || _dS )a#  
        Initialize the SettingPage

        :param Version version: Version that contains the resource
        :param Response response: Response from the API

        :returns: twilio.rest.insights.v1.setting.SettingPage
        :rtype: twilio.rest.insights.v1.setting.SettingPage
        N)r   r#   r	   r
   )r   r   responsesolutionr   r   r   r	   >   s   

zSettingPage.__init__c                 C   s   t | j|S )z
        Build an instance of SettingInstance

        :param dict payload: Payload response from the API

        :returns: twilio.rest.insights.v1.setting.SettingInstance
        :rtype: twilio.rest.insights.v1.setting.SettingInstance
        )SettingInstancer   )r   payloadr   r   r   get_instanceM   s   	zSettingPage.get_instancec                 C   r   )r   z <Twilio.Insights.V1.SettingPage>r   r   r   r   r   r   X   r   zSettingPage.__repr__)r   r    r!   r	   r(   r   r"   r   r   r   r   r#   <   s    r#   c                       sH   e Zd Z fddZejfddZejejejfddZdd Z  Z	S )	r   c                    s.   t t| | i | _djdi | j| _dS )z
        Initialize the SettingContext

        :param Version version: Version that contains the resource

        :returns: twilio.rest.insights.v1.setting.SettingContext
        :rtype: twilio.rest.insights.v1.setting.SettingContext
        z/Voice/SettingsNr   )r   r   r	   r
   format_urir   r   r   r   r	   d   s   	zSettingContext.__init__c                 C   s.   t d|i}| jjd| j|d}t| j|S )
        Fetch the SettingInstance

        :param unicode subaccount_sid: The subaccount_sid

        :returns: The fetched SettingInstance
        :rtype: twilio.rest.insights.v1.setting.SettingInstance
        SubaccountSidGET)methoduriparams)r   ofr   fetchr*   r&   )r   subaccount_siddatar'   r   r   r   r2   s   s   	zSettingContext.fetchc                 C   s2   t |||d}| jjd| j|d}t| j|S )D  
        Update the SettingInstance

        :param bool advanced_features: The advanced_features
        :param bool voice_trace: The voice_trace
        :param unicode subaccount_sid: The subaccount_sid

        :returns: The updated SettingInstance
        :rtype: twilio.rest.insights.v1.setting.SettingInstance
        )AdvancedFeatures
VoiceTracer,   POST)r.   r/   r4   )r   r1   r   updater*   r&   )r   advanced_featuresvoice_tracer3   r4   r'   r   r   r   r9      s   zSettingContext.updatec                 C   $   d dd | j D }d|S )r    c                 s        | ]\}}d  ||V  qdS z{}={}Nr)   .0kvr   r   r   	<genexpr>       z*SettingContext.__repr__.<locals>.<genexpr>z&<Twilio.Insights.V1.SettingContext {}>joinr
   itemsr)   r   contextr   r   r   r         
zSettingContext.__repr__)
r   r    r!   r	   r   unsetr2   r9   r   r"   r   r   r   r   r   b   s    
r   c                       s   e Zd Z fddZedd Zedd Zedd Zed	d
 Zedd Z	e
jfddZe
je
je
jfddZdd Z  ZS )r&   c                    sH   t t| | |d|d|d|dd| _d| _i | _dS )z
        Initialize the SettingInstance

        :returns: twilio.rest.insights.v1.setting.SettingInstance
        :rtype: twilio.rest.insights.v1.setting.SettingInstance
        account_sidr:   r;   url)rN   r:   r;   rO   N)r   r&   r	   r   _properties_contextr
   )r   r   r'   r   r   r   r	      s   
zSettingInstance.__init__c                 C   s   | j du rt| j| _ | j S )a)  
        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
        :rtype: twilio.rest.insights.v1.setting.SettingContext
        N)rQ   r   r   r   r   r   r   _proxy   s   
	zSettingInstance._proxyc                 C   
   | j d S )zC
        :returns: The account_sid
        :rtype: unicode
        rN   rP   r   r   r   r   rN         
zSettingInstance.account_sidc                 C   rS   )zF
        :returns: The advanced_features
        :rtype: bool
        r:   rT   r   r   r   r   r:      rU   z!SettingInstance.advanced_featuresc                 C   rS   )z@
        :returns: The voice_trace
        :rtype: bool
        r;   rT   r   r   r   r   r;      rU   zSettingInstance.voice_tracec                 C   rS   )z;
        :returns: The url
        :rtype: unicode
        rO   rT   r   r   r   r   rO      rU   zSettingInstance.urlc                 C   s   | j j|dS )r+   )r3   )rR   r2   )r   r3   r   r   r   r2      s   	zSettingInstance.fetchc                 C   s   | j j|||dS )r5   )r:   r;   r3   )rR   r9   )r   r:   r;   r3   r   r   r   r9      s
   zSettingInstance.updatec                 C   r<   )r   r=   c                 s   r>   r?   r@   rA   r   r   r   rE     rF   z+SettingInstance.__repr__.<locals>.<genexpr>z'<Twilio.Insights.V1.SettingInstance {}>rG   rJ   r   r   r   r     rL   zSettingInstance.__repr__)r   r    r!   r	   propertyrR   rN   r:   r;   rO   r   rM   r2   r9   r   r"   r   r   r   r   r&      s"    





r&   N)__doc__twilio.baser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.pager   r   r#   r   r&   r   r   r   r   <module>   s   ,&A