| 1 |
|
| 2 |
|
| 3 |
import datetime as dt |
| 4 |
import typing |
| 5 |
|
| 6 |
import pydantic |
| 7 |
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel |
| 8 |
|
| 9 |
|
| 10 |
class Group(UniversalBaseModel): |
| 11 |
""" |
| 12 |
Represents the metadata of a group. Member lists are retrieved via a separate endpoint. |
| 13 |
""" |
| 14 |
|
| 15 |
id: typing.Optional[str] = pydantic.Field(default=None) |
| 16 |
""" |
| 17 |
Unique identifier for the group (service-generated). |
| 18 |
""" |
| 19 |
|
| 20 |
name: typing.Optional[str] = pydantic.Field(default=None) |
| 21 |
""" |
| 22 |
Name of the group. Must be unique within its connection. Must contain between 1 and 128 printable ASCII characters. |
| 23 |
""" |
| 24 |
|
| 25 |
external_id: typing.Optional[str] = pydantic.Field(default=None) |
| 26 |
""" |
| 27 |
External identifier for the group, often used for SCIM synchronization. Max length of 256 characters. |
| 28 |
""" |
| 29 |
|
| 30 |
connection_id: typing.Optional[str] = pydantic.Field(default=None) |
| 31 |
""" |
| 32 |
Identifier for the connection this group belongs to (if a connection group). |
| 33 |
""" |
| 34 |
|
| 35 |
tenant_name: typing.Optional[str] = pydantic.Field(default=None) |
| 36 |
""" |
| 37 |
Identifier for the tenant this group belongs to. |
| 38 |
""" |
| 39 |
|
| 40 |
created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) |
| 41 |
""" |
| 42 |
Timestamp of when the group was created. |
| 43 |
""" |
| 44 |
|
| 45 |
updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) |
| 46 |
""" |
| 47 |
Timestamp of when the group was last updated. |
| 48 |
""" |
| 49 |
|
| 50 |
if IS_PYDANTIC_V2: |
| 51 |
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) |
| 52 |
else: |
| 53 |
|
| 54 |
class Config: |
| 55 |
frozen = True |
| 56 |
smart_union = True |
| 57 |
extra = pydantic.Extra.allow |