ray.serve.schema.DeploymentDetails.json#
- DeploymentDetails.json(*, include: AbstractSetIntStr | MappingIntStrAny | None = None, exclude: AbstractSetIntStr | MappingIntStrAny | None = None, by_alias: bool = False, skip_defaults: bool | None = None, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False, encoder: Callable[[Any], Any] | None = None, models_as_dict: bool = True, **dumps_kwargs: Any) str #
生成模型的 JSON 表示,
include
和exclude
参数按照dict()
的方式处理。encoder
是一个可选的函数,作为default
参数提供给 json.dumps(),其他参数与json.dumps()
相同。