
    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 - Intelligence
    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                       e Zd Z G d de      Z	 	 ddedeeef   de	e   f fdZ
edd       Zdefd	Zdefd
ZddZddZ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def   deeef   dd fdZ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def   deeef   dd fdZdefdZ xZS )ServiceInstancec                       e Zd ZdZdZdZy)ServiceInstance.HttpMethodGETPOSTNULLN)__name__
__module____qualname__r   r   r        e/opt/services/ai/voice_agent/venv/lib/python3.12/site-packages/twilio/rest/intelligence/v2/service.py
HttpMethodr      s    r   r    versionpayloadsidc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        t        j                  |j                  d            | _
        t        j                  |j                  d            | _        |j                  d      | _        |j                  d	      | _        |j                  d
      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        t        j(                  |j                  d            | _        |j                  d      | _        d
|xs | j                  i| _        d | _        y )Naccount_sidauto_redactionmedia_redactionauto_transcribedata_loggingdate_createddate_updatedfriendly_namelanguage_coder#   unique_nameurlwebhook_urlwebhook_http_method read_only_attached_operator_sidsr!   encryption_credential_sid)super__init__getr%   r&   r'   r(   r)   r   iso8601_datetimer*   r+   r,   r-   r#   r.   r/   r0   r1   r2   integerr!   r3   	_solution_context)selfr!   r"   r#   	__class__s       r   r5   zServiceInstance.__init__4   s    	!*1++m*D.5kk:J.K/6{{;L/M/6{{;L/M,3KK,G0;0L0LKK'1
 1<0L0LKK'1
 -4KK,H,3KK,H")++e"4*1++m*D")++e"4*1++m*DKR;;!L
  FM[[.F
- '2&9&9'++i:P&Q8?'9
&
 3?$((
 37r   returnc                     | j                   )t        | j                  | j                  d         | _         | j                   S )z
        Generate an instance context for the instance, the context is capable of
        performing various actions. All instance actions are proxied to the context

        :returns: ServiceContext for this ServiceInstance
        r#   r#   )r:   ServiceContext_versionr9   r;   s    r   _proxyzServiceInstance._proxyZ   s9     == *NN5)DM }}r   c                 6    | j                   j                         S )j
        Deletes the ServiceInstance


        :returns: True if delete succeeds, False otherwise
        )rC   deleterB   s    r   rF   zServiceInstance.deletei   s     {{!!##r   c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine that deletes the ServiceInstance


        :returns: True if delete succeeds, False otherwise
        N)rC   delete_asyncrB   s    r   rI   zServiceInstance.delete_asyncr   s!      [[--////   '%'c                 6    | j                   j                         S )[
        Fetch the ServiceInstance


        :returns: The fetched ServiceInstance
        )rC   fetchrB   s    r   rM   zServiceInstance.fetch{   s     {{  ""r   c                 R   K   | j                   j                          d{   S 7 w)u
        Asynchronous coroutine to fetch the ServiceInstance


        :returns: The fetched ServiceInstance
        N)rC   fetch_asyncrB   s    r   rP   zServiceInstance.fetch_async   s!      [[,,....rJ   if_matchr(   r)   r,   r.   r&   r'   r0   r1   r   r3   c                 L    | j                   j                  |||||||||	|

      S )  
        Update the ServiceInstance

        :param if_match: The If-Match HTTP request header
        :param auto_transcribe: Instructs the Speech Recognition service to automatically transcribe all recordings made on the account.
        :param data_logging: Data logging allows Twilio to improve the quality of the speech recognition & language understanding services through using customer data to refine, fine tune and evaluate machine learning models. Note: Data logging cannot be activated via API, only via www.twilio.com, as it requires additional consent.
        :param friendly_name: A human readable description of this resource, up to 64 characters.
        :param unique_name: Provides a unique and addressable name to be assigned to this Service, assigned by the developer, to be optionally used in addition to SID.
        :param auto_redaction: Instructs the Speech Recognition service to automatically redact PII from all transcripts made on this service.
        :param media_redaction: Instructs the Speech Recognition service to automatically redact PII from all transcripts media made on this service. The auto_redaction flag must be enabled, results in error otherwise.
        :param webhook_url: The URL Twilio will request when executing the Webhook.
        :param webhook_http_method:
        :param encryption_credential_sid: The unique SID identifier of the Public Key resource used to encrypt the sentences and operator results.

        :returns: The updated ServiceInstance
        
rQ   r(   r)   r,   r.   r&   r'   r0   r1   r3   )rC   updater;   rQ   r(   r)   r,   r.   r&   r'   r0   r1   r3   s              r   rU   zServiceInstance.update   s>    : {{!!+%'#)+# 3&? " 
 	
r   c                 h   K   | j                   j                  |||||||||	|

       d{   S 7 w)  
        Asynchronous coroutine to update the ServiceInstance

        :param if_match: The If-Match HTTP request header
        :param auto_transcribe: Instructs the Speech Recognition service to automatically transcribe all recordings made on the account.
        :param data_logging: Data logging allows Twilio to improve the quality of the speech recognition & language understanding services through using customer data to refine, fine tune and evaluate machine learning models. Note: Data logging cannot be activated via API, only via www.twilio.com, as it requires additional consent.
        :param friendly_name: A human readable description of this resource, up to 64 characters.
        :param unique_name: Provides a unique and addressable name to be assigned to this Service, assigned by the developer, to be optionally used in addition to SID.
        :param auto_redaction: Instructs the Speech Recognition service to automatically redact PII from all transcripts made on this service.
        :param media_redaction: Instructs the Speech Recognition service to automatically redact PII from all transcripts media made on this service. The auto_redaction flag must be enabled, results in error otherwise.
        :param webhook_url: The URL Twilio will request when executing the Webhook.
        :param webhook_http_method:
        :param encryption_credential_sid: The unique SID identifier of the Public Key resource used to encrypt the sentences and operator results.

        :returns: The updated ServiceInstance
        rT   N)rC   update_asyncrV   s              r   rY   zServiceInstance.update_async   sL     : [[--+%'#)+# 3&? . 
 
 	
 
s   )202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+ServiceInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z+<Twilio.Intelligence.V2.ServiceInstance {}>joinr9   itemsr`   r;   contexts     r   __repr__zServiceInstance.__repr__   s6     ((SDNN<P<P<RSS<CCGLLr   )N)r=   r@   )r=   r   )r   r   r   objectr    r   r   strr   r   r5   propertyrC   boolrF   rI   rM   rP   r   unsetr   rU   rY   rm   __classcell__r<   s   @r   r   r      s   V 
* OS$7$7)-c3h$7>Fsm$7L  $ $0D 0#/ (.||/5||,2LL,2LL*0,,.4ll/5||*0,,KQ<<8>(
V$(
 tV|,(
 D&L)	(

 S&[)(
 3;'(
 dFl+(
 tV|,(
 3;'(
 ##?#GH(
 $)f#5(
 
(
X (.||/5||,2LL,2LL*0,,.4ll/5||*0,,KQ<<8>(
V$(
 tV|,(
 D&L)	(

 S&[)(
 3;'(
 dFl+(
 tV|,(
 3;'(
 ##?#GH(
 $)f#5(
 
(
TM# Mr   r   c                   P    e Zd Zdedef fdZdefdZdefdZde	fdZ
de	fdZ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d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                  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def   deeef   de	fdZdefdZ xZS )r@   r!   r#   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the ServiceContext

        :param version: Version that contains the resource
        :param sid: A 34 character string that uniquely identifies this Service.
        r#   z/Services/{sid}Nr   )r4   r5   r9   r`   _uri)r;   r!   r#   r<   s      r   r5   zServiceContext.__init__   s@     	! 3
 -%,,>t~~>	r   r=   c                 |    t        j                  i       }| j                  j                  d| j                  |      S )rE   DELETEmethoduriheaders)r   ofrA   rF   rw   r;   r}   s     r   rF   zServiceContext.delete   s1     ))B-}}##8G#TTr   c                    K   t        j                  i       }| j                  j                  d| j                  |       d{   S 7 w)rH   ry   rz   N)r   r~   rA   rI   rw   r   s     r   rI   zServiceContext.delete_async  sF      ))B-]]//G 0 
 
 	
 
