
    d{iC                         d Z ddlmZmZmZmZmZmZmZ ddl	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 dd	lmZ  G d
 de      Z G d de      Z G d de      Z G d de      Zy)a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Api
    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UnionIteratorAsyncIterator)	serializevalues)ApiResponse)InstanceContext)InstanceResource)ListResource)Version)Pagec                       e Zd Z G d de      Z	 	 d dedeeef   dede	e   f fdZ
ed!d	       Zdefd
ZdefdZdefdZdefdZd"dZd"dZdefdZdefdZej0                  ej0                  ej0                  ej0                  ej0                  ej0                  ej0                  ej0                  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eef   deeef   deed   ef   dd fdZej0                  ej0                  ej0                  ej0                  ej0                  ej0                  ej0                  ej0                  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eef   deeef   deed   ef   dd fdZej0                  ej0                  ej0                  ej0                  ej0                  ej0                  ej0                  ej0                  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eef   deeef   deed   ef   defdZej0                  ej0                  ej0                  ej0                  ej0                  ej0                  ej0                  ej0                  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eef   deeef   deed   ef   defdZdefdZ xZ S )#ConnectAppInstancec                       e Zd ZdZdZy)ConnectAppInstance.Permissionzget-allzpost-allN)__name__
__module____qualname__GET_ALLPOST_ALL     g/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/api/v2010/account/connect_app.py
Permissionr      s    r   r   versionpayloadaccount_sidsidc                 F   t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _	        |j                  d      | _
        |j                  d	      | _        |j                  d
      | _        |j                  d      | _        ||xs | j                  d| _        d | _        y )Nr!   authorize_redirect_urlcompany_namedeauthorize_callback_methoddeauthorize_callback_urldescriptionfriendly_namehomepage_urlpermissionsr"   urir!   r"   )super__init__getr!   r$   r%   r&   r'   r(   r)   r*   r+   r"   r,   	_solution_context)selfr   r    r!   r"   	__class__s        r   r/   zConnectAppInstance.__init__-   s    	!*1++m*D5<[[$6
