
    pi=                         d Z ddl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  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.
    )AnyDictOptionalUnion)	serializevalues)InstanceContext)InstanceResource)ListResource)Versionc                        e Zd ZdZdedeeef   def fdZe	d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defdZ xZS )EncryptedSentencesInstancezk
    :ivar location: The location of the encrypted sentences.
    :ivar transcript_sid:
    :ivar url:
    versionpayloadtranscript_sidc                     t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        d|i| _        d | _        y )Nlocationr   url)super__init__getr   r   r   	_solution_context)selfr   r   r   	__class__s       |/opt/services/ai/voice_agent/venv/lib/python3.12/site-packages/twilio/rest/intelligence/v2/transcript/encrypted_sentences.pyr   z#EncryptedSentencesInstance.__init__   s\    !'.{{:'>-4[[9I-J")++e"4 n
 >B    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: EncryptedSentencesContext for this EncryptedSentencesInstance
        r   r   )r   EncryptedSentencesContext_versionr   r   s    r   _proxyz!EncryptedSentencesInstance._proxy*   s:     == 5#~~.>?DM }}r   redactedc                 :    | j                   j                  |      S )
  
        Fetch the EncryptedSentencesInstance

        :param redacted: Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences.

        :returns: The fetched EncryptedSentencesInstance
        r%   )r$   fetchr   r%   s     r   r)   z EncryptedSentencesInstance.fetch9   s#     {{   ! 
 	
r   c                 V   K   | j                   j                  |       d{   S 7 w)$  
        Asynchronous coroutine to fetch the EncryptedSentencesInstance

        :param redacted: Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences.

        :returns: The fetched EncryptedSentencesInstance
        r(   N)r$   fetch_asyncr*   s     r   r-   z&EncryptedSentencesInstance.fetch_asyncG   s1      [[,, - 
 
 	
 
s    )')c                     dj                  d | j                  j                         D              }dj                  |      S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   F   K   | ]  \  }}d j                  ||        ywz{}={}Nformat.0kvs      r   	<genexpr>z6EncryptedSentencesInstance.__repr__.<locals>.<genexpr>[        SDAq7>>!Q/S   !z6<Twilio.Intelligence.V2.EncryptedSentencesInstance {}>joinr   itemsr4   r   contexts     r   __repr__z#EncryptedSentencesInstance.__repr__U   s6     ((SDNN<P<P<RSSGNNwWWr   )r   r!   )__name__
__module____qualname____doc__r   r   strr   r   propertyr$   r   unsetr   boolobjectr)   r-   rA   __classcell__r   s   @r   r   r      s    
B 
B$sCx. 
BRU 
B   /5ll
dFl+
	%
 /5ll
dFl+
	%
X# Xr   r   c                        e Zd Zdedef 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   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the EncryptedSentencesContext

        :param version: Version that contains the resource
        :param transcript_sid: The unique SID identifier of the Transcript.
        r   z1/Transcripts/{transcript_sid}/Sentences/EncryptedN )r   r   r   r4   _urir   r   r   r   s      r   r   z"EncryptedSentencesContext.__init__a   sF     	! n
 OGNN 
nn
	r   r%   r   c                 &   t        j                  dt        j                  |      i      }t        j                  i       }d|d<   | j                  j                  d| j                  ||      }t        | j                  || j                  d         S )r'   Redactedapplication/jsonAcceptGETmethoduriparamsheadersr   r    )	r   ofr   boolean_to_stringr"   r)   rP   r   r   r   r%   rZ   r[   r   s        r   r)   zEncryptedSentencesContext.fetchr   s     I77A
 ))B-.--%%dii & 
 *MM>>*:;
 	
r   c                 B  K   t        j                  dt        j                  |      i      }t        j                  i       }d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  || j                  d         S 7 )w)	r,   rS   rT   rU   rV   rW   Nr   r    )	r   r\   r   r]   r"   r-   rP   r   r   r^   s        r   r-   z%EncryptedSentencesContext.fetch_async   s      I77A
 ))B-.11dii 2 
 
 *MM>>*:;
 	
	
s   A1B3B4*Bc                     dj                  d | j                  j                         D              }dj                  |      S )r/   r0   c              3   F   K   | ]  \  }}d j                  ||        ywr2   r3   r5   s      r   r9   z5EncryptedSentencesContext.__repr__.<locals>.<genexpr>   r:   r;   z5<Twilio.Intelligence.V2.EncryptedSentencesContext {}>r<   r?   s     r   rA   z"EncryptedSentencesContext.__repr__   s6     ((SDNN<P<P<RSSFMMgVVr   )rB   rC   rD   r   rF   r   r   rH   r   rI   rJ   r   r)   r-   rA   rK   rL   s   @r   r!   r!   _   ss    
 
 
$ /5ll
dFl+
	#
@ /5ll
dFl+
	#
>W# Wr   r!   c                   L     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	 xZ
S )EncryptedSentencesListr   r   c                 6    t         |   |       d|i| _        y)z
        Initialize the EncryptedSentencesList

        :param version: Version that contains the resource
        :param transcript_sid: The unique SID identifier of the Transcript.

        r   N)r   r   r   rQ   s      r   r   zEncryptedSentencesList.__init__   s"     	! n
r   r   c                 J    t        | j                  | j                  d         S z9
        Constructs a EncryptedSentencesContext

        r   r    r!   r"   r   r#   s    r   r   zEncryptedSentencesList.get   $    
 )MM$..9I*J
 	
r   c                 J    t        | j                  | j                  d         S rf   rg   r#   s    r   __call__zEncryptedSentencesList.__call__   rh   r   c                      y)r/   z/<Twilio.Intelligence.V2.EncryptedSentencesList>rO   r#   s    r   rA   zEncryptedSentencesList.__repr__   s     Ar   )rB   rC   rD   r   rF   r   r!   r   rj   rA   rK   rL   s   @r   rc   rc      s>    
 
 

. 

3 
A# Ar   rc   N)rE   typingr   r   r   r   twilio.baser   r   twilio.base.instance_contextr	   twilio.base.instance_resourcer
   twilio.base.list_resourcer   twilio.base.versionr   r   r!   rc   rO   r   r   <module>rr      sR    . - ) 8 : 2 'EX!1 EXPXW XWv)A\ )Ar   