
    gS                         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 - Serverless
 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\S\
\   4
U 4S	 jjjr\SS j5       rSS jrSS jrS
\4S jrSrU =r$ )LogInstance   c                        \ rS rSrSrSrSrSrg)LogInstance.Level   infowarnerror N)__name__
__module____qualname____firstlineno__INFOWARNERROR__static_attributes__r       y/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/serverless/v1/service/environment/log.pyLevelr      s    r%   r'   versionpayloadservice_sidenvironment_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        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        [        R                  " UR                  S5      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+   	build_siddeployment_sidfunction_sidrequest_sidlevelmessagedate_createdurlr*   r+   r,   )super__init__getr,   r.   r*   r+   r/   r0   r1   r2   r3   r4   r   iso8601_datetimer5   r6   	_solution_context)selfr(   r)   r*   r+   r,   	__class__s         r&   r9   LogInstance.__init__/   s    	!")++e"4*1++m*D*1++m*D.5kk:K.L(/K(@-4[[9I-J+2;;~+F*1++m*D4;KK4H
&-kk)&<0;0L0LKK'1
 #*++e"4 '.?$((

 /3r%   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: LogContext for this LogInstance
r*   r+   r,   r7   )r=   
LogContext_versionr<   r>   s    r&   _proxyLogInstance._proxyO   sR     == & NN=9 $/@ ANN5)	DM }}r%   c                 6    U R                   R                  5       $ );
Fetch the LogInstance


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


:returns: The fetched LogInstance
N)rF   fetch_asyncrE   s    r&   rN   LogInstance.fetch_asynci   s       [[,,....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>'LogInstance.__repr__.<locals>.<genexpr>x         S<RDA7>>!//<R    "z%<Twilio.Serverless.V1.LogInstance {}>joinr<   itemsrV   r>   contexts     r&   __repr__LogInstance.__repr__r   s6     ((SDNN<P<P<RSS6==gFFr%   )r=   r<   r.   r/   r5   r0   r+   r1   r3   r4   r2   r*   r,   r6   )N)rA   rC   )rA   r   )r   r   r   r    objectr'   r   r   strr   r   r9   propertyrF   rJ   rN   rd   r$   __classcell__r?   s   @r&   r   r      s     
* "33 c3h3 	3
 3 c]3 3@   #/G# G Gr%   r   c                   f   ^  \ 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rU =r$ )rC   |   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 LogContext

:param version: Version that contains the resource
:param service_sid: The SID of the Service to fetch the Log resource from.
:param environment_sid: The SID of the environment with the Log resource to fetch.
:param sid: The SID of the Log resource to fetch.
r7   zA/Services/{service_sid}/Environments/{environment_sid}/Logs/{sid}Nr   r8   r9   r<   rV   _uri)r>   r(   r*   r+   r,   r?   s        r&   r9   LogContext.__init__~   sJ     	! '.
 PVV .. 		r%   rA   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$ )	rI   application/jsonAcceptGETmethoduriheadersr*   r+   r,   r7   )r   ofrD   rJ   ro   r   r<   r>   rx   r)   s      r&   rJ   LogContext.fetch   sv     ))B-.--%%U		7%SMM}5 NN+<=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)
rM   rr   rs   rt   ru   Nr*   r+   r,   r7   )r   ry   rD   rN   ro   r   r<   rz   s      r&   rN   LogContext.fetch_async   s      ))B-.11dii 2 
 
 MM}5 NN+<=u%
 	
	
s   ABB	ABc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rQ   rR   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frT   rU   rW   s      r&   r[   &LogContext.__repr__.<locals>.<genexpr>   r]   r^   z$<Twilio.Serverless.V1.LogContext {}>r_   rb   s     r&   rd   LogContext.__repr__   s6     ((SDNN<P<P<RSS5<<WEEr%   r<   ro   )r   r   r   r    r   rg   r9   r   rJ   rN   rd   r$   ri   rj   s   @r&   rC   rC   |   sT    

-0
CF
MP
2
{ 
,
; 
0F# F Fr%   rC   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)LogPage   r)   rA   c                 b    [        U R                  UU R                  S   U R                  S   S9$ )zQ
Build an instance of LogInstance

:param payload: Payload response from the API
r*   r+   r*   r+   )r   rD   r<   )r>   r)   s     r&   get_instanceLogPage.get_instance   s4     MM}5 NN+<=	
 	
