
    d{i!                         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 )EventInstancea	  
    :ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Event resource.
    :ivar actor_sid: The SID of the actor that caused the event, if available. This can be either a User ID (matching the pattern `^US[0-9a-fA-F]{32}$`) or an Account SID (matching the pattern `^AC[0-9a-fA-F]{32}$`). If the actor's SID isn't available, this field will be `null`.
    :ivar actor_type: The type of actor that caused the event. Can be: `user` for a change made by a logged-in user in the Twilio Console, `account` for an event caused by an API request by an authenticating Account, `twilio-admin` for an event caused by a Twilio employee, and so on.
    :ivar description: A description of the event. Can be `null`.
    :ivar event_data: An object with additional data about the event. The  contents depend on `event_type`. For example, event-types of the form `RESOURCE.updated`, this value contains a `resource_properties` dictionary that describes the previous and updated properties of the resource.
    :ivar event_date: The date and time in GMT when the event was recorded specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    :ivar event_type: The event's type. Event-types are typically in the form: `RESOURCE_TYPE.ACTION`, where `RESOURCE_TYPE` is the type of resource that was affected and `ACTION` is what happened to it. For example, `phone-number.created`. For a full list of all event-types, see the [Monitor Event Types](https://www.twilio.com/docs/usage/monitor-events#event-types).
    :ivar resource_sid: The SID of the resource that was affected.
    :ivar resource_type: The type of resource that was affected. For a full list of all resource-types, see the [Monitor Event Types](https://www.twilio.com/docs/usage/monitor-events#event-types).
    :ivar sid: The unique string that we created to identify the Event resource.
    :ivar source: The originating system or interface that caused the event.  Can be: `web` for events caused by user action in the Twilio Console, `api` for events caused by a request to our API, or   `twilio` for events caused by an automated or internal Twilio system.
    :ivar source_ip_address: The IP address of the source, if the source is outside the Twilio cloud. This value is `null` for events with `source` of `twilio`
    :ivar url: The absolute URL of the resource that was affected. Can be `null`.
    :ivar links: The absolute URLs of related resources.
    versionpayloadsidc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        t        j                  |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	actor_sid
actor_typedescription
event_data
event_date
event_typeresource_sidresource_typer   sourcesource_ip_addressurllinks)super__init__getr   r   r   r   r   r   iso8601_datetimer   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/event.pyr(   zEventInstance.__init__,   s)    	!*1++m*D(/K(@)0\)B*1++m*D7>{{<7P.9.J.JKK%/
 *1\)B+2;;~+F,3KK,H")++e"4%,[[%:07<O0P")++e"429++g2F
 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: EventContext for this EventInstance
        r   r   )r,   EventContext_versionr+   r-   s    r/   _proxyzEventInstance._proxyG   s9     == (NN5)DM }}r0   c                 6    | j                   j                         S )W
        Fetch the EventInstance


        :returns: The fetched EventInstance
        )r7   fetchr6   s    r/   r:   zEventInstance.fetchV   s     {{  ""r0   c                 R   K   | j                   j                          d{   S 7 w)q
        Asynchronous coroutine to fetch the EventInstance


        :returns: The fetched EventInstance
        N)r7   fetch_asyncr6   s    r/   r=   zEventInstance.fetch_async_   s!      [[,,....   '%'c                 6    | j                   j                         S )z
        Fetch the EventInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        )r7   fetch_with_http_infor6   s    r/   r@   z"EventInstance.fetch_with_http_infoh   s     {{//11r0   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine to fetch the EventInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        N)r7   fetch_with_http_info_asyncr6   s    r/   rB   z(EventInstance.fetch_with_http_info_asyncq   s!      [[;;====r>   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      r/   	<genexpr>z)EventInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z$<Twilio.Monitor.V1.EventInstance {}>joinr+   itemsrI   r-   contexts     r/   __repr__zEventInstance.__repr__z   s6     ((SDNN<P<P<RSS5<<WEEr0   )N)r1   r4   )r1   r   )__name__
__module____qualname____doc__r   r   strr   r   r(   propertyr7   r:   r=   r   r@   rB   rV   __classcell__r.   s   @r/   r   r      s|    $ OS55)-c3h5>Fsm56  #/2k 2>+ >F# Fr0   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 )r4   r   r   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the EventContext

        :param version: Version that contains the resource
        :param sid: The SID of the Event resource to fetch.
        r   z/Events/{sid}N )r'   r(   r+   rI   _uri)r-   r   r   r.   s      r/   r(   zEventContext.__init__   s?     	! 3
 +O**<T^^<	r0   r1   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   ofr5   fetch_with_response_inforb   r-   rj   s     r/   _fetchzEventContext._fetch   sB     ))B-.}}55dii 6 
 	
