bayesline.api.Principal

bayesline.api.Principal#

model Principal#

Anything a grant can be addressed to.

Fields#

Field

Type

Required

Default

Constraints

id

str

Yes

min_length=1

name

str | None

No

None

type

PrincipalType

Yes

field id: str [Required]#
Constraints:
  • min_length = 1

field name: str | None [Optional]#

The name of the group this addresses, reported alongside its id. None for a user, for a role, and for an id that names no group.

field type: PrincipalType [Required]#