Skip to content

Person

sereto.models.person

Person

Bases: SeretoBaseModel

Model representing a person.

Source code in sereto/models/person.py
19
20
21
22
23
24
25
26
class Person(SeretoBaseModel):
    """Model representing a person."""

    type: PersonType
    name: str | None = None
    business_unit: str | None = None
    email: EmailStr | None = None
    role: str | None = None

PersonType

Bases: str, Enum

Enum representing a person's role in regards to the current assessment.

Source code in sereto/models/person.py
 8
 9
10
11
12
13
14
15
16
class PersonType(str, Enum):
    """Enum representing a person's role in regards to the current assessment."""

    author = "author"
    requestor = "requestor"
    asset_owner = "asset_owner"
    security_officer = "security_officer"
    technical_contact = "technical_contact"
    reviewer = "reviewer"