
    d{i'#                         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 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)ApiResponse)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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 )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      f/home/sas/my/fyp/ringai/.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 z
        Create the InsightsSessionInstance

        :param authorization: The Authorization HTTP request header

        :returns: The created InsightsSessionInstance
        r%   )r$   creater   r%   s     r   r)   zInsightsSessionInstance.create:   s#     {{!!' " 
 	
r   c                 V   K   | j                   j                  |       d{   S 7 wz
        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_asyncH   s1      [[--' . 
 
 	
 
    )')c                 :    | j                   j                  |      S )z
        Create the InsightsSessionInstance with HTTP info

        :param authorization: The Authorization HTTP request header

        :returns: ApiResponse with instance, status code, and headers
        r(   )r$   create_with_http_infor*   s     r   r0   z-InsightsSessionInstance.create_with_http_infoV   s#     {{00' 1 
 	
r   c                 V   K   | j                   j                  |       d{   S 7 w)z
        Asynchronous coroutine to create the InsightsSessionInstance with HTTP info

        :param authorization: The Authorization HTTP request header

        :returns: ApiResponse with instance, status code, and headers
        r(   N)r$   create_with_http_info_asyncr*   s     r   r2   z3InsightsSessionInstance.create_with_http_info_asyncd   s1      [[<<' = 
 
 	
 
r.   c                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z+<Twilio.FlexApi.V1.InsightsSessionInstance> r#   s    r   __repr__z InsightsSessionInstance.__repr__r   s     =r   )r   r!   )__name__
__module____qualname____doc__r   r   strr   r   propertyr$   r   unsetr   objectr)   r-   r   r0   r2   r6   __classcell__r   s   @r   r   r      s    	? 	?$sCx. 	?   39,,
"3;/
	"
 39,,
"3;/
	"
 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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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__~   s     	!'	r   r%   r   c                    t        j                  i       }t        j                  i       }|t         j                  u st        |t              r|r||d<   d|d<   | j
                  j                  d| j                  ||      S )z{
        Internal helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        Authorizationapplication/jsonAcceptPOSTmethoduridataheaders)r   ofr=   
isinstancer;   r"   create_with_response_inforC   r   r%   rM   rN   s       r   _createzInsightsSessionContext._create   su     yy}))B- V\\)=#.}'4GO$.}}66tyytW 7 
 	
r   c                 Z    | j                  |      \  }}}t        | j                  |      S r'   )rS   r   r"   r   r%   r   _s       r   r)   zInsightsSessionContext.create   s+     =AA&t}}g>>r   c                 v    | j                  |      \  }}}t        | j                  |      }t        |||      S )z
        Create the InsightsSessionInstance and return response metadata

        :param authorization: The Authorization HTTP request header

        :returns: ApiResponse with instance, status code, and headers
        r(   rM   status_coderN   )rS   r   r"   r   r   r%   r   rY   rN   instances         r   r0   z,InsightsSessionContext.create_with_http_info   s:     )-=(Q%g*4=='Bk7SSr   c                    K   t        j                  i       }t        j                  i       }|t         j                  u st        |t              r|r||d<   d|d<   | j
                  j                  d| j                  ||       d{   S 7 w)z
        Internal async helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        rF   rG   rH   rI   rJ   N)r   rO   r=   rP   r;   r"   create_with_response_info_asyncrC   rR   s       r   _create_asyncz$InsightsSessionContext._create_async   s      yy}))B- V\\)=#.}'4GO$.]]BBtyytW C 
 
 	
 
s   BBBBc                 v   K   | j                  |       d{   \  }}}t        | j                  |      S 7 wr,   )r^   r   r"   rU   s       r   r-   z#InsightsSessionContext.create_async   s;      #00}0MMA&t}}g>> Ns   979c                    K   | j                  |       d{   \  }}}t        | j                  |      }t        |||      S 7 ,w)z
        Asynchronous coroutine to create the InsightsSessionInstance and return response metadata

        :param authorization: The Authorization HTTP request header

        :returns: ApiResponse with instance, status code, and headers
        r(   NrX   )r^   r   r"   r   rZ   s         r   r2   z2InsightsSessionContext.create_with_http_info_async   sS      /3.@.@' /A /
 )
%g +4=='Bk7SS	)
s   AA-Ac                      y)r4   z*<Twilio.FlexApi.V1.InsightsSessionContext>r5   r#   s    r   r6   zInsightsSessionContext.__repr__   s     <r   )r7   r8   r9   r   r   r   r=   r   r;   r>   tuplerS   r   r)   r   r0   r^   r-   r2   r6   r?   r@   s   @r   r!   r!   |   s
   ( ( ;A,, 
U3;%7 
5 
0 39,,?"3;/?	 ? 39,,T"3;/T	T 39,,
"3;/
	
4 39,,?"3;/?	 ? 39,,T"3;/T	T <# <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   rD   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 rg   rh   r#   s    r   __call__zInsightsSessionList.__call__  ri   r   c                      y)r4   z'<Twilio.FlexApi.V1.InsightsSessionList>r5   r#   s    r   r6   zInsightsSessionList.__repr__  s     9r   )r7   r8   r9   r   r   r!   r   rk   r;   r6   r?   r@   s   @r   rd   rd      s5    " "5+ 550 59# 9r   rd   N)r:   typingr   r   r   r   twilio.baser   twilio.base.api_responser   twilio.base.instance_contextr	   twilio.base.instance_resourcer
   twilio.base.list_resourcer   twilio.base.versionr   r   r!   rd   r5   r   r   <module>rt      sO    . -  0 8 : 2 'a=. a=H{<_ {<|9, 9r   