o
    /i                     @   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                       sb   e Zd ZdZdedeeef f fddZe	ddd	Z
dd
dZdddZdef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__ U/var/www/html/philips/venv/lib/python3.10/site-packages/twilio/rest/oauth/v1/oauth.pyr      s   
zOauthInstance.__init__returnOauthContextc                 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      dS )f
        Provide a friendly representation

        :returns: Machine friendly representation
        z<Twilio.Oauth.V1.OauthInstance>r   r   r   r   r   __repr__F      zOauthInstance.__repr__)r   r   )r   r	   )__name__
__module____qualname____doc__r   r   strr   r   propertyr   r   r   r"   __classcell__r   r   r   r   r	      s    

		r	   c                       L   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 )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	   r2   r   r   r   r   m   s   zOauthContext.fetch_asyncc                 C   r    )r!   z<Twilio.Oauth.V1.OauthContext>r   r   r   r   r   r"      r#   zOauthContext.__repr__)r$   r%   r&   r   r   r	   r   r   r(   r"   r*   r   r   r   r   r   P   s
    
r   c                       r+   )	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   
   t | jS z,
        Constructs a OauthContext

        r   r   r   r   r   r   r         
zOauthList.getc                 C   r4   r5   r6   r   r   r   r   __call__   r7   zOauthList.__call__c                 C   r    )r!   z<Twilio.Oauth.V1.OauthList>r   r   r   r   r   r"      s   zOauthList.__repr__)r$   r%   r&   r   r   r   r   r8   r(   r"   r*   r   r   r   r   r3      s
    	r3   N)r'   typingr   r   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r	   r   r3   r   r   r   r   <module>   s    99