
    gj                         S r SSKJrJrJrJrJrJrJr  SSK	J
r
Jr  SSKJr  SSKJr  SSKJr  SSKJr  SSKJr   " S	 S
\5      r " S S\5      r " S S\5      r " S S\5      rg)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)InstanceContext)InstanceResource)ListResource)Version)Pagec                   ,  ^  \ rS rSr " S S\5      r  SS\S\\\	4   S\S\
\   4U 4S jjjr\SS
 j5       rS	\4S jrS	\4S jrSS jrSS jr\R(                  \R(                  \R(                  \R(                  \R(                  \R(                  \R(                  \R(                  4S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\S   \4   S	S 4S jjr\R(                  \R(                  \R(                  \R(                  \R(                  \R(                  \R(                  \R(                  4S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\S   \4   S	S 4S jjrS	\4S jrSrU =r$ )ConnectAppInstance   c                       \ rS rSrSrSrSrg)ConnectAppInstance.Permission   zget-allzpost-all N)__name__
__module____qualname____firstlineno__GET_ALLPOST_ALL__static_attributes__r       q/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/api/v2010/account/connect_app.py
Permissionr      s    r   r!   versionpayloadaccount_sidsidc                 P  > [         TU ]  U5        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l	        UR                  S5      U l
        UR                  S	5      U l        UR                  S
5      U l        UR                  S5      U l        UU=(       d    U R                  S.U l        S U l        g )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    r2   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                     U R                   c4  [        U R                  U R                  S   U R                  S   S9U l         U R                   $ )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%   r0   )r5   ConnectAppContext_versionr4   r6   s    r    _proxyConnectAppInstance._proxyO   sE     == - NN=9NN5)DM
 }}r   c                 6    U R                   R                  5       $ )U
Deletes the ConnectAppInstance


:returns: True if delete succeeds, False otherwise
)r>   deleter=   s    r    rB   ConnectAppInstance.delete_   s     {{!!##r   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)q
Asynchronous coroutine that deletes the ConnectAppInstance


:returns: True if delete succeeds, False otherwise
N)r>   delete_asyncr=   s    r    rF   ConnectAppInstance.delete_asynch   s       [[--////   '%'c                 6    U R                   R                  5       $ )I
Fetch the ConnectAppInstance


:returns: The fetched ConnectAppInstance
)r>   fetchr=   s    r    rK   ConnectAppInstance.fetchq   s     {{  ""r   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)c
Asynchronous coroutine to fetch the ConnectAppInstance


:returns: The fetched ConnectAppInstance
N)r>   fetch_asyncr=   s    r    rO   ConnectAppInstance.fetch_asyncz   s       [[,,....rH   r'   r(   r)   r*   r+   r,   r-   r.   r   c	                 B    U R                   R                  UUUUUUUUS9$ )  
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	r6   r'   r(   r)   r*   r+   r,   r-   r.   s	            r    rT   ConnectAppInstance.update   s8    6 {{!!#9%(C%=#'%# " 	
 		
r   c	                 ^   #    U R                   R                  UUUUUUUUS9I Sh  vN $  N7f)  
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
rS   N)r>   update_asyncrU   s	            r    rY   ConnectAppInstance.update_async   sE     6 [[--#9%(C%=#'%# . 	
 	
 		
 	
s   $-+-c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )N
Provide a friendly representation

:returns: Machine friendly representation
 c              3   H   #    U  H  u  pS R                  X5      v   M     g7fz{}={}Nformat.0kvs      r    	<genexpr>.ConnectAppInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z(<Twilio.Api.V2010.ConnectAppInstance {}>joinr4   itemsra   r6   contexts     r    __repr__ConnectAppInstance.__repr__   s6     ((SDNN<P<P<RSS9@@IIr   )r5   r4   r$   r'   r(   r)   r*   r+   r,   r-   r.   r%   r/   N)r9   r;   )r9   r   )r   r   r   r   objectr!   r   r   strr   r   r2   propertyr>   boolrB   rF   rK   rO   r   unsetr   r   rT   rY   ro   r   __classcell__r7   s   @r    r   r      sx   V & "!:!: c3h!: 	!:
 c]!: !:F  $ $0D 0#/ 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 Jr   r   c                     ^  \ rS rSrS\S\S\4U 4S jjrS\4S jrS\4S jr	S\
4S	 jrS\
4S
 jr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\S   \4   S\
4S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\S   \4   S\
4S jjrS\4S jrSrU =r$ )r;      r"   r$   r%   c                 z   > [         TU ]  U5        UUS.U l        SR                  " S0 U R                  D6U l        g)aD  
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.
r0   z./Accounts/{account_sid}/ConnectApps/{sid}.jsonNr   r1   r2   r4   ra   _uri)r6   r"   r$   r%   r7   s       r    r2   ConnectAppContext.__init__   sD     	! '
 EKK 
nn
	r   r9   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )rA   DELETEmethodr/   headers)r   ofr<   rB   r}   r6   r   s     r    rB   ConnectAppContext.delete   s1     ))B-}}##8G#TTr   c                    #    [         R                  " 0 5      nU R                  R                  SU R                  US9I Sh  vN $  N7f)rE   r   r   N)r   r   r<   rF   r}   r   s     r    rF   ConnectAppContext.delete_async   sE      ))B-]]//G 0 
 
 	
 
