a
    !f                     @   s|   d Z ddl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 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 - Oauth
    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)InstanceContext)InstanceResource)ListResource)Versionc                       sl   e Zd ZdZeeeef d fddZe	ddddZ
d dd	d
Zd dddZedddZ  ZS )OauthInstancezh
    :ivar keys: A collection of certificates where are signed Twilio-issued tokens.
    :ivar url:
    )versionpayloadc                    s.   t  | |d| _|d| _d | _d S )Nkeysurl)super__init__getr   r   _context)selfr
   r   	__class__ [/var/www/html/python-backend/venv/lib/python3.9/site-packages/twilio/rest/oauth/v1/oauth.pyr      s    zOauthInstance.__init__OauthContextreturnc                 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: OauthContext for this OauthInstance
        N)r   r   _versionr   r   r   r   _proxy&   s
    
zOauthInstance._proxyc                 C   s
   | j  S )W
        Fetch the OauthInstance


        :returns: The fetched OauthInstance
        )r   fetchr   r   r   r   r   4   s    zOauthInstance.fetchc                    s   | j  I dH S )q
        Asynchronous coroutine to fetch the OauthInstance


        :returns: The fetched OauthInstance
        N)r   fetch_asyncr   r   r   r   r    =   s    zOauthInstance.fetch_asyncc                 C   s   dS )f
        Provide a friendly representation

        :returns: Machine friendly representation
        z<Twilio.Oauth.V1.OauthInstance>r   r   r   r   r   __repr__F   s    zOauthInstance.__repr__)__name__
__module____qualname____doc__r   r   strr   r   propertyr   r   r    r"   __classcell__r   r   r   r   r	      s   		r	   c                       sL   e Zd Zed fddZedddZedddZedd	d
Z	  Z
S )r   r
   c                    s   t  | d| _dS )zi
        Initialize the OauthContext

        :param version: Version that contains the resource
        z/certsN)r   r   _urir   r
   r   r   r   r   Q   s    zOauthContext.__init__r   c                 C   s   | j jd| jd}t| j |S )r   GETmethoduri)r   r   r+   r	   r   r   r   r   r   r   [   s    zOauthContext.fetchc                    s$   | j jd| jdI dH }t| j |S )r   r-   r.   N)r   r    r+   r	   r1   r   r   r   r    m   s    zOauthContext.fetch_asyncc                 C   s   dS )r!   z<Twilio.Oauth.V1.OauthContext>r   r   r   r   r   r"      s    zOauthContext.__repr__)r#   r$   r%   r   r   r	   r   r    r'   r"   r)   r   r   r   r   r   P   s   
r   c                       sL   e Zd Zed fddZedddZedddZedd	d
Z	  Z
S )	OauthListr*   c                    s   t  | dS )zg
        Initialize the OauthList

        :param version: Version that contains the resource

        N)r   r   r,   r   r   r   r      s    zOauthList.__init__r   c                 C   s
   t | jS z,
        Constructs a OauthContext

        r   r   r   r   r   r   r      s    zOauthList.getc                 C   s
   t | jS r3   r4   r   r   r   r   __call__   s    zOauthList.__call__c                 C   s   dS )r!   z<Twilio.Oauth.V1.OauthList>r   r   r   r   r   r"      s    zOauthList.__repr__)r#   r$   r%   r   r   r   r   r5   r'   r"   r)   r   r   r   r   r2      s   	r2   N)r&   typingr   r   r   Ztwilio.base.instance_contextr   Ztwilio.base.instance_resourcer   Ztwilio.base.list_resourcer   Ztwilio.base.versionr   r	   r   r2   r   r   r   r   <module>   s   99