
    gZ                         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r SS\S\\\4   S\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$ )InviteInstance   a  
:ivar sid: The unique string that we created to identify the Invite resource.
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/api/rest/account) that created the Invite resource.
:ivar channel_sid: The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resource belongs to.
:ivar service_sid: The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) the resource is associated with.
:ivar identity: The application-defined string that uniquely identifies the resource's [User](https://www.twilio.com/docs/api/chat/rest/users) within the [Service](https://www.twilio.com/docs/api/chat/rest/services). See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more info.
:ivar date_created: The date and time in GMT when the resource was created specified in [RFC 2822](http://www.ietf.org/rfc/rfc2822.txt) format.
:ivar date_updated: The date and time in GMT when the resource was last updated specified in [RFC 2822](http://www.ietf.org/rfc/rfc2822.txt) format.
:ivar role_sid: The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to the resource.
:ivar created_by: The `identity` of the User that created the invite.
:ivar url: The absolute URL of the Invite resource.
versionpayloadservice_sidchannel_sidsidc                 v  > [         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        [        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UU=(       d    U R                  S.U l        S U l        g )Nr   account_sidr   r   identitydate_createddate_updatedrole_sid
created_byurlr   r   r   )super__init__getr   r   r   r   r   r   iso8601_datetimer   r   r    r!   r"   	_solution_context)selfr   r   r   r   r   	__class__s         r/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/chat/v1/service/channel/invite.pyr%   InviteInstance.__init__'   s     	!")++e"4*1++m*D*1++m*D*1++m*D'.{{:'>0;0L0LKK'1
 1<0L0LKK'1
 (/{{:'>)0\)B")++e"4 '&?$((

 26    returnc                     U R                   cB  [        U R                  U R                  S   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: InviteContext for this InviteInstance
r   r   r   r#   )r)   InviteContext_versionr(   r*   s    r,   _proxyInviteInstance._proxyG   sQ     == ) NN=9 NN=9NN5)	DM }}r.   c                 6    U R                   R                  5       $ )Q
Deletes the InviteInstance


:returns: True if delete succeeds, False otherwise
)r4   deleter3   s    r,   r8   InviteInstance.deleteX   s     {{!!##r.   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)m
Asynchronous coroutine that deletes the InviteInstance


:returns: True if delete succeeds, False otherwise
N)r4   delete_asyncr3   s    r,   r<   InviteInstance.delete_asynca   s       [[--////   '%'c                 6    U R                   R                  5       $ )A
Fetch the InviteInstance


:returns: The fetched InviteInstance
)r4   fetchr3   s    r,   rA   InviteInstance.fetchj   s     {{  ""r.   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)[
Asynchronous coroutine to fetch the InviteInstance


:returns: The fetched InviteInstance
N)r4   fetch_asyncr3   s    r,   rE   InviteInstance.fetch_asyncs   s       [[,,....r>   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>*InviteInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z"<Twilio.Chat.V1.InviteInstance {}>joinr(   itemsrM   r*   contexts     r,   __repr__InviteInstance.__repr__|   s6     ((SDNN<P<P<RSS3::7CCr.   )r)   r(   r   r   r!   r   r   r   r    r   r   r"   N)r/   r1   )r/   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r%   propertyr4   boolr8   r<   rA   rE   r[   __static_attributes____classcell__r+   s   @r,   r   r      s    & "66 c3h6 	6
 6 c]6 6@   $ $0D 0#/D# D Dr.   r   c                      ^  \ rS rSrS\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$ )r1      r   r   r   r   c                 |   > [         TU ]  U5        UUUS.U l        SR                  " S0 U R                  D6U l        g)a  
Initialize the InviteContext

:param version: Version that contains the resource
:param service_sid: The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from.
:param channel_sid: The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resource to fetch belongs to.
:param sid: The Twilio-provided string that uniquely identifies the Invite resource to fetch.
r#   z</Services/{service_sid}/Channels/{channel_sid}/Invites/{sid}N r$   r%   r(   rM   _uri)r*   r   r   r   r   r+   s        r,   r%   InviteContext.__init__   sJ     	! '&
 KQQ .. 		r.   r/   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )r7   DELETEmethoduriheaders)r   ofr2   r8   rn   r*   ru   s     r,   r8   InviteContext.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)r;   rq   rr   N)r   rv   r2   r<   rn   rw   s     r,   r<   InviteContext.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   U R                  S   S9$ )	r@   application/jsonAcceptGETrr   r   r   r   r#   )r   rv   r2   rA   rn   r   r(   r*   ru   r   s      r,   rA   InviteContext.fetch   su     ))B-.--%%U		7%SMM}5}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   U R                  S   S	9$  NB7f)
rD   r|   r}   r~   rr   Nr   r   r   r#   )r   rv   r2   rE   rn   r   r(   r   s      r,   rE   InviteContext.fetch_async   s      ))B-.11dii 2 
 
 MM}5}5u%
 	
	
s   ABB	ABc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rH   rI   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frK   rL   rN   s      r,   rR   )InviteContext.__repr__.<locals>.<genexpr>   rT   rU   z!<Twilio.Chat.V1.InviteContext {}>rV   rY   s     r,   r[   InviteContext.__repr__   s6     ((SDNN<P<P<RSS299'BBr.   r(   rn   )r^   r_   r`   ra   r   rc   r%   re   r8   r<   r   rA   rE   r[   rf   rg   rh   s   @r,   r1   r1      sk    
 
c 
 
RU 
.
U 
U
D 

~ 
,
> 
0C# C Cr.   r1   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)
InvitePage   r   r/   c                 b    [        U R                  UU R                  S   U R                  S   S9$ )zT
Build an instance of InviteInstance

:param payload: Payload response from the API
r   r   r   r   )r   r2   r(   )r*   r   s     r,   get_instanceInvitePage.get_instance   s3     MM}5}5	
 	
r.   c                     g)rH   z<Twilio.Chat.V1.InvitePage>rl   r3   s    r,   r[   InvitePage.__repr__        -r.   rl   N)r^   r_   r`   ra   r   rc   r   r   r   r[   rf   rl   r.   r,   r   r      s)    
DcN 
~ 
-# -r.   r   c                     ^  \ rS rSrS\S\S\4U 4S jjr\R                  4S\S\	\\
4   S\4S	 jjr\R                  4S\S\	\\
4   S\4S
 jjr\R                  SS4S\	\\   \
4   S\\   S\\   S\\   4S jjr\R                  SS4S\	\\   \
4   S\\   S\\   S\\   4S jjr\R                  SS4S\	\\   \
4   S\\   S\\   S\\   4S jjr\R                  SS4S\	\\   \
4   S\\   S\\   S\\   4S jjr\R                  \R                  \R                  \R                  4S\	\\   \
4   S\	\\
4   S\	\\
4   S\	\\
4   S\4
S jjr\R                  \R                  \R                  \R                  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!$ )
InviteListi	  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)aO  
Initialize the InviteList

:param version: Version that contains the resource
:param service_sid: The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from.
:param channel_sid: The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resources to read belong to.

r   z6/Services/{service_sid}/Channels/{channel_sid}/InvitesNrl   rm   )r*   r   r   r   r+   s       r,   r%   InviteList.__init__  sD     	! '&
 MSS 
nn
	r.   r   r    r/   c                 "   [         R                  " UUS.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  X4S9n[        U R                  UU R                  S   U R                  S	   S
9$ )a  
Create the InviteInstance

:param identity: The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/api/chat/rest/v1/user) within the [Service](https://www.twilio.com/docs/api/chat/rest/v1/service). See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more info.
:param role_sid: The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to the new member.

:returns: The created InviteInstance
IdentityRoleSidContent-Type!application/x-www-form-urlencodedr|   r}   POSTrs   rt   dataru   r   r   r   )r   rv   r2   creatern   r   r(   r*   r   r    r   ru   r   s         r,   r   InviteList.create  s     yy$#
 ))^-PQR"E.--&&tyyt ' 
 MM}5}5	
 	
r.   c                 >  #    [         R                  " UUS.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  X4S9I Sh  vN n[        U R                  UU R                  S	   U R                  S
   S9$  N47f)a  
Asynchronously create the InviteInstance

:param identity: The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/api/chat/rest/v1/user) within the [Service](https://www.twilio.com/docs/api/chat/rest/v1/service). See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more info.
:param role_sid: The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to the new member.

:returns: The created InviteInstance
r   r   r   r|   r}   r   r   Nr   r   r   )r   rv   r2   create_asyncrn   r   r(   r   s         r,   r   InviteList.create_asyncB  s      yy$#
 ))^-PQR"E.22tyyt 3 
 
 MM}5}5	
 	
	
s   A$B&B'5BNlimit	page_sizec                     U R                   R                  X#5      nU R                  XS   S9nU R                   R                  XTS   5      $ )a  
Streams InviteInstance 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[str] identity: The [User](https://www.twilio.com/docs/api/chat/rest/v1/user)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/api/chat/guides/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   r   r   )r2   read_limitspagestreamr*   r   r   r   limitsr   s         r,   r   InviteList.streame  sF    , **5<yy([6IyJ}}##D/::r.   c                    #    U R                   R                  X#5      nU R                  XS   S9I Sh  vN nU R                   R                  XTS   5      $  N"7f)a  
Asynchronously streams InviteInstance 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[str] identity: The [User](https://www.twilio.com/docs/api/chat/rest/v1/user)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/api/chat/guides/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   )r2   r   
page_asyncstream_asyncr   s         r,   r   InviteList.stream_async  sR     , **5<__hBU_VV}}))$w@@ Ws   1AA#Ac                 6    [        U R                  UUUS95      $ )a  
Lists InviteInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param List[str] identity: The [User](https://www.twilio.com/docs/api/chat/rest/v1/user)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/api/chat/guides/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   r   r   )listr   )r*   r   r   r   s       r,   r   InviteList.list  s+    * KK!#  
 	
r.   c                 x   #    U R                  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 InviteInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param List[str] identity: The [User](https://www.twilio.com/docs/api/chat/rest/v1/user)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/api/chat/guides/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*   r   r   r   records        r,   
list_asyncInviteList.list_async  sT     . '+&7&7!# '8 ' ! !
 
 !
 	
 
s0   :-:51/
15:15:
page_tokenpage_numberc                 (   [         R                  " [        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                  XVS9n[        U R                  XpR                  5      $ )	a  
Retrieve a single page of InviteInstance records from the API.
Request is executed immediately

:param identity: The [User](https://www.twilio.com/docs/api/chat/rest/v1/user)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/api/chat/guides/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 InviteInstance
c                     U $ r]   rl   es    r,   <lambda>!InviteList.page.<locals>.<lambda>      ar.   r   	PageTokenr   PageSizer   r   r|   r}   r~   rs   rt   paramsru   )	r   rv   r   mapr2   r   rn   r   r(   r*   r   r   r   r   r   ru   responses           r,   r   InviteList.page  s    $ yy%MM(K@'#%	
 ))^-PQR.==%%dii & 
 $-->>BBr.   c                 D  #    [         R                  " [        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                  XVS9I S	h  vN n[        U R                  XpR                  5      $  N$7f)
a%  
Asynchronously retrieve a single page of InviteInstance records from the API.
Request is executed immediately

:param identity: The [User](https://www.twilio.com/docs/api/chat/rest/v1/user)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/api/chat/guides/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 InviteInstance
c                     U $ r]   rl   r   s    r,   r   'InviteList.page_async.<locals>.<lambda>  r   r.   r   r   r   r|   r}   r~   r   N)	r   rv   r   r   r2   r   rn   r   r(   r   s           r,   r   InviteList.page_async  s     $ yy%MM(K@'#%	
 ))^-PQR.11dii 2 
 
 $-->>BB
s   A7B 9B:%B 
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   X R
                  5      $ )z
Retrieve a specific page of InviteInstance records from the API.
Request is executed immediately

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

:returns: Page of InviteInstance
r~   )r2   domaintwiliorequestr   r(   r*   r   r   s      r,   get_pageInviteList.get_page  s;     ==''..66ujI$-->>BBr.   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 InviteInstance records from the API.
Request is executed immediately

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

:returns: Page of InviteInstance
r~   N)r2   r   r   request_asyncr   r(   r   s      r,   get_page_asyncInviteList.get_page_async*  sG      --44BB5*UU$-->>BB Vs   4AA%Ar   c                 b    [        U R                  U R                  S   U R                  S   US9$ z{
Constructs a InviteContext

:param sid: The Twilio-provided string that uniquely identifies the Invite resource to fetch.
r   r   r#   r1   r2   r(   r*   r   s     r,   r&   InviteList.get6  3     MM}5}5	
 	
r.   c                 b    [        U R                  U R                  S   U R                  S   US9$ r   r   r   s     r,   __call__InviteList.__call__C  r   r.   c                     g)rH   z<Twilio.Chat.V1.InviteList>rl   r3   s    r,   r[   InviteList.__repr__P  r   r.   r   )"r^   r_   r`   ra   r   rc   r%   r   unsetr   objectr   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r   r1   r&   r   r[   rf   rg   rh   s   @r,   r   r   	  sB   
 
c 
 
* =CLL!
!
',S&['9!
	!
H =CLL!
!
',S&['9!
	!
J .4\\##'	;S	6)*; }; C=	;
 
.	!;: .4\\##'	AS	6)*A }A C=	A
 
~	&A: .4\\##'	
S	6)*
 }
 C=	

 
n	
> .4\\##'	
S	6)*
 }
 C=	

 
n	
@ .4\\)/*0,,(."CS	6)*"C #v+&"C 3;'	"C
 f%"C 
"CL .4\\)/*0,,(."CS	6)*"C #v+&"C 3;'	"C
 f%"C 
"CH
C3 
C: 
C
Cs 
Cz 
C
s 
} 

C 
M 
-# - -r.   r   N)rb   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   r1   r   r   rl   r.   r,   <module>r      sj     L L L 6 6 8 : 2 ' !jD% jDZhCO hCV- -0M- M-r.   