
    pi݁                         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  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 - Taskrouter
    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            
       v     e Zd ZdZ	 ddedeeef   dedee   f fdZ	e
dd       Zdd	Zd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 resource that triggered the event.
    :ivar actor_type: The type of resource that triggered the event.
    :ivar actor_url: The absolute URL of the resource that triggered the event.
    :ivar description: A description of the event.
    :ivar event_data: Data about the event. For more information, see [Event types](https://www.twilio.com/docs/taskrouter/api/event#event-types).
    :ivar event_date: The time the event was sent, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    :ivar event_date_ms: The time the event was sent in milliseconds.
    :ivar event_type: The identifier for the event.
    :ivar resource_sid: The SID of the object the event is most relevant to, such as a TaskSid, ReservationSid, or a  WorkerSid.
    :ivar resource_type: The type of object the event is most relevant to, such as a Task, Reservation, or a Worker).
    :ivar resource_url: The URL of the resource the event is most relevant to.
    :ivar sid: The unique string that we created to identify the Event resource.
    :ivar source: Where the Event originated.
    :ivar source_ip_address: The IP from which the Event originated.
    :ivar url: The absolute URL of the Event resource.
    :ivar workspace_sid: The SID of the Workspace that contains the Event.
    versionpayloadworkspace_sidsidc                 t   t         |   |       |j                  d      | _        |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      | _        |j                  d      | _        |j                  d      | _        ||xs | j"                  d| _        d | _        y )Naccount_sid	actor_sid
actor_type	actor_urldescription
event_data
event_dateevent_date_ms
event_typeresource_sidresource_typeresource_urlr   sourcesource_ip_addressurlr   r   r   )super__init__getr   r   r   r   r   r   r   iso8601_datetimer    r!   r"   r#   r$   r%   r   r&   r'   r(   r   	_solution_context)selfr   r   r   r   	__class__s        k/opt/services/ai/voice_agent/venv/lib/python3.12/site-packages/twilio/rest/taskrouter/v1/workspace/event.pyr+   zEventInstance.__init__.   s]    	!*1++m*D(/K(@)0\)B(/K(@*1++m*D7>{{<7P.9.J.JKK%/
 -4KK,H)0\)B+2;;~+F,3KK,H+2;;~+F")++e"4%,[[%:07<O0P")++e"4,3KK,H +?$((
 15    returnc                     | j                   7t        | j                  | j                  d   | 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)   )r/   EventContext_versionr.   r0   s    r2   _proxyzEventInstance._proxyQ   sE     == ("nn_=NN5)DM
 }}r3   c                 6    | j                   j                         S )W
        Fetch the EventInstance


        :returns: The fetched EventInstance
        )r9   fetchr8   s    r2   r<   zEventInstance.fetcha   s     {{  ""r3   c                 R   K   | j                   j                          d{   S 7 w)q
        Asynchronous coroutine to fetch the EventInstance


        :returns: The fetched EventInstance
        N)r9   fetch_asyncr8   s    r2   r?   zEventInstance.fetch_asyncj   s!      [[,,....s   '%'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      r2   	<genexpr>z)EventInstance.__repr__.<locals>.<genexpr>y        SDAq7>>!Q/S   !z'<Twilio.Taskrouter.V1.EventInstance {}>joinr.   itemsrF   r0   contexts     r2   __repr__zEventInstance.__repr__s   s6     ((SDNN<P<P<RSS8??HHr3   )N)r4   r6   )r4   r   )__name__
__module____qualname____doc__r   r   strr   r   r+   propertyr9   r<   r?   rS   __classcell__r1   s   @r2   r   r      sq    2 "!5!5 c3h!5 	!5
 c]!5F  #/I# Ir3   r   c                   P     e Zd Zdededef fdZdefdZdefdZdefdZ	 xZ
S )	r6   r   r   r   c                 z    t         |   |       ||d| _         dj                  di | j                  | _        y)z
        Initialize the EventContext

        :param version: Version that contains the resource
        :param workspace_sid: The SID of the Workspace with the Event to fetch.
        :param sid: The SID of the Event resource to fetch.
        r)   z(/Workspaces/{workspace_sid}/Events/{sid}N r*   r+   r.   rF   _uri)r0   r   r   r   r1   s       r2   r+   zEventContext.__init__   sB     	! +
 F>EEWW	r3   r4   c                     t        j                  i       }d|d<   | j                  j                  d| j                  |      }t        | j                  || j                  d   | j                  d         S )r;   application/jsonAcceptGETmethoduriheadersr   r   r)   )r   ofr7   r<   r`   r   r.   r0   rh   r   s      r2   r<   zEventContext.fetch   si     ))B-.--%%U		7%SMM..9u%	
 	
r3   c                   K   t        j                  i       }d|d<   | j                  j                  d| j                  |       d{   }t        | j                  || j                  d   | j                  d         S 7 7w)	r>   rb   rc   rd   re   Nr   r   r)   )r   ri   r7   r?   r`   r   r.   rj   s      r2   r?   zEventContext.fetch_async   s~      ))B-.11dii 2 
 
 MM..9u%	
 	
	
