Ë
    [üàg˜  ã                   ó¢   — 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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)Ú	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
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      €úo/var/www/skyplay_api_hub/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-   € ð �=‰=Ð Ü+Ø—‘óˆDŒMð �}‰}Ðr   c                 ó6   — | j                   j                  «       S )ú]
        Fetch the SettingsInstance


        :returns: The fetched SettingsInstance
        )r!   Úfetchr    s    r   r$   zSettingsInstance.fetch5   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.updateG   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_asyncU   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__c   s   € ð 4r   )r   r   )r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ústrr   r   Úpropertyr!   r$   r'   r   Úunsetr   ÚboolÚobjectr+   r/   r3   Ú__classcell__©r   s   @r   r   r      sŸ   ø„ ñð
8 ð 8°$°s¸C°x±.õ 8ð òó ðó#ó/ð FLÇ\Á\ñ
Ø/4°T¸6°\Ñ/Bð
à	ó
ð FLÇ\Á\ñ
Ø/4°T¸6°\Ñ/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__o   s   ø€ ô 	‰Ñ˜Ô!àˆ�	r   r   c                 ó²   — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      }t        | j                  |«      S )r#   úapplication/jsonÚAcceptÚGET©ÚmethodÚuriÚheaders)r   Úofr   r$   rA   r   ©r   rJ   r   s      r   r$   zSettingsContext.fetchy   sQ   € ô —)‘)˜B“-ˆà.ˆ�Ñà—-‘-×%Ñ%¨U¸¿	¹	È7Ð%ÓSˆäØ�M‰MØó
ð 	
r   c              ƒ   óÎ   K  — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      ƒ d{  –—† }t        | j                  |«      S 7 Œ­w)r&   rD   rE   rF   rG   N)r   rK   r   r'   rA   r   rL   s      r   r'   zSettingsContext.fetch_asyncŒ   sf   è ø€ ô —)‘)˜B“-ˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°ð 2ó 
÷ 
ˆô  Ø�M‰MØó
ð 	
ð	
ús   ‚AA%ÁA#Á	A%r   c                 ó  — t        j                  dt        j                  |«      i«      }t        j                  i «      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  |«      S )r)   ÚDialingPermissionsInheritanceú!application/x-www-form-urlencodedúContent-TyperD   rE   ÚPOST©rH   rI   ÚdatarJ   )r   rK   r   Úboolean_to_stringr   r+   rA   r   ©r   r   rT   rJ   r   s        r   r+   zSettingsContext.update¡   s†   € ô �y‰yà/´×1LÑ1LØ3ó2ðó
ˆô —)‘)˜B“-ˆà"Eˆ�Ñà.ˆ�Ñà—-‘-×&Ñ&Ø˜tŸy™y¨t¸Wð 'ó 
ˆô   §¡¨wÓ7Ð7r   c              ƒ   ó.  K  — t        j                  dt        j                  |«      i«      }t        j                  i «      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      ƒ d{  –—† }t        | j                  |«      S 7 Œ­w)	r.   rO   rP   rQ   rD   rE   rR   rS   N)r   rK   r   rU   r   r/   rA   r   rV   s        r   r/   zSettingsContext.update_async¿   s”   è ø€ ô �y‰yà/´×1LÑ1LØ3ó2ðó
ˆô —)‘)˜B“-ˆà"Eˆ�Ñà.ˆ�ÑàŸ™×2Ñ2Ø˜tŸy™y¨t¸Wð 3ó 
÷ 
ˆô   §¡¨wÓ7Ð7ð	
ús   ‚A6BÁ8BÁ9Bc                  ó   — y)r1   z!<Twilio.Voice.V1.SettingsContext>r2   r    s    r   r3   zSettingsContext.__repr__Ý   s   € ð 3r   )r4   r5   r6   r   r   r   r$   r'   r   r:   r   r;   r<   r+   r/   r8   r3   r=   r>   s   @r   r   r   m   s‡   ø„ ð  õ  ð
Ð'ó 
ð&
Ð#3ó 
ð, FLÇ\Á\ñ8Ø/4°T¸6°\Ñ/Bð8à	ó8ð> FLÇ\Á\ñ8Ø/4°T¸6°\Ñ/Bð8à	ó8ð<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   rB   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 r]   r^   r    s    r   Ú__call__zSettingsList.__call__ù   r_   r   c                  ó   — y)r1   z<Twilio.Voice.V1.SettingsList>r2   r    s    r   r3   zSettingsList.__repr__   s   € ð 0r   )r4   r5   r6   r   r   r   r   ra   r8   r3   r=   r>   s   @r   rZ   rZ   ç   s3   ø„ ð" õ "ð.�_ó .ð.˜/ó .ð0˜#÷ 0r   rZ   N)r7   Útypingr   r   r   r   Útwilio.baser   r   Útwilio.base.instance_contextr	   Útwilio.base.instance_resourcer
   Útwilio.base.list_resourcer   Útwilio.base.versionr   r   r   rZ   r2   r   r   ú<module>ri      sL   ðñ÷ .Ó -ß )Ý 8Ý :Ý 2Ý 'ôS4Ð'ô S4ôlw3�oô w3ôt0�<õ 0r   