gravitino.api.authorization.role.Role¶
- class gravitino.api.authorization.role.Role¶
Bases:
AuditableThe interface of a role. The role is the entity which has kinds of privileges. One role can have multiple privileges of multiple securable objects.
- __init__()¶
Methods
__init__()audit_info()name()The name of the role.
The properties of the role.
The securable object represents a special kind of entity with a unique identifier.
- abstract name() → str¶
The name of the role.
- Raises:
NotImplementedError: if the method is not implemented.
- Returns:
str: The name of the role.
- abstract properties() → dict[str, str]¶
The properties of the role. Note, this method will return None if the properties are not set.
- Raises:
NotImplementedError: if the method is not implemented.
- Returns:
dict[str, str]: The properties of the role.
- abstract securable_objects() → list[gravitino.api.authorization.securable_objects.SecurableObject]¶
The securable object represents a special kind of entity with a unique identifier. All securable objects are organized by tree structure. For example: If the securable object is a table, the identifier may be catalog1.schema1.table1._summary_
- Raises:
NotImplementedError: if the method is not implemented.
- Returns:
list[SecurableObject]: The securable objects of the role.