
    d{i                         d 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 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 - Events
    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.
    )AnyDictListOptionalUnionIteratorAsyncIterator)deserializevalues)ApiResponse)InstanceContext)InstanceResource)ListResource)Version)Pagec            
           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efd	Zdefd
ZdefdZdefdZddZddZdefdZdefdZej.                  fdeeef   dd fdZej.                  fdeeef   dd fdZej.                  fdeeef   defdZej.                  fdeeef   defdZdefdZ xZ S )SubscribedEventInstancea<  
    :ivar account_sid: The unique SID identifier of the Account.
    :ivar type: Type of event being subscribed to.
    :ivar schema_version: The schema version that the Subscription should use.
    :ivar subscription_sid: The unique SID identifier of the Subscription.
    :ivar url: The URL of this resource.
    versionpayloadsubscription_sidtypec                 d   t         |   |       |j                  d      | _        |j                  d      | _        t        j                  |j                  d            | _        |j                  d      | _        |j                  d      | _	        ||xs | j                  d| _
        d | _        y )Naccount_sidr   schema_versionr   urlr   r   )super__init__getr   r   r
   integerr   r   r   	_solution_context)selfr   r   r   r   	__class__s        q/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/events/v1/subscription/subscribed_event.pyr   z SubscribedEventInstance.__init__"   s     	!*1++m*D#*;;v#6	-8-@-@KK().
 07{{;M/N")++e"4 !1%DII
 ;?    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: SubscribedEventContext for this SubscribedEventInstance
        r   r   r   )r"   SubscribedEventContext_versionr!   r#   s    r%   _proxyzSubscribedEventInstance._proxy9   sF     == 2!%0B!C^^F+DM
 }}r&   c                 6    | j                   j                         S zr
        Deletes the SubscribedEventInstance


        :returns: True if delete succeeds, False otherwise
        )r,   deleter+   s    r%   r/   zSubscribedEventInstance.deleteI   s     {{!!##r&   c                 R   K   | j                   j                          d{   S 7 wz
        Asynchronous coroutine that deletes the SubscribedEventInstance


        :returns: True if delete succeeds, False otherwise
        N)r,   delete_asyncr+   s    r%   r2   z$SubscribedEventInstance.delete_asyncR   s!      [[--////   '%'c                 6    | j                   j                         S )z
        Deletes the SubscribedEventInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        )r,   delete_with_http_infor+   s    r%   r5   z-SubscribedEventInstance.delete_with_http_info[   s     {{0022r&   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine that deletes the SubscribedEventInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        N)r,   delete_with_http_info_asyncr+   s    r%   r7   z3SubscribedEventInstance.delete_with_http_info_asyncd   s!      [[<<>>>>r3   c                 6    | j                   j                         S )k
        Fetch the SubscribedEventInstance


        :returns: The fetched SubscribedEventInstance
        )r,   fetchr+   s    r%   r:   zSubscribedEventInstance.fetchm   s     {{  ""r&   c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine to fetch the SubscribedEventInstance


        :returns: The fetched SubscribedEventInstance
        N)r,   fetch_asyncr+   s    r%   r=   z#SubscribedEventInstance.fetch_asyncv   s!      [[,,....r3   c                 6    | j                   j                         S )z
        Fetch the SubscribedEventInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        )r,   fetch_with_http_infor+   s    r%   r?   z,SubscribedEventInstance.fetch_with_http_info   s     {{//11r&   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine to fetch the SubscribedEventInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        N)r,   fetch_with_http_info_asyncr+   s    r%   rA   z2SubscribedEventInstance.fetch_with_http_info_async   s!      [[;;====r3   r   c                 :    | j                   j                  |      S )
        Update the SubscribedEventInstance

        :param schema_version: The schema version that the Subscription should use.

        :returns: The updated SubscribedEventInstance
        r   )r,   updater#   r   s     r%   rE   zSubscribedEventInstance.update   s#     {{!!) " 
 	
r&   c                 V   K   | j                   j                  |       d{   S 7 w)
        Asynchronous coroutine to update the SubscribedEventInstance

        :param schema_version: The schema version that the Subscription should use.

        :returns: The updated SubscribedEventInstance
        rD   N)r,   update_asyncrF   s     r%   rI   z$SubscribedEventInstance.update_async   s1      [[--) . 
 
 	
 
    )')c                 :    | j                   j                  |      S )z
        Update the SubscribedEventInstance with HTTP info

        :param schema_version: The schema version that the Subscription should use.

        :returns: ApiResponse with instance, status code, and headers
        rD   )r,   update_with_http_inforF   s     r%   rL   z-SubscribedEventInstance.update_with_http_info   s#     {{00) 1 
 	
r&   c                 V   K   | j                   j                  |       d{   S 7 w)z
        Asynchronous coroutine to update the SubscribedEventInstance with HTTP info

        :param schema_version: The schema version that the Subscription should use.

        :returns: ApiResponse with instance, status code, and headers
        rD   N)r,   update_with_http_info_asyncrF   s     r%   rN   z3SubscribedEventInstance.update_with_http_info_async   s1      [[<<) = 
 
 	
 
rJ   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>z3SubscribedEventInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z-<Twilio.Events.V1.SubscribedEventInstance {}>joinr!   itemsrU   r#   contexts     r%   __repr__z SubscribedEventInstance.__repr__   s6     ((SDNN<P<P<RSS>EEgNNr&   )N)r'   r)   )r'   r   )!__name__
__module____qualname____doc__r   r   strr   r   r   propertyr,   boolr/   r2   r   r5   r7   r:   r=   r?   rA   r   unsetr   intobjectrE   rI   rL   rN   rb   __classcell__r$   s   @r%   r   r      sT    #?? c3h? 	?
 sm?.  $ $0D 03{ 3?; ?#/2k 2>+ > 4:<<
#CK0
	"
 4:<<
#CK0
	"
 4:<<
#CK0
	
 4:<<
#CK0
	
O# Or&   r   c                       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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defdZde
fdZej.                  fdeeef   defdZej.                  fdeeef   defdZej.                  fdeeef   de
fdZej.                  fdeeef   defdZej.                  fdeeef   defdZej.                  fdeeef   de
fdZ defdZ! xZ"S )r)   r   r   r   c                 z    t         |   |       ||d| _         dj                  di | j                  | _        y)z
        Initialize the SubscribedEventContext

        :param version: Version that contains the resource
        :param subscription_sid: The unique SID identifier of the Subscription.
        :param type: Type of event being subscribed to.
        r   z9/Subscriptions/{subscription_sid}/SubscribedEvents/{type}N r   r   r!   rU   _uri)r#   r   r   r   r$   s       r%   r   zSubscribedEventContext.__init__   sG     	! !1
 WOVV 
nn
	r&   r'   c                 |    t        j                  i       }| j                  j                  d| j                  |      S )z
        Internal helper for delete operation

        Returns:
            tuple: (success_boolean, status_code, headers)
        DELETEmethoduriheaders)r   ofr*   delete_with_response_infors   r#   ry   s     r%   _deletezSubscribedEventContext._delete   s8     ))B-}}66G 7 
 	
r&   c                 .    | j                         \  }}}|S r.   )r}   r#   success_s      r%   r/   zSubscribedEventContext.delete   s     Ar&   c                 F    | j                         \  }}}t        |||      S )z
        Deletes the SubscribedEventInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        datastatus_codery   )r}   r   r#   r   r   ry   s       r%   r5   z,SubscribedEventContext.delete_with_http_info   s%     )-%g['RRr&   c                    K   t        j                  i       }| j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for delete operation

        Returns:
            tuple: (success_boolean, status_code, headers)
        ru   rv   N)r   rz   r*   delete_with_response_info_asyncrs   r|   s     r%   _delete_asyncz$SubscribedEventContext._delete_async
  sG      ))B-]]BBG C 
 
 	
 
