gravitino.dto.authorization.owner_dto.OwnerDTO

class gravitino.dto.authorization.owner_dto.OwnerDTO(_name: str, _type: Type)

Bases: Owner

Represents an Owner Data Transfer Object (DTO).

__init__(_name: str, _type: Type) None

Methods

__init__(_name, _type)

from_dict(kvs, *[, infer_missing])

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

name()

The name of the owner.

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

to_dict([encode_json])

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

type()

The type of the owner.

class Type(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

The type of the owner.

name() str

The name of the owner.

Returns:

str: The name of the owner.

type() Type

The type of the owner.

Returns:

Owner.Type: The type of the owner.