
    gY                         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 - Conversations
 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   apngcmfcm N)__name__
__module____qualname____firstlineno__APNGCMFCM__static_attributes__r       t/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/conversations/v1/service/binding.pyBindingTyper      s    r%   r'   versionpayloadchat_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        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U=(       d    U R                  S.U l        S U l        g )Nr+   account_sidr*   credential_siddate_createddate_updatedendpointidentitybinding_typemessage_typesurlr*   r+   )super__init__getr+   r-   r*   r.   r   iso8601_datetimer/   r0   r1   r2   r3   r4   r5   	_solution_context)selfr(   r)   r*   r+   	__class__s        r&   r8   BindingInstance.__init__.   s    	!")++e"4*1++m*D/6{{;M/N-4[[9I-J0;0L0LKK'1
 1<0L0LKK'1
 (/{{:'>'.{{:'>EL[[F
 3:++o2N")++e"4 !1?$((
 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+   r6   )r<   BindingContext_versionr;   r=   s    r&   _proxyBindingInstance._proxyO   sF     == *!%0B!CNN5)DM
 }}r%   c                 6    U R                   R                  5       $ )R
Deletes the BindingInstance


:returns: True if delete succeeds, False otherwise
)rE   deleterD   s    r&   rI   BindingInstance.delete_   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)rE   delete_asyncrD   s    r&   rM   BindingInstance.delete_asynch   s       [[--////   '%'c                 6    U R                   R                  5       $ )C
Fetch the BindingInstance


:returns: The fetched BindingInstance
)rE   fetchrD   s    r&   rR   BindingInstance.fetchq   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)rE   fetch_asyncrD   s    r&   rV   BindingInstance.fetch_asyncz   s       [[,,....rO   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.Conversations.V1.BindingInstance {}>joinr;   itemsr^   r=   contexts     r&   __repr__BindingInstance.__repr__   s6     ((SDNN<P<P<RSS=DDWMMr%   )r<   r;   r-   r3   r*   r.   r/   r0   r1   r2   r4   r+   r5   N)r@   rB   )r@   r   )r   r   r   r    objectr'   r   r   strr   r   r8   propertyrE   boolrI   rM   rR   rV   rl   r$   __classcell__r>   s   @r&   r   r      s    f 
& "77 c3h7 	7
 c]7 7B  $ $0D 0#/N# N N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$ )rB      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)aE  
Initialize the BindingContext

:param version: Version that contains the resource
:param chat_service_sid: The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Binding resource is associated with.
:param sid: A 34 character string that uniquely identifies this resource.
r6   z+/Services/{chat_service_sid}/Bindings/{sid}Nr   r7   r8   r;   r^   _uri)r=   r(   r*   r+   r>   s       r&   r8   BindingContext.__init__   sD     	! !1
 BHH 
nn
	r%   r@   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )rH   DELETEmethoduriheaders)r   ofrC   rI   ry   r=   r   s     r&   rI   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)rL   r|   r}   N)r   r   rC   rM   ry   r   s     r&   rM   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$ )rQ   application/jsonAcceptGETr}   r*   r+   r6   )r   r   rC   rR   ry   r   r;   r=   r   r)   s      r&   rR   BindingContext.fetch   sj     ))B-.--%%U		7%SMM!^^,>?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)	rU   r   r   r   r}   Nr*   r+   r6   )r   r   rC   rV   ry   r   r;   r   s      r&   rV   BindingContext.fetch_async   s~      ))B-.11dii 2 
 
 MM!^^,>?u%	
 	
	
s   AA=A;5A=c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rY   rZ   c              3   H   #    U  H  u  pS R                  X5      v   M     g7fr\   r]   r_   s      r&   rc   *BindingContext.__repr__.<locals>.<genexpr>   re   rf   z+<Twilio.Conversations.V1.BindingContext {}>rg   rj   s     r&   rl   BindingContext.__repr__   s6     ((SDNN<P<P<RSS<CCGLLr%   r;   ry   )r   r   r   r    r   rp   r8   rr   rI   rM   r   rR   rV   rl   r$   rs   rt   s   @r&   rB   rB      sc    
 
3 
S 
&
U 
U
D 

 
*
? 
.M# M Mr%   rB   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)BindingPage   r)   r@   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   rC   r;   )r=   r)   s     r&   get_instanceBindingPage.get_instance   s$     MM7^^DV5W
 	
r%   c                     g)rY   z%<Twilio.Conversations.V1.BindingPage>r   rD   s    r&   rl   BindingPage.__repr__        7r%   r   N)r   r   r   r    r   rp   r   r   r   rl   r$   r   r%   r&   r   r      s)    
DcN 
 
7# 7r%   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 chat_service_sid: The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Binding resource is associated with.

r*   z%/Services/{chat_service_sid}/BindingsNr   rx   )r=   r(   r*   r>   s      r&   r8   BindingList.__init__	  s>     	!  0
 <BBTT^^T	r%   Nr3   r   r2   limit	page_sizer@   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 identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/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   r2   r   r   )rC   read_limitspagestreamr=   r3   r2   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 identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/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   )rC   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 identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/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   r2   r   r   )listr   )r=   r3   r2   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 identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/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   r2   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 identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/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 $ rn   r   es    r&   <lambda>"BindingList.page.<locals>.<lambda>      Qr%   c                     U $ rn   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   maprC   r   ry   r   r;   	r=   r3   r2   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 identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/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 $ rn   r   r   s    r&   r   (BindingList.page_async.<locals>.<lambda>  r   r%   c                     U $ rn   r   r   s    r&   r   r     r   r%   r   r   r   r   r   r   r   N)	r   r   r   r   rC   r   ry   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   )rC   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)rC   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$ zh
Constructs a BindingContext

:param sid: A 34 character string that uniquely identifies this resource.
r*   r6   rB   rC   r;   r=   r+   s     r&   r9   BindingList.get  '     MMDNN;M,NTW
 	
r%   c                 F    [        U R                  U R                  S   US9$ r   r   r   s     r&   __call__BindingList.__call__  r   r%   c                     g)rY   z%<Twilio.Conversations.V1.BindingList>r   rD   s    r&   rl   BindingList.__repr__  r   r%   r   ) r   r   r   r    r   rp   r8   r   unsetr   r   ro   r   intr	   r   r   r
   r   r   r   r   r   r   r   r   rB   r9   r   rl   r$   rs   rt   s   @r&   r   r     s   U U3 U$ 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 
7# 7 7r%   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   rB   r   r   r   r%   r&   <module>r      sj     L L L 6 6 8 : 2 ' !qN& qNhbM_ bMJ7$ 7*Q7, Q7r%   