s   AA
AA
c                 J   K   | j                          d{   \  }}}|S 7 
wr1   )r   r   s      r%   r2   z#SubscribedEventContext.delete_async  s)      #0022A 3s   #!#c                 b   K   | j                          d{   \  }}}t        |||      S 7 w)z
        Asynchronous coroutine that deletes the SubscribedEventInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        Nr   )r   r   r   s       r%   r7   z2SubscribedEventContext.delete_with_http_info_async"  s5      /3.@.@.B(B%g['RR )Cs   /-/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GETrv   )r   rz   r*   fetch_with_response_infors   r|   s     r%   _fetchzSubscribedEventContext._fetch,  sB     ))B-.}}55dii 6 
 	
r&   c                     | j                         \  }}}t        | j                  || j                  d   | j                  d         S )r9   r   r   r   )r   r   r*   r!   r#   r   r   s      r%   r:   zSubscribedEventContext.fetch<  sE     A&MM!^^,>?'	
 	
r&   c                     | j                         \  }}}t        | j                  || j                  d   | j                  d         }t	        |||      S )z
        Fetch the SubscribedEventInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r   r   r   r   )r   r   r*   r!   r   r#   r   r   ry   instances        r%   r?   z+SubscribedEventContext.fetch_with_http_infoK  sT     )-%g*MM!^^,>?'	
 k7SSr&   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)
        r   r   r   rv   N)r   rz   r*   fetch_with_response_info_asyncrs   r|   s     r%   _fetch_asyncz#SubscribedEventContext._fetch_async[  sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d   | j                  d         S 7 ;w)r<   Nr   r   r   )r   r   r*   r!   r   s      r%   r=   z"SubscribedEventContext.fetch_asynck  sT      #//11A&MM!^^,>?'	
 	
 2s   AA<Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d   | j                  d         }t	        |||      S 7 Iw)z
        Asynchronous coroutine to fetch the SubscribedEventInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr   r   r   r   )r   r   r*   r!   r   r   s        r%   rA   z1SubscribedEventContext.fetch_with_http_info_asyncz  sd      /3.?.?.A(A%g*MM!^^,>?'	
 k7SS )Bs   A"A A
