
    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 - Monitor
 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\	\   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$ )AlertInstance   a  
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Alert resource.
:ivar alert_text: The text of the alert.
:ivar api_version: The API version used when the alert was generated.  Can be empty for events that don't have a specific API version.
:ivar date_created: The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
:ivar date_generated: The date and time in GMT when the alert was generated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format.  Due to buffering, this can be different than `date_created`.
:ivar date_updated: The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
:ivar error_code: The error code for the condition that generated the alert. See the [Error Dictionary](https://www.twilio.com/docs/api/errors) for possible causes and solutions to the error.
:ivar log_level: The log level.  Can be: `error`, `warning`, `notice`, or `debug`.
:ivar more_info: The URL of the page in our [Error Dictionary](https://www.twilio.com/docs/api/errors) with more information about the error condition.
:ivar request_method: The method used by the request that generated the alert. If the alert was generated by a request we made to your server, this is the method we used. If the alert was generated by a request from your application to our API, this is the method your application used.
:ivar request_url: The URL of the request that generated the alert. If the alert was generated by a request we made to your server, this is the URL on your server that generated the alert. If the alert was generated by a request from your application to our API, this is the URL of the resource requested.
:ivar request_variables: The variables passed in the request that generated the alert. This value is only returned when a single Alert resource is fetched.
:ivar resource_sid: The SID of the resource for which the alert was generated.  For instance, if your server failed to respond to an HTTP request during the flow of a particular call, this value would be the SID of the server.  This value is empty if the alert was not generated for a particular resource.
:ivar response_body: The response body of the request that generated the alert. This value is only returned when a single Alert resource is fetched.
:ivar response_headers: The response headers of the request that generated the alert. This value is only returned when a single Alert resource is fetched.
:ivar sid: The unique string that we created to identify the Alert resource.
:ivar url: The absolute URL of the Alert resource.
:ivar request_headers: The request headers of the request that generated the alert. This value is only returned when a single Alert resource is fetched.
:ivar service_sid: The SID of the service or resource that generated the alert. Can be `null`.
versionpayloadsidc                 &  > [         TU ]  U5        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        [        R                  " UR                  S5      5      U l        [        R                  " UR                  S5      5      U l	        [        R                  " UR                  S5      5      U l
        UR                  S5      U l        UR                  S5      U l        UR                  S	5      U l        UR                  S
5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        U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        SU=(       d    U R(                  0U l        S U l        g )Naccount_sid
alert_textapi_versiondate_createddate_generateddate_updated
error_code	log_level	more_inforequest_methodrequest_urlrequest_variablesresource_sidresponse_bodyresponse_headersr   urlrequest_headersservice_sid)super__init__getr   r   r   r   iso8601_datetimer   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r   r)   r*   r+   	_solution_context)selfr   r   r   	__class__s       d/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/monitor/v1/alert.pyr-   AlertInstance.__init__0   s    	!*1++m*D)0\)B*1++m*D0;0L0LKK'1
 3>2N2NKK()3
 1<0L0LKK'1
 *1\)B(/K(@(/K(@-4[[9I-J*1++m*D07<O0P+2;;~+F,3KK,H/6{{;M/N")++e"4")++e"4.5kk:K.L*1++m*D 3?$((
 15    returnc                     U R                   c&  [        U R                  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: AlertContext for this AlertInstance
r   r   )r1   AlertContext_versionr0   r2   s    r4   _proxyAlertInstance._proxyT   s9     == (NN5)DM }}r6   c                 6    U R                   R                  5       $ )?
Fetch the AlertInstance


:returns: The fetched AlertInstance
)r=   fetchr<   s    r4   rA   AlertInstance.fetchc   s     {{  ""r6   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)Y
Asynchronous coroutine to fetch the AlertInstance


:returns: The fetched AlertInstance
N)r=   fetch_asyncr<   s    r4   rE   AlertInstance.fetch_asyncl   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      r4   	<genexpr>)AlertInstance.__repr__.<locals>.<genexpr>{         S<RDA7>>!//<R    "z$<Twilio.Monitor.V1.AlertInstance {}>joinr0   itemsrM   r2   contexts     r4   __repr__AlertInstance.__repr__u   s6     ((SDNN<P<P<RSS5<<WEEr6   )r1   r0   r   r   r   r   r   r   r    r!   r"   r*   r#   r$   r%   r&   r'   r(   r+   r   r)   )N)r7   r:   )r7   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r-   propertyr=   rA   rE   r[   __static_attributes____classcell__r3   s   @r4   r   r      sp    . OS"5"5)-c3h"5>Fsm"5 "5H  #/F# F Fr6   r   c                   ^   ^  \ rS rSr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$ )
r:      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 AlertContext

:param version: Version that contains the resource
:param sid: The SID of the Alert resource to fetch.
r   z/Alerts/{sid}N )r,   r-   r0   rM   _uri)r2   r   r   r3   s      r4   r-   AlertContext.__init__   s=     	! 3
 $**<T^^<	r6   r7   c                     [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9n[        U R                  UU R                  S   S9$ )r@   application/jsonAcceptGETmethoduriheadersr   r9   )r   ofr;   rA   rk   r   r0   r2   rt   r   s      r4   rA   AlertContext.fetch   s]     ))B-.--%%U		7%SMMu%
 	
r6   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   S9$  N&7f)rD   rn   ro   rp   rq   Nr   r9   )r   ru   r;   rE   rk   r   r0   rv   s      r4   rE   AlertContext.fetch_async   sq      ))B-.11dii 2 
 
 MMu%
 	
	
