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
Create a new model by parsing and validating input data from keyword arguments.
Creates a new model setting __dict__ and __fields_set__ from trusted or pre-validated data.
Duplicate a model, optionally choose which fields to include, exclude and change.
Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.
Returns an empty app schema dictionary.
Generate a JSON representation of the model,
include
andexclude
arguments as perdict()
.Try to update ForwardRefs on fields based on this Model, globalns and localns.
Attributes