s   ?AAAc                     [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9n[        U R                  UU R                  S   U R                  S   S9$ )rJ   application/jsonAcceptGETr   r$   r%   r0   )r   r   r<   rK   r}   r   r4   r6   r   r#   s      r    rK   ConnectAppContext.fetch  si     ))B-.--%%U		7%S!MM}5u%	
 	
r   c                    #    [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9I Sh  vN n[        U R                  UU R                  S   U R                  S   S9$  N47f)	rN   r   r   r   r   Nr$   r%   r0   )r   r   r<   rO   r}   r   r4   r   s      r    rO   ConnectAppContext.fetch_async  s}      ))B-.11dii 2 
 
 "MM}5u%	
 	
	
s   AA=A;5A=r'   r(   r)   r*   r+   r,   r-   r.   r   c	                 V   [         R                  " UUUUUUU[        R                  " US 5      S.5      n	[         R                  " 0 5      n
SU
S'   SU
S'   U R                  R                  SU R                  XS9n[        U R                  UU R                  S	   U R                  S
   S9$ )rR   c                     U $ rq   r   es    r    <lambda>*ConnectAppContext.update.<locals>.<lambda>Y      Ar   AuthorizeRedirectUrlCompanyNameDeauthorizeCallbackMethodDeauthorizeCallbackUrlDescriptionFriendlyNameHomepageUrlPermissions!application/x-www-form-urlencodedContent-Typer   r   POSTr   r/   datar   r$   r%   r0   )	r   r   r
   mapr<   rT   r}   r   r4   r6   r'   r(   r)   r*   r+   r,   r-   r.   r   r   r#   s               r    rT   ConnectAppContext.update4  s    8 yy(>+-H*B* -+(}}[+F	
 ))B-"E.--&&tyyt ' 
 "MM}5u%	
 	
r   c	                 r  #    [         R                  " UUUUUUU[        R                  " US 5      S.5      n	[         R                  " 0 5      n
SU
S'   SU
S'   U R                  R                  SU R                  XS9I S	h  vN n[        U R                  UU R                  S
   U R                  S   S9$  N47f)rX   c                     U $ rq   r   r   s    r    r   0ConnectAppContext.update_async.<locals>.<lambda>  r   r   r   r   r   r   r   r   r   Nr$   r%   r0   )	r   r   r
   r   r<   rY   r}   r   r4   r   s               r    rY   ConnectAppContext.update_asyncm  s     8 yy(>+-H*B* -+(}}[+F	
 ))B-"E.22tyyt 3 
 
 "MM}5u%	
 	
	
s   A>B7 B55B7c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )r\   r]   c              3   H   #    U  H  u  pS R                  X5      v   M     g7fr_   r`   rb   s      r    rf   -ConnectAppContext.__repr__.<locals>.<genexpr>  rh   ri   z'<Twilio.Api.V2010.ConnectAppContext {}>rj   rm   s     r    ro   ConnectAppContext.__repr__  s6     ((SDNN<P<P<RSS8??HHr   r4   r}   )r   r   r   r   r   rs   r2   ru   rB   rF   r   rK   rO   r   rv   r   rr   r   rT   rY   ro   r   rw   rx   s   @r    r;   r;      s=   
 
c 
 
&
U 
U
D 

) 
*
#5 
2 6<\\+1<<:@,,7=||*0,,,2LL+1<< LL7
 %c6k 27
 CK(7
 &+3;%7	7

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

 #(V"47
 3;'7
 S&[)7
 CK(7
 0169
7
 
7
rI# I Ir   r;   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)ConnectAppPagei  r#   r9   c                 D    [        U R                  XR                  S   S9$ )zX
Build an instance of ConnectAppInstance

:param payload: Payload response from the API
r$   )r$   )r   r<   r4   )r6   r#   s     r    get_instanceConnectAppPage.get_instance  s#     "MM7}0M
 	