# ,3;;~+F:A++);
( 8?{{&8
% +2++m*D,3KK,H+2;;~+FLSKKM
 #*++e"4")++e"4 '?$((
 6:r   returnc                     | j                   7t        | j                  | j                  d   | j                  d         | _         | 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: ConnectAppContext for this ConnectAppInstance
        r!   r"   r-   )r2   ConnectAppContext_versionr1   r3   s    r   _proxyzConnectAppInstance._proxyP   sE     == - NN=9NN5)DM
 }}r   c                 6    | j                   j                         S zm
        Deletes the ConnectAppInstance


        :returns: True if delete succeeds, False otherwise
        )r:   deleter9   s    r   r=   zConnectAppInstance.delete`   s     {{!!##r   c                 R   K   | j                   j                          d{   S 7 wz
        Asynchronous coroutine that deletes the ConnectAppInstance


        :returns: True if delete succeeds, False otherwise
        N)r:   delete_asyncr9   s    r   r@   zConnectAppInstance.delete_asynci   s!      [[--////   '%'c                 6    | j                   j                         S )z
        Deletes the ConnectAppInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        )r:   delete_with_http_infor9   s    r   rC   z(ConnectAppInstance.delete_with_http_infor   s     {{0022r   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine that deletes the ConnectAppInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        N)r:   delete_with_http_info_asyncr9   s    r   rE   z.ConnectAppInstance.delete_with_http_info_async{   s!      [[<<>>>>rA   c                 6    | j                   j                         S )a
        Fetch the ConnectAppInstance


        :returns: The fetched ConnectAppInstance
        )r:   fetchr9   s    r   rH   zConnectAppInstance.fetch   s     {{  ""r   c                 R   K   | j                   j                          d{   S 7 w){
        Asynchronous coroutine to fetch the ConnectAppInstance


        :returns: The fetched ConnectAppInstance
        N)r:   fetch_asyncr9   s    r   rK   zConnectAppInstance.fetch_async   s!      [[,,....rA   c                 6    | j                   j                         S )z
        Fetch the ConnectAppInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        )r:   fetch_with_http_infor9   s    r   rM   z'ConnectAppInstance.fetch_with_http_info   s     {{//11r   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine to fetch the ConnectAppInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        N)r:   fetch_with_http_info_asyncr9   s    r   rO   z-ConnectAppInstance.fetch_with_http_info_async   s!      [[;;====rA   r$   r%   r&   r'   r(   r)   r*   r+   r   c	           
      H    | j                   j                  ||||||||      S )  
        Update the ConnectAppInstance

        :param authorize_redirect_url: The URL to redirect the user to after we authenticate the user and obtain authorization to access the Connect App.
        :param company_name: The company name to set for the Connect App.
        :param deauthorize_callback_method: The HTTP method to use when calling `deauthorize_callback_url`.
        :param deauthorize_callback_url: The URL to call using the `deauthorize_callback_method` to de-authorize the Connect App.
        :param description: A description of the Connect App.
        :param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.
        :param homepage_url: A public URL where users can obtain more information about this Connect App.
        :param permissions: A comma-separated list of the permissions you will request from the users of this ConnectApp.  Can include: `get-all` and `post-all`.

        :returns: The updated ConnectAppInstance
        r$   r%   r&   r'   r(   r)   r*   r+   )r:   update	r3   r$   r%   r&   r'   r(   r)   r*   r+   s	            r   rS   zConnectAppInstance.update   s8    6 {{!!#9%(C%=#'%# " 	
 		
r   c	           
      d   K   | j                   j                  ||||||||       d{   S 7 w)  
        Asynchronous coroutine to update the ConnectAppInstance

        :param authorize_redirect_url: The URL to redirect the user to after we authenticate the user and obtain authorization to access the Connect App.
        :param company_name: The company name to set for the Connect App.
        :param deauthorize_callback_method: The HTTP method to use when calling `deauthorize_callback_url`.
        :param deauthorize_callback_url: The URL to call using the `deauthorize_callback_method` to de-authorize the Connect App.
        :param description: A description of the Connect App.
        :param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.
        :param homepage_url: A public URL where users can obtain more information about this Connect App.
        :param permissions: A comma-separated list of the permissions you will request from the users of this ConnectApp.  Can include: `get-all` and `post-all`.

        :returns: The updated ConnectAppInstance
        rR   N)r:   update_asyncrT   s	            r   rW   zConnectAppInstance.update_async   sF     6 [[--#9%(C%=#'%# . 	
 	
 		
 	
   '0.0c	           
      H    | j                   j                  ||||||||      S )a#  
        Update the ConnectAppInstance with HTTP info

        :param authorize_redirect_url: The URL to redirect the user to after we authenticate the user and obtain authorization to access the Connect App.
        :param company_name: The company name to set for the Connect App.
        :param deauthorize_callback_method: The HTTP method to use when calling `deauthorize_callback_url`.
        :param deauthorize_callback_url: The URL to call using the `deauthorize_callback_method` to de-authorize the Connect App.
        :param description: A description of the Connect App.
        :param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.
        :param homepage_url: A public URL where users can obtain more information about this Connect App.
        :param permissions: A comma-separated list of the permissions you will request from the users of this ConnectApp.  Can include: `get-all` and `post-all`.

        :returns: ApiResponse with instance, status code, and headers
        rR   )r:   update_with_http_inforT   s	            r   rZ   z(ConnectAppInstance.update_with_http_info   s8    6 {{00#9%(C%=#'%# 1 	
 		
r   c	           
      d   K   | j                   j                  ||||||||       d{   S 7 w)a=  
        Asynchronous coroutine to update the ConnectAppInstance with HTTP info

        :param authorize_redirect_url: The URL to redirect the user to after we authenticate the user and obtain authorization to access the Connect App.
        :param company_name: The company name to set for the Connect App.
        :param deauthorize_callback_method: The HTTP method to use when calling `deauthorize_callback_url`.
        :param deauthorize_callback_url: The URL to call using the `deauthorize_callback_method` to de-authorize the Connect App.
        :param description: A description of the Connect App.
        :param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.
        :param homepage_url: A public URL where users can obtain more information about this Connect App.
        :param permissions: A comma-separated list of the permissions you will request from the users of this ConnectApp.  Can include: `get-all` and `post-all`.

        :returns: ApiResponse with instance, status code, and headers
        rR   N)r:   update_with_http_info_asyncrT   s	            r   r\   z.ConnectAppInstance.update_with_http_info_async  sF     6 [[<<#9%(C%=#'%# = 	
 	
 		
 	
rX   c                     dj                  d | j                  j                         D              }dj                  |      S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   F   K   | ]  \  }}d j                  ||        ywz{}={}Nformat.0kvs      r   	<genexpr>z.ConnectAppInstance.__repr__.<locals>.<genexpr>F       SDAq7>>!Q/S   !z(<Twilio.Api.V2010.ConnectAppInstance {}>joinr1   itemsrc   r3   contexts     r   __repr__zConnectAppInstance.__repr__@  s6     ((SDNN<P<P<RSS9@@IIr   N)r5   r7   )r5   r   )!r   r   r   objectr   r   r   strr   r   r/   propertyr:   boolr=   r@   r   rC   rE   rH   rK   rM   rO   r   unsetr   r   rS   rW   rZ   r\   rp   __classcell__r4   s   @r   r   r      su   V & "!:!: c3h!: 	!:
 c]!:F  $ $0D 03{ 3?; ?#/2k 2>+ > 6<\\+1<<:@,,7=||*0,,,2LL+1<< LL$
 %c6k 2$
 CK($
 &+3;%7	$

 #(V"4$
 3;'$
 S&[)$
 CK($
 0169
$
 
$
P 6<\\+1<<:@,,7=||*0,,,2LL+1<< LL$
 %c6k 2$
 CK($
 &+3;%7	$

 #(V"4$
 3;'$
 S&[)$
 CK($
 0169
$
 
$
P 6<\\+1<<:@,,7=||*0,,,2LL+1<< LL$
 %c6k 2$
 CK($
 &+3;%7	$

 #(V"4$
 3;'$
 S&[)$
 CK($
 0169
$
 
$
P 6<\\+1<<:@,,7=||*0,,,2LL+1<< LL$
 %c6k 2$
 CK($
 &+3;%7	$

 #(V"4$
 3;'$
 S&[)$
 CK($
 0169
$
 
$
LJ# Jr   r   c                        e Zd Zdededef fdZdefdZdefdZ	de
fdZdefd	Zdefd
Zde
fdZdefdZdefdZde
fdZdefdZdefdZde
fdZej.                  ej.                  ej.                  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eef   deeef   deed   ef   defdZej.                  ej.                  ej.                  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eef   deeef   deed   ef   defdZej.                  ej.                  ej.                  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eef   deeef   deed   ef   de
fdZej.                  ej.                  ej.                  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eef   deeef   deed   ef   defdZej.                  ej.                  ej.                  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eef   deeef   deed   ef   defdZej.                  ej.                  ej.                  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eef   deeef   deed   ef   de
fd Z defd!Z! xZ"S )"r7   r   r!   r"   c                 z    t         |   |       ||d| _         dj                  di | j                  | _        y)al  
        Initialize the ConnectAppContext

        :param version: Version that contains the resource
        :param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resources to update.
        :param sid: The Twilio-provided string that uniquely identifies the ConnectApp resource to update.
        r-   z./Accounts/{account_sid}/ConnectApps/{sid}.jsonNr   r.   r/   r1   rc   _uri)r3   r   r!   r"   r4   s       r   r/   zConnectAppContext.__init__L  sG     	! '
 LDKK 
nn
	r   r5   c                 |    t        j                  i       }| j                  j                  d| j                  |      S )z
        Internal helper for delete operation

        Returns:
            tuple: (success_boolean, status_code, headers)
        DELETEmethodr,   headers)r   ofr8   delete_with_response_infor|   r3   r   s     r   _deletezConnectAppContext._delete_  s8     ))B-}}66G 7 
 	
r   c                 .    | j                         \  }}}|S r<   )r   r3   success_s      r   r=   zConnectAppContext.deletem  s     Ar   c                 F    | j                         \  }}}t        |||      S )z
        Deletes the ConnectAppInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        datastatus_coder   )r   r   r3   r   r   r   s       r   rC   z'ConnectAppContext.delete_with_http_infow  s%     )-%g['RRr   c                    K   t        j                  i       }| j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for delete operation

        Returns:
            tuple: (success_boolean, status_code, headers)
        r~   r   N)r   r   r8   delete_with_response_info_asyncr|   r   s     r   _delete_asynczConnectAppContext._delete_async  sG      ))B-]]BBG C 
 
 	
 
s   AA
AA
c                 J   K   | j                          d{   \  }}}|S 7 
wr?   )r   r   s      r   r@   zConnectAppContext.delete_async  s)      #0022A 3s   #!#c                 b   K   | j                          d{   \  }}}t        |||      S 7 w)z
        Asynchronous coroutine that deletes the ConnectAppInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        Nr   )r   r   r   s       r   rE   z-ConnectAppContext.delete_with_http_info_async  s5      /3.@.@.B(B%g['RR )Cs   /-/c                     t        j                  i       }d|d<   | j                  j                  d| j                  |      S )zz
        Internal helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        application/jsonAcceptGETr   )r   r   r8   fetch_with_response_infor|   r   s     r   _fetchzConnectAppContext._fetch  sB     ))B-.}}55dii 6 
 	
r   c                     | j                         \  }}}t        | j                  || j                  d   | j                  d         S )rG   r!   r"   r-   )r   r   r8   r1   r3   r    r   s      r   rH   zConnectAppContext.fetch  sD     A!MM}5u%	
 	
r   c                     | j                         \  }}}t        | j                  || j                  d   | j                  d         }t	        |||      S )z
        Fetch the ConnectAppInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r!   r"   r-   r   )r   r   r8   r1   r   r3   r    r   r   instances        r   rM   z&ConnectAppContext.fetch_with_http_info  sS     )-%g%MM}5u%	
 k7SSr   c                    K   t        j                  i       }d|d<   | j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   r   N)r   r   r8   fetch_with_response_info_asyncr|   r   s     r   _fetch_asynczConnectAppContext._fetch_async  sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d   | j                  d         S 7 ;w)rJ   Nr!   r"   r-   )r   r   r8   r1   r   s      r   rK   zConnectAppContext.fetch_async  sS      #//11A!MM}5u%	
 	
 2s   AA<Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d   | j                  d         }t	        |||      S 7 Iw)z
        Asynchronous coroutine to fetch the ConnectAppInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr!   r"   r-   r   )r   r   r8   r1   r   r   s        r   rO   z,ConnectAppContext.fetch_with_http_info_async  sc      /3.?.?.A(A%g%MM}5u%	
 k7SS )Bs   A"A A
A"r$   r%   r&   r'   r(   r)   r*   r+   r   c	                     t        j                  |||||||t        j                  |d       d      }	t        j                  i       }
d|
d<   d|
d<   | j                  j                  d| j                  |	|
      S )	z{
        Internal helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        c                     | S rq   r   es    r   <lambda>z+ConnectAppContext._update.<locals>.<lambda>      A r   AuthorizeRedirectUrlCompanyNameDeauthorizeCallbackMethodDeauthorizeCallbackUrlDescriptionFriendlyNameHomepageUrlPermissions!application/x-www-form-urlencodedContent-Typer   r   POSTr   r,   r   r   )r   r   r
   mapr8   update_with_response_infor|   r3   r$   r%   r&   r'   r(   r)   r*   r+   r   r   s              r   _updatezConnectAppContext._update  s    ( yy(>+-H*B* -+(}}[+F	
 ))B-"E.}}66tyytW 7 
 	
r   c	           
          | j                  ||||||||      \  }	}
}
t        | j                  |	| j                  d   | j                  d         S )rQ   rR   r!   r"   r-   )r   r   r8   r1   r3   r$   r%   r&   r'   r(   r)   r*   r+   r    r   s              r   rS   zConnectAppContext.update+  sf    6 #9%(C%=#'%# % 	
A "MM}5u%	
 	
r   c	           
          | j                  ||||||||      \  }	}
}t        | j                  |	| j                  d   | j                  d         }t	        ||
|      S )a1  
        Update the ConnectAppInstance and return response metadata

        :param authorize_redirect_url: The URL to redirect the user to after we authenticate the user and obtain authorization to access the Connect App.
        :param company_name: The company name to set for the Connect App.
        :param deauthorize_callback_method: The HTTP method to use when calling `deauthorize_callback_url`.
        :param deauthorize_callback_url: The URL to call using the `deauthorize_callback_method` to de-authorize the Connect App.
        :param description: A description of the Connect App.
        :param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.
        :param homepage_url: A public URL where users can obtain more information about this Connect App.
        :param permissions: A comma-separated list of the permissions you will request from the users of this ConnectApp.  Can include: `get-all` and `post-all`.

        :returns: ApiResponse with instance, status code, and headers
        rR   r!   r"   r-   r   )r   r   r8   r1   r   r3   r$   r%   r&   r'   r(   r)   r*   r+   r    r   r   r   s                r   rZ   z'ConnectAppContext.update_with_http_infoW  su    6 )-#9%(C%=#'%# )5 	)
%g &MM}5u%	
 k7SSr   c	                   K   t        j                  |||||||t        j                  |d       d      }	t        j                  i       }
d|
d<   d|
d<   | j                  j                  d| j                  |	|
       d	{   S 7 w)
z
        Internal async helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        c                     | S rq   r   r   s    r   r   z1ConnectAppContext._update_async.<locals>.<lambda>  r   r   r   r   r   r   r   r   r   N)r   r   r
   r   r8   update_with_response_info_asyncr|   r   s              r   _update_asynczConnectAppContext._update_async  s     ( yy(>+-H*B* -+(}}[+F	
 ))B-"E.]]BBtyytW C 
 
 	
 
s   A?BBBc	           
         K   | j                  ||||||||       d{   \  }	}
}
t        | j                  |	| j                  d   | j                  d         S 7 ;w)rV   rR   Nr!   r"   r-   )r   r   r8   r1   r   s              r   rW   zConnectAppContext.update_async  sv     6 #00#9%(C%=#'%# 1 	
 	
A "MM}5u%	
 	
	
s   AA<Ac	           
         K   | j                  ||||||||       d{   \  }	}
}t        | j                  |	| j                  d   | j                  d         }t	        ||
|      S 7 Iw)aK  
        Asynchronous coroutine to update the ConnectAppInstance and return response metadata

        :param authorize_redirect_url: The URL to redirect the user to after we authenticate the user and obtain authorization to access the Connect App.
        :param company_name: The company name to set for the Connect App.
        :param deauthorize_callback_method: The HTTP method to use when calling `deauthorize_callback_url`.
        :param deauthorize_callback_url: The URL to call using the `deauthorize_callback_method` to de-authorize the Connect App.
        :param description: A description of the Connect App.
        :param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.
        :param homepage_url: A public URL where users can obtain more information about this Connect App.
        :param permissions: A comma-separated list of the permissions you will request from the users of this ConnectApp.  Can include: `get-all` and `post-all`.

        :returns: ApiResponse with instance, status code, and headers
        rR   Nr!   r"   r-   r   )r   r   r8   r1   r   r   s                r   r\   z-ConnectAppContext.update_with_http_info_async  s     6 /3.@.@#9%(C%=#'%# /A 	/
 	)
%g &MM}5u%	
 k7SS!	)
s   A+A)A
A+c                     dj                  d | j                  j                         D              }dj                  |      S )r^   r_   c              3   F   K   | ]  \  }}d j                  ||        ywra   rb   rd   s      r   rh   z-ConnectAppContext.__repr__.<locals>.<genexpr>  ri   rj   z'<Twilio.Api.V2010.ConnectAppContext {}>rk   rn   s     r   rp   zConnectAppContext.__repr__  s6     ((SDNN<P<P<RSS8??HHr   )#r   r   r   r   rs   r/   tupler   ru   r=   r   rC   r   r@   rE   r   r   rH   rM   r   rK   rO   r   rv   r   rr   r   r   rS   rZ   r   rW   r\   rp   rw   rx   s   @r   r7   r7   J  sa   
 
c 
 
&
 
 S{ S
U 
D S; S
 
 
) 
Tk T 
E 
 
#5 
T+ T$ 6<\\+1<<:@,,7=||*0,,,2LL+1<< LL(
 %c6k 2(
 CK((
 &+3;%7	(

 #(V"4(
 3;'(
 S&[)(
 CK((
 0169
(
 
(
X 6<\\+1<<:@,,7=||*0,,,2LL+1<< LL*
 %c6k 2*
 CK(*
 &+3;%7	*

 #(V"4*
 3;'*
 S&[)*
 CK(*
 0169
*
 
*
\ 6<\\+1<<:@,,7=||*0,,,2LL+1<< LL+T %c6k 2+T CK(+T &+3;%7	+T
 #(V"4+T 3;'+T S&[)+T CK(+T 0169
+T 
+T^ 6<\\+1<<:@,,7=||*0,,,2LL+1<< LL(
 %c6k 2(
 CK((
 &+3;%7	(

 #(V"4(
 3;'(
 S&[)(
 CK((
 0169
(
 
(
X 6<\\+1<<:@,,7=||*0,,,2LL+1<< LL*
 %c6k 2*
 CK(*
 &+3;%7	*

 #(V"4*
 3;'*
 S&[)*
 CK(*
 0169
*
 
*
\ 6<\\+1<<:@,,7=||*0,,,2LL+1<< LL+T %c6k 2+T CK(+T &+3;%7	+T
 #(V"4+T 3;'+T S&[)+T CK(+T 0169
+T 
+TZI# Ir   r7   c                   2    e Zd Zdeeef   defdZdefdZy)ConnectAppPager    r5   c                 L    t        | j                  || j                  d         S )zp
        Build an instance of ConnectAppInstance

        :param payload: Payload response from the API
        r!   )r!   )r   r8   r1   )r3   r    s     r   get_instancezConnectAppPage.get_instance  s%     "MM7}0M
 	
r   c                      y)r^   z!<Twilio.Api.V2010.ConnectAppPage>r   r9   s    r   rp   zConnectAppPage.__repr__       3r   N)	r   r   r   r   rs   r   r   r   rp   r   r   r   r   r     s*    
DcN 
7I 
3# 3r   r   c            	           e Zd Zdedef fdZ	 	 ddee   dee   dee	   fdZ
	 	 ddee   dee   dee	   fdZ	 	 ddee   dee   defd	Z	 	 ddee   dee   defd
Z	 	 ddee   dee   dee	   fdZ	 	 ddee   dee   dee	   fdZ	 	 ddee   dee   defdZ	 	 ddee   dee   defdZej.                  ej.                  ej.                  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.                  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.                  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.                  fdeeef   deeef   deeef   defdZdedefdZdedefdZ dede!fdZ"dede!fdZ#defdZ$ xZ%S )ConnectAppListr   r!   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the ConnectAppList

        :param version: Version that contains the resource
        :param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resources to read.

        r!   z(/Accounts/{account_sid}/ConnectApps.jsonNr   r{   )r3   r   r!   r4   s      r   r/   zConnectAppList.__init__(  sA     	! ;
 F>EEWW	r   limit	page_sizer5   c                     | j                   j                  ||      }| j                  |d         }| j                   j                  ||d         S )a`  
        Streams ConnectAppInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        r   r   r   )r8   read_limitspagestreamr3   r   r   limitsr   s        r   r   zConnectAppList.stream8  sJ    ( **5)<yy6+#6y7}}##D&/::r   c                    K   | j                   j                  ||      }| j                  |d          d{   }| j                   j                  ||d         S 7 #w)ao  
        Asynchronously streams ConnectAppInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        r   r   Nr   )r8   r   