r%   c                     g)rQ   z<Twilio.Serverless.V1.LogPage>r   rE   s    r&   rd   LogPage.__repr__        0r%   r   N)r   r   r   r    r   rg   r   r   r   rd   r$   r   r%   r&   r   r      s)    
DcN 
{ 
0# 0r%   r   c                     ^  \ rS rSrS\S\S\4U 4S jjr\R                  \R                  \R                  SS4S\	\\
4   S\	\\
4   S	\	\\
4   S
\\   S\\   S\\   4S jjr\R                  \R                  \R                  SS4S\	\\
4   S\	\\
4   S	\	\\
4   S
\\   S\\   S\\   4S jjr\R                  \R                  \R                  SS4S\	\\
4   S\	\\
4   S	\	\\
4   S
\\   S\\   S\\   4S jjr\R                  \R                  \R                  SS4S\	\\
4   S\	\\
4   S	\	\\
4   S
\\   S\\   S\\   4S jjr\R                  \R                  \R                  \R                  \R                  \R                  4S\	\\
4   S\	\\
4   S	\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\4S jjr\R                  \R                  \R                  \R                  \R                  \R                  4S\	\\
4   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 $ )LogList   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 LogList

:param version: Version that contains the resource
:param service_sid: The SID of the Service to read the Log resource from.
:param environment_sid: The SID of the environment with the Log resources to read.

r   z;/Services/{service_sid}/Environments/{environment_sid}/LogsNr   rn   )r>   r(   r*   r+   r?   s       r&   r9   LogList.__init__   sG     	! '.

 JPP .. 		r%   Nr1   
start_dateend_datelimit	page_sizerA   c                     U R                   R                  XE5      nU R                  UUUUS   S9nU R                   R                  XvS   5      $ )a  
Streams LogInstance 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 str function_sid: The SID of the function whose invocation produced the Log resources to read.
:param datetime start_date: The date/time (in GMT, ISO 8601) after which the Log resources must have been created. Defaults to 1 day prior to current date/time.
:param datetime end_date: The date/time (in GMT, ISO 8601) before which the Log resources must have been created. Defaults to current date/time.
: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   r1   r   r   r   r   )rD   read_limitspagestreamr>   r1   r   r   r   r   limitsr   s           r&   r   LogList.stream   sW    4 **5<yy%![)	  
 }}##D/::r%   c                    #    U R                   R                  XE5      nU R                  UUUUS   S9I Sh  vN nU R                   R                  XvS   5      $  N"7f)a  
Asynchronously streams LogInstance 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 str function_sid: The SID of the function whose invocation produced the Log resources to read.
:param datetime start_date: The date/time (in GMT, ISO 8601) after which the Log resources must have been created. Defaults to 1 day prior to current date/time.
:param datetime end_date: The date/time (in GMT, ISO 8601) before which the Log resources must have been created. Defaults to current date/time.
: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   LogList.stream_async#  sd     4 **5<__%![)	 % 
 
 }}))$w@@
s   4AA#Ac           
      :    [        U R                  UUUUUS95      $ )a6  
Lists LogInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param str function_sid: The SID of the function whose invocation produced the Log resources to read.
:param datetime start_date: The date/time (in GMT, ISO 8601) after which the Log resources must have been created. Defaults to 1 day prior to current date/time.
:param datetime end_date: The date/time (in GMT, ISO 8601) before which the Log resources must have been created. Defaults to current date/time.
: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
r1   r   r   r   r   )listr   )r>   r1   r   r   r   r   s         r&   r   LogList.listG  s1    2 KK)%!#  
 	
r%   c                 |   #    U R                  U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)aE  
Asynchronously lists LogInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param str function_sid: The SID of the function whose invocation produced the Log resources to read.
:param datetime start_date: The date/time (in GMT, ISO 8601) after which the Log resources must have been created. Defaults to 1 day prior to current date/time.
:param datetime end_date: The date/time (in GMT, ISO 8601) before which the Log resources must have been created. Defaults to current date/time.
: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>   r1   r   r   r   r   records          r&   
list_asyncLogList.list_asyncj  sZ     6 '+&7&7)%!# '8 ' ! !	
 	
 !	
 		
 	