s   AA
AA
c                     t        j                  i       }d|d<   | j                  j                  d| j                  |      }t        | j                  || j                  d         S )rL   application/jsonAcceptr   rz   r#   r?   )r   r~   rA   rM   rw   r   r9   r;   r}   r"   s      r   rM   zServiceContext.fetch  s]     ))B-.--%%U		7%SMMu%
 	
r   c                    K   t        j                  i       }d|d<   | j                  j                  d| j                  |       d{   }t        | j                  || j                  d         S 7 )w)rO   r   r   r   rz   Nr#   r?   )r   r~   rA   rP   rw   r   r9   r   s      r   rP   zServiceContext.fetch_async*  sr      ))B-.11dii 2 
 
 MMu%
 	
	
s   AA4A2	*A4rQ   r(   r)   r,   r.   r&   r'   r0   r1   r   r3   c                    t        j                  t        j                  |      t        j                  |      ||t        j                  |      t        j                  |      ||	|
d	      }t        j                  i       }|t         j                  u st        |t              r|r||d<   d|d<   d|d<   | j                  j                  d| j                  ||      }t        | j                  || j                  d	   
      S )rS   	AutoTranscribeDataLoggingFriendlyName
UniqueNameAutoRedactionMediaRedaction
WebhookUrlWebhookHttpMethodEncryptionCredentialSidIf-Match!application/x-www-form-urlencodedContent-Typer   r   r   r{   r|   datar}   r#   r?   )r   r~   r   boolean_to_stringrr   
isinstancero   rA   rU   rw   r   r9   r;   rQ   r(   r)   r,   r.   r&   r'   r0   r1   r3   r   r}   r"   s                 r   rU   zServiceContext.update@  s    < yy"+"="=o"N(::<H -)!*!<!<^!L"+"="=o"N)%8+D

 ))B- $Hc)B8"*GJ"E.--&&tyytW ' 
 t}}g4>>%;PQQr   c                    K   t        j                  t        j                  |      t        j                  |      ||t        j                  |      t        j                  |      ||	|