A"r   c                     t        j                  d|i      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||      S )z{
        Internal helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        SchemaVersion!application/x-www-form-urlencodedContent-Typer   r   POSTrw   rx   r   ry   )r   rz   r*   update_with_response_infors   r#   r   r   ry   s       r%   _updatezSubscribedEventContext._update  sh     yy

 ))B-"E.}}66tyytW 7 
 	
r&   c                     | j                  |      \  }}}t        | j                  || j                  d   | j                  d         S )rC   rD   r   r   r   )r   r   r*   r!   r#   r   r   r   s       r%   rE   zSubscribedEventContext.update  sJ     NCA&MM!^^,>?'	
 	
r&   c                     | j                  |      \  }}}t        | j                  || j                  d   | j                  d         }t	        |||      S )z
        Update the SubscribedEventInstance and return response metadata

        :param schema_version: The schema version that the Subscription should use.

        :returns: ApiResponse with instance, status code, and headers
        rD   r   r   r   r   )r   r   r*   r!   r   r#   r   r   r   ry   r   s         r%   rL   z,SubscribedEventContext.update_with_http_info  sY     )-N(S%g*MM!^^,>?'	
 k7SSr&   c                    K   t        j                  d|i      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||       d{   S 7 w)	z
        Internal async helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   r   r   r   r   N)r   rz   r*   update_with_response_info_asyncrs   r   s       r%   _update_asyncz$SubscribedEventContext._update_async  sw      yy

 ))B-"E.]]BBtyytW C 
 
 	
 
s   A#A,%A*&A,c                    K   | j                  |       d{   \  }}}t        | j                  || j                  d   | j                  d         S 7 ;w)rH   rD   Nr   r   r   )r   r   r*   r!   r   s       r%   rI   z#SubscribedEventContext.update_async  sZ      #000OOA&MM!^^,>?'	
 	
 Ps   AA<Ac                    K   | j                  |       d{   \  }}}t        | j                  || j                  d   | j                  d         }t	        |||      S 7 Iw)a  
        Asynchronous coroutine to update the SubscribedEventInstance and return response metadata

        :param schema_version: The schema version that the Subscription should use.

        :returns: ApiResponse with instance, status code, and headers
        rD   Nr   r   r   r   )r   r   r*   r!   r   r   s         r%   rN   z2SubscribedEventContext.update_with_http_info_async  sr      /3.@.@) /A /
 )
%g +MM!^^,>?'	
 k7SS)
