
    gsX                         S r SSKJ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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 - Chat
 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.
    )datetime)AnyDictListOptionalUnionIteratorAsyncIterator)deserialize	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S	\4S jrSrU =r$ )BindingInstance   c                        \ rS rSrSrSrSrSrg)BindingInstance.BindingType   gcmapnfcm N)__name__
__module____qualname____firstlineno__GCMAPNFCM__static_attributes__r       k/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/chat/v2/service/binding.pyBindingTyper      s    r%   r'   versionpayloadservice_sidsidc                   > [         TU ]  U5        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        [        R                  " UR                  S5      5      U l        [        R                  " UR                  S5      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+   account_sidr*   date_createddate_updatedendpointidentitycredential_sidbinding_typemessage_typesurllinksr*   r+   )super__init__getr+   r-   r*   r   iso8601_datetimer.   r/   r0   r1   r2   r3   r4   r5   r6   	_solution_context)selfr(   r)   r*   r+   	__class__s        r&   r9   BindingInstance.__init__/   s"    	!")++e"4*1++m*D*1++m*D0;0L0LKK'1
 1<0L0LKK'1
 (/{{:'>'.{{:'>-4[[9I-JEL[[F
 3:++o2N")++e"429++g2F
 '?$((
 37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: BindingContext for this BindingInstance
r*   r+   r7   )r=   BindingContext_versionr<   r>   s    r&   _proxyBindingInstance._proxyQ   sE     == * NN=9NN5)DM
 }}r%   c                 6    U R                   R                  5       $ )R
Deletes the BindingInstance


:returns: True if delete succeeds, False otherwise
)rF   deleterE   s    r&   rJ   BindingInstance.deletea   s     {{!!##r%   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)n
Asynchronous coroutine that deletes the BindingInstance


:returns: True if delete succeeds, False otherwise
N)rF   delete_asyncrE   s    r&   rN   BindingInstance.delete_asyncj   s       [[--////   '%'c                 6    U R                   R                  5       $ )C
Fetch the BindingInstance


:returns: The fetched BindingInstance
)rF   fetchrE   s    r&   rS   BindingInstance.fetchs   s     {{  ""r%   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)]
Asynchronous coroutine to fetch the BindingInstance


:returns: The fetched BindingInstance
N)rF   fetch_asyncrE   s    r&   rW   BindingInstance.fetch_async|   s       [[,,....rP   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>+BindingInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z#<Twilio.Chat.V2.BindingInstance {}>joinr<   itemsr_   r>   contexts     r&   __repr__BindingInstance.__repr__   s6     ((SDNN<P<P<RSS4;;GDDr%   )r=   r<   r-   r3   r2   r.   r/   r0   r1   r6   r4   r*   r+   r5   N)rA   rC   )rA   r   )r   r   r   r    objectr'   r   r   strr   r   r9   propertyrF   boolrJ   rN   rS   rW   rm   r$   __classcell__r?   s   @r&   r   r      s    f 
( " 7 7 c3h 7 	 7
 c] 7  7D  $ $0D 0#/E# E E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S\4S jrSrU =r$ )rC      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)a  
Initialize the BindingContext

:param version: Version that contains the resource
:param service_sid: The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Binding resource from.
:param sid: The SID of the Binding resource to fetch.
r7   z&/Services/{service_sid}/Bindings/{sid}Nr   r8   r9   r<   r_   _uri)r>   r(   r*   r+   r?   s       r&   r9   BindingContext.__init__   s>     	! '
 =CCUdnnU	r%   rA   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )rI   DELETEmethoduriheaders)r   ofrD   rJ   rz   r>   r   s     r&   rJ   BindingContext.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)rM   r}   r~   N)r   r   rD   rN   rz   r   s     r&   rN   BindingContext.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$ )rR   application/jsonAcceptGETr~   r*   r+   r7   )r   r   rD   rS   rz   r   r<   r>   r   r)   s      r&   rS   BindingContext.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)	rV   r   r   r   r~   Nr*   r+   r7   )r   r   rD   rW   rz   r   r<   r   s      r&   rW   BindingContext.fetch_async   s}      ))B-.11dii 2 
 
 MM}5u%	
 	
	
