o
    /i                     @   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                       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 )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__ `/var/www/html/philips/venv/lib/python3.10/site-packages/twilio/rest/oauth/v1/openid_discovery.pyr   )   s2   
z OpenidDiscoveryInstance.__init__returnOpenidDiscoveryContextc                 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      dS )f
        Provide a friendly representation

        :returns: Machine friendly representation
        z)<Twilio.Oauth.V1.OpenidDiscoveryInstance>r!   r&   r!   r!   r"   __repr__f      z OpenidDiscoveryInstance.__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 )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)   r8   r
   r   r   r!   r!   r"   r)   {   s   zOpenidDiscoveryContext.fetchc                    s&   | j jd| jdI dH }t| j |S )r*   r:   r;   N)r%   r+   r8   r
   r>   r!   r!   r"   r+      s   z"OpenidDiscoveryContext.fetch_asyncc                 C   r,   )r-   z(<Twilio.Oauth.V1.OpenidDiscoveryContext>r!   r&   r!   r!   r"   r.      r/   zOpenidDiscoveryContext.__repr__)r0   r1   r2   r	   r   r
   r)   r+   r4   r.   r6   r!   r!   r   r"   r$   p   s
    
r$   c                       r7   )OpenidDiscoveryListr   c                    s   t  | dS )zq
        Initialize the OpenidDiscoveryList

        :param version: Version that contains the resource

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

        r$   r%   r&   r!   r!   r"   r         
zOpenidDiscoveryList.getc                 C   r@   rA   rB   r&   r!   r!   r"   __call__   rC   zOpenidDiscoveryList.__call__c                 C   r,   )r-   z%<Twilio.Oauth.V1.OpenidDiscoveryList>r!   r&   r!   r!   r"   r.      s   zOpenidDiscoveryList.__repr__)r0   r1   r2   r	   r   r$   r   rD   r4   r.   r6   r!   r!   r   r"   r?      s
    	r?   N)r3   typingr   r   r   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr	   r
   r$   r?   r!   r!   r!   r"   <module>   s    Y9