code: def set_limits(
      route: str, limits: List[Dict[str, Any]]
  ) -> LimitsConfig:
      """
      Set limits on an existing route in the Gateway.
  
      .. warning::
  
          This API is **only available** when running within Databricks.
  
      Args:
          route: The name of the route to set limits on.
          limits: Limits to set on the route.
  
      Example usage from within Databricks:
  
      .. code-block:: python
  
          from mlflow.gateway import set_gateway_uri, set_limits
  
          set_gateway_uri(gateway_uri="databricks")
  
          set_limits("my-new-route", [{"key": "user", "renewal_period": "minute", "calls": 50}])
      """
      return MlflowGatewayClient().set_limits(
          route=route, limits=limits
      )
  
file_path: mlflow/mlflow/gateway/fluent.py
imports: from typing import Any, Dict, List, Optional
  from mlflow.gateway.client import MlflowGatewayClient
  from mlflow.gateway.config import LimitsConfig, Route
  from mlflow.gateway.constants import MLFLOW_GATEWAY_SEARCH_ROUTES_PAGE_SIZE
  from mlflow.gateway.utils import gateway_deprecated
  from mlflow.utils import get_results_from_paginated_fn
label_desc: Use image node_id 5 for calling a global function with example usage: set_limits(route, limits) and returns: MlflowGatewayClient