r0   c                 t    | j                         \  }}}t        | j                  || j                  d         S )r9   r   r3   )rn   r   r5   r+   r-   r   _s      r/   r:   zEventContext.fetch   s8     AMMu%
 	
r0   c                     | j                         \  }}}t        | j                  || j                  d         }t	        |||      S )z
        Fetch the EventInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r   r3   datastatus_coderj   )rn   r   r5   r+   r   r-   r   ru   rj   instances        r/   r@   z!EventContext.fetch_with_http_info   sG     )-%g MMu%

 k7SSr0   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)
        rd   re   rf   rg   N)r   rk   r5   fetch_with_response_info_asyncrb   rm   s     r/   _fetch_asynczEventContext._fetch_async   sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         S 7 -w)r<   Nr   r3   )rz   r   r5   r+   rp   s      r/   r=   zEventContext.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 EventInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr   r3   rs   )rz   r   r5   r+   r   rv   s        r/   rB   z'EventContext.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 )rD   rE   c              3   F   K   | ]  \  }}d j                  ||        ywrG   rH   rJ   s      r/   rN   z(EventContext.__repr__.<locals>.<genexpr>   rO   rP   z#<Twilio.Monitor.V1.EventContext {}>rQ   rT   s     r/   rV   zEventContext.__repr__   s6     ((SDNN<P<P<RSS4;;GDDr0   )rW   rX   rY   r   r[   r(   tuplern   r   r:   r   r@   rz   r=   rB   rV   r]   r^   s   @r/   r4   r4      sp    = =c =
 
 
} 
Tk T
E 
 
= 
T+ TE# Er0   r4   c                   2    e Zd Zdeeef   defdZdefdZy)	EventPager   r1   c                 .    t        | j                  |      S )zk
        Build an instance of EventInstance

        :param payload: Payload response from the API
        )r   r5   )r-   r   s     r/   get_instancezEventPage.get_instance   s     T]]G44r0   c                      y)rD   z<Twilio.Monitor.V1.EventPage>ra   r6   s    r/   rV   zEventPage.__repr__       /r0   N)	rW   rX   rY   r   r[   r   r   r   rV   ra   r0   r/   r   r      s)    5DcN 5} 5/# /r0   r   c                       e Zd Zdef fdZej                  ej                  ej                  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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                  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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                  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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                  dd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e   dee   defdZej                  ej                  ej                  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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                  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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                  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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                  dd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e   dee   defdZej                  ej                  ej                  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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                  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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                  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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                  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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 )"	EventListr   c                 2    t         |   |       d| _        y)zg
        Initialize the EventList

        :param version: Version that contains the resource

        z/EventsN)r'   r(   rb   )r-   r   r.   s     r/   r(   zEventList.__init__  s     	!	r0   Nr   r    r!   r$   
start_dateend_datelimit	page_sizer1   c	           
          | j                   j                  ||      }	| j                  |||||||	d         }
