
    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 - Serverless
    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de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 )LogInstancea  
    :ivar sid: The unique string that we created to identify the Log resource.
    :ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Log resource.
    :ivar service_sid: The SID of the Service that the Log resource is associated with.
    :ivar environment_sid: The SID of the environment in which the log occurred.
    :ivar build_sid: The SID of the build that corresponds to the log.
    :ivar deployment_sid: The SID of the deployment that corresponds to the log.
    :ivar function_sid: The SID of the function whose invocation produced the log.
    :ivar request_sid: The SID of the request associated with the log.
    :ivar level: The log level.
    :ivar message: The log message.
    :ivar date_created: The date and time in GMT when the Log resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    :ivar url: The absolute URL of the Log resource.
    versionpayloadservice_sidenvironment_sidsidc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _	        |j                  d      | _
        |j                  d	      | _        |j                  d
      | _        t        j                  |j                  d            | _        |j                  d      | _        |||xs | j                  d| _        d | _        y )Nr   account_sidr   r   	build_siddeployment_sidfunction_sidrequest_sidlevelmessagedate_createdurlr   r   r   )super__init__getr   r   r   r   r   r   r   r    r!   r"   r   iso8601_datetimer#   r$   	_solution_context)selfr   r   r   r   r   	__class__s         o/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/serverless/v1/service/environment/log.pyr'   zLogInstance.__init__*   s    	!")++e"4*1++m*D*1++m*D.5kk:K.L(/K(@-4[[9I-J+2;;~+F*1++m*D$+KK$8
&-kk)&<0;0L0LKK'1
 #*++e"4 '.?$((

 /3    returnc                     | j                   Et        | j                  | j                  d   | 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: LogContext for this LogInstance
        r   r   r   r%   )r+   
LogContext_versionr*   r,   s    r.   _proxyzLogInstance._proxyJ   sR     == & NN=9 $/@ ANN5)	DM }}r/   c                 6    | j                   j                         S )S
        Fetch the LogInstance


        :returns: The fetched LogInstance
        )r5   fetchr4   s    r.   r8   zLogInstance.fetch[   s     {{  ""r/   c                 R   K   | j                   j                          d{   S 7 w)m
        Asynchronous coroutine to fetch the LogInstance


        :returns: The fetched LogInstance
        N)r5   fetch_asyncr4   s    r.   r;   zLogInstance.fetch_asyncd   s!      [[,,....   '%'c                 6    | j                   j                         S )z~
        Fetch the LogInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        )r5   fetch_with_http_infor4   s    r.   r>   z LogInstance.fetch_with_http_infom   s     {{//11r/   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine to fetch the LogInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        N)r5   fetch_with_http_info_asyncr4   s    r.   r@   z&LogInstance.fetch_with_http_info_asyncv   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'LogInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z%<Twilio.Serverless.V1.LogInstance {}>joinr*   itemsrG   r,   contexts     r.   __repr__zLogInstance.__repr__   s6     ((SDNN<P<P<RSS6==gFFr/   )N)r0   r2   )r0   r   )__name__
__module____qualname____doc__r   r   strr   r   r'   propertyr5   r8   r;   r   r>   r@   rT   __classcell__r-   s   @r.   r   r      s    * "33 c3h3 	3
 3 c]3@   #/2k 2>+ >G# Gr/   r   c                        e Zd Zde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 xZS )r2   r   r   r   r   c                 |    t         |   |       |||d| _         dj                  di | j                  | _        y)aO  
        Initialize the LogContext

        :param version: Version that contains the resource
        :param service_sid: The SID of the Service to fetch the Log resource from.
        :param environment_sid: The SID of the environment with the Log resource to fetch.
        :param sid: The SID of the Log resource to fetch.
        r%   zA/Services/{service_sid}/Environments/{environment_sid}/Logs/{sid}N r&   r'   r*   rG   _uri)r,   r   r   r   r   r-   s        r.   r'   zLogContext.__init__   sM     	! '.
 WOVV .. 		r/   r0   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   ofr3   fetch_with_response_infora   r,   ri   s     r.   _fetchzLogContext._fetch   sB     ))B-.}}55dii 6 
 	
r/   c                     | j                         \  }}}t        | j                  || j                  d   | j                  d   | j                  d         S )r7   r   r   r   r%   )rm   r   r3   r*   r,   r   _s      r.   r8   zLogContext.fetch   sQ     AMM}5 NN+<=u%
 	
