
    d{iT                         d Z ddlmZ ddlmZmZmZmZmZ ddl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.
    )datetime)AnyDictListOptionalUnion)deserializevalues)ApiResponse)InstanceContext)InstanceResource)ListResource)Versionc                       e Zd Z G d de      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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 )ConfigurationInstancec                       e Zd ZdZdZdZy)ConfigurationInstance.Statusok
inprogress
notstartedN)__name__
__module____qualname__OK
INPROGRESS
NOTSTARTED     c/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/flex_api/v1/configuration.pyStatusr      s    !
!
r   r    versionpayloadc                    t         |   |       |j                  d      | _        t	        j
                  |j                  d            | _        t	        j
                  |j                  d            | _        |j                  d      | _        |j                  d      | _	        |j                  d      | _
        |j                  d      | _        |j                  d      | _        |j                  d	      | _        |j                  d
      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _         |j                  d      | _!        |j                  d      | _"        |j                  d      | _#        |j                  d       | _$        |j                  d!      | _%        |j                  d"      | _&        |j                  d#      | _'        |j                  d$      | _(        |j                  d%      | _)        |j                  d&      | _*        |j                  d'      | _+        |j                  d(      | _,        |j                  d)      | _-        |j                  d*      | _.        |j                  d+      | _/        |j                  d,      | _0        |j                  d-      | _1        |j                  d.      | _2        |j                  d/      | _3        |j                  d0      | _4        |j                  d1      | _5        d | _6        y )2Naccount_siddate_createddate_updated
