gravitino.dto.responses.oauth2_token_response.OAuth2TokenResponse¶
- class gravitino.dto.responses.oauth2_token_response.OAuth2TokenResponse(_code: int, _access_token: str, _issue_token_type: str | None, _token_type: str, _expires_in: int, _scope: str, _refresh_token: str | None)¶
Bases:
BaseResponse- __init__(_code: int, _access_token: str, _issue_token_type: str | None, _token_type: str, _expires_in: int, _scope: str, _refresh_token: str | None) None¶
Methods
__init__(_code, _access_token, ...)access_token()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.
Attributes
dataclass_json_config- validate()¶
Validates the response.
- Raise:
IllegalArgumentException If the response is invalid, this exception is thrown.