
    pi@                         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  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)InstanceContext)InstanceResource)ListResource)Versionc                   0    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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 )ConfigurationInstancec                       e Zd ZdZdZdZy)ConfigurationInstance.Statusok
inprogress
notstartedN)__name__
__module____qualname__OK
INPROGRESS
NOTSTARTED     g/opt/services/ai/voice_agent/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.   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   _context)selfr    r!   	__class__s      r   rU   zConfigurationInstance.__init__S   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
        )rX   ConfigurationContext_versionrY   s    r   _proxyzConfigurationInstance._proxy   s-     == 0DM }}r   r8   c                 :    | j                   j                  |      S )
        Fetch the ConfigurationInstance

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

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

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

        :returns: The fetched ConfigurationInstance
        rc   N)r`   fetch_asyncre   s     r   rh   z!ConfigurationInstance.fetch_async   s1      [[,,! - 
 
 	
 
    )')bodyc                 :    | j                   j                  |      S )}
        Update the ConfigurationInstance

        :param body:

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

        :param body:

        :returns: The updated ConfigurationInstance
        rm   N)r`   update_asyncro   s     r   rr   z"ConfigurationInstance.update_async   s1      [[-- . 
 
 	
 
ri   c                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z)<Twilio.FlexApi.V1.ConfigurationInstance>r   r_   s    r   __repr__zConfigurationInstance.__repr__  s     ;r   )r[   r]   )r   r   r   objectr   r   r   strr   rU   propertyr`   r
   unsetr   rd   rh   rn   rr   ru   __classcell__rZ   s   @r   r   r      s    " "
2hq= q=$sCx. q=f   06||
V,
	 
 06||
V,
	 
 -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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)rT   rU   _urirY   r    rZ   s     r   rU   zConfigurationContext.__init__  s     	!$	r   r8   r[   c                     t        j                  d|i      }t        j                  i       }d|d<   | j                  j                  d| j                  ||      }t        | j                  |      S )rb   	UiVersionapplication/jsonAcceptGETmethoduriparamsheaders)r
   ofr^   rd   r~   r   rY   r8   r   r   r!   s        r   rd   zConfigurationContext.fetch"  st     Z
 ))B-.--%%dii & 
 %MM
 	
r   c                    K   t        j                  d|i      }t        j                  i       }d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  |      S 7 w)rg   r   r   r   r   r   N)r
   r   r^   rh   r~   r   r   s        r   rh   z ConfigurationContext.fetch_async@  s      Z
 ))B-.11dii 2 
 
 %MM
 	
	
s   AA= A;!A=rj   c                     |j                         }t        j                  i       }d|d<   d|d<   | j                  j	                  d| j
                  ||      }t        | j                  |      S )rl   r   Content-Typer   POSTr   r   datar   )to_dictr
   r   r^   rn   r~   r   rY   rj   r   r   r!   s        r   rn   zConfigurationContext.update^  si     ||~))B-"4.--&&tyytW ' 
 %T]]G<<r   c                    K   |j                         }t        j                  i       }d|d<   d|d<   | j                  j	                  d| j
                  ||       d{   }t        | j                  |      S 7 w)rq   r   r   r   r   r   N)r   r
   r   r^   rr   r~   r   r   s        r   rr   z!ConfigurationContext.update_asyncv  sw      ||~))B-"4.22tyytW 3 
 
 %T]]G<<	
s   AA;A9A;c                      y)rt   z(<Twilio.FlexApi.V1.ConfigurationContext>r   r_   s    r   ru   zConfigurationContext.__repr__  s     :r   )r   r   r   r   rU   r
   ry   r   rw   rv   r   rd   rh   rn   rr   ru   rz   r{   s   @r   r]   r]     s    % % 06||
V,
	
> 06||
V,
	
> -3LL=&&.)=	=2 -3LL=&&.)=	=0:# :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)rT   rU   r   s     r   rU   zConfigurationList.__init__  s     	!r   r[   c                 ,    t        | j                        S z4
        Constructs a ConfigurationContext

        r]   r^   r_   s    r   rV   zConfigurationList.get      
 $DMM22r   c                 ,    t        | j                        S r   r   r_   s    r   __call__zConfigurationList.__call__  r   r   c                      y)rt   z%<Twilio.FlexApi.V1.ConfigurationList>r   r_   s    r   ru   zConfigurationList.__repr__  s     7r   )r   r   r   r   rU   r]   rV   r   rw   ru   rz   r{   s   @r   r   r     s5    " "3) 33. 37# 7r   r   N)__doc__r   typingr   r   r   r   r   twilio.baser	   r
   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   r]   r   r   r   r   <module>r      sO     3 3 + 8 : 2 '{;, {;|:? :D7 7r   