minikai 0.1.1__py3-none-any.whl → 0.1.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of minikai might be problematic. Click here for more details.
- minikai/__init__.py +1 -1
- minikai/api/__init__.py +1 -1
- minikai/api/groups/__init__.py +1 -1
- minikai/api/groups/add_minis_to_group.py +53 -33
- minikai/api/groups/add_users_to_group.py +53 -33
- minikai/api/groups/create_group.py +45 -27
- minikai/api/groups/delete_group.py +29 -9
- minikai/api/groups/get_group.py +47 -28
- minikai/api/groups/get_group_minis.py +52 -33
- minikai/api/groups/get_group_users.py +52 -33
- minikai/api/groups/get_groups.py +56 -34
- minikai/api/groups/remove_minis_from_group.py +53 -33
- minikai/api/groups/remove_users_from_group.py +53 -33
- minikai/api/groups/update_group.py +51 -33
- minikai/api/minis/__init__.py +1 -1
- minikai/api/minis/create_mini.py +45 -27
- minikai/api/minis/delete_mini.py +29 -9
- minikai/api/minis/get_external_mini.py +52 -33
- minikai/api/minis/get_minis.py +56 -34
- minikai/api/minis/patch_mini.py +51 -33
- minikai/api/minis/update_mini.py +51 -33
- minikai/api/records/__init__.py +1 -1
- minikai/api/records/add_attachments.py +59 -38
- minikai/api/records/add_relations.py +65 -43
- minikai/api/records/create_record.py +48 -28
- minikai/api/records/delete_record.py +29 -9
- minikai/api/records/download_attachment.py +119 -0
- minikai/api/records/get_records_by_external.py +68 -45
- minikai/api/records/remove_attachments.py +33 -11
- minikai/api/records/remove_relations.py +33 -11
- minikai/api/records/update_attachments.py +59 -38
- minikai/api/records/update_record.py +53 -33
- minikai/api/records/update_relations.py +65 -43
- minikai/api/users/__init__.py +1 -1
- minikai/api/users/delete_api_users_minis.py +31 -11
- minikai/api/users/get_api_users_minis.py +52 -33
- minikai/api/users/get_users.py +56 -34
- minikai/api/users/post_api_users_minis.py +52 -33
- minikai/client.py +6 -3
- minikai/errors.py +1 -3
- minikai/models/__init__.py +7 -3
- minikai/models/add_attachments_body.py +45 -13
- minikai/models/create_group_command.py +35 -10
- minikai/models/create_mini_command.py +34 -10
- minikai/models/create_record_command.py +87 -41
- minikai/models/create_record_command_tags.py +22 -3
- minikai/models/cursor_paginated_list_of_record_dto.py +122 -0
- minikai/models/document_file_dto.py +37 -13
- minikai/models/document_file_metadata_dto.py +27 -7
- minikai/models/form_field.py +38 -12
- minikai/models/form_field_dto.py +48 -16
- minikai/models/form_field_type.py +2 -8
- minikai/models/group_dto.py +50 -19
- minikai/models/http_validation_problem_details.py +41 -16
- minikai/models/http_validation_problem_details_errors.py +26 -3
- minikai/models/json_node.py +49 -24
- minikai/models/json_node_options.py +26 -7
- minikai/models/mini_dto.py +62 -27
- minikai/models/mini_template_dto.py +50 -18
- minikai/models/paginated_list_of_record_dto.py +39 -16
- minikai/models/patch_mini_command.py +30 -8
- minikai/models/problem_details.py +34 -11
- minikai/models/record.py +143 -61
- minikai/models/record_attachment.py +56 -27
- minikai/models/record_attachment_dto.py +56 -27
- minikai/models/record_attachment_dto_metadata_type_0.py +22 -3
- minikai/models/record_attachment_metadata_type_0.py +22 -3
- minikai/models/record_authorization.py +41 -9
- minikai/models/record_authorization_dto.py +41 -9
- minikai/models/record_dto.py +113 -54
- minikai/models/record_dto_tags.py +22 -3
- minikai/models/record_relation.py +35 -11
- minikai/models/record_relation_dto.py +35 -11
- minikai/models/record_tag.py +159 -0
- minikai/models/record_tag_dto.py +68 -0
- minikai/models/slim_mini_dto.py +51 -22
- minikai/models/tool_dto.py +29 -10
- minikai/models/update_attachments_body.py +45 -13
- minikai/models/update_group_command.py +37 -11
- minikai/models/update_mini_command.py +35 -11
- minikai/models/update_mini_template_workspaces_command.py +30 -7
- minikai/models/update_record_command.py +87 -42
- minikai/models/update_record_command_tags.py +22 -3
- minikai/models/user_dto.py +50 -17
- minikai/models/user_to_mini_dto.py +30 -9
- minikai/models/workspace_dto.py +30 -9
- minikai/types.py +5 -6
- {minikai-0.1.1.dist-info → minikai-0.1.3.dist-info}/METADATA +1 -1
- minikai-0.1.3.dist-info/RECORD +91 -0
- minikai/models/record_tags.py +0 -44
- minikai-0.1.1.dist-info/RECORD +0 -88
- {minikai-0.1.1.dist-info → minikai-0.1.3.dist-info}/WHEEL +0 -0
minikai/models/mini_dto.py
CHANGED
|
@@ -1,45 +1,60 @@
|
|
|
1
1
|
from collections.abc import Mapping
|
|
2
|
-
from typing import
|
|
2
|
+
from typing import Any, TypeVar, Optional, BinaryIO, TextIO, TYPE_CHECKING, Generator
|
|
3
3
|
|
|
4
4
|
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
5
6
|
|
|
6
7
|
from ..types import UNSET, Unset
|
|
7
8
|
|
|
9
|
+
from ..types import UNSET, Unset
|
|
10
|
+
from typing import cast
|
|
11
|
+
from typing import cast, Union
|
|
12
|
+
from typing import Union
|
|
13
|
+
|
|
8
14
|
if TYPE_CHECKING:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
15
|
+
from ..models.mini_template_dto import MiniTemplateDto
|
|
16
|
+
from ..models.workspace_dto import WorkspaceDto
|
|
17
|
+
from ..models.document_file_dto import DocumentFileDto
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
12
21
|
|
|
13
22
|
|
|
14
23
|
T = TypeVar("T", bound="MiniDto")
|
|
15
24
|
|
|
16
25
|
|
|
26
|
+
|
|
17
27
|
@_attrs_define
|
|
18
28
|
class MiniDto:
|
|
19
|
-
"""
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
"""
|
|
30
|
+
Attributes:
|
|
31
|
+
id (Union[Unset, int]):
|
|
32
|
+
name (Union[Unset, str]):
|
|
33
|
+
description (Union[None, Unset, str]):
|
|
34
|
+
instructions (Union[None, Unset, str]):
|
|
35
|
+
template_id (Union[None, Unset, str]):
|
|
36
|
+
template (Union['MiniTemplateDto', None, Unset]):
|
|
37
|
+
workspaces (Union[Unset, list['WorkspaceDto']]):
|
|
38
|
+
document_files (Union[Unset, list['DocumentFileDto']]):
|
|
39
|
+
"""
|
|
30
40
|
|
|
31
41
|
id: Union[Unset, int] = UNSET
|
|
32
42
|
name: Union[Unset, str] = UNSET
|
|
33
43
|
description: Union[None, Unset, str] = UNSET
|
|
34
44
|
instructions: Union[None, Unset, str] = UNSET
|
|
35
45
|
template_id: Union[None, Unset, str] = UNSET
|
|
36
|
-
template: Union[
|
|
37
|
-
workspaces: Union[Unset, list[
|
|
38
|
-
document_files: Union[Unset, list[
|
|
46
|
+
template: Union['MiniTemplateDto', None, Unset] = UNSET
|
|
47
|
+
workspaces: Union[Unset, list['WorkspaceDto']] = UNSET
|
|
48
|
+
document_files: Union[Unset, list['DocumentFileDto']] = UNSET
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
39
53
|
|
|
40
54
|
def to_dict(self) -> dict[str, Any]:
|
|
41
55
|
from ..models.mini_template_dto import MiniTemplateDto
|
|
42
|
-
|
|
56
|
+
from ..models.workspace_dto import WorkspaceDto
|
|
57
|
+
from ..models.document_file_dto import DocumentFileDto
|
|
43
58
|
id = self.id
|
|
44
59
|
|
|
45
60
|
name = self.name
|
|
@@ -77,6 +92,8 @@ class MiniDto:
|
|
|
77
92
|
workspaces_item = workspaces_item_data.to_dict()
|
|
78
93
|
workspaces.append(workspaces_item)
|
|
79
94
|
|
|
95
|
+
|
|
96
|
+
|
|
80
97
|
document_files: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
81
98
|
if not isinstance(self.document_files, Unset):
|
|
82
99
|
document_files = []
|
|
@@ -84,9 +101,13 @@ class MiniDto:
|
|
|
84
101
|
document_files_item = document_files_item_data.to_dict()
|
|
85
102
|
document_files.append(document_files_item)
|
|
86
103
|
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
87
107
|
field_dict: dict[str, Any] = {}
|
|
88
108
|
|
|
89
|
-
field_dict.update({
|
|
109
|
+
field_dict.update({
|
|
110
|
+
})
|
|
90
111
|
if id is not UNSET:
|
|
91
112
|
field_dict["id"] = id
|
|
92
113
|
if name is not UNSET:
|
|
@@ -106,12 +127,13 @@ class MiniDto:
|
|
|
106
127
|
|
|
107
128
|
return field_dict
|
|
108
129
|
|
|
130
|
+
|
|
131
|
+
|
|
109
132
|
@classmethod
|
|
110
133
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
111
|
-
from ..models.document_file_dto import DocumentFileDto
|
|
112
134
|
from ..models.mini_template_dto import MiniTemplateDto
|
|
113
135
|
from ..models.workspace_dto import WorkspaceDto
|
|
114
|
-
|
|
136
|
+
from ..models.document_file_dto import DocumentFileDto
|
|
115
137
|
d = dict(src_dict)
|
|
116
138
|
id = d.pop("id", UNSET)
|
|
117
139
|
|
|
@@ -126,6 +148,7 @@ class MiniDto:
|
|
|
126
148
|
|
|
127
149
|
description = _parse_description(d.pop("description", UNSET))
|
|
128
150
|
|
|
151
|
+
|
|
129
152
|
def _parse_instructions(data: object) -> Union[None, Unset, str]:
|
|
130
153
|
if data is None:
|
|
131
154
|
return data
|
|
@@ -135,6 +158,7 @@ class MiniDto:
|
|
|
135
158
|
|
|
136
159
|
instructions = _parse_instructions(d.pop("instructions", UNSET))
|
|
137
160
|
|
|
161
|
+
|
|
138
162
|
def _parse_template_id(data: object) -> Union[None, Unset, str]:
|
|
139
163
|
if data is None:
|
|
140
164
|
return data
|
|
@@ -144,7 +168,8 @@ class MiniDto:
|
|
|
144
168
|
|
|
145
169
|
template_id = _parse_template_id(d.pop("templateId", UNSET))
|
|
146
170
|
|
|
147
|
-
|
|
171
|
+
|
|
172
|
+
def _parse_template(data: object) -> Union['MiniTemplateDto', None, Unset]:
|
|
148
173
|
if data is None:
|
|
149
174
|
return data
|
|
150
175
|
if isinstance(data, Unset):
|
|
@@ -154,27 +179,36 @@ class MiniDto:
|
|
|
154
179
|
raise TypeError()
|
|
155
180
|
template_type_0 = MiniTemplateDto.from_dict(data)
|
|
156
181
|
|
|
182
|
+
|
|
183
|
+
|
|
157
184
|
return template_type_0
|
|
158
|
-
except:
|
|
185
|
+
except: # noqa: E722
|
|
159
186
|
pass
|
|
160
|
-
return cast(Union[
|
|
187
|
+
return cast(Union['MiniTemplateDto', None, Unset], data)
|
|
161
188
|
|
|
162
189
|
template = _parse_template(d.pop("template", UNSET))
|
|
163
190
|
|
|
191
|
+
|
|
164
192
|
workspaces = []
|
|
165
193
|
_workspaces = d.pop("workspaces", UNSET)
|
|
166
|
-
for workspaces_item_data in _workspaces or []:
|
|
194
|
+
for workspaces_item_data in (_workspaces or []):
|
|
167
195
|
workspaces_item = WorkspaceDto.from_dict(workspaces_item_data)
|
|
168
196
|
|
|
197
|
+
|
|
198
|
+
|
|
169
199
|
workspaces.append(workspaces_item)
|
|
170
200
|
|
|
201
|
+
|
|
171
202
|
document_files = []
|
|
172
203
|
_document_files = d.pop("documentFiles", UNSET)
|
|
173
|
-
for document_files_item_data in _document_files or []:
|
|
204
|
+
for document_files_item_data in (_document_files or []):
|
|
174
205
|
document_files_item = DocumentFileDto.from_dict(document_files_item_data)
|
|
175
206
|
|
|
207
|
+
|
|
208
|
+
|
|
176
209
|
document_files.append(document_files_item)
|
|
177
210
|
|
|
211
|
+
|
|
178
212
|
mini_dto = cls(
|
|
179
213
|
id=id,
|
|
180
214
|
name=name,
|
|
@@ -187,3 +221,4 @@ class MiniDto:
|
|
|
187
221
|
)
|
|
188
222
|
|
|
189
223
|
return mini_dto
|
|
224
|
+
|
|
@@ -1,38 +1,54 @@
|
|
|
1
1
|
from collections.abc import Mapping
|
|
2
|
-
from typing import
|
|
2
|
+
from typing import Any, TypeVar, Optional, BinaryIO, TextIO, TYPE_CHECKING, Generator
|
|
3
3
|
|
|
4
4
|
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
5
6
|
|
|
6
7
|
from ..types import UNSET, Unset
|
|
7
8
|
|
|
9
|
+
from ..types import UNSET, Unset
|
|
10
|
+
from typing import cast
|
|
11
|
+
from typing import cast, Union
|
|
12
|
+
from typing import Union
|
|
13
|
+
|
|
8
14
|
if TYPE_CHECKING:
|
|
9
|
-
|
|
10
|
-
|
|
15
|
+
from ..models.tool_dto import ToolDto
|
|
16
|
+
from ..models.workspace_dto import WorkspaceDto
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
11
20
|
|
|
12
21
|
|
|
13
22
|
T = TypeVar("T", bound="MiniTemplateDto")
|
|
14
23
|
|
|
15
24
|
|
|
25
|
+
|
|
16
26
|
@_attrs_define
|
|
17
27
|
class MiniTemplateDto:
|
|
18
|
-
"""
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
id (Union[Unset, str]):
|
|
31
|
+
name (Union[Unset, str]):
|
|
32
|
+
description (Union[None, Unset, str]):
|
|
33
|
+
instructions (Union[None, Unset, str]):
|
|
34
|
+
workspaces (Union[Unset, list['WorkspaceDto']]):
|
|
35
|
+
tools (Union[Unset, list['ToolDto']]):
|
|
36
|
+
"""
|
|
27
37
|
|
|
28
38
|
id: Union[Unset, str] = UNSET
|
|
29
39
|
name: Union[Unset, str] = UNSET
|
|
30
40
|
description: Union[None, Unset, str] = UNSET
|
|
31
41
|
instructions: Union[None, Unset, str] = UNSET
|
|
32
|
-
workspaces: Union[Unset, list[
|
|
33
|
-
tools: Union[Unset, list[
|
|
42
|
+
workspaces: Union[Unset, list['WorkspaceDto']] = UNSET
|
|
43
|
+
tools: Union[Unset, list['ToolDto']] = UNSET
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
34
48
|
|
|
35
49
|
def to_dict(self) -> dict[str, Any]:
|
|
50
|
+
from ..models.tool_dto import ToolDto
|
|
51
|
+
from ..models.workspace_dto import WorkspaceDto
|
|
36
52
|
id = self.id
|
|
37
53
|
|
|
38
54
|
name = self.name
|
|
@@ -56,6 +72,8 @@ class MiniTemplateDto:
|
|
|
56
72
|
workspaces_item = workspaces_item_data.to_dict()
|
|
57
73
|
workspaces.append(workspaces_item)
|
|
58
74
|
|
|
75
|
+
|
|
76
|
+
|
|
59
77
|
tools: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
60
78
|
if not isinstance(self.tools, Unset):
|
|
61
79
|
tools = []
|
|
@@ -63,9 +81,13 @@ class MiniTemplateDto:
|
|
|
63
81
|
tools_item = tools_item_data.to_dict()
|
|
64
82
|
tools.append(tools_item)
|
|
65
83
|
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
66
87
|
field_dict: dict[str, Any] = {}
|
|
67
88
|
|
|
68
|
-
field_dict.update({
|
|
89
|
+
field_dict.update({
|
|
90
|
+
})
|
|
69
91
|
if id is not UNSET:
|
|
70
92
|
field_dict["id"] = id
|
|
71
93
|
if name is not UNSET:
|
|
@@ -81,11 +103,12 @@ class MiniTemplateDto:
|
|
|
81
103
|
|
|
82
104
|
return field_dict
|
|
83
105
|
|
|
106
|
+
|
|
107
|
+
|
|
84
108
|
@classmethod
|
|
85
109
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
86
110
|
from ..models.tool_dto import ToolDto
|
|
87
111
|
from ..models.workspace_dto import WorkspaceDto
|
|
88
|
-
|
|
89
112
|
d = dict(src_dict)
|
|
90
113
|
id = d.pop("id", UNSET)
|
|
91
114
|
|
|
@@ -100,6 +123,7 @@ class MiniTemplateDto:
|
|
|
100
123
|
|
|
101
124
|
description = _parse_description(d.pop("description", UNSET))
|
|
102
125
|
|
|
126
|
+
|
|
103
127
|
def _parse_instructions(data: object) -> Union[None, Unset, str]:
|
|
104
128
|
if data is None:
|
|
105
129
|
return data
|
|
@@ -109,20 +133,27 @@ class MiniTemplateDto:
|
|
|
109
133
|
|
|
110
134
|
instructions = _parse_instructions(d.pop("instructions", UNSET))
|
|
111
135
|
|
|
136
|
+
|
|
112
137
|
workspaces = []
|
|
113
138
|
_workspaces = d.pop("workspaces", UNSET)
|
|
114
|
-
for workspaces_item_data in _workspaces or []:
|
|
139
|
+
for workspaces_item_data in (_workspaces or []):
|
|
115
140
|
workspaces_item = WorkspaceDto.from_dict(workspaces_item_data)
|
|
116
141
|
|
|
142
|
+
|
|
143
|
+
|
|
117
144
|
workspaces.append(workspaces_item)
|
|
118
145
|
|
|
146
|
+
|
|
119
147
|
tools = []
|
|
120
148
|
_tools = d.pop("tools", UNSET)
|
|
121
|
-
for tools_item_data in _tools or []:
|
|
149
|
+
for tools_item_data in (_tools or []):
|
|
122
150
|
tools_item = ToolDto.from_dict(tools_item_data)
|
|
123
151
|
|
|
152
|
+
|
|
153
|
+
|
|
124
154
|
tools.append(tools_item)
|
|
125
155
|
|
|
156
|
+
|
|
126
157
|
mini_template_dto = cls(
|
|
127
158
|
id=id,
|
|
128
159
|
name=name,
|
|
@@ -133,3 +164,4 @@ class MiniTemplateDto:
|
|
|
133
164
|
)
|
|
134
165
|
|
|
135
166
|
return mini_template_dto
|
|
167
|
+
|
|
@@ -1,37 +1,51 @@
|
|
|
1
1
|
from collections.abc import Mapping
|
|
2
|
-
from typing import
|
|
2
|
+
from typing import Any, TypeVar, Optional, BinaryIO, TextIO, TYPE_CHECKING, Generator
|
|
3
3
|
|
|
4
4
|
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
5
6
|
|
|
6
7
|
from ..types import UNSET, Unset
|
|
7
8
|
|
|
9
|
+
from ..types import UNSET, Unset
|
|
10
|
+
from typing import cast
|
|
11
|
+
from typing import Union
|
|
12
|
+
|
|
8
13
|
if TYPE_CHECKING:
|
|
9
|
-
|
|
14
|
+
from ..models.record_dto import RecordDto
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
10
18
|
|
|
11
19
|
|
|
12
20
|
T = TypeVar("T", bound="PaginatedListOfRecordDto")
|
|
13
21
|
|
|
14
22
|
|
|
23
|
+
|
|
15
24
|
@_attrs_define
|
|
16
25
|
class PaginatedListOfRecordDto:
|
|
17
|
-
"""
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
items: Union[Unset, list[
|
|
26
|
+
"""
|
|
27
|
+
Attributes:
|
|
28
|
+
items (Union[Unset, list['RecordDto']]):
|
|
29
|
+
page_number (Union[Unset, int]):
|
|
30
|
+
total_pages (Union[Unset, int]):
|
|
31
|
+
total_count (Union[Unset, int]):
|
|
32
|
+
has_previous_page (Union[Unset, bool]):
|
|
33
|
+
has_next_page (Union[Unset, bool]):
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
items: Union[Unset, list['RecordDto']] = UNSET
|
|
28
37
|
page_number: Union[Unset, int] = UNSET
|
|
29
38
|
total_pages: Union[Unset, int] = UNSET
|
|
30
39
|
total_count: Union[Unset, int] = UNSET
|
|
31
40
|
has_previous_page: Union[Unset, bool] = UNSET
|
|
32
41
|
has_next_page: Union[Unset, bool] = UNSET
|
|
33
42
|
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
34
47
|
def to_dict(self) -> dict[str, Any]:
|
|
48
|
+
from ..models.record_dto import RecordDto
|
|
35
49
|
items: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
36
50
|
if not isinstance(self.items, Unset):
|
|
37
51
|
items = []
|
|
@@ -39,6 +53,8 @@ class PaginatedListOfRecordDto:
|
|
|
39
53
|
items_item = items_item_data.to_dict()
|
|
40
54
|
items.append(items_item)
|
|
41
55
|
|
|
56
|
+
|
|
57
|
+
|
|
42
58
|
page_number = self.page_number
|
|
43
59
|
|
|
44
60
|
total_pages = self.total_pages
|
|
@@ -49,9 +65,11 @@ class PaginatedListOfRecordDto:
|
|
|
49
65
|
|
|
50
66
|
has_next_page = self.has_next_page
|
|
51
67
|
|
|
68
|
+
|
|
52
69
|
field_dict: dict[str, Any] = {}
|
|
53
70
|
|
|
54
|
-
field_dict.update({
|
|
71
|
+
field_dict.update({
|
|
72
|
+
})
|
|
55
73
|
if items is not UNSET:
|
|
56
74
|
field_dict["items"] = items
|
|
57
75
|
if page_number is not UNSET:
|
|
@@ -67,18 +85,22 @@ class PaginatedListOfRecordDto:
|
|
|
67
85
|
|
|
68
86
|
return field_dict
|
|
69
87
|
|
|
88
|
+
|
|
89
|
+
|
|
70
90
|
@classmethod
|
|
71
91
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
72
92
|
from ..models.record_dto import RecordDto
|
|
73
|
-
|
|
74
93
|
d = dict(src_dict)
|
|
75
94
|
items = []
|
|
76
95
|
_items = d.pop("items", UNSET)
|
|
77
|
-
for items_item_data in _items or []:
|
|
96
|
+
for items_item_data in (_items or []):
|
|
78
97
|
items_item = RecordDto.from_dict(items_item_data)
|
|
79
98
|
|
|
99
|
+
|
|
100
|
+
|
|
80
101
|
items.append(items_item)
|
|
81
102
|
|
|
103
|
+
|
|
82
104
|
page_number = d.pop("pageNumber", UNSET)
|
|
83
105
|
|
|
84
106
|
total_pages = d.pop("totalPages", UNSET)
|
|
@@ -99,3 +121,4 @@ class PaginatedListOfRecordDto:
|
|
|
99
121
|
)
|
|
100
122
|
|
|
101
123
|
return paginated_list_of_record_dto
|
|
124
|
+
|
|
@@ -1,26 +1,41 @@
|
|
|
1
1
|
from collections.abc import Mapping
|
|
2
|
-
from typing import Any, TypeVar,
|
|
2
|
+
from typing import Any, TypeVar, Optional, BinaryIO, TextIO, TYPE_CHECKING, Generator
|
|
3
3
|
|
|
4
4
|
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
5
6
|
|
|
6
7
|
from ..types import UNSET, Unset
|
|
7
8
|
|
|
9
|
+
from ..types import UNSET, Unset
|
|
10
|
+
from typing import cast, Union
|
|
11
|
+
from typing import Union
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
8
18
|
T = TypeVar("T", bound="PatchMiniCommand")
|
|
9
19
|
|
|
10
20
|
|
|
21
|
+
|
|
11
22
|
@_attrs_define
|
|
12
23
|
class PatchMiniCommand:
|
|
13
|
-
"""
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
24
|
+
"""
|
|
25
|
+
Attributes:
|
|
26
|
+
id (Union[Unset, int]):
|
|
27
|
+
name (Union[None, Unset, str]):
|
|
28
|
+
description (Union[None, Unset, str]):
|
|
29
|
+
"""
|
|
19
30
|
|
|
20
31
|
id: Union[Unset, int] = UNSET
|
|
21
32
|
name: Union[None, Unset, str] = UNSET
|
|
22
33
|
description: Union[None, Unset, str] = UNSET
|
|
23
34
|
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
24
39
|
def to_dict(self) -> dict[str, Any]:
|
|
25
40
|
id = self.id
|
|
26
41
|
|
|
@@ -36,9 +51,11 @@ class PatchMiniCommand:
|
|
|
36
51
|
else:
|
|
37
52
|
description = self.description
|
|
38
53
|
|
|
54
|
+
|
|
39
55
|
field_dict: dict[str, Any] = {}
|
|
40
56
|
|
|
41
|
-
field_dict.update({
|
|
57
|
+
field_dict.update({
|
|
58
|
+
})
|
|
42
59
|
if id is not UNSET:
|
|
43
60
|
field_dict["id"] = id
|
|
44
61
|
if name is not UNSET:
|
|
@@ -48,6 +65,8 @@ class PatchMiniCommand:
|
|
|
48
65
|
|
|
49
66
|
return field_dict
|
|
50
67
|
|
|
68
|
+
|
|
69
|
+
|
|
51
70
|
@classmethod
|
|
52
71
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
53
72
|
d = dict(src_dict)
|
|
@@ -62,6 +81,7 @@ class PatchMiniCommand:
|
|
|
62
81
|
|
|
63
82
|
name = _parse_name(d.pop("name", UNSET))
|
|
64
83
|
|
|
84
|
+
|
|
65
85
|
def _parse_description(data: object) -> Union[None, Unset, str]:
|
|
66
86
|
if data is None:
|
|
67
87
|
return data
|
|
@@ -71,6 +91,7 @@ class PatchMiniCommand:
|
|
|
71
91
|
|
|
72
92
|
description = _parse_description(d.pop("description", UNSET))
|
|
73
93
|
|
|
94
|
+
|
|
74
95
|
patch_mini_command = cls(
|
|
75
96
|
id=id,
|
|
76
97
|
name=name,
|
|
@@ -78,3 +99,4 @@ class PatchMiniCommand:
|
|
|
78
99
|
)
|
|
79
100
|
|
|
80
101
|
return patch_mini_command
|
|
102
|
+
|
|
@@ -1,24 +1,34 @@
|
|
|
1
1
|
from collections.abc import Mapping
|
|
2
|
-
from typing import Any, TypeVar,
|
|
2
|
+
from typing import Any, TypeVar, Optional, BinaryIO, TextIO, TYPE_CHECKING, Generator
|
|
3
3
|
|
|
4
4
|
from attrs import define as _attrs_define
|
|
5
5
|
from attrs import field as _attrs_field
|
|
6
6
|
|
|
7
7
|
from ..types import UNSET, Unset
|
|
8
8
|
|
|
9
|
+
from ..types import UNSET, Unset
|
|
10
|
+
from typing import cast, Union
|
|
11
|
+
from typing import Union
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
9
18
|
T = TypeVar("T", bound="ProblemDetails")
|
|
10
19
|
|
|
11
20
|
|
|
21
|
+
|
|
12
22
|
@_attrs_define
|
|
13
23
|
class ProblemDetails:
|
|
14
|
-
"""
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
"""
|
|
25
|
+
Attributes:
|
|
26
|
+
type_ (Union[None, Unset, str]):
|
|
27
|
+
title (Union[None, Unset, str]):
|
|
28
|
+
status (Union[None, Unset, int]):
|
|
29
|
+
detail (Union[None, Unset, str]):
|
|
30
|
+
instance (Union[None, Unset, str]):
|
|
31
|
+
"""
|
|
22
32
|
|
|
23
33
|
type_: Union[None, Unset, str] = UNSET
|
|
24
34
|
title: Union[None, Unset, str] = UNSET
|
|
@@ -27,6 +37,10 @@ class ProblemDetails:
|
|
|
27
37
|
instance: Union[None, Unset, str] = UNSET
|
|
28
38
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
29
39
|
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
30
44
|
def to_dict(self) -> dict[str, Any]:
|
|
31
45
|
type_: Union[None, Unset, str]
|
|
32
46
|
if isinstance(self.type_, Unset):
|
|
@@ -58,9 +72,11 @@ class ProblemDetails:
|
|
|
58
72
|
else:
|
|
59
73
|
instance = self.instance
|
|
60
74
|
|
|
75
|
+
|
|
61
76
|
field_dict: dict[str, Any] = {}
|
|
62
77
|
field_dict.update(self.additional_properties)
|
|
63
|
-
field_dict.update({
|
|
78
|
+
field_dict.update({
|
|
79
|
+
})
|
|
64
80
|
if type_ is not UNSET:
|
|
65
81
|
field_dict["type"] = type_
|
|
66
82
|
if title is not UNSET:
|
|
@@ -74,10 +90,11 @@ class ProblemDetails:
|
|
|
74
90
|
|
|
75
91
|
return field_dict
|
|
76
92
|
|
|
93
|
+
|
|
94
|
+
|
|
77
95
|
@classmethod
|
|
78
96
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
79
97
|
d = dict(src_dict)
|
|
80
|
-
|
|
81
98
|
def _parse_type_(data: object) -> Union[None, Unset, str]:
|
|
82
99
|
if data is None:
|
|
83
100
|
return data
|
|
@@ -87,6 +104,7 @@ class ProblemDetails:
|
|
|
87
104
|
|
|
88
105
|
type_ = _parse_type_(d.pop("type", UNSET))
|
|
89
106
|
|
|
107
|
+
|
|
90
108
|
def _parse_title(data: object) -> Union[None, Unset, str]:
|
|
91
109
|
if data is None:
|
|
92
110
|
return data
|
|
@@ -96,6 +114,7 @@ class ProblemDetails:
|
|
|
96
114
|
|
|
97
115
|
title = _parse_title(d.pop("title", UNSET))
|
|
98
116
|
|
|
117
|
+
|
|
99
118
|
def _parse_status(data: object) -> Union[None, Unset, int]:
|
|
100
119
|
if data is None:
|
|
101
120
|
return data
|
|
@@ -105,6 +124,7 @@ class ProblemDetails:
|
|
|
105
124
|
|
|
106
125
|
status = _parse_status(d.pop("status", UNSET))
|
|
107
126
|
|
|
127
|
+
|
|
108
128
|
def _parse_detail(data: object) -> Union[None, Unset, str]:
|
|
109
129
|
if data is None:
|
|
110
130
|
return data
|
|
@@ -114,6 +134,7 @@ class ProblemDetails:
|
|
|
114
134
|
|
|
115
135
|
detail = _parse_detail(d.pop("detail", UNSET))
|
|
116
136
|
|
|
137
|
+
|
|
117
138
|
def _parse_instance(data: object) -> Union[None, Unset, str]:
|
|
118
139
|
if data is None:
|
|
119
140
|
return data
|
|
@@ -123,6 +144,7 @@ class ProblemDetails:
|
|
|
123
144
|
|
|
124
145
|
instance = _parse_instance(d.pop("instance", UNSET))
|
|
125
146
|
|
|
147
|
+
|
|
126
148
|
problem_details = cls(
|
|
127
149
|
type_=type_,
|
|
128
150
|
title=title,
|
|
@@ -131,6 +153,7 @@ class ProblemDetails:
|
|
|
131
153
|
instance=instance,
|
|
132
154
|
)
|
|
133
155
|
|
|
156
|
+
|
|
134
157
|
problem_details.additional_properties = d
|
|
135
158
|
return problem_details
|
|
136
159
|
|