
    d{i                         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y)a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Messaging
    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)ApiResponse)InstanceResource)ListResource)Versionc                   B     e Zd ZdZdedeeef   f fdZdefdZ	 xZ
S )UsecaseInstancez|
    :ivar usecases: Human readable use case details (usecase, description and purpose) of Messaging Service Use Cases.
    versionpayloadc                 P    t         |   |       |j                  d      | _        y )Nusecases)super__init__getr   )selfr   r   	__class__s      ^/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/messaging/v1/usecase.pyr   zUsecaseInstance.__init__   s     !;B;;z;R    returnc                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z%<Twilio.Messaging.V1.UsecaseInstance> r   s    r   __repr__zUsecaseInstance.__repr__"   s     7r   )__name__
__module____qualname____doc__r   r   strr   r   r   __classcell__r   s   @r   r   r      s2    S S$sCx. S
7# 7r   r   c                   x     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
defdZdefdZde	fd	Zdefd
Z xZS )UsecaseListr   c                 2    t         |   |       d| _        y)zi
        Initialize the UsecaseList

        :param version: Version that contains the resource

        z/Services/UsecasesN)r   r   _uri)r   r   r   s     r   r   zUsecaseList.__init__.   s     	!(	r   r   c                     t        j                  ddi      }d|d<   | j                  j                  d| j                  |      S )zz
        Internal helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        Content-Type!application/x-www-form-urlencodedapplication/jsonAcceptGETmethoduriheaders)r   of_versionfetch_with_response_infor)   r   r3   s     r   _fetchzUsecaseList._fetch9   sI     ))^-PQR.}}55dii 6 
 	
r   c                 V    | j                         \  }}}t        | j                  |      S )z[
        Fetch the UsecaseInstance


        :returns: The fetched UsecaseInstance
        )r8   r   r5   r   r   _s      r   fetchzUsecaseList.fetchH   s&     At}}g66r   c                 r    | j                         \  }}}t        | j                  |      }t        |||      S )z
        Fetch the UsecaseInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        datastatus_coder3   )r8   r   r5   r   r   r   r@   r3   instances        r   fetch_with_http_infoz UsecaseList.fetch_with_http_infoR   s5     )-%g"4==':k7SSr   c                    K   t        j                  dd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/   r0   N)r   r4   r5   fetch_with_response_info_asyncr)   r7   s     r   _fetch_asynczUsecaseList._fetch_async]   sX      ))^-PQR.]]AAdii B 
 
 	
 
s   AA
AAc                 r   K   | j                          d{   \  }}}t        | j                  |      S 7 w)zj
        Asynchronously fetch the UsecaseInstance


        :returns: The fetched UsecaseInstance
        N)rF   r   r5   r:   s      r   fetch_asynczUsecaseList.fetch_asyncl   s5      #//11At}}g66 2s   757c                    K   | j                          d{   \  }}}t        | j                  |      }t        |||      S 7 ,w)z
        Asynchronously fetch the UsecaseInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr>   )rF   r   r5   r   rA   s        r   fetch_with_http_info_asyncz&UsecaseList.fetch_with_http_info_asyncv   sE      /3.?.?.A(A%g"4==':k7SS )Bs   AA-Ac                      y)r   z!<Twilio.Messaging.V1.UsecaseList>r   r   s    r   r   zUsecaseList.__repr__   s     3r   )r   r    r!   r   r   tupler8   r   r<   r   rC   rF   rH   rJ   r#   r   r$   r%   s   @r   r'   r'   ,   sg    	) 	)
 
7 7	Tk 	T
E 
7? 7	T+ 	T3# 3r   r'   N)r"   typingr   r   r   r   twilio.baser   twilio.base.api_responser   twilio.base.instance_resourcer	   twilio.base.list_resourcer
   twilio.base.versionr   r   r'   r   r   r   <module>rS      s<    - ,  0 : 2 '7& 7([3, [3r   