| j                   j                  |
|	d         S )a!  
        Streams EventInstance 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 actor_sid: Only include events initiated by this Actor. Useful for auditing actions taken by specific users or API credentials.
        :param str event_type: Only include events of this [Event Type](https://www.twilio.com/docs/usage/monitor-events#event-types).
        :param str resource_sid: Only include events that refer to this resource. Useful for discovering the history of a specific resource.
        :param str source_ip_address: Only include events that originated from this IP address. Useful for tracking suspicious activity originating from the API or the Twilio Console.
        :param datetime start_date: Only include events that occurred on or after this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
        :param datetime end_date: Only include events that occurred on or before this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
        :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   r   r   )r5   read_limitspagestreamr-   r   r    r!   r$   r   r   r   r   limitsr   s              r/   r   zEventList.stream  se    @ **5)<yy!%/![)  
 }}##D&/::r0   c	           
         K   | j                   j                  ||      }	| j                  |||||||	d          d{   }
| j                   j                  |
|	d         S 7 #w)a0  
        Asynchronously streams EventInstance 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 actor_sid: Only include events initiated by this Actor. Useful for auditing actions taken by specific users or API credentials.
        :param str event_type: Only include events of this [Event Type](https://www.twilio.com/docs/usage/monitor-events#event-types).
        :param str resource_sid: Only include events that refer to this resource. Useful for discovering the history of a specific resource.
        :param str source_ip_address: Only include events that originated from this IP address. Useful for tracking suspicious activity originating from the API or the Twilio Console.
        :param datetime start_date: Only include events that occurred on or after this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
        :param datetime end_date: Only include events that occurred on or before this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
        :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   )r5   r   
page_asyncstream_asyncr   s              r/   r   zEventList.stream_asyncF  ss     @ **5)<__!%/![) % 
 
 }}))$w@@
s   ;A#A!$A#c	           
          | j                   j                  ||      }	| j                  |||||||	d         }
| j                   j                  |
j                  |	d         }||
j
                  |
j                  fS )au  
        Streams EventInstance and returns headers from first page


        :param str actor_sid: Only include events initiated by this Actor. Useful for auditing actions taken by specific users or API credentials.
        :param str event_type: Only include events of this [Event Type](https://www.twilio.com/docs/usage/monitor-events#event-types).
        :param str resource_sid: Only include events that refer to this resource. Useful for discovering the history of a specific resource.
        :param str source_ip_address: Only include events that originated from this IP address. Useful for tracking suspicious activity originating from the API or the Twilio Console.
        :param datetime start_date: Only include events that occurred on or after this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
        :param datetime end_date: Only include events that occurred on or before this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
        :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   )r5   r   page_with_http_infor   rt   ru   rj   r-   r   r    r!   r$   r   r   r   r   r   page_response	generators               r/   stream_with_http_infozEventList.stream_with_http_infos  s    < **5)<00!%/![) 1 
 MM((););VG_M	=44m6K6KLLr0   c	           
        K   | j                   j                  ||      }	| j                  |||||||	d          d{   }
| j                   j                  |
j                  |	d         }||
j
                  |
j                  fS 7 Fw)a  
        Asynchronously streams EventInstance and returns headers from first page


        :param str actor_sid: Only include events initiated by this Actor. Useful for auditing actions taken by specific users or API credentials.
        :param str event_type: Only include events of this [Event Type](https://www.twilio.com/docs/usage/monitor-events#event-types).
        :param str resource_sid: Only include events that refer to this resource. Useful for discovering the history of a specific resource.
        :param str source_ip_address: Only include events that originated from this IP address. Useful for tracking suspicious activity originating from the API or the Twilio Console.
        :param datetime start_date: Only include events that occurred on or after this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
        :param datetime end_date: Only include events that occurred on or before this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
        :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   )r5   r   page_with_http_info_asyncr   rt   ru   rj   r   s               r/   stream_with_http_info_asyncz%EventList.stream_with_http_info_async  s     < **5)<"<<!%/![) = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   ;BBABc	                 F    t        | j                  ||||||||            S )a  
        Lists EventInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str actor_sid: Only include events initiated by this Actor. Useful for auditing actions taken by specific users or API credentials.
        :param str event_type: Only include events of this [Event Type](https://www.twilio.com/docs/usage/monitor-events#event-types).
        :param str resource_sid: Only include events that refer to this resource. Useful for discovering the history of a specific resource.
        :param str source_ip_address: Only include events that originated from this IP address. Useful for tracking suspicious activity originating from the API or the Twilio Console.
        :param datetime start_date: Only include events that occurred on or after this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
        :param datetime end_date: Only include events that occurred on or before this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
        :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   r   r   r   )listr   )	r-   r   r    r!   r$   r   r   r   r   s	            r/   r   zEventList.list  s:    > KK#%)"3%!#  	
 	