page_asyncstream_asyncr   s        r   r   zConnectAppList.stream_asyncQ  sW     ( **5)<__vk/B_CC}}))$w@@ Ds   5AA$Ac                     | j                   j                  ||      }| j                  |d         }| j                   j                  |j                  |d         }||j
                  |j                  fS )a  
        Streams ConnectAppInstance and returns headers from first page


        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: tuple of (generator, status_code, headers) where generator yields instances
        r   r   r   )r8   r   page_with_http_infor   r   r   r   r3   r   r   r   page_response	generators         r   stream_with_http_infoz$ConnectAppList.stream_with_http_infoj  sk    $ **5)<006+;N0OMM((););VG_M	=44m6K6KLLr   c                   K   | j                   j                  ||      }| j                  |d          d{   }| j                   j                  |j                  |d         }||j
                  |j                  fS 7 Fw)a  
        Asynchronously streams ConnectAppInstance and returns headers from first page


        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: tuple of (generator, status_code, headers) where generator yields instances
        r   r   Nr   )r8   r   page_with_http_info_asyncr   r   r   r   r   s         r   stream_with_http_info_asyncz*ConnectAppList.stream_with_http_info_async  s     $ **5)<"<<[) = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   5B A>AB c                 :    t        | j                  ||            S )a  
        Lists ConnectAppInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        r   r   )listr   )r3   r   r   s      r   r   zConnectAppList.list  s(    & KK#  
 	
r   c                 z   K   | j                  ||       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)a  
        Asynchronously lists ConnectAppInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        r   N)r   )r3   r   r   records       r   
