
    gS                         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 - Events
 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)deserializevalues)InstanceContext)InstanceResource)ListResource)Version)Pagec            
         ^  \ rS rSrS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&                  4S\\\4   SS 4S jjr\R&                  4S\\\4   SS 4S jjrS\4S jrSrU =r$ )SubscribedEventInstance   a$  
:ivar account_sid: The unique SID identifier of the Account.
:ivar type: Type of event being subscribed to.
:ivar schema_version: The schema version that the Subscription should use.
:ivar subscription_sid: The unique SID identifier of the Subscription.
:ivar url: The URL of this resource.
versionpayloadsubscription_sidtypec                 p  > [         TU ]  U5        UR                  S5      U l        UR                  S5      U l        [
        R                  " UR                  S5      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 )Naccount_sidr   schema_versionr   urlr   r   )super__init__getr   r   r
   integerr   r   r   	_solution_context)selfr   r   r   r   	__class__s        {/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/events/v1/subscription/subscribed_event.pyr    SubscribedEventInstance.__init__!   s     	!*1++m*D#*;;v#6	-8-@-@KK().
 07{{;M/N")++e"4 !1%DII
 ;?    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: SubscribedEventContext for this SubscribedEventInstance
r   r   r   )r"   SubscribedEventContext_versionr!   r#   s    r%   _proxySubscribedEventInstance._proxy8   sF     == 2!%0B!C^^F+DM
 }}r'   c                 6    U R                   R                  5       $ )Z
Deletes the SubscribedEventInstance


:returns: True if delete succeeds, False otherwise
)r-   deleter,   s    r%   r1   SubscribedEventInstance.deleteH   s     {{!!##r'   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)v
Asynchronous coroutine that deletes the SubscribedEventInstance


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


:returns: The fetched SubscribedEventInstance
)r-   fetchr,   s    r%   r:   SubscribedEventInstance.fetchZ   s     {{  ""r'   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)m
Asynchronous coroutine to fetch the SubscribedEventInstance


:returns: The fetched SubscribedEventInstance
N)r-   fetch_asyncr,   s    r%   r>   #SubscribedEventInstance.fetch_asyncc   s       [[,,....r7   r   c                 4    U R                   R                  US9$ )
Update the SubscribedEventInstance

:param schema_version: The schema version that the Subscription should use.

:returns: The updated SubscribedEventInstance
r   )r-   updater#   r   s     r%   rC   SubscribedEventInstance.updatel   s#     {{!!) " 
 	
r'   c                 P   #    U R                   R                  US9I Sh  vN $  N7f)
Asynchronous coroutine to update the SubscribedEventInstance

:param schema_version: The schema version that the Subscription should use.

:returns: The updated SubscribedEventInstance
rB   N)r-   update_asyncrD   s     r%   rH   $SubscribedEventInstance.update_asyncz   s0      [[--) . 
 
 	
 
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>3SubscribedEventInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z-<Twilio.Events.V1.SubscribedEventInstance {}>joinr!   itemsrP   r#   contexts     r%   __repr__ SubscribedEventInstance.__repr__   s6     ((SDNN<P<P<RSS>EEgNNr'   )r"   r!   r   r   r   r   r   )N)r(   r*   )r(   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r   propertyr-   boolr1   r5   r:   r>   r   unsetr   intobjectrC   rH   r^   __static_attributes____classcell__r$   s   @r%   r   r      s     #?? c3h? 	?
 sm? ?.  $ $0D 0#/ 4:<<
#CK0
	"
 4:<<
#CK0
	"
O# O O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                  4S\\\4   S\
4S jjr\R                  4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)z
Initialize the SubscribedEventContext

:param version: Version that contains the resource
:param subscription_sid: The unique SID identifier of the Subscription.
:param type: Type of event being subscribed to.
r   z9/Subscriptions/{subscription_sid}/SubscribedEvents/{type}N r   r   r!   rP   _uri)r#   r   r   r   r$   s       r%   r   SubscribedEventContext.__init__   sD     	! !1
 PVV 