d	      }t        j                  i       }|t         j                  u st        |t              r|r||d<   d|d<   d|d<   | j                  j                  d| j                  ||       d	{   }t        | j                  || j                  d
         S 7 )w)rX   r   r   r   r   r   r   r   r   Nr#   r?   )r   r~   r   r   rr   r   ro   rA   rY   rw   r   r9   r   s                 r   rY   zServiceContext.update_async|  s     < yy"+"="=o"N(::<H -)!*!<!<^!L"+"="=o"N)%8+D

 ))B- $Hc)B8"*GJ"E.22tyytW 3 
 
 t}}g4>>%;PQQ	
s   C D"D#*Dc                     dj                  d | j                  j                         D              }dj                  |      S )r[   r\   c              3   F   K   | ]  \  }}d j                  ||        ywr^   r_   ra   s      r   re   z*ServiceContext.__repr__.<locals>.<genexpr>  rf   rg   z*<Twilio.Intelligence.V2.ServiceContext {}>rh   rk   s     r   rm   zServiceContext.__repr__  s6     ((SDNN<P<P<RSS;BB7KKr   )r   r   r   r   ro   r5   rq   rF   rI   r   rM   rP   r   rr   r   rn   rU   rY   rm   rs   rt   s   @r   r@   r@      s   ? ?c ?
U 
U
D 

 
(
? 
0 (.||/5||,2LL,2LL*0,,.4ll/5||*0,,KQ<<8>:RV$:R tV|,:R D&L)	:R
 S&[):R 3;':R dFl+:R tV|,:R 3;':R ##?#GH:R $)f#5:R 
:R| (.||/5||,2LL,2LL*0,,.4ll/5||*0,,KQ<<8>:RV$:R tV|,:R D&L)	:R
 S&[):R 3;':R dFl+:R tV|,:R 3;':R ##?#GH:R $)f#5:R 
:RxL# Lr   r@   c                   2    e Zd Zdeeef   defdZdefdZy)ServicePager"   r=   c                 .    t        | j                  |      S )zm
        Build an instance of ServiceInstance

        :param payload: Payload response from the API
        )r   rA   )r;   r"   s     r   get_instancezServicePage.get_instance  s     t}}g66r   c                      y)r[   z$<Twilio.Intelligence.V2.ServicePage>r   rB   s    r   rm   zServicePage.__repr__       6r   N)	r   r   r   r   ro   r   r   r   rm   r   r   r   r   r     s)    7DcN 7 76# 6r   r   c                       e Zd Zdef fdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  f	de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de
