gravitino.dto.responses.model_response.ModelResponse¶
- class gravitino.dto.responses.model_response.ModelResponse(_code: int, _model: ModelDTO)¶
Bases:
BaseResponseResponse object for model-related operations.
Methods
__init__(_code, _model)code()from_dict(kvs, *[, infer_missing])from_json(s, *[, parse_float, parse_int, ...])model()Returns the model DTO object.
schema(*[, infer_missing, only, exclude, ...])to_dict([encode_json])to_json(*[, skipkeys, ensure_ascii, ...])validate()Validates the response data.
Attributes
dataclass_json_config- validate()¶
Validates the response data.
- Raises:
IllegalArgumentException if model identifiers are not set.