s   ABB 	8Bc                     dj                  d | j                  j                         D              }dj                  |      S )rA   rB   c              3   F   K   | ]  \  }}d j                  ||        ywrD   rE   rG   s      r2   rK   z(EventContext.__repr__.<locals>.<genexpr>   rL   rM   z&<Twilio.Taskrouter.V1.EventContext {}>rN   rQ   s     r2   rS   zEventContext.__repr__   s6     ((SDNN<P<P<RSS7>>wGGr3   )rT   rU   rV   r   rX   r+   r   r<   r?   rS   rZ   r[   s   @r2   r6   r6   }   sG    X X X# X"
} 
*
= 
.H# Hr3   r6   c                   2    e Zd Zdeeef   defdZdefdZy)	EventPager   r4   c                 L    t        | j                  || j                  d         S )zk
        Build an instance of EventInstance

        :param payload: Payload response from the API
        r   )r   )r   r7   r.   )r0   r   s     r2   get_instancezEventPage.get_instance   s%     MM7$..2Q
 	
r3   c                      y)rA   z <Twilio.Taskrouter.V1.EventPage>r^   r8   s    r2   rS   zEventPage.__repr__        2r3   N)	rT   rU   rV   r   rX   r   r   rq   rS   r^   r3   r2   ro   ro      s)    
DcN 
} 
2# 2r3   ro   c                   `    e Zd Zdedef fdZej                  ej                  ej                  ej                  ej                  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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                  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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                  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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                  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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                  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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                  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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   r   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the EventList

        :param version: Version that contains the resource
        :param workspace_sid: The SID of the Workspace with the Events to read. Returns only the Events that pertain to the specified Workspace.

        r   z"/Workspaces/{workspace_sid}/EventsNr^   r_   )r0   r   r   r1   s      r2   r+   zEventList.__init__   sA     	! ]
 @8??Q$..Q	r3   Nend_dater"   minutesreservation_sid
start_datetask_queue_sidtask_sid
worker_sidworkflow_sidtask_channelr   limit	page_sizer4   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 datetime end_date: Only include Events that occurred on or before this date, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time.
        :param str event_type: The type of Events to read. Returns only Events of the type specified.
        :param int minutes: The period of events to read in minutes. Returns only Events that occurred since this many minutes in the past. The default is `15` minutes. Task Attributes for Events occuring more 43,200 minutes ago will be redacted.
        :param str reservation_sid: The SID of the Reservation with the Events to read. Returns only Events that pertain to the specified Reservation.
        :param datetime start_date: Only include Events from on or after this date and time, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Task Attributes for Events older than 30 days will be redacted.
        :param str task_queue_sid: The SID of the TaskQueue with the Events to read. Returns only the Events that pertain to the specified TaskQueue.
        :param str task_sid: The SID of the Task with the Events to read. Returns only the Events that pertain to the specified Task.
        :param str worker_sid: The SID of the Worker with the Events to read. Returns only the Events that pertain to the specified Worker.
        :param str workflow_sid: The SID of the Workflow with the Events to read. Returns only the Events that pertain to the specified Workflow.
        :param str task_channel: The TaskChannel with the Events to read. Returns only the Events that pertain to the specified TaskChannel.
        :param str sid: The SID of the Event resource to read.
        :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   rw   r"   rx   ry   rz   r{   r|   r}   r~   r   r   r   r   )r7   read_limitspagestreamr0   rw   r"   rx   ry   rz   r{   r|   r}   r~   r   r   r   r   limitsr   s                   r2   r   zEventList.stream   st    T **5)<yy!+!)!%%[)  
 }}##D&/::r3   c                    K   | j                   j                  ||      }| j                  |||||||||	|
