Class representing the RateLimits resource. This class provides methods to manage rate limit configurations for the ML Gateway.

Hierarchy

  • GatewayResource
    • RateLimits

Constructors

Properties

Methods

Constructors

Properties

Client instance for API calls.

Memberof

GatewayResource

Methods

  • Create Rate Limit.

    Creates a new rate limit configuration for tenant, provider, or model level.

    Parameters

    Returns Promise<WatsonXAI.Response<Record<string, any>>>

    • A promise that resolves with the created rate limit configuration.

    Throws

    If validation fails or an error occurs during the request.

  • Delete Rate Limit.

    Deletes a specific rate limit configuration by UUID.

    Parameters

    Returns Promise<WatsonXAI.Response<Record<string, any>>>

    • A promise that resolves with an empty object on success.

    Throws

    If validation fails or an error occurs during the request.

  • List Rate Limits.

    Retrieves a list of all rate limit configurations.

    Parameters

    Returns Promise<Record<string, any>[]>

    • A promise that resolves with an array of rate limit configurations.

    Throws

    If validation fails or an error occurs during the request.

  • Update Rate Limit.

    Updates an existing rate limit configuration.

    Parameters

    Returns Promise<WatsonXAI.Response<Record<string, any>>>

    • A promise that resolves with the updated rate limit configuration.

    Throws

    If validation fails or an error occurs during the request.