ray.serve.schema.ServeApplicationSchema#

class ray.serve.schema.ServeApplicationSchema(*, name: str = 'default', route_prefix: str | None = '/', import_path: str, runtime_env: dict = {}, host: str = '0.0.0.0', port: int = 8000, deployments: List[DeploymentSchema] = [], args: Dict = {}, logging_config: LoggingConfig = None)[source]#

Bases: BaseModel

Describes one Serve application, and currently can also be used as a standalone config to deploy a single application to a Ray cluster.

Methods

__init__

Create a new model by parsing and validating input data from keyword arguments.

construct

Creates a new model setting __dict__ and __fields_set__ from trusted or pre-validated data.

copy

Duplicate a model, optionally choose which fields to include, exclude and change.

dict

Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.

get_empty_schema_dict

Returns an empty app schema dictionary.

json

Generate a JSON representation of the model, include and exclude arguments as per dict().

update_forward_refs

Try to update ForwardRefs on fields based on this Model, globalns and localns.

Attributes

deployment_names

name

route_prefix

import_path

runtime_env

host

port

deployments

args

logging_config