
    pi5                         d Z ddl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 - Intelligence
    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)values)InstanceContext)InstanceResource)ListResource)Versionc            
            e Zd ZdZ	 	 ddedeeef   dee   dee   f fdZ	e
dd       Zdd	Zdd
ZdefdZdefdZdefdZ xZS )OperatorAttachmentInstancez
    :ivar service_sid: The unique SID identifier of the Service.
    :ivar operator_sid: The unique SID identifier of the Operator.
    :ivar url: The URL of this resource.
    versionpayloadservice_sidoperator_sidc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |xs | j                  |xs | j                  d| _        d | _        y )Nr   r   urlr   r   )super__init__getr   r   r   	_solution_context)selfr   r   r   r   	__class__s        q/opt/services/ai/voice_agent/venv/lib/python3.12/site-packages/twilio/rest/intelligence/v2/operator_attachment.pyr   z#OperatorAttachmentInstance.__init__   su     	!*1++m*D+2;;~+F")++e"4 ':$*:*:(=D,=,=
 >B    returnc                     | j                   7t        | j                  | j                  d   | j                  d         | _         | 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: OperatorAttachmentContext for this OperatorAttachmentInstance
        r   r   r   )r   OperatorAttachmentContext_versionr   r   s    r   _proxyz!OperatorAttachmentInstance._proxy1   sE     == 5 NN=9!^^N;DM
 }}r   c                 6    | j                   j                         S )r
        Create the OperatorAttachmentInstance


        :returns: The created OperatorAttachmentInstance
        )r"   creater!   s    r   r%   z!OperatorAttachmentInstance.createA        {{!!##r   c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine to create the OperatorAttachmentInstance


        :returns: The created OperatorAttachmentInstance
        N)r"   create_asyncr!   s    r   r)   z'OperatorAttachmentInstance.create_asyncJ   !      [[--////   '%'c                 6    | j                   j                         S )u
        Deletes the OperatorAttachmentInstance


        :returns: True if delete succeeds, False otherwise
        )r"   deleter!   s    r   r.   z!OperatorAttachmentInstance.deleteS   r&   r   c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine that deletes the OperatorAttachmentInstance


        :returns: True if delete succeeds, False otherwise
        N)r"   delete_asyncr!   s    r   r1   z'OperatorAttachmentInstance.delete_async\   r*   r+   c                     dj                  d | j                  j                         D              }dj                  |      S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   F   K   | ]  \  }}d j                  ||        ywz{}={}Nformat.0kvs      r   	<genexpr>z6OperatorAttachmentInstance.__repr__.<locals>.<genexpr>k        SDAq7>>!Q/S   !z6<Twilio.Intelligence.V2.OperatorAttachmentInstance {}>joinr   itemsr8   r   contexts     r   __repr__z#OperatorAttachmentInstance.__repr__e   s6     ((SDNN<P<P<RSSGNNwWWr   )NN)r   r   )r   r   )__name__
__module____qualname____doc__r
   r   strr   r   r   propertyr"   r%   r)   boolr.   r1   rE   __classcell__r   s   @r   r   r      s     &*&*BB c3hB c]	B
 smB&  $0$ $0D 0X# Xr   r   c                   h     e Zd Zdededef fdZdefdZdefdZde	fdZ
de	fd	Zdefd
Z xZS )r   r   r   r   c                 z    t         |   |       ||d| _         dj                  di | j                  | _        y)a0  
        Initialize the OperatorAttachmentContext

        :param version: Version that contains the resource
        :param service_sid: The unique SID identifier of the Service.
        :param operator_sid: The unique SID identifier of the Operator. Allows both Custom and Pre-built Operators.
        r   z0/Services/{service_sid}/Operators/{operator_sid}N )r   r   r   r8   _uri)r   r   r   r   r   s       r   r   z"OperatorAttachmentContext.__init__q   sG     	! '(
 NFMM 
nn
	r   r   c                    t        j                  i       }t        j                  i       }d|d<   | j                  j                  d| j                  ||      }t        | j                  || j                  d   | j                  d         S )r$   application/jsonAcceptPOSTmethoduridataheadersr   r   r   )r   ofr    r%   rR   r   r   r   rZ   r[   r   s       r   r%   z OperatorAttachmentContext.create   s     yy}))B-.--&&tyytW ' 
 *MM}57	
 	
r   c                 4  K   t        j                  i       }t        j                  i       }d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  || j                  d   | j                  d         S 7 7w)	r(   rT   rU   rV   rW   Nr   r   r   )r   r\   r    r)   rR   r   r   r]   s       r   r)   z&OperatorAttachmentContext.create_async   s      yy}))B-.22tyytW 3 
 
 *MM}57	
 	
	
s   ABB8Bc                 |    t        j                  i       }| j                  j                  d| j                  |      S )r-   DELETErX   rY   r[   )r   r\   r    r.   rR   r   r[   s     r   r.   z OperatorAttachmentContext.delete   s1     ))B-}}##8G#TTr   c                    K   t        j                  i       }| j                  j                  d| j                  |       d{   S 7 w)r0   r`   ra   N)r   r\   r    r1   rR   rb   s     r   r1   z&OperatorAttachmentContext.delete_async   sF      ))B-]]//G 0 
 
 	
 
s   AA
AA
c                     dj                  d | j                  j                         D              }dj                  |      S )r3   r4   c              3   F   K   | ]  \  }}d j                  ||        ywr6   r7   r9   s      r   r=   z5OperatorAttachmentContext.__repr__.<locals>.<genexpr>   r>   r?   z5<Twilio.Intelligence.V2.OperatorAttachmentContext {}>r@   rC   s     r   rE   z"OperatorAttachmentContext.__repr__   s6     ((SDNN<P<P<RSSFMMgVVr   )rF   rG   rH   r
   rJ   r   r   r%   r)   rL   r.   r1   rE   rM   rN   s   @r   r   r   o   s_    
 
c 
 
&
2 
0
$> 
0
U 
U
D 
W# Wr   r   c                   X     e Zd Zdef fdZdededefdZdededefdZdefdZ	 xZ
S )	OperatorAttachmentListr   c                 $    t         |   |       y)zt
        Initialize the OperatorAttachmentList

        :param version: Version that contains the resource

        N)r   r   )r   r   r   s     r   r   zOperatorAttachmentList.__init__   s     	!r   r   r   r   c                 2    t        | j                  ||      S z
        Constructs a OperatorAttachmentContext

        :param service_sid: The unique SID identifier of the Service.
        :param operator_sid: The unique SID identifier of the Operator. Allows both Custom and Pre-built Operators.
        r   r   r    r   r   r   s      r   r   zOperatorAttachmentList.get   s     )MM{
 	
r   c                 2    t        | j                  ||      S rj   rk   rl   s      r   __call__zOperatorAttachmentList.__call__   s     )MM{
 	
r   c                      y)r3   z/<Twilio.Intelligence.V2.OperatorAttachmentList>rQ   r!   s    r   rE   zOperatorAttachmentList.__repr__   s     Ar   )rF   rG   rH   r
   r   rJ   r   r   rn   rE   rM   rN   s   @r   rg   rg      sU    " "	
s 	
# 	
:S 	


.1
	"
A# Ar   rg   N)rI   typingr   r   r   twilio.baser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer	   twilio.base.versionr
   r   r   rg   rQ   r   r   <module>rv      sR    ' &  8 : 2 'UX!1 UXpfW fWR)A\ )Ar   