
    m>h                     |    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e	      Z G d	 d
e      Zy)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                   B     e Zd ZdZdedeeef   f fdZdefdZ	 xZ
S )AuthorizeInstancez-
    :ivar redirect_to: The callback URL
    versionpayloadc                 P    t         |   |       |j                  d      | _        y )Nredirect_to)super__init__getr   )selfr   r   	__class__s      b/var/www/html/DP/alpha_backend/venv/lib/python3.12/site-packages/twilio/rest/oauth/v1/authorize.pyr   zAuthorizeInstance.__init__   s!    !*1++m*D    returnc                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z#<Twilio.Oauth.V1.AuthorizeInstance> r   s    r   __repr__zAuthorizeInstance.__repr__!   s     5r   )__name__
__module____qualname____doc__r
   r   strr   r   r   __classcell__r   s   @r   r   r      s2    E E$sCx. E
5# 5r   r   c                       e Zd Zdef fdZej                  ej                  ej                  ej                  ej                  fdeee	f   deee	f   deee	f   deee	f   deee	f   de
fd	Zej                  ej                  ej                  ej                  ej                  fdeee	f   deee	f   deee	f   deee	f   deee	f   de
fd
ZdefdZ xZS )AuthorizeListr   c                 2    t         |   |       d| _        y)zk
        Initialize the AuthorizeList

        :param version: Version that contains the resource

        z
/authorizeN)r   r   _uri)r   r   r   s     r   r   zAuthorizeList.__init__-   s     	! 	r   response_type	client_idredirect_uriscopestater   c                     t        j                  ddi      }d|d<   t        j                  |||||d      }| j                  j                  d| j                  ||      }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ResponseTypeClientIdRedirectUriScopeStateGETmethoduriheadersparams)r   of_versionfetchr(   r   	r   r)   r*   r+   r,   r-   r>   r?   r   s	            r   rB   zAuthorizeList.fetch8   s     ))^-PQR. -%+
 --%%dii & 
 !88r   c                 
  K   t        j                  ddi      }d|d<   t        j                  |||||d      }| j                  j                  d| j                  ||       d{   }t        | j                  |      S 7 w)	r/   r0   r1   r2   r3   r4   r:   r;   N)r   r@   rA   fetch_asyncr(   r   rC   s	            r   rE   zAuthorizeList.fetch_asyncZ   s      ))^-PQR. -%+
 11dii 2 
 
 !88	
s   A$B&B'Bc                      y)r   z<Twilio.Oauth.V1.AuthorizeList>r   r   s    r   r   zAuthorizeList.__repr__|   s     1r   )r   r   r    r
   r   r   unsetr   r"   objectr   rB   rE   r   r#   r$   s   @r   r&   r&   +   s?   	! 	! -3LL(.+1<<$*LL$*LL 9S&[) 9 f% 9 CK(	 9
 S&[! 9 S&[! 9 
 9H -3LL(.+1<<$*LL$*LL 9S&[) 9 f% 9 CK(	 9
 S&[! 9 S&[! 9 
 9D1# 1r   r&   N)r!   typingr   r   r   r   twilio.baser   twilio.base.instance_resourcer   twilio.base.list_resourcer	   twilio.base.versionr
   r   r&   r   r   r   <module>rN      s9    . -  : 2 '5( 5(W1L W1r   