nn
	r'   r(   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )r0   DELETEmethoduriheaders)r   ofr+   r1   rs   r#   rz   s     r%   r1   SubscribedEventContext.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)r4   rv   rw   N)r   r{   r+   r5   rs   r|   s     r%   r5   #SubscribedEventContext.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$ )r9   application/jsonAcceptGETrw   r   r   r   )r   r{   r+   r:   rs   r   r!   r#   rz   r   s      r%   r:   SubscribedEventContext.fetch   sj     ))B-.--%%U		7%S&MM!^^,>?'	
 	
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)	r=   r   r   r   rw   Nr   r   r   )r   r{   r+   r>   rs   r   r!   r   s      r%   r>   "SubscribedEventContext.fetch_async   s~      ))B-.11dii 2 
 
 'MM!^^,>?'	
 	
	
s   AA=A;5A=r   c                    [         R                  " SU05      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  X#S9n[        U R                  UU R                  S   U R                  S	   S
9$ )rA   SchemaVersion!application/x-www-form-urlencodedContent-Typer   r   POSTrx   ry   datarz   r   r   r   )r   r{   r+   rC   rs   r   r!   r#   r   r   rz   r   s        r%   rC   SubscribedEventContext.update   s     yy

 ))B-"E.--&&tyyt ' 
 'MM!^^,>?'	
 	
r'   c                 8  #    [         R                  " SU05      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  X#S9I Sh  vN n[        U R                  UU R                  S	   U R                  S
   S9$  N47f)rG   r   r   r   r   r   r   r   Nr   r   r   )r   r{   r+   rH   rs   r   r!   r   s        r%   rH   #SubscribedEventContext.update_async  s      yy

 ))B-"E.22tyyt 3 
 
 'MM!^^,>?'	
 	
	
s   A!B#B$5Bc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rK   rL   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frN   rO   rQ   s      r%   rU   2SubscribedEventContext.__repr__.<locals>.<genexpr>5  rW   rX   z,<Twilio.Events.V1.SubscribedEventContext {}>rY   r\   s     r%   r^   SubscribedEventContext.__repr__/  s6     ((SDNN<P<P<RSS=DDWMMr'   r!   rs   )r`   ra   rb   rc   r   re   r   rg   r1   r5   r   r:   r>   r   rh   r   ri   rj   rC   rH   r^   rk   rl   rm   s   @r%   r*   r*      s    
 
3 
c 
&
U 
U
D 

. 
*
#: 
0 4:<<
#CK0
	 
D 4:<<
#CK0
	 
BN# N Nr'   r*   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)SubscribedEventPagei9  r   r(   c                 D    [        U R                  XR                  S   S9$ )z]
Build an instance of SubscribedEventInstance

:param payload: Payload response from the API
r   r   )r   r+   r!   )r#   r   s     r%   get_instance SubscribedEventPage.get_instance;  s$     'MM7^^DV5W
 	
