o
    f>h8                     @   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dedeeef f fddZe	ddd	Z
ejfd
eeef dd fddZejfd
eeef dd fddZdef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__ [/var/www/html/venv/lib/python3.10/site-packages/twilio/rest/flex_api/v1/insights_session.pyr       s   
z InsightsSessionInstance.__init__returnInsightsSessionContextc                 C   s   | j du 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authorizationc                 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      dS )f
        Provide a friendly representation

        :returns: Machine friendly representation
        z+<Twilio.FlexApi.V1.InsightsSessionInstance>r   r   r   r   r   __repr__U      z InsightsSessionInstance.__repr__)r   r   )__name__
__module____qualname____doc__r
   r   strr   r   propertyr    r   unsetr   objectr$   r'   r*   __classcell__r   r   r   r   r      s$    



r   c                       sp   e Zd Zdef fddZejfdeee	f de
fddZejfdeee	f de
fdd	Zdef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!   r   c                 C   s.   t d|i}| jjd| j|d}t| j|S )r"   AuthorizationPOSTmethoduridata)r   ofr   r$   r5   r   r   r!   r<   r   r   r   r   r$   k   s   
zInsightsSessionContext.createc                    s6   t d|i}| jjd| j|dI dH }t| j|S )r&   r7   r8   r9   N)r   r=   r   r'   r5   r   r>   r   r   r   r'      s   
z#InsightsSessionContext.create_asyncc                 C   r(   )r)   z*<Twilio.FlexApi.V1.InsightsSessionContext>r   r   r   r   r   r*      r+   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def fddZdefddZdefddZdefd	d
Z	  Z
S )InsightsSessionListr   c                    s   t  | dS )zq
        Initialize the InsightsSessionList

        :param version: Version that contains the resource

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

        r   r   r   r   r   r   r         
zInsightsSessionList.getc                 C   r@   rA   rB   r   r   r   r   __call__   rC   zInsightsSessionList.__call__c                 C   r(   )r)   z'<Twilio.FlexApi.V1.InsightsSessionList>r   r   r   r   r   r*      s   zInsightsSessionList.__repr__)r,   r-   r.   r
   r   r   r   rD   r0   r*   r4   r   r   r   r   r?      s
    	r?   N)r/   typingr   r   r   r   twilio.baser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer	   twilio.base.versionr
   r   r   r?   r   r   r   r   <module>   s    H@