s0   </<731
37<37<
page_tokenpage_numberc           	      P   [         R                  " U[        R                  " U5      [        R                  " U5      UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XxS9n	[        U R                  XR                  5      $ )a  
Retrieve a single page of LogInstance records from the API.
Request is executed immediately

:param function_sid: The SID of the function whose invocation produced the Log resources to read.
:param start_date: The date/time (in GMT, ISO 8601) after which the Log resources must have been created. Defaults to 1 day prior to current date/time.
:param end_date: The date/time (in GMT, ISO 8601) before which the Log resources must have been created. Defaults to current date/time.
: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 LogInstance
FunctionSid	StartDateEndDate	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedrr   rs   rt   rv   rw   paramsrx   )	r   ry   r   r;   rD   r   ro   r   r<   
r>   r1   r   r   r   r   r   datarx   responses
             r&   r   LogList.page  s    , yy+&77
C$55h?'#%	
 ))^-PQR.==%%dii & 
 t}}h??r%   c           	      l  #    [         R                  " U[        R                  " U5      [        R                  " U5      UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XxS9I Sh  vN n	[        U R                  XR                  5      $  N$7f)	a  
Asynchronously retrieve a single page of LogInstance records from the API.
Request is executed immediately

:param function_sid: The SID of the function whose invocation produced the Log resources to read.
:param start_date: The date/time (in GMT, ISO 8601) after which the Log resources must have been created. Defaults to 1 day prior to current date/time.
:param end_date: The date/time (in GMT, ISO 8601) before which the Log resources must have been created. Defaults to current date/time.
: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 LogInstance
r   r   r   rr   rs   rt   r   N)	r   ry   r   r;   rD   r   ro   r   r<   r   s
             r&   r   LogList.page_async  s     , yy+&77
C$55h?'#%	
 ))^-PQR.11dii 2 
 
 t}}h??
s   BB4B2%B4
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   X R
                  5      $ )z
Retrieve a specific page of LogInstance records from the API.
Request is executed immediately

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

:returns: Page of LogInstance
rt   )rD   domaintwiliorequestr   r<   r>   r   r   s      r&   get_pageLogList.get_page  s;     ==''..66ujIt}}h??r%   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 LogInstance records from the API.
Request is executed immediately

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

:returns: Page of LogInstance
rt   N)rD   r   r   request_asyncr   r<   r   s      r&   get_page_asyncLogList.get_page_async  sG      --44BB5*UUt}}h?? Vs   4AA%Ar,   c                 b    [        U R                  U R                  S   U R                  S   US9$ zL
Constructs a LogContext

:param sid: The SID of the Log resource to fetch.
r*   r+   r7   rC   rD   r<   r>   r,   s     r&   r:   LogList.get  4     MM}5 NN+<=	
 	
r%   c                 b    [        U R                  U R                  S   U R                  S   US9$ r   r   r   s     r&   __call__LogList.__call__  r   r%   c                     g)rQ   z<Twilio.Serverless.V1.LogList>r   rE   s    r&   rd   LogList.__repr__  r   r%   r   )!r   r   r   r    r   rg   r9   r   unsetr   rf   r   r   intr	   r   r   r
   r   r   r   r   r   r   r   r   r   rC   r:   r   rd   r$   ri   rj   s   @r&   r   r      s   
 
c 
C 
0 ,2<<.4ll,2LL##'";CK("; (F*+"; &()	";
 }"; C="; 
+	";L ,2<<.4ll,2LL##'"ACK("A (F*+"A &()	"A
 }"A C="A 
{	#"AL ,2<<.4ll,2LL##'!
CK(!
 (F*+!
 &()	!

 }!
 C=!
 
k	!
J ,2<<.4ll,2LL##'"
CK("
 (F*+"
 &()	"

 }"
 C="
 
k	"
L ,2<<.4ll,2LL)/*0,,(.(@CK((@ (F*+(@ &()	(@
 #v+&(@ 3;'(@ f%(@ 
(@X ,2<<.4ll,2LL)/*0,,(.(@CK((@ (F*+(@ &()	(@
 #v+&(@ 3;'(@ f%(@ 
(@T
@3 
@7 
@
@s 
@w 
@
s 
z 

C 
J 
0# 0 0r%   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 ' !`G" `GFPF PFf0d 00s0l s0r%   