
    m>h8                         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	e      Z G d
 de	      Z G d de      Zy)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                        e Zd ZdZdedeeef   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 )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                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        d | _        y )Nworkspace_idsession_expiry
session_idbase_urlurl)	super__init__getr   r   r   r   r   _context)selfr   r   	__class__s      l/var/www/html/DP/alpha_backend/venv/lib/python3.12/site-packages/twilio/rest/flex_api/v1/insights_session.pyr   z InsightsSessionInstance.__init__    sj    !+2;;~+F-4[[9I-J)0\)B'.{{:'>")++e"4:>    returnc                 f    | j                   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
        )r   InsightsSessionContext_versionr   s    r   _proxyzInsightsSessionInstance._proxy+   s-     == 2DM }}r   authorizationc                 :    | j                   j                  |      S )
        Create the InsightsSessionInstance

        :param authorization: The Authorization HTTP request header

        :returns: The created InsightsSessionInstance
        r$   )r#   creater   r$   s     r   r(   zInsightsSessionInstance.create9   s#     {{!!' " 
 	
r   c                 V   K   | j                   j                  |       d{   S 7 w)
        Asynchronous coroutine to create the InsightsSessionInstance

        :param authorization: The Authorization HTTP request header

        :returns: The created InsightsSessionInstance
        r'   N)r#   create_asyncr)   s     r   r,   z$InsightsSessionInstance.create_asyncG   s1      [[--' . 
 
 	
 
s    )')c                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z+<Twilio.FlexApi.V1.InsightsSessionInstance> r"   s    r   __repr__z InsightsSessionInstance.__repr__U   s     =r   )r   r    )__name__
__module____qualname____doc__r   r   strr   r   propertyr#   r   unsetr   objectr(   r,   r0   __classcell__r   s   @r   r   r      s    	? 	?$sCx. 	?   39,,
"3;/
	"
 39,,
"3;/
	"
=# =r   r   c                        e Zd Z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   c                 2    t         |   |       d| _        y)zs
        Initialize the InsightsSessionContext

        :param version: Version that contains the resource
        z/Insights/SessionN)r   r   _urir   r   r   s     r   r   zInsightsSessionContext.__init__a   s     	!'	r   r$   r   c                     t        j                  d|i      }| j                  j                  d| j                  |      }t        | j                  |      S )r&   AuthorizationPOSTmethoduridata)r   ofr!   r(   r=   r   r   r$   rE   r   s       r   r(   zInsightsSessionContext.createk   sN     yy
 --&&f$))$&O&t}}g>>r   c                    K   t        j                  d|i      }| j                  j                  d| j                  |       d{   }t        | j                  |      S 7 w)r+   r@   rA   rB   N)r   rF   r!   r,   r=   r   rG   s       r   r,   z#InsightsSessionContext.create_async   sc      yy
 22tyyt 3 
 
 't}}g>>	
s   AA"A A"c                      y)r.   z*<Twilio.FlexApi.V1.InsightsSessionContext>r/   r"   s    r   r0   zInsightsSessionContext.__repr__   s     <r   )r1   r2   r3   r   r   r   r7   r   r5   r8   r   r(   r,   r0   r9   r:   s   @r   r    r    _   si    ( ( 39,,?"3;/?	 ?* 39,,?"3;/?	 ?,<# <r   r    c                   H     e Zd Zdef fdZdefdZdefdZdefdZ	 xZ
S )InsightsSessionListr   c                 $    t         |   |       y)zq
        Initialize the InsightsSessionList

        :param version: Version that contains the resource

        N)r   r   r>   s     r   r   zInsightsSessionList.__init__   s     	!r   r   c                 ,    t        | j                        S z6
        Constructs a InsightsSessionContext

        r    r!   r"   s    r   r   zInsightsSessionList.get       
 &dmm44r   c                 ,    t        | j                        S rN   rO   r"   s    r   __call__zInsightsSessionList.__call__   rP   r   c                      y)r.   z'<Twilio.FlexApi.V1.InsightsSessionList>r/   r"   s    r   r0   zInsightsSessionList.__repr__   s     9r   )r1   r2   r3   r   r   r    r   rR   r5   r0   r9   r:   s   @r   rK   rK      s5    " "5+ 550 59# 9r   rK   N)r4   typingr   r   r   r   twilio.baser   twilio.base.instance_contextr   twilio.base.instance_resourcer	   twilio.base.list_resourcer
   twilio.base.versionr   r   r    rK   r/   r   r   <module>rZ      sJ    . -  8 : 2 'E=. E=P=<_ =<@9, 9r   