
    d{iz                         d Z ddlmZ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 - Lookups
    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Union)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 )RateLimitInstancez
    :ivar rate_limits:
    versionpayloadc                 P    t         |   |       |j                  d      | _        y )Nrate_limits)super__init__getr   )selfr   r   	__class__s      _/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/lookups/v2/rate_limit.pyr   zRateLimitInstance.__init__   s!    !07M0J    returnc                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z%<Twilio.Lookups.V2.RateLimitInstance> r   s    r   __repr__zRateLimitInstance.__repr__"   s     7r   )__name__
__module____qualname____doc__r   r   strr   r   r   __classcell__r   s   @r   r   r      s2    K K$sCx. K
7# 7r   r   c                       e Zd Zdef fdZej                  fdeee	   e
f   defdZej                  fdeee	   e
f   defdZej                  fdeee	   e
f   defdZej                  fdeee	   e
f   defdZej                  fdeee	   e
f   defd	Zej                  fdeee	   e
f   defd
Zde	fdZ xZS )RateLimitListr   c                 2    t         |   |       d| _        y)zk
        Initialize the RateLimitList

        :param version: Version that contains the resource

        z/RateLimitsN)r   r   _uri)r   r   r   s     r   r   zRateLimitList.__init__.   s     	!!	r   fieldsr   c                     t        j                  ddi      }d|d<   t        j                  d|i      }| 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FieldsGETmethoduriheadersparams)r   of_versionfetch_with_response_infor*   r   r+   r6   r7   s       r   _fetchzRateLimitList._fetch9   se     ))^-PQR.&
 }}55dii 6 
 	
r   c                 Z    | j                  |      \  }}}t        | j                  |      S )zu
        Fetch the RateLimitInstance

        :param fields:
        :returns: The fetched RateLimitInstance
        r+   )r<   r   r9   r   r+   r   _s       r   fetchzRateLimitList.fetchN   s+     62A 88r   c                 v    | j                  |      \  }}}t        | j                  |      }t        |||      S )z
        Fetch the RateLimitInstance and return response metadata

        :param fields:
        :returns: ApiResponse with instance, status code, and headers
        r>   datastatus_coder6   )r<   r   r9   r	   r   r+   r   rE   r6   instances         r   fetch_with_http_infoz"RateLimitList.fetch_with_http_infoZ   s:     )-6(B%g$T]]G<k7SSr   c                    K   t        j                  ddi      }d|d<   t        j                  d|i      }| j                  j                  d| j                  ||       d{   S 7 w)	z
        Internal async helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        r-   r.   r/   r0   r1   r2   r3   N)r   r8   r9   fetch_with_response_info_asyncr*   r;   s       r   _fetch_asynczRateLimitList._fetch_asyncg   st      ))^-PQR.&
 ]]AAdii B 
 
 	
 
s   A A)"A'#A)c                 v   K   | j                  |       d{   \  }}}t        | j                  |      S 7 w)z
        Asynchronously fetch the RateLimitInstance

        :param fields:
        :returns: The fetched RateLimitInstance
        r>   N)rK   r   r9   r?   s       r   fetch_asynczRateLimitList.fetch_async~   s:      #//v/>>A 88 ?s   979c                    K   | j                  |       d{   \  }}}t        | j                  |      }t        |||      S 7 ,w)z
        Asynchronously fetch the RateLimitInstance and return response metadata

        :param fields:
        :returns: ApiResponse with instance, status code, and headers
        r>   NrC   )rK   r   r9   r	   rF   s         r   fetch_with_http_info_asyncz(RateLimitList.fetch_with_http_info_async   sJ      /3.?.?v.?.N(N%g$T]]G<k7SS )Os   AA-Ac                      y)r   z!<Twilio.Lookups.V2.RateLimitList>r   r   s    r   r   zRateLimitList.__repr__   s     3r   )r    r!   r"   r   r   r   unsetr   r   r$   objecttupler<   r   rA   r	   rH   rK   rM   rO   r   r%   r&   s   @r   r(   r(   ,   s'   	" 	" 9? 
U49f#45 
 
, 28
9DIv-.
9	
9 28TDIv-.T	T 28
DIv-.
	
0 28
9DIv-.
9	
9 28TDIv-.T	T3# 3r   r(   N)r#   typingr   r   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>rZ      s<    4 3  0 : 2 '7( 7(q3L q3r   