| 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 FlowSummary(UniversalBaseModel): |
| 11 |
id: str |
| 12 |
name: str |
| 13 |
created_at: dt.datetime |
| 14 |
updated_at: dt.datetime |
| 15 |
executed_at: typing.Optional[str] = None |
| 16 |
|
| 17 |
if IS_PYDANTIC_V2: |
| 18 |
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) |
| 19 |
else: |
| 20 |
|
| 21 |
class Config: |
| 22 |
frozen = True |
| 23 |
smart_union = True |
| 24 |
extra = pydantic.Extra.allow |