robosystems-client 0.2.2__py3-none-any.whl → 0.2.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 robosystems-client might be problematic. Click here for more details.
- robosystems_client/api/query/execute_cypher_query.py +0 -5
- robosystems_client/api/tables/delete_file.py +437 -0
- robosystems_client/api/tables/get_file_info.py +397 -0
- robosystems_client/api/tables/get_upload_url.py +548 -0
- robosystems_client/api/tables/ingest_tables.py +616 -0
- robosystems_client/api/tables/list_table_files.py +509 -0
- robosystems_client/api/tables/list_tables.py +488 -0
- robosystems_client/api/tables/query_tables.py +487 -0
- robosystems_client/api/tables/update_file_status.py +539 -0
- robosystems_client/extensions/graph_client.py +5 -0
- robosystems_client/extensions/table_ingest_client.py +31 -40
- robosystems_client/models/__init__.py +13 -17
- robosystems_client/models/create_graph_request.py +11 -0
- robosystems_client/models/{delete_file_v1_graphs_graph_id_tables_files_file_id_delete_response_delete_file_v1_graphs_graph_id_tables_files_file_id_delete.py → delete_file_response.py} +45 -9
- robosystems_client/models/file_info.py +169 -0
- robosystems_client/models/file_status_update.py +41 -0
- robosystems_client/models/get_file_info_response.py +205 -0
- robosystems_client/models/list_table_files_response.py +105 -0
- robosystems_client/models/{get_file_info_v1_graphs_graph_id_tables_files_file_id_get_response_get_file_info_v1_graphs_graph_id_tables_files_file_id_get.py → update_file_status_response_updatefilestatus.py} +5 -8
- {robosystems_client-0.2.2.dist-info → robosystems_client-0.2.3.dist-info}/METADATA +1 -1
- {robosystems_client-0.2.2.dist-info → robosystems_client-0.2.3.dist-info}/RECORD +23 -22
- robosystems_client/api/tables/delete_file_v1_graphs_graph_id_tables_files_file_id_delete.py +0 -287
- robosystems_client/api/tables/get_file_info_v1_graphs_graph_id_tables_files_file_id_get.py +0 -283
- robosystems_client/api/tables/get_upload_url_v1_graphs_graph_id_tables_table_name_files_post.py +0 -260
- robosystems_client/api/tables/ingest_tables_v1_graphs_graph_id_tables_ingest_post.py +0 -251
- robosystems_client/api/tables/list_table_files_v1_graphs_graph_id_tables_table_name_files_get.py +0 -283
- robosystems_client/api/tables/list_tables_v1_graphs_graph_id_tables_get.py +0 -224
- robosystems_client/api/tables/query_tables_v1_graphs_graph_id_tables_query_post.py +0 -247
- robosystems_client/api/tables/update_file_v1_graphs_graph_id_tables_files_file_id_patch.py +0 -306
- robosystems_client/models/file_update_request.py +0 -62
- robosystems_client/models/list_table_files_v1_graphs_graph_id_tables_table_name_files_get_response_list_table_files_v1_graphs_graph_id_tables_table_name_files_get.py +0 -47
- robosystems_client/models/update_file_v1_graphs_graph_id_tables_files_file_id_patch_response_update_file_v1_graphs_graph_id_tables_files_file_id_patch.py +0 -47
- {robosystems_client-0.2.2.dist-info → robosystems_client-0.2.3.dist-info}/WHEEL +0 -0
- {robosystems_client-0.2.2.dist-info → robosystems_client-0.2.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,306 +0,0 @@
|
|
|
1
|
-
from http import HTTPStatus
|
|
2
|
-
from typing import Any, Optional, Union, cast
|
|
3
|
-
|
|
4
|
-
import httpx
|
|
5
|
-
|
|
6
|
-
from ... import errors
|
|
7
|
-
from ...client import AuthenticatedClient, Client
|
|
8
|
-
from ...models.error_response import ErrorResponse
|
|
9
|
-
from ...models.file_update_request import FileUpdateRequest
|
|
10
|
-
from ...models.http_validation_error import HTTPValidationError
|
|
11
|
-
from ...models.update_file_v1_graphs_graph_id_tables_files_file_id_patch_response_update_file_v1_graphs_graph_id_tables_files_file_id_patch import (
|
|
12
|
-
UpdateFileV1GraphsGraphIdTablesFilesFileIdPatchResponseUpdateFileV1GraphsGraphIdTablesFilesFileIdPatch,
|
|
13
|
-
)
|
|
14
|
-
from ...types import UNSET, Response, Unset
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
def _get_kwargs(
|
|
18
|
-
graph_id: str,
|
|
19
|
-
file_id: str,
|
|
20
|
-
*,
|
|
21
|
-
body: FileUpdateRequest,
|
|
22
|
-
token: Union[None, Unset, str] = UNSET,
|
|
23
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
24
|
-
) -> dict[str, Any]:
|
|
25
|
-
headers: dict[str, Any] = {}
|
|
26
|
-
if not isinstance(authorization, Unset):
|
|
27
|
-
headers["authorization"] = authorization
|
|
28
|
-
|
|
29
|
-
params: dict[str, Any] = {}
|
|
30
|
-
|
|
31
|
-
json_token: Union[None, Unset, str]
|
|
32
|
-
if isinstance(token, Unset):
|
|
33
|
-
json_token = UNSET
|
|
34
|
-
else:
|
|
35
|
-
json_token = token
|
|
36
|
-
params["token"] = json_token
|
|
37
|
-
|
|
38
|
-
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
39
|
-
|
|
40
|
-
_kwargs: dict[str, Any] = {
|
|
41
|
-
"method": "patch",
|
|
42
|
-
"url": f"/v1/graphs/{graph_id}/tables/files/{file_id}",
|
|
43
|
-
"params": params,
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
_kwargs["json"] = body.to_dict()
|
|
47
|
-
|
|
48
|
-
headers["Content-Type"] = "application/json"
|
|
49
|
-
|
|
50
|
-
_kwargs["headers"] = headers
|
|
51
|
-
return _kwargs
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
def _parse_response(
|
|
55
|
-
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
56
|
-
) -> Optional[
|
|
57
|
-
Union[
|
|
58
|
-
Any,
|
|
59
|
-
ErrorResponse,
|
|
60
|
-
HTTPValidationError,
|
|
61
|
-
UpdateFileV1GraphsGraphIdTablesFilesFileIdPatchResponseUpdateFileV1GraphsGraphIdTablesFilesFileIdPatch,
|
|
62
|
-
]
|
|
63
|
-
]:
|
|
64
|
-
if response.status_code == 200:
|
|
65
|
-
response_200 = UpdateFileV1GraphsGraphIdTablesFilesFileIdPatchResponseUpdateFileV1GraphsGraphIdTablesFilesFileIdPatch.from_dict(
|
|
66
|
-
response.json()
|
|
67
|
-
)
|
|
68
|
-
|
|
69
|
-
return response_200
|
|
70
|
-
|
|
71
|
-
if response.status_code == 400:
|
|
72
|
-
response_400 = ErrorResponse.from_dict(response.json())
|
|
73
|
-
|
|
74
|
-
return response_400
|
|
75
|
-
|
|
76
|
-
if response.status_code == 401:
|
|
77
|
-
response_401 = cast(Any, None)
|
|
78
|
-
return response_401
|
|
79
|
-
|
|
80
|
-
if response.status_code == 403:
|
|
81
|
-
response_403 = ErrorResponse.from_dict(response.json())
|
|
82
|
-
|
|
83
|
-
return response_403
|
|
84
|
-
|
|
85
|
-
if response.status_code == 404:
|
|
86
|
-
response_404 = ErrorResponse.from_dict(response.json())
|
|
87
|
-
|
|
88
|
-
return response_404
|
|
89
|
-
|
|
90
|
-
if response.status_code == 422:
|
|
91
|
-
response_422 = HTTPValidationError.from_dict(response.json())
|
|
92
|
-
|
|
93
|
-
return response_422
|
|
94
|
-
|
|
95
|
-
if client.raise_on_unexpected_status:
|
|
96
|
-
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
97
|
-
else:
|
|
98
|
-
return None
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
def _build_response(
|
|
102
|
-
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
103
|
-
) -> Response[
|
|
104
|
-
Union[
|
|
105
|
-
Any,
|
|
106
|
-
ErrorResponse,
|
|
107
|
-
HTTPValidationError,
|
|
108
|
-
UpdateFileV1GraphsGraphIdTablesFilesFileIdPatchResponseUpdateFileV1GraphsGraphIdTablesFilesFileIdPatch,
|
|
109
|
-
]
|
|
110
|
-
]:
|
|
111
|
-
return Response(
|
|
112
|
-
status_code=HTTPStatus(response.status_code),
|
|
113
|
-
content=response.content,
|
|
114
|
-
headers=response.headers,
|
|
115
|
-
parsed=_parse_response(client=client, response=response),
|
|
116
|
-
)
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
def sync_detailed(
|
|
120
|
-
graph_id: str,
|
|
121
|
-
file_id: str,
|
|
122
|
-
*,
|
|
123
|
-
client: AuthenticatedClient,
|
|
124
|
-
body: FileUpdateRequest,
|
|
125
|
-
token: Union[None, Unset, str] = UNSET,
|
|
126
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
127
|
-
) -> Response[
|
|
128
|
-
Union[
|
|
129
|
-
Any,
|
|
130
|
-
ErrorResponse,
|
|
131
|
-
HTTPValidationError,
|
|
132
|
-
UpdateFileV1GraphsGraphIdTablesFilesFileIdPatchResponseUpdateFileV1GraphsGraphIdTablesFilesFileIdPatch,
|
|
133
|
-
]
|
|
134
|
-
]:
|
|
135
|
-
"""Update File
|
|
136
|
-
|
|
137
|
-
Update file metadata after upload (size, row count). Marks file as completed.
|
|
138
|
-
|
|
139
|
-
Args:
|
|
140
|
-
graph_id (str): Graph database identifier
|
|
141
|
-
file_id (str): File identifier
|
|
142
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
143
|
-
authorization (Union[None, Unset, str]):
|
|
144
|
-
body (FileUpdateRequest):
|
|
145
|
-
|
|
146
|
-
Raises:
|
|
147
|
-
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
148
|
-
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
149
|
-
|
|
150
|
-
Returns:
|
|
151
|
-
Response[Union[Any, ErrorResponse, HTTPValidationError, UpdateFileV1GraphsGraphIdTablesFilesFileIdPatchResponseUpdateFileV1GraphsGraphIdTablesFilesFileIdPatch]]
|
|
152
|
-
"""
|
|
153
|
-
|
|
154
|
-
kwargs = _get_kwargs(
|
|
155
|
-
graph_id=graph_id,
|
|
156
|
-
file_id=file_id,
|
|
157
|
-
body=body,
|
|
158
|
-
token=token,
|
|
159
|
-
authorization=authorization,
|
|
160
|
-
)
|
|
161
|
-
|
|
162
|
-
response = client.get_httpx_client().request(
|
|
163
|
-
**kwargs,
|
|
164
|
-
)
|
|
165
|
-
|
|
166
|
-
return _build_response(client=client, response=response)
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
def sync(
|
|
170
|
-
graph_id: str,
|
|
171
|
-
file_id: str,
|
|
172
|
-
*,
|
|
173
|
-
client: AuthenticatedClient,
|
|
174
|
-
body: FileUpdateRequest,
|
|
175
|
-
token: Union[None, Unset, str] = UNSET,
|
|
176
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
177
|
-
) -> Optional[
|
|
178
|
-
Union[
|
|
179
|
-
Any,
|
|
180
|
-
ErrorResponse,
|
|
181
|
-
HTTPValidationError,
|
|
182
|
-
UpdateFileV1GraphsGraphIdTablesFilesFileIdPatchResponseUpdateFileV1GraphsGraphIdTablesFilesFileIdPatch,
|
|
183
|
-
]
|
|
184
|
-
]:
|
|
185
|
-
"""Update File
|
|
186
|
-
|
|
187
|
-
Update file metadata after upload (size, row count). Marks file as completed.
|
|
188
|
-
|
|
189
|
-
Args:
|
|
190
|
-
graph_id (str): Graph database identifier
|
|
191
|
-
file_id (str): File identifier
|
|
192
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
193
|
-
authorization (Union[None, Unset, str]):
|
|
194
|
-
body (FileUpdateRequest):
|
|
195
|
-
|
|
196
|
-
Raises:
|
|
197
|
-
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
198
|
-
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
199
|
-
|
|
200
|
-
Returns:
|
|
201
|
-
Union[Any, ErrorResponse, HTTPValidationError, UpdateFileV1GraphsGraphIdTablesFilesFileIdPatchResponseUpdateFileV1GraphsGraphIdTablesFilesFileIdPatch]
|
|
202
|
-
"""
|
|
203
|
-
|
|
204
|
-
return sync_detailed(
|
|
205
|
-
graph_id=graph_id,
|
|
206
|
-
file_id=file_id,
|
|
207
|
-
client=client,
|
|
208
|
-
body=body,
|
|
209
|
-
token=token,
|
|
210
|
-
authorization=authorization,
|
|
211
|
-
).parsed
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
async def asyncio_detailed(
|
|
215
|
-
graph_id: str,
|
|
216
|
-
file_id: str,
|
|
217
|
-
*,
|
|
218
|
-
client: AuthenticatedClient,
|
|
219
|
-
body: FileUpdateRequest,
|
|
220
|
-
token: Union[None, Unset, str] = UNSET,
|
|
221
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
222
|
-
) -> Response[
|
|
223
|
-
Union[
|
|
224
|
-
Any,
|
|
225
|
-
ErrorResponse,
|
|
226
|
-
HTTPValidationError,
|
|
227
|
-
UpdateFileV1GraphsGraphIdTablesFilesFileIdPatchResponseUpdateFileV1GraphsGraphIdTablesFilesFileIdPatch,
|
|
228
|
-
]
|
|
229
|
-
]:
|
|
230
|
-
"""Update File
|
|
231
|
-
|
|
232
|
-
Update file metadata after upload (size, row count). Marks file as completed.
|
|
233
|
-
|
|
234
|
-
Args:
|
|
235
|
-
graph_id (str): Graph database identifier
|
|
236
|
-
file_id (str): File identifier
|
|
237
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
238
|
-
authorization (Union[None, Unset, str]):
|
|
239
|
-
body (FileUpdateRequest):
|
|
240
|
-
|
|
241
|
-
Raises:
|
|
242
|
-
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
243
|
-
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
244
|
-
|
|
245
|
-
Returns:
|
|
246
|
-
Response[Union[Any, ErrorResponse, HTTPValidationError, UpdateFileV1GraphsGraphIdTablesFilesFileIdPatchResponseUpdateFileV1GraphsGraphIdTablesFilesFileIdPatch]]
|
|
247
|
-
"""
|
|
248
|
-
|
|
249
|
-
kwargs = _get_kwargs(
|
|
250
|
-
graph_id=graph_id,
|
|
251
|
-
file_id=file_id,
|
|
252
|
-
body=body,
|
|
253
|
-
token=token,
|
|
254
|
-
authorization=authorization,
|
|
255
|
-
)
|
|
256
|
-
|
|
257
|
-
response = await client.get_async_httpx_client().request(**kwargs)
|
|
258
|
-
|
|
259
|
-
return _build_response(client=client, response=response)
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
async def asyncio(
|
|
263
|
-
graph_id: str,
|
|
264
|
-
file_id: str,
|
|
265
|
-
*,
|
|
266
|
-
client: AuthenticatedClient,
|
|
267
|
-
body: FileUpdateRequest,
|
|
268
|
-
token: Union[None, Unset, str] = UNSET,
|
|
269
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
270
|
-
) -> Optional[
|
|
271
|
-
Union[
|
|
272
|
-
Any,
|
|
273
|
-
ErrorResponse,
|
|
274
|
-
HTTPValidationError,
|
|
275
|
-
UpdateFileV1GraphsGraphIdTablesFilesFileIdPatchResponseUpdateFileV1GraphsGraphIdTablesFilesFileIdPatch,
|
|
276
|
-
]
|
|
277
|
-
]:
|
|
278
|
-
"""Update File
|
|
279
|
-
|
|
280
|
-
Update file metadata after upload (size, row count). Marks file as completed.
|
|
281
|
-
|
|
282
|
-
Args:
|
|
283
|
-
graph_id (str): Graph database identifier
|
|
284
|
-
file_id (str): File identifier
|
|
285
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
286
|
-
authorization (Union[None, Unset, str]):
|
|
287
|
-
body (FileUpdateRequest):
|
|
288
|
-
|
|
289
|
-
Raises:
|
|
290
|
-
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
291
|
-
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
292
|
-
|
|
293
|
-
Returns:
|
|
294
|
-
Union[Any, ErrorResponse, HTTPValidationError, UpdateFileV1GraphsGraphIdTablesFilesFileIdPatchResponseUpdateFileV1GraphsGraphIdTablesFilesFileIdPatch]
|
|
295
|
-
"""
|
|
296
|
-
|
|
297
|
-
return (
|
|
298
|
-
await asyncio_detailed(
|
|
299
|
-
graph_id=graph_id,
|
|
300
|
-
file_id=file_id,
|
|
301
|
-
client=client,
|
|
302
|
-
body=body,
|
|
303
|
-
token=token,
|
|
304
|
-
authorization=authorization,
|
|
305
|
-
)
|
|
306
|
-
).parsed
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
from collections.abc import Mapping
|
|
2
|
-
from typing import Any, TypeVar, Union, cast
|
|
3
|
-
|
|
4
|
-
from attrs import define as _attrs_define
|
|
5
|
-
|
|
6
|
-
from ..types import UNSET, Unset
|
|
7
|
-
|
|
8
|
-
T = TypeVar("T", bound="FileUpdateRequest")
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
@_attrs_define
|
|
12
|
-
class FileUpdateRequest:
|
|
13
|
-
"""
|
|
14
|
-
Attributes:
|
|
15
|
-
file_size_bytes (int): Actual uploaded file size in bytes
|
|
16
|
-
row_count (Union[None, Unset, int]): Number of rows in the file
|
|
17
|
-
"""
|
|
18
|
-
|
|
19
|
-
file_size_bytes: int
|
|
20
|
-
row_count: Union[None, Unset, int] = UNSET
|
|
21
|
-
|
|
22
|
-
def to_dict(self) -> dict[str, Any]:
|
|
23
|
-
file_size_bytes = self.file_size_bytes
|
|
24
|
-
|
|
25
|
-
row_count: Union[None, Unset, int]
|
|
26
|
-
if isinstance(self.row_count, Unset):
|
|
27
|
-
row_count = UNSET
|
|
28
|
-
else:
|
|
29
|
-
row_count = self.row_count
|
|
30
|
-
|
|
31
|
-
field_dict: dict[str, Any] = {}
|
|
32
|
-
|
|
33
|
-
field_dict.update(
|
|
34
|
-
{
|
|
35
|
-
"file_size_bytes": file_size_bytes,
|
|
36
|
-
}
|
|
37
|
-
)
|
|
38
|
-
if row_count is not UNSET:
|
|
39
|
-
field_dict["row_count"] = row_count
|
|
40
|
-
|
|
41
|
-
return field_dict
|
|
42
|
-
|
|
43
|
-
@classmethod
|
|
44
|
-
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
45
|
-
d = dict(src_dict)
|
|
46
|
-
file_size_bytes = d.pop("file_size_bytes")
|
|
47
|
-
|
|
48
|
-
def _parse_row_count(data: object) -> Union[None, Unset, int]:
|
|
49
|
-
if data is None:
|
|
50
|
-
return data
|
|
51
|
-
if isinstance(data, Unset):
|
|
52
|
-
return data
|
|
53
|
-
return cast(Union[None, Unset, int], data)
|
|
54
|
-
|
|
55
|
-
row_count = _parse_row_count(d.pop("row_count", UNSET))
|
|
56
|
-
|
|
57
|
-
file_update_request = cls(
|
|
58
|
-
file_size_bytes=file_size_bytes,
|
|
59
|
-
row_count=row_count,
|
|
60
|
-
)
|
|
61
|
-
|
|
62
|
-
return file_update_request
|
|
@@ -1,47 +0,0 @@
|
|
|
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(
|
|
8
|
-
"T",
|
|
9
|
-
bound="ListTableFilesV1GraphsGraphIdTablesTableNameFilesGetResponseListTableFilesV1GraphsGraphIdTablesTableNameFilesGet",
|
|
10
|
-
)
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
@_attrs_define
|
|
14
|
-
class ListTableFilesV1GraphsGraphIdTablesTableNameFilesGetResponseListTableFilesV1GraphsGraphIdTablesTableNameFilesGet:
|
|
15
|
-
""" """
|
|
16
|
-
|
|
17
|
-
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
18
|
-
|
|
19
|
-
def to_dict(self) -> dict[str, Any]:
|
|
20
|
-
field_dict: dict[str, Any] = {}
|
|
21
|
-
field_dict.update(self.additional_properties)
|
|
22
|
-
|
|
23
|
-
return field_dict
|
|
24
|
-
|
|
25
|
-
@classmethod
|
|
26
|
-
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
27
|
-
d = dict(src_dict)
|
|
28
|
-
list_table_files_v1_graphs_graph_id_tables_table_name_files_get_response_list_table_files_v1_graphs_graph_id_tables_table_name_files_get = cls()
|
|
29
|
-
|
|
30
|
-
list_table_files_v1_graphs_graph_id_tables_table_name_files_get_response_list_table_files_v1_graphs_graph_id_tables_table_name_files_get.additional_properties = d
|
|
31
|
-
return list_table_files_v1_graphs_graph_id_tables_table_name_files_get_response_list_table_files_v1_graphs_graph_id_tables_table_name_files_get
|
|
32
|
-
|
|
33
|
-
@property
|
|
34
|
-
def additional_keys(self) -> list[str]:
|
|
35
|
-
return list(self.additional_properties.keys())
|
|
36
|
-
|
|
37
|
-
def __getitem__(self, key: str) -> Any:
|
|
38
|
-
return self.additional_properties[key]
|
|
39
|
-
|
|
40
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
41
|
-
self.additional_properties[key] = value
|
|
42
|
-
|
|
43
|
-
def __delitem__(self, key: str) -> None:
|
|
44
|
-
del self.additional_properties[key]
|
|
45
|
-
|
|
46
|
-
def __contains__(self, key: str) -> bool:
|
|
47
|
-
return key in self.additional_properties
|
|
@@ -1,47 +0,0 @@
|
|
|
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(
|
|
8
|
-
"T",
|
|
9
|
-
bound="UpdateFileV1GraphsGraphIdTablesFilesFileIdPatchResponseUpdateFileV1GraphsGraphIdTablesFilesFileIdPatch",
|
|
10
|
-
)
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
@_attrs_define
|
|
14
|
-
class UpdateFileV1GraphsGraphIdTablesFilesFileIdPatchResponseUpdateFileV1GraphsGraphIdTablesFilesFileIdPatch:
|
|
15
|
-
""" """
|
|
16
|
-
|
|
17
|
-
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
18
|
-
|
|
19
|
-
def to_dict(self) -> dict[str, Any]:
|
|
20
|
-
field_dict: dict[str, Any] = {}
|
|
21
|
-
field_dict.update(self.additional_properties)
|
|
22
|
-
|
|
23
|
-
return field_dict
|
|
24
|
-
|
|
25
|
-
@classmethod
|
|
26
|
-
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
27
|
-
d = dict(src_dict)
|
|
28
|
-
update_file_v1_graphs_graph_id_tables_files_file_id_patch_response_update_file_v1_graphs_graph_id_tables_files_file_id_patch = cls()
|
|
29
|
-
|
|
30
|
-
update_file_v1_graphs_graph_id_tables_files_file_id_patch_response_update_file_v1_graphs_graph_id_tables_files_file_id_patch.additional_properties = d
|
|
31
|
-
return update_file_v1_graphs_graph_id_tables_files_file_id_patch_response_update_file_v1_graphs_graph_id_tables_files_file_id_patch
|
|
32
|
-
|
|
33
|
-
@property
|
|
34
|
-
def additional_keys(self) -> list[str]:
|
|
35
|
-
return list(self.additional_properties.keys())
|
|
36
|
-
|
|
37
|
-
def __getitem__(self, key: str) -> Any:
|
|
38
|
-
return self.additional_properties[key]
|
|
39
|
-
|
|
40
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
41
|
-
self.additional_properties[key] = value
|
|
42
|
-
|
|
43
|
-
def __delitem__(self, key: str) -> None:
|
|
44
|
-
del self.additional_properties[key]
|
|
45
|
-
|
|
46
|
-
def __contains__(self, key: str) -> bool:
|
|
47
|
-
return key in self.additional_properties
|
|
File without changes
|
|
File without changes
|