
    d{io                         d Z ddlmZ ddlmZmZmZmZmZmZm	Z	 ddl
mZmZmZ ddlmZ ddlmZ ddlmZ ddlmZ dd	lmZ dd
lmZ  G d de      Z G d de      Z G d de      Z G d de      Zy)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)ApiResponse)InstanceContext)InstanceResource)ListResource)Version)Pagec                        e Zd ZdZ	 ddedeeef   dee   f fdZ	e
dd       ZddZdd	Zdefd
ZdefdZdefdZ xZS )AlertInstancea  
    :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         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        t        j                  |j                  d            | _        t        j                  |j                  d            | _	        t        j                  |j                  d            | _
        |j                  d      | _        |j                  d      | _        |j                  d	      | _        |j                  d
      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        d|xs | j(                  i| _        d | _        y )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       Z/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/monitor/v1/alert.pyr-   zAlertInstance.__init__1   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                     | j                   )t        | j                  | j                  d         | _         | j                   S )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   _proxyzAlertInstance._proxyU   s9     == (NN5)DM }}r5   c                 6    | j                   j                         S )W
        Fetch the AlertInstance


        :returns: The fetched AlertInstance
        )r<   fetchr;   s    r4   r?   zAlertInstance.fetchd   s     {{  ""r5   c                 R   K   | j                   j                          d{   S 7 w)q
        Asynchronous coroutine to fetch the AlertInstance


        :returns: The fetched AlertInstance
        N)r<   fetch_asyncr;   s    r4   rB   zAlertInstance.fetch_asyncm   s!      [[,,....   '%'c                 6    | j                   j                         S )z
        Fetch the AlertInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        )r<   fetch_with_http_infor;   s    r4   rE   z"AlertInstance.fetch_with_http_infov   s     {{//11r5   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine to fetch the AlertInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        N)r<   fetch_with_http_info_asyncr;   s    r4   rG   z(AlertInstance.fetch_with_http_info_async   s!      [[;;====rC   c                     dj                  d | j                  j                         D              }dj                  |      S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   F   K   | ]  \  }}d j                  ||        ywz{}={}Nformat.0kvs      r4   	<genexpr>z)AlertInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z$<Twilio.Monitor.V1.AlertInstance {}>joinr0   itemsrN   r2   contexts     r4   __repr__zAlertInstance.__repr__   s6     ((SDNN<P<P<RSS5<<WEEr5   )N)r6   r9   )r6   r   )__name__
__module____qualname____doc__r   r   strr   r   r-   propertyr<   r?   rB   r   rE   rG   r[   __classcell__r3   s   @r4   r   r      s}    . OS"5"5)-c3h"5>Fsm"5H  #/2k 2>+ >F# Fr5   r   c                   |     e Zd Zdedef fdZdefdZdefdZ	de
fdZdefdZdefd	Zde
fd
ZdefdZ xZS )r9   r   r   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)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   rN   _uri)r2   r   r   r3   s      r4   r-   zAlertContext.__init__   s?     	! 3
 +O**<T^^<	r5   r6   c                     t        j                  i       }d|d<   | j                  j                  d| j                  |      S )zz
        Internal helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        application/jsonAcceptGETmethoduriheaders)r   ofr:   fetch_with_response_inforg   r2   ro   s     r4   _fetchzAlertContext._fetch   sB     ))B-.}}55dii 6 
 	
r5   c                 t    | j                         \  }}}t        | j                  || j                  d         S )r>   r   r8   )rs   r   r:   r0   r2   r   _s      r4   r?   zAlertContext.fetch   s8     AMMu%
 	
