2024-12-12 19:53:41 +00:00
|
|
|
from typing import Optional
|
|
|
|
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
|
|
|
|
|
|
class Group(BaseModel):
|
2024-12-18 02:20:50 +00:00
|
|
|
"""
|
|
|
|
Attributes:
|
|
|
|
|
|
|
|
name (str): The name of the group.
|
|
|
|
|
|
|
|
group_class (Optional[list[str]]):
|
|
|
|
A list of group classes. This can be used to classify the
|
|
|
|
group or assign it different roles/categories. Defaults to an empty list.
|
|
|
|
|
|
|
|
member (Optional[list[str]]):
|
|
|
|
A list of members who belong to the group.
|
|
|
|
Optional, defaults to an empty list.
|
|
|
|
|
|
|
|
memberof (Optional[list[str]]):
|
|
|
|
A list of groups that this group is a member of.
|
|
|
|
Optional, defaults to an empty list.
|
|
|
|
|
|
|
|
directmemberof (Optional[list[str]]):
|
|
|
|
A list of groups that directly contain this group as a member.
|
|
|
|
Optional, defaults to an empty list.
|
|
|
|
|
|
|
|
spn (Optional[str]):
|
|
|
|
The Service Principal Name (SPN) associated with the group.
|
|
|
|
Optional, defaults to None.
|
|
|
|
|
|
|
|
description (Optional[str]):
|
|
|
|
A textual description of the group. Optional, defaults to None.
|
|
|
|
"""
|
|
|
|
|
2024-12-12 19:53:41 +00:00
|
|
|
name: str
|
|
|
|
group_class: Optional[list[str]] = []
|
|
|
|
member: Optional[list[str]] = []
|
|
|
|
memberof: Optional[list[str]] = []
|
|
|
|
directmemberof: Optional[list[str]] = []
|
|
|
|
spn: Optional[str] = None
|
|
|
|
description: Optional[str] = None
|