s   AA=A;5A=c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rZ   r[   c              3   H   #    U  H  u  pS R                  X5      v   M     g7fr]   r^   r`   s      r&   rd   *BindingContext.__repr__.<locals>.<genexpr>   rf   rg   z"<Twilio.Chat.V2.BindingContext {}>rh   rk   s     r&   rm   BindingContext.__repr__   s6     ((SDNN<P<P<RSS3::7CCr%   r<   rz   )r   r   r   r    r   rq   r9   rs   rJ   rN   r   rS   rW   rm   r$   rt   ru   s   @r&   rC   rC      sg    V Vc V V"
U 
U
D 

 
*
? 
.D# D Dr%   rC   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)BindingPage   r)   rA   c                 D    [        U R                  XR                  S   S9$ )zU
Build an instance of BindingInstance

:param payload: Payload response from the API
r*   )r*   )r   rD   r<   )r>   r)   s     r&   get_instanceBindingPage.get_instance   s#     MM7}0M
 	
r%   c                     g)rZ   z<Twilio.Chat.V2.BindingPage>r   rE   s    r&   rm   BindingPage.__repr__        .r%   r   N)r   r   r   r    r   rq   r   r   r   rm   r$   r   r%   r&   r   r      s)    
DcN 
 
.# .r%   r   c                   >  ^  \ rS rSrS\S\4U 4S jjr\R                  \R                  SS4S\	\
S   \4   S\	\
\   \4   S	\\   S
\\   S\\   4
S jjr\R                  \R                  SS4S\	\
S   \4   S\	\
\   \4   S	\\   S
\\   S\\   4
S jjr\R                  \R                  SS4S\	\
S   \4   S\	\
\   \4   S	\\   S
\\   S\
\   4
S jjr\R                  \R                  SS4S\	\
S   \4   S\	\
\   \4   S	\\   S
\\   S\
\   4
S jjr\R                  \R                  \R                  \R                  \R                  4S\	\
S   \4   S\	\
\   \4   S\	\\4   S\	\\4   S
\	\\4   S\4S jjr\R                  \R                  \R                  \R                  \R                  4S\	\
S   \4   S\	\
\   \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$ )BindingListi  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 BindingList

:param version: Version that contains the resource
:param service_sid: The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Binding resources from.

r*   z /Services/{service_sid}/BindingsNr   ry   )r>   r(   r*   r?   s      r&   r9   BindingList.__init__	  s=     	! ;
 7==OO	r%   Nr3   r   r1   limit	page_sizerA   c                     U R                   R                  X45      nU R                  XUS   S9nU R                   R                  XeS   5      $ )a  
Streams BindingInstance 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 List[&quot;BindingInstance.BindingType&quot;] binding_type: The push technology used by the Binding resources to read.  Can be: `apn`, `gcm`, or `fcm`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
:param List[str] identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
: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   r3   r1   r   r   )rD   read_limitspagestreamr>   r3   r1   r   r   limitsr   s          r&   r   BindingList.stream  sP    0 **5<yy%F;DW  
 }}##D/::r%   c                    #    U R                   R                  X45      nU R                  XUS   S9I Sh  vN nU R                   R                  XeS   5      $  N"7f)a  
Asynchronously streams BindingInstance 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 List[&quot;BindingInstance.BindingType&quot;] binding_type: The push technology used by the Binding resources to read.  Can be: `apn`, `gcm`, or `fcm`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
:param List[str] identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
: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   )rD   r   
page_asyncstream_asyncr   s          r&   r   BindingList.stream_async8  s]     0 **5<__%F;DW % 
 
 }}))$w@@	
s   2AA#Ac           	      8    [        U R                  UUUUS95      $ )a  
Lists BindingInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param List[&quot;BindingInstance.BindingType&quot;] binding_type: The push technology used by the Binding resources to read.  Can be: `apn`, `gcm`, or `fcm`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
:param List[str] identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
: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
r3   r1   r   r   )listr   )r>   r3   r1   r   r   s        r&   r   BindingList.listW  s.    . KK)!#	  
 	
r%   c                 z   #    U R                  UU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 BindingInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param List[&quot;BindingInstance.BindingType&quot;] binding_type: The push technology used by the Binding resources to read.  Can be: `apn`, `gcm`, or `fcm`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
:param List[str] identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
: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   )r>   r3   r1   r   r   records         r&   
list_asyncBindingList.list_asyncw  sW     2 '+&7&7)!#	 '8 ' ! !
 
 !
 	
 
