a
    !f                     @   s   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 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List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 )OpenidDiscoveryInstancea:  
    :ivar issuer: The URL of the party that will create the token and sign it with its private key.
    :ivar authorization_endpoint: The endpoint that validates all authorization requests.
    :ivar device_authorization_endpoint: The endpoint that validates all device code related authorization requests.
    :ivar token_endpoint: The URL of the token endpoint. After a client has received an authorization code, that code is presented to the token endpoint and exchanged for an identity token, an access token, and a refresh token.
    :ivar userinfo_endpoint: The URL of the user info endpoint, which returns user profile information to a client. Keep in mind that the user info endpoint returns only the information that has been requested.
    :ivar revocation_endpoint: The endpoint used to revoke access or refresh tokens issued by the authorization server.
    :ivar jwk_uri: The URL of your JSON Web Key Set. This set is a collection of JSON Web Keys, a standard method for representing cryptographic keys in a JSON structure.
    :ivar response_type_supported: A collection of response type supported by authorization server.
    :ivar subject_type_supported: A collection of subject by authorization server.
    :ivar id_token_signing_alg_values_supported: A collection of JWS signing algorithms supported by authorization server to sign identity token.
    :ivar scopes_supported: A collection of scopes supported by authorization server for identity token
    :ivar claims_supported: A collection of claims supported by authorization server for identity token
    :ivar url:
    )versionpayloadc                    s   t  | |d| _|d| _|d| _|d| _|d| _|d| _|d| _	|d| _
|d	| _|d
| _|d| _|d| _|d| _d | _d S )Nissuerauthorization_endpointdevice_authorization_endpointtoken_endpointuserinfo_endpointrevocation_endpointjwk_uriresponse_type_supportedsubject_type_supported%id_token_signing_alg_values_supportedscopes_supportedclaims_supportedurl)super__init__getr   r   r   r   r   r   r   r   r   r   r   r   r   _context)selfr   r   	__class__ f/var/www/html/python-backend/venv/lib/python3.9/site-packages/twilio/rest/oauth/v1/openid_discovery.pyr   )   s2    z OpenidDiscoveryInstance.__init__OpenidDiscoveryContext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: OpenidDiscoveryContext for this OpenidDiscoveryInstance
        N)r   r#   _versionr   r!   r!   r"   _proxyF   s
    
zOpenidDiscoveryInstance._proxyc                 C   s
   | j  S )k
        Fetch the OpenidDiscoveryInstance


        :returns: The fetched OpenidDiscoveryInstance
        )r(   fetchr'   r!   r!   r"   r*   T   s    zOpenidDiscoveryInstance.fetchc                    s   | j  I dH S )
        Asynchronous coroutine to fetch the OpenidDiscoveryInstance


        :returns: The fetched OpenidDiscoveryInstance
        N)r(   fetch_asyncr'   r!   r!   r"   r,   ]   s    z#OpenidDiscoveryInstance.fetch_asyncc                 C   s   dS )f
        Provide a friendly representation

        :returns: Machine friendly representation
        z)<Twilio.Oauth.V1.OpenidDiscoveryInstance>r!   r'   r!   r!   r"   __repr__f   s    z OpenidDiscoveryInstance.__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 )zs
        Initialize the OpenidDiscoveryContext

        :param version: Version that contains the resource
        z!/.well-known/openid-configurationN)r   r   _urir   r   r   r!   r"   r   q   s    zOpenidDiscoveryContext.__init__r$   c                 C   s   | j jd| jd}t| j |S )r)   GETmethoduri)r&   r*   r7   r
   r   r   r!   r!   r"   r*   {   s    zOpenidDiscoveryContext.fetchc                    s$   | j jd| jdI dH }t| j |S )r+   r9   r:   N)r&   r,   r7   r
   r=   r!   r!   r"   r,      s    z"OpenidDiscoveryContext.fetch_asyncc                 C   s   dS )r-   z(<Twilio.Oauth.V1.OpenidDiscoveryContext>r!   r'   r!   r!   r"   r.      s    zOpenidDiscoveryContext.__repr__)r/   r0   r1   r	   r   r
   r*   r,   r3   r.   r5   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 )OpenidDiscoveryListr6   c                    s   t  | dS )zq
        Initialize the OpenidDiscoveryList

        :param version: Version that contains the resource

        N)r   r   r8   r   r!   r"   r      s    zOpenidDiscoveryList.__init__r$   c                 C   s
   t | jS z6
        Constructs a OpenidDiscoveryContext

        r#   r&   r'   r!   r!   r"   r      s    zOpenidDiscoveryList.getc                 C   s
   t | jS r?   r@   r'   r!   r!   r"   __call__   s    zOpenidDiscoveryList.__call__c                 C   s   dS )r-   z%<Twilio.Oauth.V1.OpenidDiscoveryList>r!   r'   r!   r!   r"   r.      s    zOpenidDiscoveryList.__repr__)r/   r0   r1   r	   r   r#   r   rA   r3   r.   r5   r!   r!   r   r"   r>      s   	r>   N)r2   typingr   r   r   r   Ztwilio.base.instance_contextr   Ztwilio.base.instance_resourcer   Ztwilio.base.list_resourcer   Ztwilio.base.versionr	   r
   r#   r>   r!   r!   r!   r"   <module>   s   Y9