f   deee
f   defdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  f	de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de
f   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e   fdZ	 	 d"dee   dee   de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 )#ServiceListr!   c                 2    t         |   |       d| _        y)zi
        Initialize the ServiceList

        :param version: Version that contains the resource

        z	/ServicesN)r4   r5   rw   )r;   r!   r<   s     r   r5   zServiceList.__init__  s     	!	r   r.   r(   r)   r,   r-   r&   r'   r0   r1   r   r3   r=   c                    t        j                  |t        j                  |      t        j                  |      ||t        j                  |      t        j                  |      ||	|
d
      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||      }t        | j                  |      S )a  
        Create the ServiceInstance

        :param unique_name: Provides a unique and addressable name to be assigned to this Service, assigned by the developer, to be optionally used in addition to SID.
        :param auto_transcribe: Instructs the Speech Recognition service to automatically transcribe all recordings made on the account.
        :param data_logging: Data logging allows Twilio to improve the quality of the speech recognition & language understanding services through using customer data to refine, fine tune and evaluate machine learning models. Note: Data logging cannot be activated via API, only via www.twilio.com, as it requires additional consent.
        :param friendly_name: A human readable description of this resource, up to 64 characters.
        :param language_code: The language code set during Service creation determines the Transcription language for all call recordings processed by that Service. The default is en-US if no language code is set. A Service can only support one language code, and it cannot be updated once it's set.
        :param auto_redaction: Instructs the Speech Recognition service to automatically redact PII from all transcripts made on this service.
        :param media_redaction: Instructs the Speech Recognition service to automatically redact PII from all transcripts media made on this service. The auto_redaction flag must be enabled, results in error otherwise.
        :param webhook_url: The URL Twilio will request when executing the Webhook.
        :param webhook_http_method:
        :param encryption_credential_sid: The unique SID identifier of the Public Key resource used to encrypt the sentences and operator results.

        :returns: The created ServiceInstance
        
r   r   r   r   LanguageCoder   r   r   r   r   r   r   r   r   r   r   )r   r~   r   r   rA   createrw   r   r;   r.   r(   r)   r,   r-   r&   r'   r0   r1   r3   r   r}   r"   s                 r   r   zServiceList.create  s    < yy)"+"="=o"N(::<H - -!*!<!<^!L"+"="=o"N)%8+D
 ))^-PQR"E.--&&tyytW ' 
 t}}g66r   c                   K   t        j                  |t        j                  |      t        j                  |      ||t        j                  |      t        j                  |      ||	|
d
      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  |      S 7 w)	a  
        Asynchronously create the ServiceInstance

        :param unique_name: Provides a unique and addressable name to be assigned to this Service, assigned by the developer, to be optionally used in addition to SID.
        :param auto_transcribe: Instructs the Speech Recognition service to automatically transcribe all recordings made on the account.
        :param data_logging: Data logging allows Twilio to improve the quality of the speech recognition & language understanding services through using customer data to refine, fine tune and evaluate machine learning models. Note: Data logging cannot be activated via API, only via www.twilio.com, as it requires additional consent.
        :param friendly_name: A human readable description of this resource, up to 64 characters.
        :param language_code: The language code set during Service creation determines the Transcription language for all call recordings processed by that Service. The default is en-US if no language code is set. A Service can only support one language code, and it cannot be updated once it's set.
        :param auto_redaction: Instructs the Speech Recognition service to automatically redact PII from all transcripts made on this service.
        :param media_redaction: Instructs the Speech Recognition service to automatically redact PII from all transcripts media made on this service. The auto_redaction flag must be enabled, results in error otherwise.
        :param webhook_url: The URL Twilio will request when executing the Webhook.
        :param webhook_http_method:
        :param encryption_credential_sid: The unique SID identifier of the Public Key resource used to encrypt the sentences and operator results.

        :returns: The created ServiceInstance
        r   r   r   r   r   r   r   N)r   r~   r   r   rA   create_asyncrw   r   r   s                 r   r   zServiceList.create_async  s     < yy)"+"="=o"N(::<H - -!*!<!<^!L"+"="=o"N)%8+D
 ))^-PQR"E.22tyytW 3 
 
 t}}g66	