r5   c                     | j                         \  }}}t        | j                  || j                  d         }t	        |||      S )z
        Fetch the AlertInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r   r8   datastatus_codero   )rs   r   r:   r0   r   r2   r   rz   ro   instances        r4   rE   z!AlertContext.fetch_with_http_info   sG     )-%g MMu%

 k7SSr5   c                    K   t        j                  i       }d|d<   | j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        ri   rj   rk   rl   N)r   rp   r:   fetch_with_response_info_asyncrg   rr   s     r4   _fetch_asynczAlertContext._fetch_async   sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         S 7 -w)rA   Nr   r8   )r   r   r:   r0   ru   s      r4   rB   zAlertContext.fetch_async   sG      #//11AMMu%
 	
 2s   AA.Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)z
        Asynchronous coroutine to fetch the AlertInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr   r8   rx   )r   r   r:   r0   r   r{   s        r4   rG   z'AlertContext.fetch_with_http_info_async   sW      /3.?.?.A(A%g MMu%

 k7SS )Bs   AA<Ac                     dj                  d | j                  j                         D              }dj                  |      S )rI   rJ   c              3   F   K   | ]  \  }}d j                  ||        ywrL   rM   rO   s      r4   rS   z(AlertContext.__repr__.<locals>.<genexpr>  rT   rU   z#<Twilio.Monitor.V1.AlertContext {}>rV   rY   s     r4   r[   zAlertContext.__repr__   s6     ((SDNN<P<P<RSS4;;GDDr5   )r\   r]   r^   r   r`   r-   tuplers   r   r?   r   rE   r   rB   rG   r[   rb   rc   s   @r4   r9   r9      sp    = =c =
 
 
} 
Tk T
E 
 
