
    d{i                          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 ddlmZ  G d d	e      Z G d
 de      Zy)a8  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Organization Public API
    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

    NOTE: This class is auto generated by OpenAPI Generator.
    https://openapi-generator.tech
    Do not edit the class manually.
    )AnyDictOptionalUnion)values)ApiResponse)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/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/preview_iam/v1/authorize.pyr   zAuthorizeInstance.__init__   s!    !*1++m*D    returnc                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z(<Twilio.PreviewIam.V1.AuthorizeInstance> r   s    r   __repr__zAuthorizeInstance.__repr__"   s     :r   )__name__
__module____qualname____doc__r   r   strr   r   r   __classcell__r   s   @r   r   r      s2    E E$sCx. E
:# :r   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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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                  ||      S )zz
        Internal helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        Content-Type!application/x-www-form-urlencodedapplication/jsonAcceptr*   r+   r,   r-   r.   GETmethoduriheadersparams)r   of_versionfetch_with_response_infor)   r   r*   r+   r,   r-   r.   r9   r:   s           r   _fetchzAuthorizeList._fetch9   so     ))^-PQR.!.& ,
 }}55dii 6 
 	
r   c                 b    | j                  |||||      \  }}}t        | j                  |      S )a  
        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
        r4   )r?   r   r<   r   r*   r+   r,   r-   r.   r   _s           r   fetchzAuthorizeList.fetchY   s?     '% $ 
A !88r   c                 ~    | j                  |||||      \  }}}t        | j                  |      }	t        |	||      S )a  
        Fetch the AuthorizeInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        r4   datastatus_coder9   )r?   r   r<   r   
r   r*   r+   r,   r-   r.   r   rG   r9   instances
             r   fetch_with_http_infoz"AuthorizeList.fetch_with_http_infop   sN     )-'% )4 )
%g %T]]G<k7SSr   c                    K   t        j                  ddi      }d|d<   t        j                  |||||d      }| j                  j                  d| j                  ||       d{   S 7 w)	z
        Internal async helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        r0   r1   r2   r3   r4   r5   r6   N)r   r;   r<   fetch_with_response_info_asyncr)   r>   s           r   _fetch_asynczAuthorizeList._fetch_async   s~      ))^-PQR.!.& ,
 ]]AAdii B 
 
 	
 
s   A$A-&A+'A-c                 ~   K   | j                  |||||       d{   \  }}}t        | j                  |      S 7 w)a  
        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
        r4   N)rM   r   r<   rA   s           r   fetch_asynczAuthorizeList.fetch_async   sO      #//'% 0 
 
A !88
s   =;=c                    K   | j                  |||||       d{   \  }}}t        | j                  |      }	t        |	||      S 7 ,w)a  
        Asynchronously fetch the AuthorizeInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        r4   NrE   )rM   r   r<   r   rH   s
             r   fetch_with_http_info_asyncz(AuthorizeList.fetch_with_http_info_async   s_      /3.?.?'% /@ /
 )
%g %T]]G<k7SS)
s   AA	-Ac                      y)r   z$<Twilio.PreviewIam.V1.AuthorizeList>r   r   s    r   r   zAuthorizeList.__repr__   s     6r   )r   r    r!   r   r   r   unsetr   r#   objecttupler?   r   rC   r   rJ   rM   rO   rQ   r   r$   r%   s   @r   r'   r'   ,   s   	! 	! -3LL(.+1<<$*LL$*LL
S&[)
 f%
 CK(	

 S&[!
 S&[!
 

D -3LL(.+1<<$*LL$*LL9S&[)9 f%9 CK(	9
 S&[!9 S&[!9 
92 -3LL(.+1<<$*LL$*LLTS&[)T f%T CK(	T
 S&[!T S&[!T 
T4 -3LL(.+1<<$*LL$*LL
S&[)
 f%
 CK(	

 S&[!
 S&[!
 

D -3LL(.+1<<$*LL$*LL9S&[)9 f%9 CK(	9
 S&[!9 S&[!9 
92 -3LL(.+1<<$*LL$*LLTS&[)T f%T CK(	T
 S&[!T S&[!T 
T06# 6r   r'   N)r"   typingr   r   r   r   twilio.baser   twilio.base.api_responser   twilio.base.instance_resourcer	   twilio.base.list_resourcer
   twilio.base.versionr   r   r'   r   r   r   <module>r\      s<    . -  0 : 2 ':( :(q6L q6r   