U
    ^g%i                     @   sp   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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Union)values)InstanceResource)ListResource)Versionc                       s>   e Zd ZdZeeeef d fddZedddZ	  Z
S )AuthorizeInstancez-
    :ivar redirect_to: The callback URL
    )versionpayloadc                    s   t  | |d| _d S )Nredirect_to)super__init__getr   )selfr   r   	__class__ ]/var/www/html/api-medvista/venv/lib/python3.8/site-packages/twilio/rest/oauth/v1/authorize.pyr      s    zAuthorizeInstance.__init__returnc                 C   s   dS )f
        Provide a friendly representation

        :returns: Machine friendly representation
        z#<Twilio.Oauth.V1.AuthorizeInstance>r   r   r   r   r   __repr__!   s    zAuthorizeInstance.__repr__)__name__
__module____qualname____doc__r	   r   strr   r   r   __classcell__r   r   r   r   r
      s   r
   c                       s   e Zd Zed fddZejejejejejfeee	f eee	f eee	f eee	f eee	f e
dddZejejejejejfeee	f eee	f eee	f eee	f eee	f e
dddZed	d
dZ  ZS )AuthorizeList)r   c                    s   t  | d| _dS )zk
        Initialize the AuthorizeList

        :param version: Version that contains the resource

        z
/authorizeN)r   r   _uri)r   r   r   r   r   r   -   s    zAuthorizeList.__init__)response_type	client_idredirect_uriscopestater   c           	      C   sN   t ddi}d|d< t |||||d}| jjd| j||d}t| j|S )  
        Asynchronously fetch the AuthorizeInstance

        :param response_type: Response Type:param client_id: The Client Identifier:param redirect_uri: The url to which response will be redirected to:param scope: The scope of the access request:param state: An opaque value which can be used to maintain state between the request and callback
        :returns: The fetched AuthorizeInstance
        Content-Type!application/x-www-form-urlencodedapplication/jsonAcceptZResponseTypeZClientIdZRedirectUriZScopeStateGETmethoduriheadersparams)r   of_versionfetchr"   r
   	r   r#   r$   r%   r&   r'   r3   r4   r   r   r   r   r7   8   s"    
   zAuthorizeList.fetchc           	         sT   t ddi}d|d< t |||||d}| jjd| j||dI dH }t| j|S )	r(   r)   r*   r+   r,   r-   r/   r0   N)r   r5   r6   fetch_asyncr"   r
   r8   r   r   r   r9   Z   s"    
   zAuthorizeList.fetch_asyncr   c                 C   s   dS )r   z<Twilio.Oauth.V1.AuthorizeList>r   r   r   r   r   r   |   s    zAuthorizeList.__repr__)r   r   r   r	   r   r   unsetr   r   objectr
   r7   r9   r   r    r   r   r   r   r!   +   s8   




$




"r!   N)r   typingr   r   r   r   Ztwilio.baser   Ztwilio.base.instance_resourcer   Ztwilio.base.list_resourcer   Ztwilio.base.versionr	   r
   r!   r   r   r   r   <module>   s   