= 
T+ TE# Er5   r9   c                   2    e Zd Zdeeef   defdZdefdZy)	AlertPager   r6   c                 .    t        | j                  |      S )zk
        Build an instance of AlertInstance

        :param payload: Payload response from the API
        )r   r:   )r2   r   s     r4   get_instancezAlertPage.get_instance	  s     T]]G44r5   c                      y)rI   z<Twilio.Monitor.V1.AlertPage>rf   r;   s    r4   r[   zAlertPage.__repr__       /r5   N)	r\   r]   r^   r   r`   r   r   r   r[   rf   r5   r4   r   r     s)    5DcN 5} 5/# /r5   r   c                       e Zd Zdef fdZej                  ej                  ej                  ddfdeee	f   dee
e	f   dee
e	f   dee   dee   d	ee   fd
Zej                  ej                  ej                  ddfdeee	f   dee
e	f   dee
e	f   dee   dee   d	ee   fdZej                  ej                  ej                  ddfdeee	f   dee
e	f   dee
e	f   dee   dee   d	efdZej                  ej                  ej                  ddfdeee	f   dee
e	f   dee
e	f   dee   dee   d	efdZej                  ej                  ej                  ddfdeee	f   dee
e	f   dee
e	f   dee   dee   d	ee   fdZej                  ej                  ej                  ddfdeee	f   dee
e	f   dee
e	f   dee   dee   d	ee   fdZej                  ej                  ej                  ddfdeee	f   dee
e	f   dee
e	f   dee   dee   d	efdZej                  ej                  ej                  ddfdeee	f   dee
e	f   dee
e	f   dee   dee   d	efdZej                  ej                  ej                  ej                  ej                  ej                  fdeee	f   dee
e	f   dee
e	f   deee	f   deee	f   deee	f   d	efdZej                  ej                  ej                  ej                  ej                  ej                  fdeee	f   dee
e	f   dee
e	f   deee	f   deee	f   deee	f   d	efdZej                  ej                  ej                  ej                  ej                  ej                  fdeee	f   dee
e	f   dee
e	f   deee	f   deee	f   deee	f   d	efdZej                  ej                  ej                  ej                  ej                  ej                  fdeee	f   dee
e	f   dee
e	f   deee	f   deee	f   deee	f   d	efdZded	efdZ ded	efdZ!ded	e"fdZ#ded	e"fdZ$d	efdZ% xZ&S )	AlertListr   c                 2    t         |   |       d| _        y)zg
        Initialize the AlertList

        :param version: Version that contains the resource

        z/AlertsN)r,   r-   rg   )r2   r   r3   s     r4   r-   zAlertList.__init__  s     	!	r5   Nr!   
start_dateend_datelimit	page_sizer6   c                     | j                   j                  ||      }| j                  ||||d         }| j                   j                  ||d         S )a  
        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   zAlertList.stream'  s[    4 **5)<yy![)	  
 }}##D&/::r5   c                    K   | j                   j                  ||      }| j                  ||||d          d{   }| j                   j                  ||d         S 7 #w)a  
        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   zAlertList.stream_asyncK  si     4 **5)<__![)	 % 
 
 }}))$w@@
s   8A A$A c                     | j                   j                  ||      }| j                  ||||d         }| j                   j                  |j                  |d         }||j
                  |j                  fS )a  
        Streams AlertInstance and returns headers from first page


        :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: tuple of (generator, status_code, headers) where generator yields instances
        r   r   r   )r:   r   page_with_http_infor   ry   rz   ro   	r2   r!   r   r   r   r   r   page_response	generators	            r4   stream_with_http_infozAlertList.stream_with_http_infoo  s{    0 **5)<00![)	 1 
 MM((););VG_M	=44m6K6KLLr5   c                 
  K   | j                   j                  ||      }| j                  ||||d          d{   }| j                   j                  |j                  |d         }||j
                  |j                  fS 7 Fw)a  
        Asynchronously streams AlertInstance and returns headers from first page


        :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: tuple of (generator, status_code, headers) where generator yields instances
        r   r   Nr   )r:   r   page_with_http_info_asyncr   ry   rz   ro   r   s	            r4   stream_with_http_info_asyncz%AlertList.stream_with_http_info_async  s     0 **5)<"<<![)	 = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   8BBABc           	      @    t        | j                  |||||            S )aY  
        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   zAlertList.list  s1    2 KK#%!#  
 	
r5   c                    K   | j                  |||||       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)ah  
        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_asynczAlertList.list_async  s]     6 '+&7&7#%!# '8 ' !	
 	
 !	
 	
 		
 	
s0   >1>953
59>59>c                 h    | j                  |||||      \  }}}t        |      }	t        |	||      S )a  
        Lists AlertInstance and returns headers from first page


        :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: ApiResponse with list of instances, status code, and headers
        r   rx   )r   r   r   )
r2   r!   r   r   r   r   r   rz   ro   rX   s
             r4   list_with_http_infozAlertList.list_with_http_info  sJ    0 +/*D*D! +E +
'	; Y;PPr5   c                    K   | j                  |||||       d{   \  }}}|2 	cg c3 d{   }	|	7 7 	6 nc c}	w }
}	t        |
||      S w)a
  
        Asynchronously lists AlertInstance and returns headers from first page


        :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: ApiResponse with list of instances, status code, and headers
        r   Nrx   )r   r   )r2   r!   r   r   r   r   r   rz   ro   r   rX   s              r4   list_with_http_info_asyncz#AlertList.list_with_http_info_async  so     0 150P0P! 1Q 1
 +
'	; -666&+
 7666;PPs4   A7A=;9
;=A;=A
page_tokenpage_numberc           	      <   t        j                  |t        j                  |      t        j                  |      |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      }	t        | j                  |	      S )a  
        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-urlencodedri   rj   rk   rm   rn   paramsro   )r   rp   r   r/   r:   r   rg   r   
r2   r!   r   r   r   r   r   ry   ro   responses
             r4   r   zAlertList.page@  s    , yy%&77
C$55h?'#%	
 ))^-PQR.==%%diig & 
 11r5   c           	      X  K   t        j                  |t        j                  |      t        j                  |      |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   }	t        | j                  |	      S 7 w)	a  
        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   ri   rj   rk   r   N)r   rp   r   r/   r:   r   rg   r   r   s
             r4   r   zAlertList.page_asyncj  s     , yy%&77
C$55h?'#%	
 ))^-PQR.11diig 2 
 
 11
s   BB*B(B*c           	      `   t        j                  |t        j                  |      t        j                  |      |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      \  }	}
}t        | j                  |	      }t        ||
|      S )	a  
        Retrieve a single page with response metadata


        :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: ApiResponse with AlertPage, status code, and headers
        r   r   r   ri   rj   rk   r   rx   )	r   rp   r   r/   r:   page_with_response_inforg   r   r   r2   r!   r   r   r   r   r   ry   ro   r   rz   r(   r   s                r4   r   zAlertList.page_with_http_info  s    , yy%&77
C$55h?'#%	
 ))^-PQR.26--2W2Wdiig 3X 3
