U
    ^g%ið  ã                   @   sŒ   d Z ddlmZ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	„ d	eƒZG d
d„ de	ƒZG dd„ deƒZdS )aç  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Flex
    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)Úvalues)ÚInstanceContext)ÚInstanceResource)ÚListResource)ÚVersionc                       sŒ   e Zd ZdZeeeef 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 )ÚInsightsSessionInstancea<  
    :ivar workspace_id: Unique ID to identify the user's workspace
    :ivar session_expiry: The session expiry date and time, given in ISO 8601 format.
    :ivar session_id: The unique ID for the session
    :ivar base_url: The base URL to fetch reports and dashboards
    :ivar url: The URL of this resource.
    )ÚversionÚpayloadc                    sR   t ƒ  |¡ | d¡| _| d¡| _| d¡| _| d¡| _| d¡| _d | _d S )NÚworkspace_idÚsession_expiryÚ
session_idÚbase_urlÚurl)	ÚsuperÚ__init__Úgetr   r   r   r   r   Ú_context)Úselfr   r   ©Ú	__class__© úg/var/www/html/api-medvista/venv/lib/python3.8/site-packages/twilio/rest/flex_api/v1/insights_session.pyr       s    z InsightsSessionInstance.__init__ÚInsightsSessionContext©Úreturnc                 C   s   | j dkrt| jƒ| _ | 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: InsightsSessionContext for this InsightsSessionInstance
        N)r   r   Ú_version©r   r   r   r   Ú_proxy+   s
    
ÿzInsightsSessionInstance._proxy©Úauthorizationr   c                 C   s   | j j|dS )ú°
        Create the InsightsSessionInstance

        :param authorization: The Authorization HTTP request header

        :returns: The created InsightsSessionInstance
        ©r#   )r!   Úcreate©r   r#   r   r   r   r&   9   s    
ÿzInsightsSessionInstance.createc                 Ã   s   | j j|dI dH S )úÊ
        Asynchronous coroutine to create the InsightsSessionInstance

        :param authorization: The Authorization HTTP request header

        :returns: The created InsightsSessionInstance
        r%   N)r!   Úcreate_asyncr'   r   r   r   r)   G   s    
ÿz$InsightsSessionInstance.create_asyncc                 C   s   dS )úf
        Provide a friendly representation

        :returns: Machine friendly representation
        z+<Twilio.FlexApi.V1.InsightsSessionInstance>r   r    r   r   r   Ú__repr__U   s    z InsightsSessionInstance.__repr__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   r   Ústrr   r   Úpropertyr!   r   Úunsetr   Úobjectr&   r)   r+   Ú__classcell__r   r   r   r   r      s   ÿ
þÿ
þr   c                       sl   e Zd Z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   c                    s   t ƒ  |¡ d| _dS )zs
        Initialize the InsightsSessionContext

        :param version: Version that contains the resource
        z/Insights/SessionN)r   r   Ú_uri©r   r   r   r   r   r   a   s    zInsightsSessionContext.__init__r"   c                 C   s^   t  i ¡}t  i ¡}|t jks4t|tƒr,|r4||d< d|d< | jjd| j||d}t| j|ƒS )r$   ÚAuthorizationúapplication/jsonÚAcceptÚPOST©ÚmethodÚuriÚdataÚheaders)	r   Úofr2   Ú
isinstancer0   r   r&   r6   r   ©r   r#   r?   r@   r   r   r   r   r&   k   s"    

ÿþþ   ÿzInsightsSessionContext.createc                 Ã   sd   t  i ¡}t  i ¡}|t jks4t|tƒr,|r4||d< d|d< | jjd| j||dI dH }t| j|ƒS )r(   r8   r9   r:   r;   r<   N)	r   rA   r2   rB   r0   r   r)   r6   r   rC   r   r   r   r)   ‡   s"    

ÿþþ   ÿz#InsightsSessionContext.create_asyncr   c                 C   s   dS )r*   z*<Twilio.FlexApi.V1.InsightsSessionContext>r   r    r   r   r   r+   £   s    zInsightsSessionContext.__repr__)r,   r-   r.   r
   r   r   r2   r   r0   r3   r   r&   r)   r+   r4   r   r   r   r   r   _   s   ÿ
þÿ
þr   c                       sL   e Zd Zedœ‡ fdd„Zedœdd„Zedœdd„Zedœd	d
„Z	‡  Z
S )ÚInsightsSessionListr5   c                    s   t ƒ  |¡ dS )zq
        Initialize the InsightsSessionList

        :param version: Version that contains the resource

        N)r   r   r7   r   r   r   r   ¯   s    zInsightsSessionList.__init__r   c                 C   s
   t | jƒS ©z6
        Constructs a InsightsSessionContext

        ©r   r   r    r   r   r   r   ¸   s    zInsightsSessionList.getc                 C   s
   t | jƒS rE   rF   r    r   r   r   Ú__call__¿   s    zInsightsSessionList.__call__c                 C   s   dS )r*   z'<Twilio.FlexApi.V1.InsightsSessionList>r   r    r   r   r   r+   Æ   s    zInsightsSessionList.__repr__)r,   r-   r.   r
   r   r   r   rG   r0   r+   r4   r   r   r   r   rD   ­   s   	rD   N)r/   Útypingr   r   r   r   Ztwilio.baser   Ztwilio.base.instance_contextr   Ztwilio.base.instance_resourcer   Ztwilio.base.list_resourcer	   Ztwilio.base.versionr
   r   r   rD   r   r   r   r   Ú<module>   s   HN