||d          d{   }| j                   j                  ||d         S 7 #w)a	  
        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 datetime end_date: Only include Events that occurred on or before this date, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time.
        :param str event_type: The type of Events to read. Returns only Events of the type specified.
        :param int minutes: The period of events to read in minutes. Returns only Events that occurred since this many minutes in the past. The default is `15` minutes. Task Attributes for Events occuring more 43,200 minutes ago will be redacted.
        :param str reservation_sid: The SID of the Reservation with the Events to read. Returns only Events that pertain to the specified Reservation.
        :param datetime start_date: Only include Events from on or after this date and time, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Task Attributes for Events older than 30 days will be redacted.
        :param str task_queue_sid: The SID of the TaskQueue with the Events to read. Returns only the Events that pertain to the specified TaskQueue.
        :param str task_sid: The SID of the Task with the Events to read. Returns only the Events that pertain to the specified Task.
        :param str worker_sid: The SID of the Worker with the Events to read. Returns only the Events that pertain to the specified Worker.
        :param str workflow_sid: The SID of the Workflow with the Events to read. Returns only the Events that pertain to the specified Workflow.
        :param str task_channel: The TaskChannel with the Events to read. Returns only the Events that pertain to the specified TaskChannel.
        :param str sid: The SID of the Event resource to read.
        :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   )r7   r   
page_asyncstream_asyncr   s                   r2   r   zEventList.stream_async)  s     T **5)<__!+!)!%%[) % 
 
 }}))$w@@
s   A A(A&$A(c                 P    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 datetime end_date: Only include Events that occurred on or before this date, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time.
        :param str event_type: The type of Events to read. Returns only Events of the type specified.
        :param int minutes: The period of events to read in minutes. Returns only Events that occurred since this many minutes in the past. The default is `15` minutes. Task Attributes for Events occuring more 43,200 minutes ago will be redacted.
        :param str reservation_sid: The SID of the Reservation with the Events to read. Returns only Events that pertain to the specified Reservation.
        :param datetime start_date: Only include Events from on or after this date and time, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Task Attributes for Events older than 30 days will be redacted.
        :param str task_queue_sid: The SID of the TaskQueue with the Events to read. Returns only the Events that pertain to the specified TaskQueue.
        :param str task_sid: The SID of the Task with the Events to read. Returns only the Events that pertain to the specified Task.
        :param str worker_sid: The SID of the Worker with the Events to read. Returns only the Events that pertain to the specified Worker.
        :param str workflow_sid: The SID of the Workflow with the Events to read. Returns only the Events that pertain to the specified Workflow.
        :param str task_channel: The TaskChannel with the Events to read. Returns only the Events that pertain to the specified TaskChannel.
        :param str sid: The SID of the Event resource to read.
        :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
        rw   r"   rx   ry   rz   r{   r|   r}   r~   r   r   r   r   )listr   )r0   rw   r"   rx   ry   rz   r{   r|   r}   r~   r   r   r   r   s                 r2   r   zEventList.liste  sJ    R KK!% /%-!%))#  
 	