r/   c                     | j                         \  }}}t        | j                  || j                  d   | j                  d   | j                  d         }t	        |||      S )z
        Fetch the LogInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r   r   r   r%   datastatus_coderi   )rm   r   r3   r*   r   r,   r   rt   ri   instances        r.   r>   zLogContext.fetch_with_http_info   s`     )-%gMM}5 NN+<=u%
 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)
        rc   rd   re   rf   N)r   rj   r3   fetch_with_response_info_asyncra   rl   s     r.   _fetch_asynczLogContext._fetch_async   sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d   | j                  d   | j                  d         S 7 Iw)r:   Nr   r   r   r%   )ry   r   r3   r*   ro   s      r.   r;   zLogContext.fetch_async   s`      #//11AMM}5 NN+<=u%
 	
 2s   A"A A
A"c                    K   | j                          d{   \  }}}t        | j                  || j                  d   | j                  d   | j                  d         }t	        |||      S 7 Ww)z
        Asynchronous coroutine to fetch the LogInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr   r   r   r%   rr   )ry   r   r3   r*   r   ru   s        r.   r@   z%LogContext.fetch_with_http_info_async   sp      /3.?.?.A(A%gMM}5 NN+<=u%
 k7SS )Bs   A0A.AA0c                     dj                  d | j                  j                         D              }dj                  |      S )rB   rC   c              3   F   K   | ]  \  }}d j                  ||        ywrE   rF   rH   s      r.   rL   z&LogContext.__repr__.<locals>.<genexpr>  rM   rN   z$<Twilio.Serverless.V1.LogContext {}>rO   rR   s     r.   rT   zLogContext.__repr__  s6     ((SDNN<P<P<RSS5<<WEEr/   )rU   rV   rW   r   rY   r'   tuplerm   r   r8   r   r>   ry   r;   r@   rT   r[   r\   s   @r.   r2   r2      s    

-0
CF
MP
2
 
 
{ 
 Tk T"
E 
 
; 
 T+ T"F# Fr/   r2   c                   2    e Zd Zdeeef   defdZdefdZy)LogPager   r0   c                 h    t        | j                  || j                  d   | j                  d         S )zi
        Build an instance of LogInstance

        :param payload: Payload response from the API
        r   r   r   r   )r   r3   r*   )r,   r   s     r.   get_instancezLogPage.get_instance  s4     MM}5 NN+<=	
 	
