
    i?1iS                         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 - Voice
    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
ddZ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defdZ xZS )SettingsInstancez
    :ivar dialing_permissions_inheritance: `true` if the sub-account will inherit voice dialing permissions from the Master Project; otherwise `false`.
    :ivar url: The absolute URL of this resource.
    versionpayloadc                     t         |   |       |j                  d      | _        |j                  d      | _        d | _        y )Ndialing_permissions_inheritanceurl)super__init__getr   r   _context)selfr   r   	__class__s      {/home/www/therecruiter.miabetepe.com/venv/lib/python3.12/site-packages/twilio/rest/voice/v1/dialing_permissions/settings.pyr   zSettingsInstance.__init__   s>    !?F{{-@
, #*++e"437    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: SettingsContext for this SettingsInstance
        )r   SettingsContext_versionr   s    r   _proxyzSettingsInstance._proxy)   s-     == +DM }}r   c                 6    | j                   j                         S )]
        Fetch the SettingsInstance


        :returns: The fetched SettingsInstance
        )r    fetchr   s    r   r#   zSettingsInstance.fetch7   s     {{  ""r   c                 R   K   | j                   j                          d{   S 7 w)w
        Asynchronous coroutine to fetch the SettingsInstance


        :returns: The fetched SettingsInstance
        N)r    fetch_asyncr   s    r   r&   zSettingsInstance.fetch_async@   s!      [[,,....s   '%'r   c                 :    | j                   j                  |      S )
        Update the SettingsInstance

        :param dialing_permissions_inheritance: `true` for the sub-account to inherit voice dialing permissions from the Master Project; otherwise `false`.

        :returns: The updated SettingsInstance
        r   )r    updater   r   s     r   r*   zSettingsInstance.updateI   s#     {{!!,K " 
 	
r   c                 V   K   | j                   j                  |       d{   S 7 w)  
        Asynchronous coroutine to update the SettingsInstance

        :param dialing_permissions_inheritance: `true` for the sub-account to inherit voice dialing permissions from the Master Project; otherwise `false`.

        :returns: The updated SettingsInstance
        r)   N)r    update_asyncr+   s     r   r.   zSettingsInstance.update_asyncW   s1      [[--,K . 
 
 	
 
s    )')c                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z"<Twilio.Voice.V1.SettingsInstance> r   s    r   __repr__zSettingsInstance.__repr__e   s     4r   )r   r   )r   r   )__name__
__module____qualname____doc__r   r   strr   r   propertyr    r#   r&   r   unsetr   boolobjectr*   r.   r2   __classcell__r   s   @r   r   r      s    
8 8$sCx. 8  #/ FL\\
/4T6\/B
	
 FL\\
/4T6\/B
	
4# 4r   r   c                        e Zd Zdef fdZdefdZ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defd	Z xZS )
r   r   c                 2    t         |   |       d| _        y)zl
        Initialize the SettingsContext

        :param version: Version that contains the resource
        z	/SettingsN)r   r   _urir   r   r   s     r   r   zSettingsContext.__init__p   s     	!	r   r   c                 |    | j                   j                  d| j                        }t        | j                   |      S )r"   GETmethoduri)r   r#   r@   r   r   r   s     r   r#   zSettingsContext.fetchz   s@     --%%		 & 

  MM
 	
r   c                    K   | j                   j                  d| j                         d{   }t        | j                   |      S 7 w)r%   rC   rD   N)r   r&   r@   r   rG   s     r   r&   zSettingsContext.fetch_async   sN      11		 2 
 

  MM
 	

s   +A
AA
r   c                     t        j                  d|i      }| j                  j                  d| j                  |      }t        | j                  |      S )r(   DialingPermissionsInheritancePOSTrE   rF   data)r   ofr   r*   r@   r   r   r   rM   r   s       r   r*   zSettingsContext.update   sX     yy/1P
 --&&		 ' 
  w77r   c                    K   t        j                  d|i      }| j                  j                  d| j                  |       d{   }t        | j                  |      S 7 w)r-   rJ   rK   rL   N)r   rN   r   r.   r@   r   rO   s       r   r.   zSettingsContext.update_async   sf      yy/1P
 22		 3 
 
  w77
s   AA"A A"c                      y)r0   z!<Twilio.Voice.V1.SettingsContext>r1   r   s    r   r2   zSettingsContext.__repr__   s     3r   )r3   r4   r5   r   r   r   r#   r&   r   r9   r   r:   r;   r*   r.   r7   r2   r<   r=   s   @r   r   r   o   s       
' 
$
#3 
& FL\\8/4T6\/B8	82 FL\\8/4T6\/B8	803# 3r   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 )SettingsListr   c                 $    t         |   |       y)zj
        Initialize the SettingsList

        :param version: Version that contains the resource

        N)r   r   rA   s     r   r   zSettingsList.__init__   s     	!r   r   c                 ,    t        | j                        S z/
        Constructs a SettingsContext

        r   r   r   s    r   r   zSettingsList.get       
 t}}--r   c                 ,    t        | j                        S rV   rW   r   s    r   __call__zSettingsList.__call__   rX   r   c                      y)r0   z<Twilio.Voice.V1.SettingsList>r1   r   s    r   r2   zSettingsList.__repr__   s     0r   )r3   r4   r5   r   r   r   r   rZ   r7   r2   r<   r=   s   @r   rS   rS      s3    " "._ ../ .0# 0r   rS   N)r6   typingr   r   r   r   twilio.baser   twilio.base.instance_contextr   twilio.base.instance_resourcer	   twilio.base.list_resourcer
   twilio.base.versionr   r   r   rS   r1   r   r   <module>rb      sL    . -  8 : 2 'T4' T4nf3o f3R0< 0r   