s   AA/A-'A/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      r4   rR   (AlertContext.__repr__.<locals>.<genexpr>   rT   rU   z#<Twilio.Monitor.V1.AlertContext {}>rV   rY   s     r4   r[   AlertContext.__repr__   s6     ((SDNN<P<P<RSS4;;GDDr6   )r0   rk   )r]   r^   r_   r`   r   rb   r-   r   rA   rE   r[   rd   re   rf   s   @r4   r:   r:      sB    = =c =
} 
(
= 
,E# E Er6   r:   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)	AlertPage   r   r7   c                 .    [        U R                  U5      $ )zS
Build an instance of AlertInstance

:param payload: Payload response from the API
)r   r;   )r2   r   s     r4   get_instanceAlertPage.get_instance   s     T]]G44r6   c                     g)rH   z<Twilio.Monitor.V1.AlertPage>rj   r<   s    r4   r[   AlertPage.__repr__        /r6   rj   N)r]   r^   r_   r`   r   rb   r   r   r   r[   rd   rj   r6   r4   r   r      s)    5DcN 5} 5/# /r6   r   c                     ^  \ rS rSr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 $ )	AlertList   r   c                 2   > [         TU ]  U5        SU l        g)zO
Initialize the AlertList

:param version: Version that contains the resource

z/AlertsN)r,   r-   rk   )r2   r   r3   s     r4   r-   AlertList.__init__   s     	!	r6   Nr!   
start_dateend_datelimit	page_sizer7   c                     U R                   R                  XE5      nU R                  UUUUS   S9nU R                   R                  XvS   5      $ )aD  
Streams AlertInstance 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 log_level: Only show alerts for this log-level.  Can be: `error`, `warning`, `notice`, or `debug`.
:param datetime start_date: Only include alerts that occurred on or after this date and time. Specify the date and time in GMT and format as `YYYY-MM-DD` or `YYYY-MM-DDThh:mm:ssZ`. Queries for alerts older than 30 days are not supported.
:param datetime end_date: Only include alerts that occurred on or before this date and time. Specify the date and time in GMT and format as `YYYY-MM-DD` or `YYYY-MM-DDThh:mm:ssZ`. Queries for alerts older than 30 days are not supported.
: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   r   r   )r;   read_limitspagestreamr2   r!   r   r   r   r   limitsr   s           r4   r   AlertList.stream   sW    4 **5<yy![)	  
 }}##D/::r6   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)aS  
Asynchronously streams AlertInstance 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 log_level: Only show alerts for this log-level.  Can be: `error`, `warning`, `notice`, or `debug`.
:param datetime start_date: Only include alerts that occurred on or after this date and time. Specify the date and time in GMT and format as `YYYY-MM-DD` or `YYYY-MM-DDThh:mm:ssZ`. Queries for alerts older than 30 days are not supported.
:param datetime end_date: Only include alerts that occurred on or before this date and time. Specify the date and time in GMT and format as `YYYY-MM-DD` or `YYYY-MM-DDThh:mm:ssZ`. Queries for alerts older than 30 days are not supported.
: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           r4   r   AlertList.stream_async  sd     4 **5<__![)	 % 
 
 }}))$w@@
s   4AA#Ac           
      :    [        U R                  UUUUUS95      $ )a  
Lists AlertInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param str log_level: Only show alerts for this log-level.  Can be: `error`, `warning`, `notice`, or `debug`.
:param datetime start_date: Only include alerts that occurred on or after this date and time. Specify the date and time in GMT and format as `YYYY-MM-DD` or `YYYY-MM-DDThh:mm:ssZ`. Queries for alerts older than 30 days are not supported.
:param datetime end_date: Only include alerts that occurred on or before this date and time. Specify the date and time in GMT and format as `YYYY-MM-DD` or `YYYY-MM-DDThh:mm:ssZ`. Queries for alerts older than 30 days are not supported.
: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   r   r   )listr   )r2   r!   r   r   r   r   s         r4   r   AlertList.list,  s1    2 KK#%!#  
 	
r6   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)a  
Asynchronously lists AlertInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param str log_level: Only show alerts for this log-level.  Can be: `error`, `warning`, `notice`, or `debug`.
:param datetime start_date: Only include alerts that occurred on or after this date and time. Specify the date and time in GMT and format as `YYYY-MM-DD` or `YYYY-MM-DDThh:mm:ssZ`. Queries for alerts older than 30 days are not supported.
:param datetime end_date: Only include alerts that occurred on or before this date and time. Specify the date and time in GMT and format as `YYYY-MM-DD` or `YYYY-MM-DDThh:mm:ssZ`. Queries for alerts older than 30 days are not supported.
: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   )r2   r!   r   r   r   r   records          r4   
list_asyncAlertList.list_asyncO  sZ     6 '+&7&7#%!# '8 ' ! !	
 	
 !	
 		
 	
s0   </<731
37<37<
page_tokenpage_numberc           	      <   [         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                  U	5      $ )aj  
Retrieve a single page of AlertInstance records from the API.
Request is executed immediately

:param log_level: Only show alerts for this log-level.  Can be: `error`, `warning`, `notice`, or `debug`.
:param start_date: Only include alerts that occurred on or after this date and time. Specify the date and time in GMT and format as `YYYY-MM-DD` or `YYYY-MM-DDThh:mm:ssZ`. Queries for alerts older than 30 days are not supported.
:param end_date: Only include alerts that occurred on or before this date and time. Specify the date and time in GMT and format as `YYYY-MM-DD` or `YYYY-MM-DDThh:mm:ssZ`. Queries for alerts older than 30 days are not supported.
: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 AlertInstance
LogLevel	StartDateEndDate	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedrn   ro   rp   rr   rs   paramsrt   )r   ru   r   r/   r;   r   rk   r   
r2   r!   r   r   r   r   r   datart   responses
             r4   r   AlertList.pages  s    , yy%&77
C$55h?'#%	
 ))^-PQR.==%%dii & 
 11r6   c           	      X  #    [         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                  U	5      $  N7f)	ay  
Asynchronously retrieve a single page of AlertInstance records from the API.
Request is executed immediately

:param log_level: Only show alerts for this log-level.  Can be: `error`, `warning`, `notice`, or `debug`.
:param start_date: Only include alerts that occurred on or after this date and time. Specify the date and time in GMT and format as `YYYY-MM-DD` or `YYYY-MM-DDThh:mm:ssZ`. Queries for alerts older than 30 days are not supported.
:param end_date: Only include alerts that occurred on or before this date and time. Specify the date and time in GMT and format as `YYYY-MM-DD` or `YYYY-MM-DDThh:mm:ssZ`. Queries for alerts older than 30 days are not supported.
: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 AlertInstance
r   r   r   rn   ro   rp   r   N)r   ru   r   r/   r;   r   rk   r   r   s
             r4   r   AlertList.page_async  s     , yy%&77
C$55h?'#%	
 ))^-PQR.11dii 2 
 
 11
s   BB*B(B*
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   U5      $ )z
Retrieve a specific page of AlertInstance records from the API.
Request is executed immediately

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

:returns: Page of AlertInstance
rp   )r;   domaintwiliorequestr   r2   r   r   s      r4   get_pageAlertList.get_page  s7     ==''..66ujI11r6   c                    #    U R                   R                  R                  R                  SU5      I Sh  vN n[	        U R                   U5      $  N7f)z
Asynchronously retrieve a specific page of AlertInstance records from the API.
Request is executed immediately

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

:returns: Page of AlertInstance
rp   N)r;   r   r   request_asyncr   r   s      r4   get_page_asyncAlertList.get_page_async  sC      --44BB5*UU11 Vs   4AAAr   c                 *    [        U R                  US9$ zP
Constructs a AlertContext

:param sid: The SID of the Alert resource to fetch.
r9   r:   r;   r2   r   s     r4   r.   AlertList.get       DMMs33r6   c                 *    [        U R                  US9$ r   r   r   s     r4   __call__AlertList.__call__  r   r6   c                     g)rH   z<Twilio.Monitor.V1.AlertList>rj   r<   s    r4   r[   AlertList.__repr__  r   r6   )rk   )!r]   r^   r_   r`   r   r-   r   unsetr   rb   objectr   r   intr	   r   r   r
   r   r   r   r   r   r   r   r   r   r:   r.   r   r[   rd   re   rf   s   @r4   r   r      s   	 	 )/.4ll,2LL##'";f%"; (F*+"; &()	";
 }"; C="; 
-	 ";L )/.4ll,2LL##'"Af%"A (F*+"A &()	"A
 }"A C="A 
}	%"AL )/.4ll,2LL##'!
f%!
 (F*+!
 &()	!

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

 }"
 C="
 
m	"
L )/.4ll,2LL)/*0,,(.(2f%(2 (F*+(2 &()	(2
 #v+&(2 3;'(2 f%(2 
(2X )/.4ll,2LL)/*0,,(.(2f%(2 (F*+(2 &()	(2
 #v+&(2 3;'(2 f%(2 
(2T
23 
29 
2
2s 
2y 
24s 4| 44C 4L 4/# / /r6   r   N)ra   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   r:   r   r   rj   r6   r4   <module>r      sj     L L L 6 6 8 : 2 ' !cF$ cFLBE? BEJ/ /&^/ ^/r6   