/+/ 1+GWXXr5   c           	      |  K   t        j                  |t        j                  |      t        j                  |      |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   \  }	}
}t        | j                  |	      }t        ||
|	      S 7 ,w)
a  
        Asynchronously retrieve a single page with response metadata


        :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: ApiResponse with AlertPage, status code, and headers
        r   r   r   ri   rj   rk   r   Nrx   )	r   rp   r   r/   r:   page_with_response_info_asyncrg   r   r   r   s                r4   r   z#AlertList.page_with_http_info_async  s     , yy%&77
C$55h?'#%	
 ))^-PQR. --==$))D' >   	0+/
 1+GWXXs   BB<B:-B<
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   |      S )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
        rk   )r:   domaintwiliorequestr   r2   r   r   s      r4   get_pagezAlertList.get_page  s7     ==''..66ujI11r5   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   |      S 7 w)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
        rk   N)r:   r   r   request_asyncr   r   s      r4   get_page_asynczAlertList.get_page_async  sD      --44BB5*UU11 Vs   4AAAr   c                 0    t        | j                  |      S zh
        Constructs a AlertContext

        :param sid: The SID of the Alert resource to fetch.
        r8   r9   r:   r2   r   s     r4   r.   zAlertList.get       DMMs33r5   c                 0    t        | j                  |      S r   r   r   s     r4   __call__zAlertList.__call__  r   r5   c                      y)rI   z<Twilio.Monitor.V1.AlertList>rf   r;   s    r4   r[   zAlertList.__repr__  r   r5   )'r\   r]   r^   r   r-   r   unsetr   r`   objectr   r   intr	   r   r   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r9   r.   r   r[   rb   rc   s   @r4   r   r     sv   	 	 )/.4ll,2LL##'";f%"; (F*+"; &()	";
 }"; C="; 
-	 ";L )/.4ll,2LL##'"Af%"A (F*+"A &()	"A
 }"A C="A 
}	%"AL )/.4ll,2LL##'!Mf%!M (F*+!M &()	!M
 }!M C=!M 
!MJ )/.4ll,2LL##'!Mf%!M (F*+!M &()	!M
 }!M C=!M 
!MJ )/.4ll,2LL##'!
f%!
 (F*+!
 &()	!

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

 }"
 C="
 
m	"
L )/.4ll,2LL##' Qf% Q (F*+ Q &()	 Q
 } Q C= Q 
 QH )/.4ll,2LL##' Qf% Q (F*+ Q &()	 Q
 } Q C= Q 
 QH )/.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 
(2X )/.4ll,2LL)/*0,,(.)Yf%)Y (F*+)Y &()	)Y
 #v+&)Y 3;')Y f%)Y 
)YZ )/.4ll,2LL)/*0,,(.+Yf%+Y (F*++Y &()	+Y
 #v+&+Y 3;'+Y f%+Y 
+YZ
23 
29 
2
2s 
2y 
24s 4| 44C 4L 4/# /r5   r   N)r_   r   typingr   r   r   r   r   r	   r
   twilio.baser   r   r   twilio.base.api_responser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r9   r   r   rf   r5   r4   <module>r      sm     L L L 6 6 0 8 : 2 ' !uF$ uFprE? rEj/ /&@/ @/r5   