r   c                     g)r\   z!<Twilio.Api.V2010.ConnectAppPage>r   r=   s    r    ro   ConnectAppPage.__repr__       3r   r   N)r   r   r   r   r   rs   r   r   r   ro   r   r   r   r    r   r     s*    
DcN 
7I 
3# 3r   r   c            	       F  ^  \ rS rSrS\S\4U 4S jjr  SS\\   S\\   S\	\
   4S jjr  SS\\   S\\   S\\
   4S	 jjr  SS\\   S\\   S\\
   4S
 jjr  SS\\   S\\   S\\
   4S jjr\R$                  \R$                  \R$                  4S\\\4   S\\\4   S\\\4   S\4S jjr\R$                  \R$                  \R$                  4S\\\4   S\\\4   S\\\4   S\4S jjrS\S\4S jrS\S\4S jrS\S\4S jrS\S\4S jrS\4S jrSrU =r$ )ConnectAppListi  r"   r$   c                 x   > [         TU ]  U5        SU0U l        SR                  " S0 U R                  D6U l        g)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|   )r6   r"   r$   r7   s      r    r2   ConnectAppList.__init__  s=     	! ;
 ?EEWW	r   limit	page_sizer9   c                     U R                   R                  X5      nU R                  US   S9nU R                   R                  XCS   5      $ )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   )r<   read_limitspagestreamr6   r   r   limitsr   s        r    r   ConnectAppList.stream  sF    ( **5<yy6+#6y7}}##D/::r   c                    #    U R                   R                  X5      nU R                  US   S9I Sh  vN nU R                   R                  XCS   5      $  N"7f)a  
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   )r<   r   
page_asyncstream_asyncr   s        r    r   ConnectAppList.stream_async  sR     ( **5<__vk/B_CC}}))$w@@ Ds   1AA#Ac                 4    [        U R                  UUS95      $ )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   )r6   r   r   s      r    r   ConnectAppList.list	  s(    & KK#  
 	
r   c                 v   #    U R                  UUS9I Sh  vN  Vs/ s Sh  vN nUPM   N N

 sn$ s  snf 7f)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   )r6   r   r   records       r    
list_asyncConnectAppList.list_async#  sQ     * '+&7&7# '8 ' ! !
 
 !
 	
 
s0   9,940.
049049
page_tokenpage_numberc                     [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XES9n[        U R                  X`R                  5      $ )aA  
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   r<   r   r}   r   r4   r6   r   r   r   r   r   responses          r    r   ConnectAppList.page>  s{      yy'#%
 ))^-PQR.==%%dii & 
 dmmX~~FFr   c                   #    [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XES9I Sh  vN n[        U R                  X`R                  5      $  N$7f)	aP  
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   r<   r   r}   r   r4   r   s          r    r   ConnectAppList.page_async_  s       yy'#%
 ))^-PQR.11dii 2 
 
 dmmX~~FF
s   A B	"B#%B	
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   X R
                  5      $ )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   )r<   domaintwiliorequestr   r4   r6   r   r   s      r    get_pageConnectAppList.get_page  s;     ==''..66ujIdmmX~~FFr   c                    #    U R                   R                  R                  R                  SU5      I Sh  vN n[	        U R                   X R
                  5      $  N$7f)z
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)r<   r   r   request_asyncr   r4   r   s      r    get_page_asyncConnectAppList.get_page_async  sG      --44BB5*UUdmmX~~FF Vs   4AA%Ar%   c                 F    [        U R                  U R                  S   US9$ z
Constructs a ConnectAppContext

:param sid: The Twilio-provided string that uniquely identifies the ConnectApp resource to update.
r$   r0   r;   r<   r4   r6   r%   s     r    r3   ConnectAppList.get  %     !MMt~~m'D#
 	
r   c                 F    [        U R                  U R                  S   US9$ r   r   r   s     r    __call__ConnectAppList.__call__  r   r   c                     g)r\   z!<Twilio.Api.V2010.ConnectAppList>r   r=   s    r    ro   ConnectAppList.__repr__  r   r   r   )NN) r   r   r   r   r   rs   r2   r   intr   r   r   r	   r   r   r   r   r   rv   r   rr   r   r   r   r   r   r;   r3   r   ro   r   rw   rx   s   @r    r   r     s$   X Xc X$  $#';}; C=; 
$	%	;6  $#'A}A C=A 
)	*	A6  $#'
}
 C=
 
 	!	
8  $#'
}
 C=
 
 	!	
: *0*0,,(.	G#v+&G 3;'G f%	G
 
GF *0*0,,(.	G#v+&G 3;'G f%	G
 
GB
G3 
G> 
G
Gs 
G~ 
G
s 
0 

C 
$5 
3# 3 3r   r   N)__doc__typingr   r   r   r   r   r   r	   twilio.baser
   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r;   r   r   r   r   r    <module>r     se    M L L ) 8 : 2 ' !~J) ~JBTI TIn3T 3*m3\ m3r   