Skip to content

Commit 7b5c31f

Browse files
committed
Add forgotten files.
1 parent ef209b7 commit 7b5c31f

File tree

5 files changed

+3737
-1
lines changed

5 files changed

+3737
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ cython_debug/
165165
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
166166
# and can be added to the global gitignore or merged into this file. For a more nuclear
167167
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
168-
#.idea/
168+
.idea/
169169

170170
# Ruff stuff:
171171
.ruff_cache/
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
from collections.abc import Mapping
2+
from typing import Any, TypeVar, Union
3+
4+
from attrs import define as _attrs_define
5+
from attrs import field as _attrs_field
6+
7+
from ..types import UNSET, Unset
8+
9+
T = TypeVar("T", bound="AttachmentInfoDto")
10+
11+
12+
@_attrs_define
13+
class AttachmentInfoDto:
14+
"""Attachment info result
15+
16+
Attributes:
17+
attachment_id (Union[Unset, str]):
18+
uniq_id (Union[Unset, str]):
19+
"""
20+
21+
attachment_id: Union[Unset, str] = UNSET
22+
uniq_id: Union[Unset, str] = UNSET
23+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
24+
25+
def to_dict(self) -> dict[str, Any]:
26+
attachment_id = self.attachment_id
27+
28+
uniq_id = self.uniq_id
29+
30+
field_dict: dict[str, Any] = {}
31+
field_dict.update(self.additional_properties)
32+
field_dict.update({})
33+
if attachment_id is not UNSET:
34+
field_dict["attachmentId"] = attachment_id
35+
if uniq_id is not UNSET:
36+
field_dict["uniqId"] = uniq_id
37+
38+
return field_dict
39+
40+
@classmethod
41+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
42+
d = dict(src_dict)
43+
attachment_id = d.pop("attachmentId", UNSET)
44+
45+
uniq_id = d.pop("uniqId", UNSET)
46+
47+
attachment_info_dto = cls(
48+
attachment_id=attachment_id,
49+
uniq_id=uniq_id,
50+
)
51+
52+
attachment_info_dto.additional_properties = d
53+
return attachment_info_dto
54+
55+
@property
56+
def additional_keys(self) -> list[str]:
57+
return list(self.additional_properties.keys())
58+
59+
def __getitem__(self, key: str) -> Any:
60+
return self.additional_properties[key]
61+
62+
def __setitem__(self, key: str, value: Any) -> None:
63+
self.additional_properties[key] = value
64+
65+
def __delitem__(self, key: str) -> None:
66+
del self.additional_properties[key]
67+
68+
def __contains__(self, key: str) -> bool:
69+
return key in self.additional_properties
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
from collections.abc import Mapping
2+
from typing import TYPE_CHECKING, Any, TypeVar, Union
3+
4+
from attrs import define as _attrs_define
5+
from attrs import field as _attrs_field
6+
7+
from ..types import UNSET, Unset
8+
9+
if TYPE_CHECKING:
10+
from ..models.attachment_info_dto import AttachmentInfoDto
11+
12+
13+
T = TypeVar("T", bound="AttachmentInfosDto")
14+
15+
16+
@_attrs_define
17+
class AttachmentInfosDto:
18+
"""Attachment infos result
19+
20+
Attributes:
21+
attachment_infos (Union[Unset, list['AttachmentInfoDto']]):
22+
"""
23+
24+
attachment_infos: Union[Unset, list["AttachmentInfoDto"]] = UNSET
25+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
26+
27+
def to_dict(self) -> dict[str, Any]:
28+
attachment_infos: Union[Unset, list[dict[str, Any]]] = UNSET
29+
if not isinstance(self.attachment_infos, Unset):
30+
attachment_infos = []
31+
for attachment_infos_item_data in self.attachment_infos:
32+
attachment_infos_item = attachment_infos_item_data.to_dict()
33+
attachment_infos.append(attachment_infos_item)
34+
35+
field_dict: dict[str, Any] = {}
36+
field_dict.update(self.additional_properties)
37+
field_dict.update({})
38+
if attachment_infos is not UNSET:
39+
field_dict["attachmentInfos"] = attachment_infos
40+
41+
return field_dict
42+
43+
@classmethod
44+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
45+
from ..models.attachment_info_dto import AttachmentInfoDto
46+
47+
d = dict(src_dict)
48+
attachment_infos = []
49+
_attachment_infos = d.pop("attachmentInfos", UNSET)
50+
for attachment_infos_item_data in _attachment_infos or []:
51+
attachment_infos_item = AttachmentInfoDto.from_dict(attachment_infos_item_data)
52+
53+
attachment_infos.append(attachment_infos_item)
54+
55+
attachment_infos_dto = cls(
56+
attachment_infos=attachment_infos,
57+
)
58+
59+
attachment_infos_dto.additional_properties = d
60+
return attachment_infos_dto
61+
62+
@property
63+
def additional_keys(self) -> list[str]:
64+
return list(self.additional_properties.keys())
65+
66+
def __getitem__(self, key: str) -> Any:
67+
return self.additional_properties[key]
68+
69+
def __setitem__(self, key: str, value: Any) -> None:
70+
self.additional_properties[key] = value
71+
72+
def __delitem__(self, key: str) -> None:
73+
del self.additional_properties[key]
74+
75+
def __contains__(self, key: str) -> bool:
76+
return key in self.additional_properties
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
from collections.abc import Mapping
2+
from typing import Any, TypeVar
3+
4+
from attrs import define as _attrs_define
5+
from attrs import field as _attrs_field
6+
7+
T = TypeVar("T", bound="ValidatedGeotekniskUndersDiagnostics")
8+
9+
10+
@_attrs_define
11+
class ValidatedGeotekniskUndersDiagnostics:
12+
""" """
13+
14+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
15+
16+
def to_dict(self) -> dict[str, Any]:
17+
field_dict: dict[str, Any] = {}
18+
field_dict.update(self.additional_properties)
19+
20+
return field_dict
21+
22+
@classmethod
23+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
24+
d = dict(src_dict)
25+
validated_geoteknisk_unders_diagnostics = cls()
26+
27+
validated_geoteknisk_unders_diagnostics.additional_properties = d
28+
return validated_geoteknisk_unders_diagnostics
29+
30+
@property
31+
def additional_keys(self) -> list[str]:
32+
return list(self.additional_properties.keys())
33+
34+
def __getitem__(self, key: str) -> Any:
35+
return self.additional_properties[key]
36+
37+
def __setitem__(self, key: str, value: Any) -> None:
38+
self.additional_properties[key] = value
39+
40+
def __delitem__(self, key: str) -> None:
41+
del self.additional_properties[key]
42+
43+
def __contains__(self, key: str) -> bool:
44+
return key in self.additional_properties

0 commit comments

Comments
 (0)