U
    ^g%i=                     @   s   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	 d	eZG d
d de
ZG dd deZdS )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                       s   e Zd ZdZeeeef ed fddZe	ddddZ
ejfeeef d d	d
dZejfeeef d d	ddZedddZ  ZS )EncryptedSentencesInstancezk
    :ivar location: The location of the encrypted sentences.
    :ivar transcript_sid:
    :ivar url:
    )versionpayloadtranscript_sidc                    sD   t  | |d| _|d| _|d| _d|i| _d | _d S )Nlocationr   url)super__init__getr   r   r   	_solution_context)selfr   r   r   	__class__ y/var/www/html/api-medvista/venv/lib/python3.8/site-packages/twilio/rest/intelligence/v2/transcript/encrypted_sentences.pyr      s     z#EncryptedSentencesInstance.__init__EncryptedSentencesContextreturnc                 C   s&   | j dkr t| j| jd 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
        Nr   r   )r   r   _versionr   r   r   r   r   _proxy*   s    
z!EncryptedSentencesInstance._proxyredactedr   c                 C   s   | j j|d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$   r   r   r   r'   9   s    
z EncryptedSentencesInstance.fetchc                    s   | j j|dI dH S )$  
        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(   r   r   r   r*   G   s    
z&EncryptedSentencesInstance.fetch_asyncc                 C   s$   d dd | j D }d|S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c                 s   s   | ]\}}d  ||V  qdS z{}={}Nformat.0kvr   r   r   	<genexpr>[   s     z6EncryptedSentencesInstance.__repr__.<locals>.<genexpr>z6<Twilio.Intelligence.V2.EncryptedSentencesInstance {}>joinr   itemsr/   r   contextr   r   r   __repr__U   s    z#EncryptedSentencesInstance.__repr__)__name__
__module____qualname____doc__r   r   strr   r   propertyr"   r   unsetr   boolobjectr'   r*   r:   __classcell__r   r   r   r   r      s   

r   c                       sn   e Zd Zeed fddZejfee	e
f edddZejfee	e
f edddZed	d
dZ  ZS )r   r   r   c                    s*   t  | d|i| _djf | j| _dS )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   r/   _urir   r   r   r   r   r   r   a   s     z"EncryptedSentencesContext.__init__r#   c                 C   sR   t dt|i}t i }d|d< | jjd| j||d}t| j|| jd dS )r%   Redactedapplication/jsonAcceptGETmethoduriparamsheadersr   r   )	r   ofr   boolean_to_stringr    r'   rF   r   r   r   r$   rO   rP   r   r   r   r   r'   r   s$     
   zEncryptedSentencesContext.fetchc                    sX   t dt|i}t i }d|d< | jjd| j||dI dH }t| j|| jd dS )	r)   rH   rI   rJ   rK   rL   Nr   r   )	r   rQ   r   rR   r    r*   rF   r   r   rS   r   r   r   r*      s$     
   z%EncryptedSentencesContext.fetch_asyncr   c                 C   s$   d dd | j D }d|S )r+   r,   c                 s   s   | ]\}}d  ||V  qdS r-   r.   r0   r   r   r   r4      s     z5EncryptedSentencesContext.__repr__.<locals>.<genexpr>z5<Twilio.Intelligence.V2.EncryptedSentencesContext {}>r5   r8   r   r   r   r:      s    z"EncryptedSentencesContext.__repr__)r;   r<   r=   r   r?   r   r   rA   r   rB   rC   r   r'   r*   r:   rD   r   r   r   r   r   _   s   
 
r   c                       sN   e Zd Zeed fddZedddZedddZedd	d
Z	  Z
S )EncryptedSentencesListrE   c                    s   t  | d|i| _dS )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   rG   r   r   r   r      s     zEncryptedSentencesList.__init__r   c                 C   s   t | j| jd dS z9
        Constructs a EncryptedSentencesContext

        r   r   r   r    r   r!   r   r   r   r      s     zEncryptedSentencesList.getc                 C   s   t | j| jd dS rU   rV   r!   r   r   r   __call__   s     zEncryptedSentencesList.__call__c                 C   s   dS )r+   z/<Twilio.Intelligence.V2.EncryptedSentencesList>r   r!   r   r   r   r:      s    zEncryptedSentencesList.__repr__)r;   r<   r=   r   r?   r   r   r   rW   r:   rD   r   r   r   r   rT      s   		rT   N)r>   typingr   r   r   r   Ztwilio.baser   r   Ztwilio.base.instance_contextr   Ztwilio.base.instance_resourcer	   Ztwilio.base.list_resourcer
   Ztwilio.base.versionr   r   r   rT   r   r   r   r   <module>   s   H[