o
    f>hu                     @   s   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	 d	eZG d
d de	ZG dd deZdS )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                       sn   e Zd ZdZ	ddedeeef dee f fddZ	e
dd
dZdddZdddZdefddZ  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.
    Nversionpayloadservice_sidc                    sJ   t  | |d| _|d| _|d| _d|p| ji| _d | _d S )Nr   operator_sidsurl)super__init__getr   r   r   	_solution_context)selfr   r   r   	__class__ c/var/www/html/venv/lib/python3.10/site-packages/twilio/rest/intelligence/v2/operator_attachments.pyr      s   

z$OperatorAttachmentsInstance.__init__returnOperatorAttachmentsContextc                 C   s&   | j du rt| j| jd 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
        Nr   r   )r   r   _versionr   r   r   r   r   _proxy/   s   
z"OperatorAttachmentsInstance._proxyc                 C   s
   | j  S )s
        Fetch the OperatorAttachmentsInstance


        :returns: The fetched OperatorAttachmentsInstance
        )r    fetchr   r   r   r   r"   >   s   
z!OperatorAttachmentsInstance.fetchc                    s   | j  I dH S )
        Asynchronous coroutine to fetch the OperatorAttachmentsInstance


        :returns: The fetched OperatorAttachmentsInstance
        N)r    fetch_asyncr   r   r   r   r$   G   s   z'OperatorAttachmentsInstance.fetch_asyncc                 C   $   d dd | j D }d|S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c                 s        | ]\}}d  ||V  qdS z{}={}Nformat.0kvr   r   r   	<genexpr>V       z7OperatorAttachmentsInstance.__repr__.<locals>.<genexpr>z7<Twilio.Intelligence.V2.OperatorAttachmentsInstance {}>joinr   itemsr+   r   contextr   r   r   __repr__P      
z$OperatorAttachmentsInstance.__repr__)N)r   r   )r   r   )__name__
__module____qualname____doc__r
   r   strr   r   r   propertyr    r"   r$   r7   __classcell__r   r   r   r   r      s    



		r   c                       sP   e Zd Zdedef fddZdefddZdefdd	Zdefd
dZ	  Z
S )r   r   r   c                    s.   t  | d|i| _djdi | j| _dS )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}/OperatorsNr   )r   r   r   r+   _uri)r   r   r   r   r   r   r   \   s   z#OperatorAttachmentsContext.__init__r   c                 C   s<   t i }d|d< | jjd| j|d}t| j|| jd dS )r!   application/jsonAcceptGETmethoduriheadersr   r   )r   ofr   r"   r@   r   r   r   rG   r   r   r   r   r"   k   s   
z OperatorAttachmentsContext.fetchc                    sD   t i }d|d< | jjd| j|dI dH }t| j|| jd dS )r#   rA   rB   rC   rD   Nr   r   )r   rH   r   r$   r@   r   r   rI   r   r   r   r$      s   
z&OperatorAttachmentsContext.fetch_asyncc                 C   r%   )r&   r'   c                 s   r(   r)   r*   r,   r   r   r   r0      r1   z6OperatorAttachmentsContext.__repr__.<locals>.<genexpr>z6<Twilio.Intelligence.V2.OperatorAttachmentsContext {}>r2   r5   r   r   r   r7      r8   z#OperatorAttachmentsContext.__repr__)r9   r:   r;   r
   r=   r   r   r"   r$   r7   r?   r   r   r   r   r   Z   s
    r   c                       sT   e Zd Zdef fddZdedefddZdedefdd	Zdefd
dZ	  Z
S )OperatorAttachmentsListr   c                    s   t  | dS )zu
        Initialize the OperatorAttachmentsList

        :param version: Version that contains the resource

        N)r   r   )r   r   r   r   r   r      s   z OperatorAttachmentsList.__init__r   r   c                 C      t | j|dS z
        Constructs a OperatorAttachmentsContext

        :param service_sid: The unique SID identifier of the Service.
        r   r   r   r   r   r   r   r   r         zOperatorAttachmentsList.getc                 C   rK   rL   rM   rN   r   r   r   __call__   rO   z OperatorAttachmentsList.__call__c                 C   s   dS )r&   z0<Twilio.Intelligence.V2.OperatorAttachmentsList>r   r   r   r   r   r7      s   z OperatorAttachmentsList.__repr__)r9   r:   r;   r
   r   r=   r   r   rP   r7   r?   r   r   r   r   rJ      s
    	rJ   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   rJ   r   r   r   r   <module>   s    CE