r'   c                     g)rK   z&<Twilio.Events.V1.SubscribedEventPage>rq   r,   s    r%   r^   SubscribedEventPage.__repr__E       8r'   rq   N)r`   ra   rb   rc   r   re   r   r   r   r^   rk   rq   r'   r%   r   r   9  s*    
DcN 
7N 
8# 8r'   r   c            	         ^  \ rS rSr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  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!$ )SubscribedEventListiN  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 SubscribedEventList

:param version: Version that contains the resource
:param subscription_sid: The unique SID identifier of the Subscription.

r   z2/Subscriptions/{subscription_sid}/SubscribedEventsNrq   rr   )r#   r   r   r$   s      r%   r   SubscribedEventList.__init__P  sD     	!  0
 IOO 
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                  XPR                  S   S	9$ )
z
Create the SubscribedEventInstance

:param type: Type of event being subscribed to.
:param schema_version: The schema version that the Subscription should use.

:returns: The created SubscribedEventInstance
Typer   r   r   r   r   r   r   r   r   )r   r{   r+   creaters   r   r!   r#   r   r   r   rz   r   s         r%   r   SubscribedEventList.createb  s     yy!/
 ))^-PQR"E.--&&tyyt ' 
 'MM7^^DV5W
 	
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                  XPR                  S	   S
9$  N%7f)z
Asynchronously create the SubscribedEventInstance

:param type: Type of event being subscribed to.
:param schema_version: The schema version that the Subscription should use.

:returns: The created SubscribedEventInstance
r   r   r   r   r   r   r   Nr   r   )r   r{   r+   create_asyncrs   r   r!   r   s         r%   r    SubscribedEventList.create_async  s      yy!/
 ))^-PQR"E.22tyyt 3 
 
 'MM7^^DV5W
 	
	
s   A$B&B'&Blimit	page_sizec                     U R                   R                  X5      nU R                  US   S9nU R                   R                  XCS   5      $ )a  
Streams SubscribedEventInstance 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r#   r   r   limitsr   s        r%   r   SubscribedEventList.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 SubscribedEventInstance 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    SubscribedEventList.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 SubscribedEventInstance 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   )r#   r   r   s      r%   r   SubscribedEventList.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 SubscribedEventInstance 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   )r#   r   r   records       r%   
list_asyncSubscribedEventList.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      $ )aK  
Retrieve a single page of SubscribedEventInstance 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 SubscribedEventInstance
	PageTokenr   PageSizer   r   r   r   r   rx   ry   paramsrz   )r   r{   r+   r   rs   r   r!   r#   r   r   r   r   rz   responses          r%   r   SubscribedEventList.page	  s{      yy'#%
 ))^-PQR.==%%dii & 
 #4==(NNKKr'   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)	aZ  
Asynchronously retrieve a single page of SubscribedEventInstance 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 SubscribedEventInstance
r   r   r   r   r   r   r   N)r   r{   r+   r   rs   r   r!   r   s          r%   r   SubscribedEventList.page_async*  s       yy'#%
 ))^-PQR.11dii 2 
 
 #4==(NNKK
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 SubscribedEventInstance records from the API.
Request is executed immediately

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

:returns: Page of SubscribedEventInstance
r   )r+   domaintwiliorequestr   r!   r#   r   r   s      r%   get_pageSubscribedEventList.get_pageK  s;     ==''..66ujI"4==(NNKKr'   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 SubscribedEventInstance records from the API.
Request is executed immediately

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

:returns: Page of SubscribedEventInstance
r   N)r+   r   r   request_asyncr   r!   r   s      r%   get_page_async"SubscribedEventList.get_page_asyncW  sG      --44BB5*UU"4==(NNKK Vs   4AA%Ac                 F    [        U R                  U R                  S   US9$ zV
Constructs a SubscribedEventContext

:param type: Type of event being subscribed to.
r   r   r*   r+   r!   r#   r   s     r%   r   SubscribedEventList.getc  (     &MM!^^,>?
 	
r'   c                 F    [        U R                  U R                  S   US9$ r   r   r   s     r%   __call__SubscribedEventList.__call__o  r   r'   c                     g)rK   z&<Twilio.Events.V1.SubscribedEventList>rq   r,   s    r%   r^   SubscribedEventList.__repr__{  r   r'   r   )NN)"r`   ra   rb   rc   r   re   r   r   rh   r   ri   rj   r   r   r   r   r   r   r	   r   r   r   r   r   r   r   r   r   r*   r   r   r^   rk   rl   rm   s   @r%   r   r   N  s   
 
3 
& ?Ell

).sF{);
	 
B ?Ell

).sF{);
	 
D  $#';}; C=; 
)	*	;6  $#'A}A C=A 
.	/	A6  $#'
}
 C=
 
%	&	
8  $#'
}
 C=
 
%	&	
: *0*0,,(.	L#v+&L 3;'L f%	L
 
LF *0*0,,(.	L#v+&L 3;'L f%	L
 
LB
L3 
L+> 
L
Ls 
L7J 
L

 

 6 



S 

%; 

8# 8 8r'   r   N)rd   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   rq   r'   r%   <module>r      se    M L L + 8 : 2 ' !wO. wOtdN_ dNN8$ 8*s8, s8r'   