s   B:C<C=Climit	page_sizec                     | j                   j                  ||      }| j                  |d         }| j                   j                  ||d         S )a]  
        Streams ServiceInstance 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   )rA   read_limitspagestreamr;   r   r   limitsr   s        r   r   zServiceList.streamR  sJ    ( **5)<yy6+#6y7}}##D&/::r   c                    K   | j                   j                  ||      }| j                  |d          d{   }| j                   j                  ||d         S 7 #w)al  
        Asynchronously streams ServiceInstance 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   )rA   r   
page_asyncstream_asyncr   s        r   r   zServiceList.stream_asynck  sW     ( **5)<__vk/B_CC}}))$w@@ Ds   5AA$Ac                 :    t        | j                  ||            S )a  
        Lists ServiceInstance 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ServiceList.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 ServiceInstance 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ServiceList.list_async  sT     * '+&7&7# '8 ' !
 
 !
 
 	
 
s0   ;.;620
26;26;
page_tokenpage_numberc                     t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      }t        | j                  |      S )as  
        Retrieve a single page of ServiceInstance 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 ServiceInstance
        	PageTokenr   PageSizer   r   r   r   r   r{   r|   paramsr}   )r   r~   rA   r   rw   r   r;   r   r   r   r   r}   responses          r   r   zServiceList.page  sy      yy'#%
 ))^-PQR.==%%diig & 
 4==(33r   c                   K   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  |      S 7 w)	a  
        Asynchronously retrieve a single page of ServiceInstance 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 ServiceInstance
        r   r   r   r   r   r   r   N)r   r~   rA   r   rw   r   r   s          r   r   zServiceList.page_async  s       yy'#%
 ))^-PQR.11diig 2 
 
 4==(33
s   A"B$A?%B
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   |      S )z
        Retrieve a specific page of ServiceInstance records from the API.
        Request is executed immediately

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

        :returns: Page of ServiceInstance
        r   )rA   domaintwiliorequestr   r;   r   r   s      r   get_pagezServiceList.get_page  s7     ==''..66ujI4==(33r   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   |      S 7 w)a  
        Asynchronously retrieve a specific page of ServiceInstance records from the API.
        Request is executed immediately

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

        :returns: Page of ServiceInstance
        r   N)rA   r   r   request_asyncr   r   s      r   get_page_asynczServiceList.get_page_async  sD      --44BB5*UU4==(33 Vs   4AAAr#   c                 0    t        | j                  |      S z
        Constructs a ServiceContext

        :param sid: A 34 character string that uniquely identifies this Service.
        r?   r@   rA   r;   r#   s     r   r6   zServiceList.get       dmm55r   c                 0    t        | j                  |      S r   r   r   s     r   __call__zServiceList.__call__  r   r   c                      y)r[   z$<Twilio.Intelligence.V2.ServiceList>r   rB   s    r   rm   zServiceList.__repr__#  r   r   )NN)!r   r   r   r   r5   r   rr   ro   r   rq   rn   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r   r   r@   r6   r   rm   rs   rt   s   @r   r   r     s   	  	  06||,2LL,2LL,2LL.4ll/5||*0,,KQ<<8>6767 tV|,67 D&L)	67
 S&[)67 S&[)67 dFl+67 tV|,67 3;'67 ##?#GH67 $)f#567 
67v 06||,2LL,2LL,2LL.4ll/5||*0,,KQ<<8>6767 tV|,67 D&L)	67
 S&[)67 S&[)67 dFl+67 tV|,67 3;'67 ##?#GH67 $)f#567 
67t  $#';}; C=; 
/	"	;6  $#'A}A C=A 
	'	A6  $#'
}
 C=
 
o		
8  $#'
}
 C=
 
o		
: *0*0,,(.	4#v+&4 3;'4 f%	4
 
4F *0*0,,(.	4#v+&4 3;'4 f%	4
 
4B
43 
4; 
4
4s 
4{ 
46s 6~ 66C 6N 66# 6r   r   N)__doc__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   r@   r   r   r   r   r   <module>r      sj     L L L 6 6 8 : 2 ' !OM& OMdTL_ TLn6$ 6&T6, T6r   