list_asynczConnectAppList.list_async  sT     * '+&7&7# '8 ' !
 
 !
 
 	
 
s0   ;.;620
26;26;c                 b    | j                  ||      \  }}}t        |      }t        |||      S )a  
        Lists ConnectAppInstance and returns headers from first page


        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: ApiResponse with list of instances, status code, and headers
        r   r   )r   r   r   )r3   r   r   r   r   r   rm   s          r   list_with_http_infoz"ConnectAppList.list_with_http_info  sA    $ +/*D*D +E +
'	; Y;PPr   c                    K   | j                  ||       d{   \  }}}|2 cg c3 d{   }|7 7 	6 nc c}w }}t        |||      S w)a  
        Asynchronously lists ConnectAppInstance and returns headers from first page


        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: ApiResponse with list of instances, status code, and headers
        r   Nr   )r   r   )r3   r   r   r   r   r   r   rm   s           r   list_with_http_info_asyncz(ConnectAppList.list_with_http_info_async  sf     $ 150P0P 1Q 1
 +
'	; -666&	+
 7666;PPs4   A4A:86
8:A8:A
page_tokenpage_numberc                     t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      }t        | j                  || j                        S )ay  
        Retrieve a single page of ConnectAppInstance records from the API.
        Request is executed immediately

        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of ConnectAppInstance
        	PageTokenr   PageSizer   r   r   r   r   r   r,   paramsr   )r   r   r8   r   r|   r   r1   r3   r   r   r   r   r   responses          r   r   zConnectAppList.page  s      yy'#%
 ))^-PQR.==%%diig & 
 dmmXt~~FFr   c                   K   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  || j                        S 7 %w)	a  
        Asynchronously retrieve a single page of ConnectAppInstance records from the API.
        Request is executed immediately

        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of ConnectAppInstance
        r   r   r   r   r   r   r   N)r   r   r8   r   r|   r   r1   r   s          r   r   zConnectAppList.page_async$  s       yy'#%
 ))^-PQR.11diig 2 
 
 dmmXt~~FF