attributesstatustaskrouter_workspace_sidtaskrouter_target_workflow_sidtaskrouter_target_taskqueue_sidtaskrouter_taskqueuestaskrouter_skillstaskrouter_worker_channelstaskrouter_worker_attributestaskrouter_offline_activity_sidruntime_domainmessaging_service_instance_sidchat_service_instance_sidflex_service_instance_sidflex_instance_sidui_languageui_attributesui_dependencies
ui_versionservice_versioncall_recording_enabledcall_recording_webhook_urlcrm_enabledcrm_typecrm_callback_urlcrm_fallback_urlcrm_attributespublic_attributesplugin_service_enabledplugin_service_attributesintegrationsoutbound_call_flowsserverless_service_sidsqueue_stats_configurationnotificationsmarkdownurlflex_insights_hrflex_insights_drilldownflex_urlchannel_configsdebugger_integrationflex_ui_status_reportagent_conv_end_methodscitrix_voice_vdioffline_config)7super__init__getr$   r	   iso8601_datetimer%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   _context)selfr!   r"   	__class__s      r   rV   zConfigurationInstance.__init__T   s0   !*1++m*D0;0L0LKK'1
 1<0L0LKK'1
 8?{{<7P@GH@U7>{{&8
% >E[[,>
+ ?Fkk-?
, IP#I
" ELKKE
 HO{{(H
' JQ*J
) ?Fkk-?
, .5[[9I-J=D[[,>
+ 9@'9
& 9@'9
& 18<O0P*1++m*D:A++o:V<CKK=
 *1\)B.5kk:K.L6=kk$7
# :A(:
' ,3;;}+E'.{{:'>/6{{;M/N/6{{;M/N;B;;GW;X>Ekk?
 7>kk$7
# GNkk'G
& @G{{@
 AH!A
  =DKK%=
$ GNkk'G
& ;B++o:V5<[[5L")++e"4=D[[>
 8?{{%8
$ (/{{:'>BI++C
 BI"B
! CJ++#C
" DK;;$D
# >E[[>
 <C;;GW;X8<r   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: ConfigurationContext for this ConfigurationInstance
        )rY   ConfigurationContext_versionrZ   s    r   _proxyzConfigurationInstance._proxy   s-     == 0DM }}r   r9   c                 :    | j                   j                  |      S z
        Fetch the ConfigurationInstance

        :param ui_version: The Pinned UI version of the Configuration resource to fetch.

        :returns: The fetched ConfigurationInstance
        r9   )ra   fetchrZ   r9   s     r   re   zConfigurationInstance.fetch   s#     {{  ! ! 
 	
r   c                 V   K   | j                   j                  |       d{   S 7 wz
        Asynchronous coroutine to fetch the ConfigurationInstance

        :param ui_version: The Pinned UI version of the Configuration resource to fetch.

        :returns: The fetched ConfigurationInstance
        rd   N)ra   fetch_asyncrf   s     r   ri   z!ConfigurationInstance.fetch_async   s1      [[,,! - 
 
 	
 
    )')c                 :    | j                   j                  |      S )z
        Fetch the ConfigurationInstance with HTTP info

        :param ui_version: The Pinned UI version of the Configuration resource to fetch.

        :returns: ApiResponse with instance, status code, and headers
        rd   )ra   fetch_with_http_inforf   s     r   rl   z*ConfigurationInstance.fetch_with_http_info   s#     {{//! 0 
 	
r   c                 V   K   | j                   j                  |       d{   S 7 w)z
        Asynchronous coroutine to fetch the ConfigurationInstance with HTTP info

        :param ui_version: The Pinned UI version of the Configuration resource to fetch.

        :returns: ApiResponse with instance, status code, and headers
        rd   N)ra   fetch_with_http_info_asyncrf   s     r   rn   z0ConfigurationInstance.fetch_with_http_info_async   s1      [[;;! < 
 
 	
 
rj   bodyc                 :    | j                   j                  |      S z}
        Update the ConfigurationInstance

        :param body:

        :returns: The updated ConfigurationInstance
        ro   )ra   updaterZ   ro   s     r   rs   zConfigurationInstance.update  s#     {{!! " 
 	
r   c                 V   K   | j                   j                  |       d{   S 7 wz
        Asynchronous coroutine to update the ConfigurationInstance

        :param body:

        :returns: The updated ConfigurationInstance
        rr   N)ra   update_asyncrt   s     r   rw   z"ConfigurationInstance.update_async  s1      [[-- . 
 
 	
 
rj   c                 :    | j                   j                  |      S )z
        Update the ConfigurationInstance with HTTP info

        :param body:

        :returns: ApiResponse with instance, status code, and headers
        rr   )ra   update_with_http_infort   s     r   ry   z+ConfigurationInstance.update_with_http_info)  s#     {{00 1 
 	
r   c                 V   K   | j                   j                  |       d{   S 7 w)z
        Asynchronous coroutine to update the ConfigurationInstance with HTTP info

        :param body:

        :returns: ApiResponse with instance, status code, and headers
        rr   N)ra   update_with_http_info_asyncrt   s     r   r{   z1ConfigurationInstance.update_with_http_info_async7  s1      [[<< = 
 
 	
 
rj   c                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z)<Twilio.FlexApi.V1.ConfigurationInstance>r   r`   s    r   __repr__zConfigurationInstance.__repr__E  s     ;r   )r\   r^   )r   r   r   objectr    r   r   strr   rV   propertyra   r
   unsetr   re   ri   r   rl   rn   rs   rw   ry   r{   r~   __classcell__r[   s   @r   r   r      s   " "
2hq= q=$sCx. q=f   06||
V,
	 
 06||
V,
	 
 06||
V,
	
 06||
V,
	
 -3LL
&&.)
	 
 -3LL
&&.)
	 
 -3LL
&&.)
	
 -3LL
&&.)
	
;# ;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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)zq
        Initialize the ConfigurationContext

        :param version: Version that contains the resource
        z/ConfigurationN)rU   rV   _urirZ   r!   r[   s     r   rV   zConfigurationContext.__init__Q  s     	!$	r   r9   r\   c                     t        j                  d|i      }t        j                  i       }d|d<   | j                  j                  d| j                  ||      S )zz
        Internal helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        	UiVersionapplication/jsonAcceptGETmethoduriparamsheaders)r
   ofr_   fetch_with_response_infor   rZ   r9   r   r   s       r   _fetchzConfigurationContext._fetch[  s^     Z
 ))B-.}}55dii 6 
 	
r   c                 Z    | j                  |      \  }}}t        | j                  |      S rc   )r   r   r_   rZ   r9   r"   _s       r   re   zConfigurationContext.fetchq  s1     z:A$MM
 	
r   c                 v    | j                  |      \  }}}t        | j                  |      }t        |||      S )z
        Fetch the ConfigurationInstance and return response metadata

        :param ui_version: The Pinned UI version of the Configuration resource to fetch.

        :returns: ApiResponse with instance, status code, and headers
        rd   datastatus_coder   )r   r   r_   r   rZ   r9   r"   r   r   instances         r   rl   z)ConfigurationContext.fetch_with_http_info  s@     )-z(J%g(MM
 k7SSr   c                    K   t        j                  d|i      }t        j                  i       }d|d<   | j                  j                  d| j                  ||       d{   S 7 w)z
        Internal async helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   r   r   N)r
   r   r_   fetch_with_response_info_asyncr   r   s       r   _fetch_asyncz!ConfigurationContext._fetch_async  sm      Z
 ))B-.]]AAdii B 
 
 	
 
s   AA' A%!A'c                 v   K   | j                  |       d{   \  }}}t        | j                  |      S 7 wrh   )r   r   r_   r   s       r   ri   z ConfigurationContext.fetch_async  sA      #//:/FFA$MM
 	
 G   979c                    K   | j                  |       d{   \  }}}t        | j                  |      }t        |||      S 7 ,w)a	  
        Asynchronous coroutine to fetch the ConfigurationInstance and return response metadata

        :param ui_version: The Pinned UI version of the Configuration resource to fetch.

        :returns: ApiResponse with instance, status code, and headers
        rd   Nr   )r   r   r_   r   r   s         r   rn   z/ConfigurationContext.fetch_with_http_info_async  sP      /3.?.?:.?.V(V%g(MM
 k7SS )W   AA-Aro   c                     |j                         }t        j                  i       }d|d<   d|d<   | j                  j	                  d| j
                  ||      S )z{
        Internal helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        r   Content-Typer   POSTr   r   r   r   )to_dictr
   r   r_   update_with_response_infor   rZ   ro   r   r   s       r   _updatezConfigurationContext._update  sY     ||~))B-"4.}}66tyytW 7 
 	
r   c                 Z    | j                  |      \  }}}t        | j                  |      S rq   )r   r   r_   rZ   ro   r"   r   s       r   rs   zConfigurationContext.update  s+     $/A$T]]G<<r   c                 v    | j                  |      \  }}}t        | j                  |      }t        |||      S )z
        Update the ConfigurationInstance and return response metadata

        :param body:

        :returns: ApiResponse with instance, status code, and headers
        rr   r   )r   r   r_   r   rZ   ro   r"   r   r   r   s         r   ry   z*ConfigurationContext.update_with_http_info  s:     )-$(?%g(@k7SSr   c                    K   |j                         }t        j                  i       }d|d<   d|d<   | j                  j	                  d| j
                  ||       d{   S 7 w)z
        Internal async helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   r   r   N)r   r
   r   r_   update_with_response_info_asyncr   r   s       r   _update_asyncz"ConfigurationContext._update_async  sh      ||~))B-"4.]]BBtyytW C 
 
 	
 
s   AA%A#A%c                 v   K   | j                  |       d{   \  }}}t        | j                  |      S 7 wrv   )r   r   r_   r   s       r   rw   z!ConfigurationContext.update_async  s:      #00d0;;A$T]]G<< <r   c                    K   | j                  |       d{   \  }}}t        | j                  |      }t        |||      S 7 ,w)z
        Asynchronous coroutine to update the ConfigurationInstance and return response metadata

        :param body:

        :returns: ApiResponse with instance, status code, and headers
        rr   Nr   )r   r   r_   r   r   s         r   r{   z0ConfigurationContext.update_with_http_info_async  sJ      /3.@.@d.@.K(K%g(@k7SS )Lr   c                      y)r}   z(<Twilio.FlexApi.V1.ConfigurationContext>r   r`   s    r   r~   zConfigurationContext.__repr__'  s     :r   )r   r   r   r   rV   r
   r   r   r   r   tupler   r   re   r   rl   r   ri   rn   r   rs   ry   r   rw   r{   r~   r   r   s   @r   r^   r^   O  s   % % 7=ll 
sF{!3 
u 
. 06||
V,
	
" 06||TV,T	T$ 06||
V,
	
2 06||
V,
	
" 06||TV,T	T" 5;LL 
E&&.1 
U 
( -3LL=&&.)=	= -3LLT&&.)T	T AG 
ffn(= 
QV 
( -3LL=&&.)=	= -3LLT&&.)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 )ConfigurationListr!   c                 $    t         |   |       y)zo
        Initialize the ConfigurationList

        :param version: Version that contains the resource

        N)rU   rV   r   s     r   rV   zConfigurationList.__init__3  s     	!r   r\   c                 ,    t        | j                        S z4
        Constructs a ConfigurationContext

        r^   r_   r`   s    r   rW   zConfigurationList.get<      
 $DMM22r   c                 ,    t        | j                        S r   r   r`   s    r   __call__zConfigurationList.__call__C  r   r   c                      y)r}   z%<Twilio.FlexApi.V1.ConfigurationList>r   r`   s    r   r~   zConfigurationList.__repr__J  s     7r   )r   r   r   r   rV   r^   rW   r   r   r~   r   r   s   @r   r   r   1  s5    " "3) 33. 37# 7r   r   N)__doc__r   typingr   r   r   r   r   twilio.baser	   r
   twilio.base.api_responser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   r^   r   r   r   r   <module>r      sR     3 3 + 0 8 : 2 's;, s;l	_:? _:D7 7r   