gravitino.dto.responses.base_response.BaseResponse¶
- class gravitino.dto.responses.base_response.BaseResponse(_code: int)¶
Bases:
RESTResponseRepresents a base response for REST API calls.
- __init__(_code: int) None¶
Methods
__init__(_code)code()from_dict(kvs, *[, infer_missing])from_json(s, *[, parse_float, parse_int, ...])schema(*[, infer_missing, only, exclude, ...])to_dict([encode_json])to_json(*[, skipkeys, ensure_ascii, ...])validate()Validates the response code.
Attributes
dataclass_json_config- validate()¶
Validates the response code. @throws IllegalArgumentException if code value is negative.