
    piu                         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  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ListOptional)values)InstanceContext)InstanceResource)ListResource)Versionc                   r     e Zd ZdZ	 ddedeeef   dee   f fdZ	e
dd       ZddZdd	Zdefd
Z xZS )OperatorAttachmentsInstancez
    :ivar service_sid: The unique SID identifier of the Service.
    :ivar operator_sids: List of Operator SIDs attached to the service. Includes both Custom and Pre-built Operators.
    :ivar url: The URL of this resource.
    versionpayloadservice_sidc                     t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        d|xs | j                  i| _        d | _        y )Nr   operator_sidsurl)super__init__getr   r   r   	_solution_context)selfr   r   r   	__class__s       r/opt/services/ai/voice_agent/venv/lib/python3.12/site-packages/twilio/rest/intelligence/v2/operator_attachments.pyr   z$OperatorAttachmentsInstance.__init__   si     	!*1++m*D29++o2N")++e"4 ;:$*:*:
 ?C    returnc                     | j                   )t        | j                  | j                  d         | _         | j                   S )a  
        Generate an instance context for the instance, the context is capable of
        performing various actions. All instance actions are proxied to the context

        :returns: OperatorAttachmentsContext for this OperatorAttachmentsInstance
        r   r   )r   OperatorAttachmentsContext_versionr   r   s    r   _proxyz"OperatorAttachmentsInstance._proxy/   s9     == 6 NN=9DM }}r   c                 6    | j                   j                         S )s
        Fetch the OperatorAttachmentsInstance


        :returns: The fetched OperatorAttachmentsInstance
        )r#   fetchr"   s    r   r&   z!OperatorAttachmentsInstance.fetch>   s     {{  ""r   c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine to fetch the OperatorAttachmentsInstance


        :returns: The fetched OperatorAttachmentsInstance
        N)r#   fetch_asyncr"   s    r   r)   z'OperatorAttachmentsInstance.fetch_asyncG   s!      [[,,....s   '%'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>z7OperatorAttachmentsInstance.__repr__.<locals>.<genexpr>V        SDAq7>>!Q/S   !z7<Twilio.Intelligence.V2.OperatorAttachmentsInstance {}>joinr   itemsr0   r   contexts     r   __repr__z$OperatorAttachmentsInstance.__repr__P   s7     ((SDNN<P<P<RSSHOOPWXXr   )N)r   r    )r   r   )__name__
__module____qualname____doc__r   r   strr   r   r   propertyr#   r&   r)   r=   __classcell__r   s   @r   r   r      sj     &*	CC c3hC c]	C"  #/Y# Yr   r   c                   L     e Zd Zdedef fdZdefdZdefdZdefdZ	 xZ
S )r    r   r   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the OperatorAttachmentsContext

        :param version: Version that contains the resource
        :param service_sid: The unique SID identifier of the Service.
        r   z!/Services/{service_sid}/OperatorsN )r   r   r   r0   _uri)r   r   r   r   s      r   r   z#OperatorAttachmentsContext.__init__\   s@     	! ;
 ?7>>PP	r   r   c                     t        j                  i       }d|d<   | j                  j                  d| j                  |      }t        | j                  || j                  d         S )r%   application/jsonAcceptGETmethoduriheadersr   r   )r   ofr!   r&   rI   r   r   r   rQ   r   s      r   r&   z OperatorAttachmentsContext.fetchk   s]     ))B-.--%%U		7%S*MM}5
 	
r   c                    K   t        j                  i       }d|d<   | j                  j                  d| j                  |       d{   }t        | j                  || j                  d         S 7 )w)r(   rK   rL   rM   rN   Nr   r   )r   rR   r!   r)   rI   r   r   rS   s      r   r)   z&OperatorAttachmentsContext.fetch_async   sr      ))B-.11dii 2 
 
 +MM}5
 	
	
s   AA4A2	*A4c                     dj                  d | j                  j                         D              }dj                  |      S )r+   r,   c              3   F   K   | ]  \  }}d j                  ||        ywr.   r/   r1   s      r   r5   z6OperatorAttachmentsContext.__repr__.<locals>.<genexpr>   r6   r7   z6<Twilio.Intelligence.V2.OperatorAttachmentsContext {}>r8   r;   s     r   r=   z#OperatorAttachmentsContext.__repr__   s6     ((SDNN<P<P<RSSGNNwWWr   )r>   r?   r@   r   rB   r   r   r&   r)   r=   rD   rE   s   @r   r    r    Z   sA    Q Qc Q
2 
(
#> 
,X# Xr   r    c                   P     e Zd Zdef fdZdedefdZdedefdZdefdZ	 xZ
S )OperatorAttachmentsListr   c                 $    t         |   |       y)zu
        Initialize the OperatorAttachmentsList

        :param version: Version that contains the resource

        N)r   r   )r   r   r   s     r   r   z OperatorAttachmentsList.__init__   s     	!r   r   r   c                 0    t        | j                  |      S z
        Constructs a OperatorAttachmentsContext

        :param service_sid: The unique SID identifier of the Service.
        r   r    r!   r   r   s     r   r   zOperatorAttachmentsList.get        *$--[QQr   c                 0    t        | j                  |      S r[   r\   r]   s     r   __call__z OperatorAttachmentsList.__call__   r^   r   c                      y)r+   z0<Twilio.Intelligence.V2.OperatorAttachmentsList>rH   r"   s    r   r=   z OperatorAttachmentsList.__repr__   s     Br   )r>   r?   r@   r   r   rB   r    r   r`   r=   rD   rE   s   @r   rX   rX      sK    " "Rs R'A RRC R,F RB# Br   rX   N)rA   typingr   r   r   r   twilio.baser   twilio.base.instance_contextr   twilio.base.instance_resourcer	   twilio.base.list_resourcer
   twilio.base.versionr   r   r    rX   rH   r   r   <module>rh      sR    - ,  8 : 2 '@Y"2 @YFBX BXJ!Bl !Br   