ray.serve.schema.ServeDeploySchema#
- class ray.serve.schema.ServeDeploySchema(*, proxy_location: ProxyLocation = ProxyLocation.EveryNode, http_options: HTTPOptionsSchema = HTTPOptionsSchema(host='0.0.0.0', port=8000, root_path='', request_timeout_s=None, keep_alive_timeout_s=90, ssl_keyfile=None, ssl_certfile=None, ssl_keyfile_password=None, ssl_ca_certs=None), grpc_options: gRPCOptionsSchema = gRPCOptionsSchema(port=9000, grpc_servicer_functions=[], request_timeout_s=None), logging_config: LoggingConfig = None, applications: List[ServeApplicationSchema], target_capacity: ConstrainedFloatValue | None = None)[source]#
- Bases: - BaseModel- Multi-application config for deploying a list of Serve applications to the Ray cluster. - This is the request JSON schema for the v2 REST API - PUT "/api/serve/applications/".- NOTE: This config allows extra parameters to make it forward-compatible (ie
- older versions of Serve are able to accept configs from a newer versions, simply ignoring new parameters) 
 - 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 deploy schema dictionary. - Generate a JSON representation of the model, - includeand- excludearguments as per- dict().- Try to update ForwardRefs on fields based on this Model, globalns and localns. - Attributes