class_docstr: Detailed info about a deployment within a Serve application.
class_docstr_tok: ["Detailed","info","about","a","deployment","within","a","Serve","application","."]
code: def deployment_route_prefix_not_set(cls, v: DeploymentSchema):
      # Route prefix should not be set at the deployment level. Deployment-level route
      # prefix is outdated, there should be one route prefix per application
      if "route_prefix" in v.dict(exclude_unset=True):
          raise ValueError(
              "Unexpectedly found a deployment-level route_prefix in the "
              f'deployment_config for deployment "{cls.name}". The route_prefix in '
              "deployment_config within DeploymentDetails should not be set; please "
              "set it at the application level."
          )
      return v
  
imports: import logging
  from collections import Counter
  from dataclasses import dataclass, field
  from enum import Enum
  from typing import Any, Dict, List, Optional, Set, Union
  from zlib import crc32
  from ray._private.pydantic_compat import BaseModel, Extra, Field, root_validator, validator
  from ray._private.runtime_env.packaging import parse_uri
  from ray.serve._private.common import ApplicationStatus, DeploymentStatus, DeploymentStatusTrigger, ProxyStatus, ReplicaState, ServeDeployMode
  from ray.serve._private.constants import DEFAULT_GRPC_PORT, DEFAULT_UVICORN_KEEP_ALIVE_TIMEOUT_S, SERVE_DEFAULT_APP_NAME
  from ray.serve._private.deployment_info import DeploymentInfo
  from ray.serve._private.utils import DEFAULT
  from ray.serve.config import ProxyLocation
  from ray.util.annotations import PublicAPI
label_desc: Use image node_id 1 for calling the DeploymentDetails obj's underlying member method code with example usage: obj.deployment_route_prefix_not_set(cls, v) and returns: v