r3   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 datetime end_date: Only include Events that occurred on or before this date, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time.
        :param str event_type: The type of Events to read. Returns only Events of the type specified.
        :param int minutes: The period of events to read in minutes. Returns only Events that occurred since this many minutes in the past. The default is `15` minutes. Task Attributes for Events occuring more 43,200 minutes ago will be redacted.
        :param str reservation_sid: The SID of the Reservation with the Events to read. Returns only Events that pertain to the specified Reservation.
        :param datetime start_date: Only include Events from on or after this date and time, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Task Attributes for Events older than 30 days will be redacted.
        :param str task_queue_sid: The SID of the TaskQueue with the Events to read. Returns only the Events that pertain to the specified TaskQueue.
        :param str task_sid: The SID of the Task with the Events to read. Returns only the Events that pertain to the specified Task.
        :param str worker_sid: The SID of the Worker with the Events to read. Returns only the Events that pertain to the specified Worker.
        :param str workflow_sid: The SID of the Workflow with the Events to read. Returns only the Events that pertain to the specified Workflow.
        :param str task_channel: The TaskChannel with the Events to read. Returns only the Events that pertain to the specified TaskChannel.
        :param str sid: The SID of the Event resource to read.
        :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   )r0   rw   r"   rx   ry   rz   r{   r|   r}   r~   r   r   r   r   records                  r2   
list_asynczEventList.list_async  sv     V '+&7&7!% /%-!%))# '8 ' !
 
 !
 
 	
 
s7   "A9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                  || j                        S )a  
        Retrieve a single page of EventInstance records from the API.
        Request is executed immediately

        :param end_date: Only include Events that occurred on or before this date, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time.
        :param event_type: The type of Events to read. Returns only Events of the type specified.
        :param minutes: The period of events to read in minutes. Returns only Events that occurred since this many minutes in the past. The default is `15` minutes. Task Attributes for Events occuring more 43,200 minutes ago will be redacted.
        :param reservation_sid: The SID of the Reservation with the Events to read. Returns only Events that pertain to the specified Reservation.
        :param start_date: Only include Events from on or after this date and time, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Task Attributes for Events older than 30 days will be redacted.
        :param task_queue_sid: The SID of the TaskQueue with the Events to read. Returns only the Events that pertain to the specified TaskQueue.
        :param task_sid: The SID of the Task with the Events to read. Returns only the Events that pertain to the specified Task.
        :param worker_sid: The SID of the Worker with the Events to read. Returns only the Events that pertain to the specified Worker.
        :param workflow_sid: The SID of the Workflow with the Events to read. Returns only the Events that pertain to the specified Workflow.
        :param task_channel: The TaskChannel with the Events to read. Returns only the Events that pertain to the specified TaskChannel.
        :param sid: The SID of the Event resource to read.
        :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
        EndDate	EventTypeMinutesReservationSid	StartDateTaskQueueSidTaskSid	WorkerSidWorkflowSidTaskChannelSid	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedrb   rc   rd   rf   rg   paramsrh   )	r   ri   r   r-   r7   r   r`   ro   r.   r0   rw   r"   rx   ry   rz   r{   r|   r}   r~   r   r   r   r   r   datarh   responses                     r2   r   zEventList.page  s    L yy$55h?'""1&77
C .#'++'#%
& ))^-PQR.==%%diig & 
 $..AAr3   c                 ~  K   t        j                  t        j                  |      |||t        j                  |      ||||	|
||||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  || j                        S 7 %w)	a  
        Asynchronously retrieve a single page of EventInstance records from the API.
        Request is executed immediately

        :param end_date: Only include Events that occurred on or before this date, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time.
        :param event_type: The type of Events to read. Returns only Events of the type specified.
        :param minutes: The period of events to read in minutes. Returns only Events that occurred since this many minutes in the past. The default is `15` minutes. Task Attributes for Events occuring more 43,200 minutes ago will be redacted.
        :param reservation_sid: The SID of the Reservation with the Events to read. Returns only Events that pertain to the specified Reservation.
        :param start_date: Only include Events from on or after this date and time, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Task Attributes for Events older than 30 days will be redacted.
        :param task_queue_sid: The SID of the TaskQueue with the Events to read. Returns only the Events that pertain to the specified TaskQueue.
        :param task_sid: The SID of the Task with the Events to read. Returns only the Events that pertain to the specified Task.
        :param worker_sid: The SID of the Worker with the Events to read. Returns only the Events that pertain to the specified Worker.
        :param workflow_sid: The SID of the Workflow with the Events to read. Returns only the Events that pertain to the specified Workflow.
        :param task_channel: The TaskChannel with the Events to read. Returns only the Events that pertain to the specified TaskChannel.
        :param sid: The SID of the Event resource to read.
        :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   rb   rc   rd   r   N)	r   ri   r   r-   r7   r   r`   ro   r.   r   s                     r2   r   zEventList.page_async  s     L yy$55h?'""1&77