s   A"B$B
%&Bc                 $   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      \  }}}t        | j                  || j                        }	t        |	||      S )	a\  
        Retrieve a single page with response metadata


        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: ApiResponse with ConnectAppPage, status code, and headers
        r   r   r   r   r   r   r   r   )r   r   r8   page_with_response_infor|   r   r1   r   
r3   r   r   r   r   r   r   r   response_headersr   s
             r   r   z"ConnectAppList.page_with_http_infoE  s      yy'#%
 ))^-PQR.26--2W2Wdiig 3X 3
/+/ dmmXt~~F+GWXXr   c                 @  K   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   \  }}}t        | j                  || j                        }	t        |	||	      S 7 7w)
ak  
        Asynchronously retrieve a single page with response metadata


        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: ApiResponse with ConnectAppPage, status code, and headers
        r   r   r   r   r   r   r   Nr   )r   r   r8   page_with_response_info_asyncr|   r   r1   r   r   s
             r   r   z(ConnectAppList.page_with_http_info_asyncg  s       yy'#%
 ))^-PQR. --==$))D' >   	0+/
 dmmXt~~F+GWXXs   A"B$B%8B
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   || j
                        S )z
        Retrieve a specific page of ConnectAppInstance records from the API.
        Request is executed immediately

        :param target_url: API-generated URL for the requested results page

        :returns: Page of ConnectAppInstance
        r   )r8   domaintwiliorequestr   r1   r3   r  r   s      r   get_pagezConnectAppList.get_page  s=     ==''..66ujIdmmXt~~FFr   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   || j
                        S 7 %w)a  
        Asynchronously retrieve a specific page of ConnectAppInstance records from the API.
        Request is executed immediately

        :param target_url: API-generated URL for the requested results page

        :returns: Page of ConnectAppInstance
        r   N)r8   r  r  request_asyncr   r1   r  s      r   get_page_asynczConnectAppList.get_page_async  sJ      --44BB5*UUdmmXt~~FF Vs   4AA&Ar"   c                 L    t        | j                  | j                  d   |      S z
        Constructs a ConnectAppContext

        :param sid: The Twilio-provided string that uniquely identifies the ConnectApp resource to update.
        r!   r-   r7   r8   r1   r3   r"   s     r   r0   zConnectAppList.get  %     !MMt~~m'D#
 	