r0   c	           
         K   | j                  ||||||||       d{   2 	cg c3 d{   }	|	7 7 	6 c}	S c c}	w w)a  
        Asynchronously lists EventInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str actor_sid: Only include events initiated by this Actor. Useful for auditing actions taken by specific users or API credentials.
        :param str event_type: Only include events of this [Event Type](https://www.twilio.com/docs/usage/monitor-events#event-types).
        :param str resource_sid: Only include events that refer to this resource. Useful for discovering the history of a specific resource.
        :param str source_ip_address: Only include events that originated from this IP address. Useful for tracking suspicious activity originating from the API or the Twilio Console.
        :param datetime start_date: Only include events that occurred on or after this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
        :param datetime end_date: Only include events that occurred on or before this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        r   N)r   )
r-   r   r    r!   r$   r   r   r   r   records
             r/   
list_asynczEventList.list_async  sg     B '+&7&7#%)"3%!# '8 	' 	!
 
 	!
 
 	
 
s4   A4A<86
8<A8<Ac	           
      n    | j                  ||||||||      \  }	}
}t        |	      }t        ||
|      S )a`  
        Lists EventInstance and returns headers from first page


        :param str actor_sid: Only include events initiated by this Actor. Useful for auditing actions taken by specific users or API credentials.
        :param str event_type: Only include events of this [Event Type](https://www.twilio.com/docs/usage/monitor-events#event-types).
        :param str resource_sid: Only include events that refer to this resource. Useful for discovering the history of a specific resource.
        :param str source_ip_address: Only include events that originated from this IP address. Useful for tracking suspicious activity originating from the API or the Twilio Console.
        :param datetime start_date: Only include events that occurred on or after this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
        :param datetime end_date: Only include events that occurred on or before this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
        :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   rs   )r   r   r   )r-   r   r    r!   r$   r   r   r   r   r   ru   rj   rS   s                r/   list_with_http_infozEventList.list_with_http_info$  sS    < +/*D*D!%/! +E 	+
'	; Y;PPr0   c	           
         K   | j                  ||||||||       d{   \  }	}
}|	2 cg c3 d{   }|7 7 	6 nc c}w }}t        ||
|      S w)ao  
        Asynchronously lists EventInstance and returns headers from first page


        :param str actor_sid: Only include events initiated by this Actor. Useful for auditing actions taken by specific users or API credentials.
        :param str event_type: Only include events of this [Event Type](https://www.twilio.com/docs/usage/monitor-events#event-types).
        :param str resource_sid: Only include events that refer to this resource. Useful for discovering the history of a specific resource.
        :param str source_ip_address: Only include events that originated from this IP address. Useful for tracking suspicious activity originating from the API or the Twilio Console.
        :param datetime start_date: Only include events that occurred on or after this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
        :param datetime end_date: Only include events that occurred on or before this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
        :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   Nrs   )r   r   )r-   r   r    r!   r$   r   r   r   r   r   ru   rj   r   rS   s                 r/   list_with_http_info_asyncz#EventList.list_with_http_info_asyncO  sx     < 150P0P!%/! 1Q 	1
 	+
'	; -666&	+
 7666;PPs7   A:AA ><
>A A>A A
page_tokenpage_numberc
                 B   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 EventInstance records from the API.
        Request is executed immediately

        :param actor_sid: Only include events initiated by this Actor. Useful for auditing actions taken by specific users or API credentials.
        :param event_type: Only include events of this [Event Type](https://www.twilio.com/docs/usage/monitor-events#event-types).
        :param resource_sid: Only include events that refer to this resource. Useful for discovering the history of a specific resource.
        :param source_ip_address: Only include events that originated from this IP address. Useful for tracking suspicious activity originating from the API or the Twilio Console.
        :param start_date: Only include events that occurred on or after this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
        :param end_date: Only include events that occurred on or before this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
        :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 EventInstance
        	ActorSid	EventTypeResourceSidSourceIpAddress	StartDateEndDate	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedrd   re   rf   rh   ri   paramsrj   )r   rk   r   r*   r5   r   rb   r   r-   r   r    r!   r$   r   r   r   r   r   rt   rj   responses                r/   r   zEventList.pagez  s    8 yy%'+#4&77
C$55h?'#%

 ))^-PQR.==%%diig & 
 11r0   c
                 ^  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 EventInstance records from the API.
        Request is executed immediately

        :param actor_sid: Only include events initiated by this Actor. Useful for auditing actions taken by specific users or API credentials.
        :param event_type: Only include events of this [Event Type](https://www.twilio.com/docs/usage/monitor-events#event-types).
        :param resource_sid: Only include events that refer to this resource. Useful for discovering the history of a specific resource.
        :param source_ip_address: Only include events that originated from this IP address. Useful for tracking suspicious activity originating from the API or the Twilio Console.
        :param start_date: Only include events that occurred on or after this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
        :param end_date: Only include events that occurred on or before this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
        :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 EventInstance
        r   r   r   rd   re   rf   r   N)r   rk   r   r*   r5   r   rb   r   r   s                r/   r   zEventList.page_async  s     8 yy%'+#4&77
C$55h?'#%

 ))^-PQR.11diig 2 
 
 11
s   BB-B+B-c
                 f   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 actor_sid: Only include events initiated by this Actor. Useful for auditing actions taken by specific users or API credentials.
        :param event_type: Only include events of this [Event Type](https://www.twilio.com/docs/usage/monitor-events#event-types).
        :param resource_sid: Only include events that refer to this resource. Useful for discovering the history of a specific resource.
        :param source_ip_address: Only include events that originated from this IP address. Useful for tracking suspicious activity originating from the API or the Twilio Console.
        :param start_date: Only include events that occurred on or after this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
        :param end_date: Only include events that occurred on or before this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
        :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 EventPage, status code, and headers
        r   r   r   rd   re   rf   r   rs   )	r   rk   r   r*   r5   page_with_response_inforb   r   r   r-   r   r    r!   r$   r   r   r   r   r   rt   rj   r   ru   response_headersr   s                   r/   r   zEventList.page_with_http_info  s    8 yy%'+#4&77
C$55h?'#%

 ))^-PQR.26--2W2Wdiig 3X 3
/+/ 1+GWXXr0   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 actor_sid: Only include events initiated by this Actor. Useful for auditing actions taken by specific users or API credentials.
        :param event_type: Only include events of this [Event Type](https://www.twilio.com/docs/usage/monitor-events#event-types).
        :param resource_sid: Only include events that refer to this resource. Useful for discovering the history of a specific resource.
        :param source_ip_address: Only include events that originated from this IP address. Useful for tracking suspicious activity originating from the API or the Twilio Console.
        :param start_date: Only include events that occurred on or after this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
        :param end_date: Only include events that occurred on or before this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
        :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 EventPage, status code, and headers
        r   r   r   rd   re   rf   r   Nrs   )	r   rk   r   r*   r5   page_with_response_info_asyncrb   r   r   r   s                   r/   r   z#EventList.page_with_http_info_async  s     8 yy%'+#4&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 EventInstance records from the API.
        Request is executed immediately

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

        :returns: Page of EventInstance
        rf   )r5   domaintwiliorequestr   r-   r   r   s      r/   get_pagezEventList.get_pageJ  s7     ==''..66ujI11r0   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   |      S 7 w)z
        Asynchronously retrieve a specific page of EventInstance records from the API.
        Request is executed immediately

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

        :returns: Page of EventInstance
        rf   N)r5   r   r   request_asyncr   r   s      r/   get_page_asynczEventList.get_page_asyncV  sD      --44BB5*UU11 Vs   4AAAr   c                 0    t        | j                  |      S zh
        Constructs a EventContext

        :param sid: The SID of the Event resource to fetch.
        r3   r4   r5   r-   r   s     r/   r)   zEventList.getb       DMMs33r0   c                 0    t        | j                  |      S r   r   r   s     r/   __call__zEventList.__call__j  r   r0   c                      y)rD   z<Twilio.Monitor.V1.EventList>ra   r6   s    r/   rV   zEventList.__repr__r  r   r0   )'rW   rX   rY   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   r4   r)   r   rV   r]   r^   s   @r/   r   r     s3   	 	 )/)/+1<<06.4ll,2LL##'+;f%+; #v+&+; CK(	+;
 !f-+; (F*++; &()+; }+; C=+; 
-	 +;^ )/)/+1<<06.4ll,2LL##'+Af%+A #v+&+A CK(	+A
 !f-+A (F*++A &()+A }+A C=+A 
}	%+A^ )/)/+1<<06.4ll,2LL##'*Mf%*M #v+&*M CK(	*M
 !f-*M (F*+*M &()*M }*M C=*M 
*M\ )/)/+1<<06.4ll,2LL##'*Mf%*M #v+&*M CK(	*M
 !f-*M (F*+*M &()*M }*M C=*M 
*M\ )/)/+1<<06.4ll,2LL##'*
f%*
 #v+&*
 CK(	*

 !f-*
 (F*+*
 &()*
 }*
 C=*
 
m	*
\ )/)/+1<<06.4ll,2LL##'+
f%+
 #v+&+
 CK(	+

 !f-+
 (F*++
 &()+
 }+
 C=+
 
m	+
^ )/)/+1<<06.4ll,2LL##')Qf%)Q #v+&)Q CK(	)Q
 !f-)Q (F*+)Q &())Q })Q C=)Q 
)QZ )/)/+1<<06.4ll,2LL##')Qf%)Q #v+&)Q CK(	)Q
 !f-)Q (F*+)Q &())Q })Q C=)Q 
)QZ )/)/+1<<06.4ll,2LL)/*0,,(.12f%12 #v+&12 CK(	12
 !f-12 (F*+12 &()12 #v+&12 3;'12 f%12 
12j )/)/+1<<06.4ll,2LL)/*0,,(.12f%12 #v+&12 CK(	12
 !f-12 (F*+12 &()12 #v+&12 3;'12 f%12 
12j )/)/+1<<06.4ll,2LL)/*0,,(.2Yf%2Y #v+&2Y CK(	2Y
 !f-2Y (F*+2Y &()2Y #v+&2Y 3;'2Y f%2Y 
2Yl )/)/+1<<06.4ll,2LL)/*0,,(.4Yf%4Y #v+&4Y CK(	4Y
 !f-4Y (F*+4Y &()4Y #v+&4Y 3;'4Y f%4Y 
4Yl
23 
29 
2
2s 
2y 
24s 4| 44C 4L 4/# /r0   r   N)rZ   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   r4   r   r   ra   r0   r/   <module>r      sm     L L L 6 6 0 8 : 2 ' !gF$ gFTrE? rEj/ /&l	/ l	/r0   