-
Notifications
You must be signed in to change notification settings - Fork 0
/
EMInfraDomain.py
136 lines (93 loc) · 3.4 KB
/
EMInfraDomain.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
from datetime import datetime
from typing import Optional, Sequence, Union, List
from pydantic import BaseModel
class Link(BaseModel):
href: Optional[str] = None
rel: Optional[str] = None
class EventContextDTO(BaseModel):
uuid: Optional[str] = None
omschrijving: Optional[str] = None
links: Optional[Sequence[Link]] = None
class ResourceRefDTO(BaseModel):
links: Optional[Sequence[Link]] = None
uuid: Optional[str] = None
class AggregateIdObject(BaseModel):
_type: Optional[str] = None
uuid: Optional[str] = None
class AtomValueObject(BaseModel):
type: str
typeVersion: str
contextId: Optional[str] = None
from_: Optional[object] = None
to: Optional[object] = None
aggregateId: Optional[AggregateIdObject] = None
class Config:
fields = {'type': '_type', 'typeVersion': '_typeVersion', 'from_': 'from'}
class ContentObject(BaseModel):
type: Optional[str] = None
value: Optional[AtomValueObject] = None
class EntryObject(BaseModel):
content: Optional[ContentObject]
id: Optional[str]
links: Optional[Sequence[Link]] = None
updated: Optional[datetime] = None
class FeedPage(BaseModel):
id: str
base: Optional[str] = None
title: Optional[str] = None
updated: Optional[datetime] = None
links: Optional[Sequence[Link]] = None
entries: Optional[Sequence[EntryObject]] = None
class EigenschapTypedValueDTO(BaseModel):
type: Optional[str] = None
value: Optional[Union[object, Sequence[object]]] = None
class Config:
fields = {'type': '_type'}
class KenmerkEigenschapValueUpdateDTO(BaseModel):
eigenschap: ResourceRefDTO = None
kenmerkType: ResourceRefDTO = None
typedValue: EigenschapTypedValueDTO = None
class DatatypeTypeDTO(BaseModel):
type: Optional[str] = None
class Config:
fields = {'type': '_type'}
class EigenschapTypeDTO(BaseModel):
actief: Optional[bool] = None
links: Optional[Sequence[Link]] = None
uuid: Optional[str] = None
kardinaliteitMin: Optional[int] = None
kardinaliteitMax: Optional[int] = None
uri: Optional[str] = None
definitie: Optional[str] = None
naam: Optional[str] = None
type: Optional[DatatypeTypeDTO] = None
class EigenschapTypeDTOType(BaseModel):
datatype: Optional[EigenschapTypeDTO] = None
type: Optional[str] = None
class Config:
fields = {'type': '_type'}
class EigenschapDTO(BaseModel):
actief: Optional[bool] = None
links: Optional[Sequence[Link]] = None
uuid: Optional[str] = None
kardinaliteitMin: Optional[int] = None
kardinaliteitMax: Optional[int] = None
uri: Optional[str] = None
naam: Optional[str] = None
type: Optional[EigenschapTypeDTOType] = None
class KenmerkTypeDTO(BaseModel):
actief: Optional[bool] = None
links: Optional[Sequence[Link]] = None
uuid: Optional[str] = None
uri: Optional[str] = None
naam: Optional[str] = None
class KenmerkEigenschapValueDTO(BaseModel):
eigenschap: EigenschapDTO = None
kenmerkType: KenmerkTypeDTO = None
typedValue: EigenschapTypedValueDTO = None
class KenmerkEigenschapValueDTOList(BaseModel):
data: Optional[List[KenmerkEigenschapValueDTO]] = None
class ListUpdateDTOKenmerkEigenschapValueUpdateDTO(BaseModel):
data: Optional[Sequence[KenmerkEigenschapValueUpdateDTO]] = None
class EigenschapDTOList(BaseModel):
data: Optional[Sequence[EigenschapDTO]] = None