r   c                 L    t        | j                  | j                  d   |      S r  r  r  s     r   __call__zConnectAppList.__call__  r  r   c                      y)r^   z!<Twilio.Api.V2010.ConnectAppList>r   r9   s    r   rp   zConnectAppList.__repr__  r   r   )NN)&r   r   r   r   rs   r/   r   intr   r   r   r	   r   r   r   r   r   r   r   r   r   r   r   rv   r   rr   r   r   r   r   r   r  r
  r7   r0   r  rp   rw   rx   s   @r   r   r   &  s   X Xc X$  $#';}; C=; 
$	%	;6  $#'A}A C=A 
)	*	A6  $#'M}M C=M 
	M4  $#'M}M C=M 
	M8  $#'
}
 C=
 
 	!	
8  $#'
}
 C=
 
 	!	
:  $#'Q}Q C=Q 
	Q6  $#'Q}Q C=Q 
	Q6 *0*0,,(.	G#v+&G 3;'G f%	G
 
GF *0*0,,(.	G#v+&G 3;'G f%	G
 
GF *0*0,,(.	 Y#v+& Y 3;' Y f%	 Y
 
 YH *0*0,,(.	"Y#v+&"Y 3;'"Y f%	"Y
 
"YH
G3 
G> 
G
Gs 
G~ 
G
s 
0 

C 
$5 
3# 3r   r   N)__doc__typingr   r   r   r   r   r   r	   twilio.baser
   r   twilio.base.api_responser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r7   r   r   r   r   r   <module>r     sh    M L L ) 0 8 : 2 ' !nJ) nJb	DI DIN3T 3*W3\ W3r   