gravitino.dto.credential_dto.CredentialDTO¶
- class gravitino.dto.credential_dto.CredentialDTO(_credential_type: str, _expire_time_in_ms: int, _credential_info: Dict[str, str])¶
Bases:
Credential,DataClassJsonMixinRepresents a Credential DTO (Data Transfer Object).
- __init__(_credential_type: str, _expire_time_in_ms: int, _credential_info: Dict[str, str]) None¶
Methods
__init__(_credential_type, ...)The credential information.
The type of the credential.
Returns the expiration time of the credential in milliseconds since the epoch, 0 means it will never expire.
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, ...])Attributes
dataclass_json_config- credential_info() Dict[str, str]¶
The credential information.
- Returns:
The credential information.
- credential_type() str¶
The type of the credential.
- Returns:
the type of the credential.
- expire_time_in_ms() int¶
Returns the expiration time of the credential in milliseconds since the epoch, 0 means it will never expire.
- Returns:
The expiration time of the credential.