s   A$A"A
A$c                     dj                  d | j                  j                         D              }dj                  |      S )rP   rQ   c              3   F   K   | ]  \  }}d j                  ||        ywrS   rT   rV   s      r%   rZ   z2SubscribedEventContext.__repr__.<locals>.<genexpr>  r[   r\   z,<Twilio.Events.V1.SubscribedEventContext {}>r]   r`   s     r%   rb   zSubscribedEventContext.__repr__  s6     ((SDNN<P<P<RSS=DDWMMr&   )#rc   rd   re   r   rg   r   tupler}   ri   r/   r   r5   r   r2   r7   r   r   r:   r?   r   r=   rA   r   rj   r   rk   rl   r   rE   rL   r   rI   rN   rb   rm   rn   s   @r%   r)   r)      s   
 
3 
c 
&
 
 S{ S
U 
D S; S
 
 
. 
Tk T 
E 
 
#: 
T+ T  <B<< 
eCK&8 
E 
0 4:<<
#CK0
	 
& 4:<<T#CK0T	T( 4:<<
#CK0
	
4 4:<<
#CK0
	 
& 4:<<T#CK0T	T*N# Nr&   r)   c                   2    e Zd Zdeeef   defdZdefdZy)SubscribedEventPager   r'   c                 L    t        | j                  || j                  d         S )zu
        Build an instance of SubscribedEventInstance

        :param payload: Payload response from the API
        r   r   )r   r*   r!   )r#   r   s     r%   get_instancez SubscribedEventPage.get_instance  s&     'MM7T^^DV5W
 	
r&   c                      y)rP   z&<Twilio.Events.V1.SubscribedEventPage>rq   r+   s    r%   rb   zSubscribedEventPage.__repr__       8r&   N)	rc   rd   re   r   rg   r   r   r   rb   rq   r&   r%   r   r     s*    
DcN 
7N 
8# 8r&   r   c            	           e Zd Zdedef fdZej                  fdedee	e
f   defdZej                  fdedee	e
f   defdZej                  fdedee	e
f   defd	Zej                  fdedee	e
f   defd
Zej                  fdedee	e
f   defdZej                  fdedee	e
f   defdZ	 	 d#dee	   dee	   dee   fdZ	 	 d#dee	   dee	   dee   fdZ	 	 d#dee	   dee	   defdZ	 	 d#dee	   dee	   defdZ	 	 d#dee	   dee	   dee   fdZ	 	 d#dee	   dee	   dee   fdZ	 	 d#dee	   dee	   defdZ	 	 d#dee	   dee	   defdZej                  ej                  ej                  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                  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                  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                  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 )$SubscribedEventListr   r   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the SubscribedEventList

        :param version: Version that contains the resource
        :param subscription_sid: The unique SID identifier of the Subscription.

        r   z2/Subscriptions/{subscription_sid}/SubscribedEventsNrq   rr   )r#   r   r   r$   s      r%   r   zSubscribedEventList.__init__'  sG     	!  0
 PHOO 
nn
	r&   r   r   r'   c                     t        j                  ||d      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||      S )z{
        Internal helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        Typer   r   r   r   r   r   r   )r   rz   r*   create_with_response_infors   r#   r   r   r   ry   s        r%   _createzSubscribedEventList._create9  sp     yy!/
 ))^-PQR"E.}}66tyytW 7 
 	
r&   c                 z    | j                  ||      \  }}}t        | j                  || j                  d         S )z
        Create the SubscribedEventInstance

        :param type: Type of event being subscribed to.
        :param schema_version: The schema version that the Subscription should use.

        :returns: The created SubscribedEventInstance
        r   r   r   r   )r   r   r*   r!   r#   r   r   r   r   s        r%   createzSubscribedEventList.createS  s>     $~NA&MM7T^^DV5W
 	
r&   c                     | j                  ||      \  }}}t        | j                  || j                  d         }t	        |||      S )a%  
        Create the SubscribedEventInstance and return response metadata

        :param type: Type of event being subscribed to.
        :param schema_version: The schema version that the Subscription should use.

        :returns: ApiResponse with instance, status code, and headers
        r   r   r   r   )r   r   r*   r!   r   r#   r   r   r   r   ry   r   s          r%   create_with_http_infoz)SubscribedEventList.create_with_http_infoc  sU     )-n )5 )
%g +MM7T^^DV5W
 k7SSr&   c                    K   t        j                  ||d      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||       d{   S 7 w)	z
        Internal async helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   r   r   r   r   N)r   rz   r*   create_with_response_info_asyncrs   r   s        r%   _create_asyncz!SubscribedEventList._create_asyncv  s      yy!/
 ))^-PQR"E.]]BBtyytW C 
 
 	
 
s   A&A/(A-)A/c                    K   | j                  ||       d{   \  }}}t        | j                  || j                  d         S 7 -w)a  
        Asynchronously create the SubscribedEventInstance

        :param type: Type of event being subscribed to.
        :param schema_version: The schema version that the Subscription should use.

        :returns: The created SubscribedEventInstance
        r   Nr   r   )r   r   r*   r!   r   s        r%   create_asyncz SubscribedEventList.create_async  sV      #00n 1 
 
A 'MM7T^^DV5W
 	

s   A	A.A	c                    K   | j                  ||       d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)a4  
        Asynchronously create the SubscribedEventInstance and return response metadata

        :param type: Type of event being subscribed to.
        :param schema_version: The schema version that the Subscription should use.

        :returns: ApiResponse with instance, status code, and headers
        r   Nr   r   r   )r   r   r*   r!   r   r   s          r%   create_with_http_info_asyncz/SubscribedEventList.create_with_http_info_async  sf      /3.@.@n /A /
 )
%g +MM7T^^DV5W
 k7SS)
s   AA<Alimit	page_sizec                     | j                   j                  ||      }| j                  |d         }| j                   j                  ||d         S )ae  
        Streams SubscribedEventInstance 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 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*   read_limitspagestreamr#   r   r   limitsr   s        r%   r   zSubscribedEventList.stream  sJ    ( **5)<yy6+#6y7}}##D&/::r&   c                    K   | j                   j                  ||      }| j                  |d          d{   }| j                   j                  ||d         S 7 #w)at  
        Asynchronously streams SubscribedEventInstance 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 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        r%   r   z SubscribedEventList.stream_async  sW     ( **5)<__vk/B_CC}}))$w@@ Ds   5AA$Ac                     | j                   j                  ||      }| j                  |d         }| j                   j                  |j                  |d         }||j
                  |j                  fS )a  
        Streams SubscribedEventInstance and returns headers from first page


        :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   r   r   ry   r#   r   r   r   page_response	generators         r%   stream_with_http_infoz)SubscribedEventList.stream_with_http_info  sk    $ **5)<006+;N0OMM((););VG_M	=44m6K6KLLr&   c                   K   | j                   j                  ||      }| j                  |d          d{   }| j                   j                  |j                  |d         }||j
                  |j                  fS 7 Fw)a  
        Asynchronously streams SubscribedEventInstance and returns headers from first page


        :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   r   r   ry   r   s         r%   stream_with_http_info_asyncz/SubscribedEventList.stream_with_http_info_async  s     $ **5)<"<<[) = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   5B A>AB c                 :    t        | j                  ||            S )a  
        Lists SubscribedEventInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :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   )listr   )r#   r   r   s      r%   r   zSubscribedEventList.list  s(    & KK#  
 	
r&   c                 z   K   | j                  ||       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)a  
        Asynchronously lists SubscribedEventInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :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   records       r%   
list_asynczSubscribedEventList.list_async3  sT     * '+&7&7# '8 ' !
 
 !
 
 	
 
s0   ;.;620
26;26;c                 b    | j                  ||      \  }}}t        |      }t        |||      S )a  
        Lists SubscribedEventInstance and returns headers from first page


        :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   r   )r   r   r   )r#   r   r   r   r   ry   r_   s          r%   list_with_http_infoz'SubscribedEventList.list_with_http_infoN  sA    $ +/*D*D +E +
'	; Y;PPr&   c                    K   | j                  ||       d{   \  }}}|2 cg c3 d{   }|7 7 	6 nc c}w }}t        |||      S w)a  
        Asynchronously lists SubscribedEventInstance and returns headers from first page


        :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   Nr   )r   r   )r#   r   r   r   r   ry   r   r_   s           r%   list_with_http_info_asyncz-SubscribedEventList.list_with_http_info_asyncg  sf     $ 150P0P 1Q 1
 +
'	; -666&	+
 7666;PPs4   A4A:86
8:A8:A
page_tokenpage_numberc                     t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      }t        | j                  || j                        S )a  
        Retrieve a single page of SubscribedEventInstance records from the API.
        Request is executed immediately

        :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 SubscribedEventInstance
        	PageTokenr   PageSizer   r   r   r   r   rw   rx   paramsry   )r   rz   r*   r   rs   r   r!   r#   r   r   r   r   ry   responses          r%   r   zSubscribedEventList.page  s      yy'#%
 ))^-PQR.==%%diig & 
 #4==(DNNKKr&   c                   K   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 SubscribedEventInstance records from the API.
        Request is executed immediately

        :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 SubscribedEventInstance
        r   r   r   r   r   r   r   N)r   rz   r*   r   rs   r   r!   r   s          r%   r   zSubscribedEventList.page_async  s       yy'#%
 ))^-PQR.11diig 2 
 
 #4==(DNNKK
s   A"B$B
%&Bc                 $   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      \  }}}t        | j                  || j                        }	t        |	||      S )	aa  
        Retrieve a single page with response metadata


        :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 SubscribedEventPage, status code, and headers
        r   r   r   r   r   r   r   r   )r   rz   r*   page_with_response_infors   r   r!   r   
r#   r   r   r   r   ry   r   r   response_headersr   s
             r%   r   z'SubscribedEventList.page_with_http_info  s      yy'#%
 ))^-PQR.26--2W2Wdiig 3X 3
/+/ #4==(DNNK+GWXXr&   c                 @  K   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   \  }}}t        | j                  || j                        }	t        |	||	      S 7 7w)
ap  
        Asynchronously retrieve a single page with response metadata


        :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 SubscribedEventPage, status code, and headers
        r   r   r   r   r   r   r   Nr   )r   rz   r*   page_with_response_info_asyncrs   r   r!   r   r   s
             r%   r   z-SubscribedEventList.page_with_http_info_async  s       yy'#%
 ))^-PQR. --==$))D' >   	0+/
 #4==(DNNK+GWXXs   A"B$B%8B
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   || j
                        S )a  
        Retrieve a specific page of SubscribedEventInstance records from the API.
        Request is executed immediately

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

        :returns: Page of SubscribedEventInstance
        r   )r*   domaintwiliorequestr   r!   r#   r   r   s      r%   get_pagezSubscribedEventList.get_page  s=     ==''..66ujI"4==(DNNKKr&   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   || j
                        S 7 %w)a  
        Asynchronously retrieve a specific page of SubscribedEventInstance records from the API.
        Request is executed immediately

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

        :returns: Page of SubscribedEventInstance
        r   N)r*   r  r  request_asyncr   r!   r  s      r%   get_page_asyncz"SubscribedEventList.get_page_async  sJ      --44BB5*UU"4==(DNNKK Vs   4AA&Ac                 L    t        | j                  | j                  d   |      S zn
        Constructs a SubscribedEventContext

        :param type: Type of event being subscribed to.
        r   r   r)   r*   r!   r#   r   s     r%   r   zSubscribedEventList.get   (     &MM!^^,>?
 	
r&   c                 L    t        | j                  | j                  d   |      S r
  r  r  s     r%   __call__zSubscribedEventList.__call__,  r  r&   c                      y)rP   z&<Twilio.Events.V1.SubscribedEventList>rq   r+   s    r%   rb   zSubscribedEventList.__repr__8  r   r&   )NN),rc   rd   re   r   rg   r   r   rj   r   rk   rl   r   r   r   r   r   r   r   r   r   r   r   r   r	   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r)   r   r  rb   rm   rn   s   @r%   r   r   %  s   
 
3 
& ?Ell

).sF{);
	
6 ?Ell

).sF{);
	 
" ?EllTT).sF{);T	T( ?Ell

).sF{);
	
6 ?Ell

).sF{);
	 
& ?EllTT).sF{);T	T*  $#';}; C=; 
)	*	;6  $#'A}A C=A 
.	/	A6  $#'M}M C=M 
	M4  $#'M}M C=M 
	M8  $#'
}
 C=
 
%	&	
8  $#'
}
 C=
 
%	&	
:  $#'Q}Q C=Q 
	Q6  $#'Q}Q C=Q 
	Q6 *0*0,,(.	L#v+&L 3;'L f%	L
 
LF *0*0,,(.	L#v+&L 3;'L f%	L
 
LF *0*0,,(.	 Y#v+& Y 3;' Y f%	 Y
 
 YH *0*0,,(.	"Y#v+&"Y 3;'"Y f%	"Y
 
"YH
L3 
L+> 
L
Ls 
L7J 
L

 

 6 



S 

%; 

8# 8r&   r   N)rf   typingr   r   r   r   r   r   r	   twilio.baser
   r   twilio.base.api_responser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r)   r   r   rq   r&   r%   <module>r     sh    M L L + 0 8 : 2 ' !wO. wOtzN_ zNz	8$ 8*Y8, Y8r&   