
    g8                         S r SSKJrJrJrJr  SSKJr  SSKJ	r	  SSK
Jr  SSKJr  SSKJr   " S S	\5      r " S
 S\	5      r " S S\5      rg)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                      ^  \ rS rSrSrS\S\\\4   4U 4S jjr	\
SS j5       r\R                  4S\\\4   SS 4S	 jjr\R                  4S\\\4   SS 4S
 jjrS\4S jrSrU =r$ )InsightsSessionInstance   a$  
: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U ]  U5        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        S U l        g )Nworkspace_idsession_expiry
session_idbase_urlurl)	super__init__getr   r   r   r   r   _context)selfr   r   	__class__s      p/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/flex_api/v1/insights_session.pyr    InsightsSessionInstance.__init__    sj    !+2;;~+F-4[[9I-J)0\)B'.{{:'>")++e"4:>    returnc                 h    U R                   c  [        U R                  5      U l         U R                   $ )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   _proxyInsightsSessionInstance._proxy+   s-     == 2DM }}r   authorizationc                 4    U R                   R                  US9$ )
Create the InsightsSessionInstance

:param authorization: The Authorization HTTP request header

:returns: The created InsightsSessionInstance
r'   )r%   creater   r'   s     r   r+   InsightsSessionInstance.create9   s#     {{!!' " 
 	
r   c                 P   #    U R                   R                  US9I Sh  vN $  N7f)
Asynchronous coroutine to create the InsightsSessionInstance

:param authorization: The Authorization HTTP request header

:returns: The created InsightsSessionInstance
r*   N)r%   create_asyncr,   s     r   r0   $InsightsSessionInstance.create_asyncG   s0      [[--' . 
 
 	
 
s   &$&c                     g)N
Provide a friendly representation

:returns: Machine friendly representation
z+<Twilio.FlexApi.V1.InsightsSessionInstance> r$   s    r   __repr__ InsightsSessionInstance.__repr__U   s     =r   )r   r   r   r   r   r   )r    r"   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   propertyr%   r   unsetr   objectr+   r0   r5   __static_attributes____classcell__r   s   @r   r   r      s    	? 	?$sCx. 	?   39,,
"3;/
	"
 39,,
"3;/
	"
=# = =r   r   c                      ^  \ rS rSrS\4U 4S jjr\R                  4S\\	\
4   S\4S jjr\R                  4S\\	\
4   S\4S jjrS\	4S jrS	rU =r$ )
r"   _   r   c                 2   > [         TU ]  U5        SU l        g)z[
Initialize the InsightsSessionContext

:param version: Version that contains the resource
z/Insights/SessionN)r   r   _urir   r   r   s     r   r   InsightsSessionContext.__init__a   s     	!'	r   r'   r    c                     [         R                  " SU05      nU R                  R                  SU R                  US9n[        U R                  U5      $ )r)   AuthorizationPOSTmethoduridata)r   ofr#   r+   rF   r   r   r'   rO   r   s       r   r+   InsightsSessionContext.createk   sN     yy
 --&&f$))$&O&t}}g>>r   c                    #    [         R                  " SU05      nU R                  R                  SU R                  US9I Sh  vN n[        U R                  U5      $  N7f)r/   rJ   rK   rL   N)r   rP   r#   r0   rF   r   rQ   s       r   r0   #InsightsSessionContext.create_async   sb      yy
 22tyyt 3 
 
 't}}g>>	
s   AA AA c                     g)r3   z*<Twilio.FlexApi.V1.InsightsSessionContext>r4   r$   s    r   r5   InsightsSessionContext.__repr__   s     <r   )rF   )r7   r8   r9   r:   r   r   r   r>   r   r<   r?   r   r+   r0   r5   r@   rA   rB   s   @r   r"   r"   _   sn    ( ( 39,,?"3;/?	 ?* 39,,?"3;/?	 ?,<# < <r   r"   c                   Z   ^  \ rS rSrS\4U 4S jjrS\4S jrS\4S jrS\	4S jr
SrU =r$ )	InsightsSessionList   r   c                 $   > [         TU ]  U5        g)zY
Initialize the InsightsSessionList

:param version: Version that contains the resource

N)r   r   rG   s     r   r   InsightsSessionList.__init__   s     	!r   r    c                 ,    [        U R                  5      $ z&
Constructs a InsightsSessionContext

r"   r#   r$   s    r   r   InsightsSessionList.get       
 &dmm44r   c                 ,    [        U R                  5      $ r]   r^   r$   s    r   __call__InsightsSessionList.__call__   r`   r   c                     g)r3   z'<Twilio.FlexApi.V1.InsightsSessionList>r4   r$   s    r   r5   InsightsSessionList.__repr__   s     9r   r4   )r7   r8   r9   r:   r   r   r"   r   rb   r<   r5   r@   rA   rB   s   @r   rX   rX      s:    " "5+ 550 59# 9 9r   rX   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"   rX   r4   r   r   <module>rl      sJ    . -  8 : 2 'E=. E=P=<_ =<@9, 9r   