s0   ;.;620
26;26;
page_tokenpage_numberc                 V   [         R                  " [        R                  " US 5      [        R                  " US 5      UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XgS	9n[        U R                  XR                  5      $ )
a  
Retrieve a single page of BindingInstance records from the API.
Request is executed immediately

:param binding_type: The push technology used by the Binding resources to read.  Can be: `apn`, `gcm`, or `fcm`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
:param identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
: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 BindingInstance
c                     U $ ro   r   es    r&   <lambda>"BindingList.page.<locals>.<lambda>      Qr%   c                     U $ ro   r   r   s    r&   r   r         ar%   r'   Identity	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedr   r   r   r   r   paramsr   )	r   r   r   maprD   r   rz   r   r<   	r>   r3   r1   r   r   r   datar   responses	            r&   r   BindingList.page  s    ( yy(}}\;G%MM(K@'#%
 ))^-PQR.==%%dii & 
 4==(NNCCr%   c                 r  #    [         R                  " [        R                  " US 5      [        R                  " US 5      UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XgS	9I S
h  vN n[        U R                  XR                  5      $  N$7f)a  
Asynchronously retrieve a single page of BindingInstance records from the API.
Request is executed immediately

:param binding_type: The push technology used by the Binding resources to read.  Can be: `apn`, `gcm`, or `fcm`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
:param identity: The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
: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 BindingInstance
c                     U $ ro   r   r   s    r&   r   (BindingList.page_async.<locals>.<lambda>  r   r%   c                     U $ ro   r   r   s    r&   r   r     r   r%   r   r   r   r   r   r   r   N)	r   r   r   r   rD   r   rz   r   r<   r   s	            r&   r   BindingList.page_async  s     ( yy(}}\;G%MM(K@'#%
 ))^-PQR.11dii 2 
 
 4==(NNCC
s   BB7B5%B7
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   X R
                  5      $ )z
Retrieve a specific page of BindingInstance records from the API.
Request is executed immediately

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

:returns: Page of BindingInstance
r   )rD   domaintwiliorequestr   r<   r>   r   r   s      r&   get_pageBindingList.get_page  s;     ==''..66ujI4==(NNCCr%   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 BindingInstance records from the API.
Request is executed immediately

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

:returns: Page of BindingInstance
r   N)rD   r   r   request_asyncr   r<   r   s      r&   get_page_asyncBindingList.get_page_async  sG      --44BB5*UU4==(NNCC Vs   4AA%Ar+   c                 F    [        U R                  U R                  S   US9$ zT
Constructs a BindingContext

:param sid: The SID of the Binding resource to fetch.
r*   r7   rC   rD   r<   r>   r+   s     r&   r:   BindingList.get  %     MMt~~m'D#
 	
r%   c                 F    [        U R                  U R                  S   US9$ r   r   r   s     r&   __call__BindingList.__call__  r   r%   c                     g)rZ   z<Twilio.Chat.V2.BindingList>r   rE   s    r&   rm   BindingList.__repr__  r   r%   r   ) r   r   r   r    r   rq   r9   r   unsetr   r   rp   r   intr	   r   r   r
   r   r   r   r   r   r   r   r   rC   r:   r   rm   r$   rt   ru   s   @r&   r   r     s   P Pc P$ LR<<-3\\##';D!>?GH; S	6)*; }	;
 C=; 
/	";B LR<<-3\\##'AD!>?GHA S	6)*A }	A
 C=A 
	'AB LR<<-3\\##'
D!>?GH
 S	6)*
 }	

 C=
 
o	
D LR<<-3\\##'
D!>?GH
 S	6)*
 }	

 C=
 
o	
F LR<<-3\\)/*0,,(.%DD!>?GH%D S	6)*%D #v+&	%D
 3;'%D f%%D 
%DR LR<<-3\\)/*0,,(.%DD!>?GH%D S	6)*%D #v+&	%D
 3;'%D f%%D 
%DN
D3 
D; 
D
Ds 
D{ 
D
s 
~ 

C 
N 
.# . .r%   r   N)__doc__r   typingr   r   r   r   r   r	   r
   twilio.baser   r   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   rC   r   r   r   r%   r&   <module>r      sj     L L L 6 6 8 : 2 ' !sE& sEl`D_ `DF.$ .*Q., Q.r%   