C .#'++'#%
& ))^-PQR.11diig 2 
 
 $..AA
s   BB=B;&B=
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   || 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
        rd   )r7   domaintwiliorequestro   r.   r0   r   r   s      r2   get_pagezEventList.get_page`  s=     ==''..66ujI$..AAr3   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   || 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
        rd   N)r7   r   r   request_asyncro   r.   r   s      r2   get_page_asynczEventList.get_page_asyncl  sJ      --44BB5*UU$..AA Vs   4AA&Ac                 L    t        | j                  | j                  d   |      S zh
        Constructs a EventContext

        :param sid: The SID of the Event resource to fetch.
        r   r)   r6   r7   r.   r0   r   s     r2   r,   zEventList.getx  %     MM)Hc
 	
r3   c                 L    t        | j                  | j                  d   |      S r   r   r   s     r2   __call__zEventList.__call__  r   r3   c                      y)rA   z <Twilio.Taskrouter.V1.EventList>r^   r8   s    r2   rS   zEventList.__repr__  rs   r3   )rT   rU   rV   r   rX   r+   r   unsetr   r   objectintr   r	   r   r   r
   r   r   r   r   ro   r   r   r   r   r6   r,   r   rS   rZ   r[   s   @r2   ru   ru      s	   R R R$ -3LL)/&,ll.4ll.4ll-3\\'-||)/+1<<+1<<"(,,##':;&():; #v+&:; sF{#	:;
 sF{+:; (F*+:; c6k*:; V$:; #v+&:; CK(:; CK(:; 3;:; }:; C=:; 
-	 :;| -3LL)/&,ll.4ll.4ll-3\\'-||)/+1<<+1<<"(,,##':A&():A #v+&:A sF{#	:A
 sF{+:A (F*+:A c6k*:A V$:A #v+&:A CK(:A CK(:A 3;:A }:A C=:A 
}	%:A| -3LL)/&,ll.4ll.4ll-3\\'-||)/+1<<+1<<"(,,##'9
&()9
 #v+&9
 sF{#	9

 sF{+9
 (F*+9
 c6k*9
 V$9
 #v+&9
 CK(9
 CK(9
 3;9
 }9
 C=9
 
m	9
z -3LL)/&,ll.4ll.4ll-3\\'-||)/+1<<+1<<"(,,##':
&():
 #v+&:
 sF{#	:

 sF{+:
 (F*+:
 c6k*:
 V$:
 #v+&:
 CK(:
 CK(:
 3;:
 }:
 C=:
 
m	:
| -3LL)/&,ll.4ll.4ll-3\\'-||)/+1<<+1<<"(,,)/*0,,(.@B&()@B #v+&@B sF{#	@B
 sF{+@B (F*+@B c6k*@B V$@B #v+&@B CK(@B CK(@B 3;@B #v+&@B 3;'@B f%@B  
!@BH -3LL)/&,ll.4ll.4ll-3\\'-||)/+1<<+1<<"(,,)/*0,,(.@B&()@B #v+&@B sF{#	@B
 sF{+@B (F*+@B c6k*@B V$@B #v+&@B CK(@B CK(@B 3;@B #v+&@B 3;'@B f%@B  
!@BD
B3 
B9 
B
Bs 
By 
B
s 
| 

C 
L 
2# 2r3   ru   N)rW   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   r6   ro   ru   r^   r3   r2   <module>r      sj     L L L 6 6 8 : 2 ' !aI$ aIHFH? FHR2 2*w2 w2r3   