gravitino.dto.authorization.group_dto.GroupDTO

class gravitino.dto.authorization.group_dto.GroupDTO(_name: str, _roles: tuple[str, ...] = <factory>, _audit: ~gravitino.dto.audit_dto.AuditDTO | None = None)

Bases: Group

Represents a Group Data Transfer Object (DTO).

__init__(_name: str, _roles: tuple[str, ...] = <factory>, _audit: ~gravitino.dto.audit_dto.AuditDTO | None = None) None

Methods

__init__(_name[, _roles, _audit])

audit_info()

builder()

from_dict(kvs, *[, infer_missing])

from_json(s, *[, parse_float, parse_int, ...])

name()

The name of the group.

roles()

The roles of the group.

schema(*[, infer_missing, only, exclude, ...])

to_dict([encode_json])

to_json(*[, skipkeys, ensure_ascii, ...])

class Builder

Bases: object

Helper class to build a GroupDTO object.

name() str

The name of the group.

Returns:

str: The name of the group.

roles() list[str]

The roles of the group. A group can have multiple roles. Every role binds several privileges.

Returns:

list[str]: The role names of the group.