Debian Codegraph @

src/auth0/management/types/group_member.py

raw symbols SCIP
1 # This file was auto-generated by Fern from our API Definition.
2
3 import datetime as dt
4 import typing
5
6 import pydantic
7 from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
8 from .group_member_type_enum import GroupMemberTypeEnum
9 from .group_type_enum import GroupTypeEnum
10
11
12 class GroupMember(UniversalBaseModel):
13 """
14 Represents the metadata of a group membership.
15 """
16
17 id: typing.Optional[str] = pydantic.Field(default=None)
18 """
19 Unique identifier for the member.
20 """
21
22 member_type: typing.Optional[GroupMemberTypeEnum] = None
23 type: typing.Optional[GroupTypeEnum] = None
24 connection_id: typing.Optional[str] = pydantic.Field(default=None)
25 """
26 Identifier for the connection this group belongs to (if a connection group).
27 """
28
29 created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
30 """
31 Timestamp of when the membership was created.
32 """
33
34 if IS_PYDANTIC_V2:
35 model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
36 else:
37
38 class Config:
39 frozen = True
40 smart_union = True
41 extra = pydantic.Extra.allow