gravitino.api.credential.gcs_token_credential.GCSTokenCredential

class gravitino.api.credential.gcs_token_credential.GCSTokenCredential(credential_info: Dict[str, str], expire_time_in_ms: int)

Bases: Credential, ABC

Represents the GCS token credential.

__init__(credential_info: Dict[str, str], expire_time_in_ms: int)

Methods

__init__(credential_info, expire_time_in_ms)

credential_info()

The credential information.

credential_type()

The type of the credential.

expire_time_in_ms()

Returns the expiration time of the credential in milliseconds since the epoch, 0 means it will never expire.

token()

The GCS token.

Attributes

GCS_TOKEN_CREDENTIAL_TYPE

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.

token() str

The GCS token.

Returns:

The GCS token.