class_docstr: Serve metadata with system-level info and details on all applications deployed to
  the Ray cluster.
  
  This is the response JSON schema for v2 REST API `GET /api/serve/applications`.
class_docstr_tok: ["Serve","metadata","with","system-level","info","and","details","on","all","applications","deployed","to","the","Ray","cluster",".","This","is","the","response","JSON","schema","for","v2","REST","API","`","GET","\/api\/serve\/applications","`","."]
docstr: Generates json serializable dictionary with user facing data.
docstr_tok: ["Generates","json","serializable","dictionary","with","user","facing","data","."]
code: def _get_user_facing_json_serializable_dict(
      self, *args, **kwargs
  ) -> Dict[str, Any]:
      """Generates json serializable dictionary with user facing data."""
      values = super().dict(*args, **kwargs)
  
      # `serialized_policy_def` is only used internally and should not be exposed to
      # the REST api. This method iteratively removes it from each autoscaling config
      # if exists.
      for app_name, application in values["applications"].items():
          for deployment_name, deployment in application[
              "deployments"
          ].items():
              if (
                  "deployment_config" in deployment
                  and "autoscaling_config"
                  in deployment["deployment_config"]
              ):
                  deployment["deployment_config"][
                      "autoscaling_config"
                  ].pop("serialized_policy_def", None)
  
      return values
  
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 3 for calling the ServeInstanceDetails obj's underlying member method code with example usage: obj._get_user_facing_json_serializable_dict() and returns: values