r/   c                      y)rB   z<Twilio.Serverless.V1.LogPage>r_   r4   s    r.   rT   zLogPage.__repr__       0r/   N)	rU   rV   rW   r   rY   r   r   r   rT   r_   r/   r.   r   r     s)    
DcN 
{ 
0# 0r/   r   c                       e Zd Zdededef fdZej                  ej                  ej                  ddfdeee	f   dee
e	f   dee
e	f   d	ee   d
ee   dee   fdZej                  ej                  ej                  ddfdeee	f   dee
e	f   dee
e	f   d	ee   d
ee   dee   fdZej                  ej                  ej                  ddfdeee	f   dee
e	f   dee
e	f   d	ee   d
ee   defdZej                  ej                  ej                  ddfdeee	f   dee
e	f   dee
e	f   d	ee   d
ee   defdZej                  ej                  ej                  ddfdeee	f   dee
e	f   dee
e	f   d	ee   d
ee   dee   fdZej                  ej                  ej                  ddfdeee	f   dee
e	f   dee
e	f   d	ee   d
ee   dee   fdZej                  ej                  ej                  ddfdeee	f   dee
e	f   dee
e	f   d	ee   d
ee   defdZej                  ej                  ej                  ddfdeee	f   dee
e	f   dee
e	f   d	ee   d
ee   defdZej                  ej                  ej                  ej                  ej                  ej                  fdeee	f   dee
e	f   dee
e	f   deee	f   deee	f   d
eee	f   defdZej                  ej                  ej                  ej                  ej                  ej                  fdeee	f   dee
e	f   dee
e	f   deee	f   deee	f   d
eee	f   defdZej                  ej                  ej                  ej                  ej                  ej                  fdeee	f   dee
e	f   dee
e	f   deee	f   deee	f   d
eee	f   defdZej                  ej                  ej                  ej                  ej                  ej                  fdeee	f   dee
e	f   dee
e	f   deee	f   deee	f   d
eee	f   defdZdedefdZ dedefdZ!dede"fdZ#dede"fdZ$defd Z% xZ&S )!LogListr   r   r   c                 z    t         |   |       ||d| _         dj                  di | j                  | _        y)a  
        Initialize the LogList

        :param version: Version that contains the resource
        :param service_sid: The SID of the Service to read the Log resource from.
        :param environment_sid: The SID of the environment with the Log resources to read.

        r   z;/Services/{service_sid}/Environments/{environment_sid}/LogsNr_   r`   )r,   r   r   r   r-   s       r.   r'   zLogList.__init__*  sJ     	! '.

 QIPP .. 		r/   Nr   
start_dateend_datelimit	page_sizer0   c                     | j                   j                  ||      }| j                  ||||d         }| j                   j                  ||d         S )a	  
        Streams LogInstance 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 function_sid: The SID of the function whose invocation produced the Log resources to read.
        :param datetime start_date: The date/time (in GMT, ISO 8601) after which the Log resources must have been created. Defaults to 1 day prior to current date/time.
        :param datetime end_date: The date/time (in GMT, ISO 8601) before which the Log resources must have been created. Defaults to current date/time.
        :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   )r3   read_limitspagestreamr,   r   r   r   r   r   limitsr   s           r.   r   zLogList.stream@  s[    4 **5)<yy%![)	  
 }}##D&/::r/   c                    K   | j                   j                  ||      }| j                  ||||d          d{   }| j                   j                  ||d         S 7 #w)a  
        Asynchronously streams LogInstance 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 function_sid: The SID of the function whose invocation produced the Log resources to read.
        :param datetime start_date: The date/time (in GMT, ISO 8601) after which the Log resources must have been created. Defaults to 1 day prior to current date/time.
        :param datetime end_date: The date/time (in GMT, ISO 8601) before which the Log resources must have been created. Defaults to current date/time.
        :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   )r3   r   
page_asyncstream_asyncr   s           r.   r   zLogList.stream_asyncd  si     4 **5)<__%![)	 % 
 
 }}))$w@@
s   8A A$A c                     | j                   j                  ||      }| j                  ||||d         }| j                   j                  |j                  |d         }||j
                  |j                  fS )a]  
        Streams LogInstance and returns headers from first page


        :param str function_sid: The SID of the function whose invocation produced the Log resources to read.
        :param datetime start_date: The date/time (in GMT, ISO 8601) after which the Log resources must have been created. Defaults to 1 day prior to current date/time.
        :param datetime end_date: The date/time (in GMT, ISO 8601) before which the Log resources must have been created. Defaults to current date/time.
        :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   )r3   r   page_with_http_infor   rs   rt   ri   	r,   r   r   r   r   r   r   page_response	generators	            r.   stream_with_http_infozLogList.stream_with_http_info  s{    0 **5)<00%![)	 1 
 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)al  
        Asynchronously streams LogInstance and returns headers from first page


        :param str function_sid: The SID of the function whose invocation produced the Log resources to read.
        :param datetime start_date: The date/time (in GMT, ISO 8601) after which the Log resources must have been created. Defaults to 1 day prior to current date/time.
        :param datetime end_date: The date/time (in GMT, ISO 8601) before which the Log resources must have been created. Defaults to current date/time.
        :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   )r3   r   page_with_http_info_asyncr   rs   rt   ri   r   s	            r.   stream_with_http_info_asyncz#LogList.stream_with_http_info_async  s     0 **5)<"<<%![)	 = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   8BBABc           	      @    t        | j                  |||||            S )a  
        Lists LogInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str function_sid: The SID of the function whose invocation produced the Log resources to read.
        :param datetime start_date: The date/time (in GMT, ISO 8601) after which the Log resources must have been created. Defaults to 1 day prior to current date/time.
        :param datetime end_date: The date/time (in GMT, ISO 8601) before which the Log resources must have been created. Defaults to current date/time.
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        r   r   r   r   r   )listr   )r,   r   r   r   r   r   s         r.   r   zLogList.list  s1    2 KK)%!#  
 	
r/   c                    K   | j                  |||||       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)a  
        Asynchronously lists LogInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str function_sid: The SID of the function whose invocation produced the Log resources to read.
        :param datetime start_date: The date/time (in GMT, ISO 8601) after which the Log resources must have been created. Defaults to 1 day prior to current date/time.
        :param datetime end_date: The date/time (in GMT, ISO 8601) before which the Log resources must have been created. Defaults to current date/time.
        :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   records          r.   
list_asynczLogList.list_async  s]     6 '+&7&7)%!# '8 ' !	
 	
 !	
 	
 		
 	
s0   >1>953
59>59>c                 h    | j                  |||||      \  }}}t        |      }	t        |	||      S )aH  
        Lists LogInstance and returns headers from first page


        :param str function_sid: The SID of the function whose invocation produced the Log resources to read.
        :param datetime start_date: The date/time (in GMT, ISO 8601) after which the Log resources must have been created. Defaults to 1 day prior to current date/time.
        :param datetime end_date: The date/time (in GMT, ISO 8601) before which the Log resources must have been created. Defaults to current date/time.
        :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   rr   )r   r   r   )
r,   r   r   r   r   r   r   rt   ri   rQ   s
             r.   list_with_http_infozLogList.list_with_http_info  sJ    0 +/*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)aW  
        Asynchronously lists LogInstance and returns headers from first page


        :param str function_sid: The SID of the function whose invocation produced the Log resources to read.
        :param datetime start_date: The date/time (in GMT, ISO 8601) after which the Log resources must have been created. Defaults to 1 day prior to current date/time.
        :param datetime end_date: The date/time (in GMT, ISO 8601) before which the Log resources must have been created. Defaults to current date/time.
        :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   Nrr   )r   r   )r,   r   r   r   r   r   r   rt   ri   r   rQ   s              r.   list_with_http_info_asyncz!LogList.list_with_http_info_async7  so     0 150P0P%! 1Q 1
 +
'	; -666&+
 7666;PPs4   A7A=;9
;=A;=A
page_tokenpage_numberc           	      R   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 LogInstance records from the API.
        Request is executed immediately

        :param function_sid: The SID of the function whose invocation produced the Log resources to read.
        :param start_date: The date/time (in GMT, ISO 8601) after which the Log resources must have been created. Defaults to 1 day prior to current date/time.
        :param end_date: The date/time (in GMT, ISO 8601) before which the Log resources must have been created. Defaults to current date/time.
        :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 LogInstance
        FunctionSid	StartDateEndDate	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedrc   rd   re   rg   rh   paramsri   )	r   rj   r   r)   r3   r   ra   r   r*   
r,   r   r   r   r   r   r   rs   ri   responses
             r.   r   zLogList.pageY  s    , yy+&77
C$55h?'#%	
 ))^-PQR.==%%diig & 
 t}}h??r/   c           	      n  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 LogInstance records from the API.
        Request is executed immediately

        :param function_sid: The SID of the function whose invocation produced the Log resources to read.
        :param start_date: The date/time (in GMT, ISO 8601) after which the Log resources must have been created. Defaults to 1 day prior to current date/time.
        :param end_date: The date/time (in GMT, ISO 8601) before which the Log resources must have been created. Defaults to current date/time.
        :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 LogInstance
        r   r   r   rc   rd   re   r   N)	r   rj   r   r)   r3   r   ra   r   r*   r   s
             r.   r   zLogList.page_async  s     , yy+&77
C$55h?'#%	
 ))^-PQR.11diig 2 
 
 t}}h??
s   BB5B3&B5c           	      v   t        j                  |t        j                  |      t        j                  |      |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      \  }	}
}t        | j                  |	| j                        }t        ||
|      S )	a  
        Retrieve a single page with response metadata


        :param function_sid: The SID of the function whose invocation produced the Log resources to read.
        :param start_date: The date/time (in GMT, ISO 8601) after which the Log resources must have been created. Defaults to 1 day prior to current date/time.
        :param end_date: The date/time (in GMT, ISO 8601) before which the Log resources must have been created. Defaults to current date/time.
        :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 LogPage, status code, and headers
        r   r   r   rc   rd   re   r   rr   )
r   rj   r   r)   r3   page_with_response_infora   r   r*   r   r,   r   r   r   r   r   r   rs   ri   r   rt   response_headersr   s                r.   r   zLogList.page_with_http_info  s    , yy+&77
C$55h?'#%	
 ))^-PQR.26--2W2Wdiig 3X 3
/+/ t}}h?+GWXXr/   c           	        K   t        j                  |t        j                  |      t        j                  |      |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   \  }	}
}t        | j                  |	| j                        }t        ||
|	      S 7 7w)
a  
        Asynchronously retrieve a single page with response metadata


        :param function_sid: The SID of the function whose invocation produced the Log resources to read.
        :param start_date: The date/time (in GMT, ISO 8601) after which the Log resources must have been created. Defaults to 1 day prior to current date/time.
        :param end_date: The date/time (in GMT, ISO 8601) before which the Log resources must have been created. Defaults to current date/time.
        :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 LogPage, status code, and headers
        r   r   r   rc   rd   re   r   Nrr   )
r   rj   r   r)   r3   page_with_response_info_asyncra   r   r*   r   r   s                r.   r   z!LogList.page_with_http_info_async  s     , yy+&77
C$55h?'#%	
 ))^-PQR. --==$))D' >   	0+/
 t}}h?+GWXXs   BCC8C
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   || j
                        S )z
        Retrieve a specific page of LogInstance records from the API.
        Request is executed immediately

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

        :returns: Page of LogInstance
        re   )r3   domaintwiliorequestr   r*   r,   r   r   s      r.   get_pagezLogList.get_page  s=     ==''..66ujIt}}h??r/   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   || j
                        S 7 %w)z
        Asynchronously retrieve a specific page of LogInstance records from the API.
        Request is executed immediately

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

        :returns: Page of LogInstance
        re   N)r3   r   r   request_asyncr   r*   r   s      r.   get_page_asynczLogList.get_page_async  sJ      --44BB5*UUt}}h?? Vs   4AA&Ar   c                 h    t        | j                  | j                  d   | j                  d   |      S zd
        Constructs a LogContext

        :param sid: The SID of the Log resource to fetch.
        r   r   r%   r2   r3   r*   r,   r   s     r.   r(   zLogList.get  4     MM}5 NN+<=	
 	
r/   c                 h    t        | j                  | j                  d   | j                  d   |      S r   r   r   s     r.   __call__zLogList.__call__*  r   r/   c                      y)rB   z<Twilio.Serverless.V1.LogList>r_   r4   s    r.   rT   zLogList.__repr__7  r   r/   )'rU   rV   rW   r   rY   r'   r   unsetr   objectr   r   intr	   r   r   r
   r   r~   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r2   r(   r   rT   r[   r\   s   @r.   r   r   (  s   
 
c 
C 
0 ,2<<.4ll,2LL##'";CK("; (F*+"; &()	";
 }"; C="; 
+	";L ,2<<.4ll,2LL##'"ACK("A (F*+"A &()	"A
 }"A C="A 
{	#"AL ,2<<.4ll,2LL##'!MCK(!M (F*+!M &()	!M
 }!M C=!M 
!MJ ,2<<.4ll,2LL##'!MCK(!M (F*+!M &()	!M
 }!M C=!M 
!MJ ,2<<.4ll,2LL##'!
CK(!
 (F*+!
 &()	!

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

 }"
 C="
 
k	"
L ,2<<.4ll,2LL##' QCK( Q (F*+ Q &()	 Q
 } Q C= Q 
 QH ,2<<.4ll,2LL##' QCK( Q (F*+ Q &()	 Q
 } Q C= Q 
 QH ,2<<.4ll,2LL)/*0,,(.(@CK((@ (F*+(@ &()	(@
 #v+&(@ 3;'(@ f%(@ 
(@X ,2<<.4ll,2LL)/*0,,(.(@CK((@ (F*+(@ &()	(@
 #v+&(@ 3;'(@ f%(@ 
(@X ,2<<.4ll,2LL)/*0,,(.)YCK()Y (F*+)Y &()	)Y
 #v+&)Y 3;')Y f%)Y 
)YZ ,2<<.4ll,2LL)/*0,,(.+YCK(+Y (F*++Y &()	+Y
 #v+&+Y 3;'+Y f%+Y 
+YZ
@3 
@7 
@
@s 
@w 
@
s 
z 

C 
J 
0# 0r/   r   N)rX   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   r2   r   r   r_   r/   r.   <module>r      sm     L L L 6 6 0 8 : 2 ' !lG" lG^DF DFN0d 00U0l U0r/   