robosystems-client 0.1.19__py3-none-any.whl → 0.2.1__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/agent/auto_select_agent.py +9 -3
- robosystems_client/api/agent/batch_process_queries.py +8 -3
- robosystems_client/api/agent/execute_specific_agent.py +10 -3
- robosystems_client/api/agent/get_agent_metadata.py +3 -0
- robosystems_client/api/agent/list_agents.py +3 -0
- robosystems_client/api/agent/recommend_agent.py +3 -0
- robosystems_client/api/auth/check_password_strength.py +2 -0
- robosystems_client/api/auth/complete_sso_auth.py +3 -0
- robosystems_client/api/auth/forgot_password.py +6 -3
- robosystems_client/api/auth/generate_sso_token.py +3 -0
- robosystems_client/api/auth/get_captcha_config.py +1 -0
- robosystems_client/api/auth/get_current_auth_user.py +3 -0
- robosystems_client/api/auth/get_password_policy.py +1 -0
- robosystems_client/api/auth/login_user.py +7 -3
- robosystems_client/api/auth/logout_user.py +2 -0
- robosystems_client/api/auth/refresh_auth_session.py +3 -0
- robosystems_client/api/auth/register_user.py +11 -6
- robosystems_client/api/auth/resend_verification_email.py +8 -3
- robosystems_client/api/auth/reset_password.py +3 -0
- robosystems_client/api/auth/sso_token_exchange.py +7 -3
- robosystems_client/api/auth/validate_reset_token.py +2 -0
- robosystems_client/api/auth/verify_email.py +3 -0
- robosystems_client/api/backup/create_backup.py +13 -7
- robosystems_client/api/backup/get_backup_download_url.py +8 -3
- robosystems_client/api/backup/get_backup_stats.py +2 -0
- robosystems_client/api/backup/list_backups.py +6 -4
- robosystems_client/api/backup/restore_backup.py +27 -8
- robosystems_client/api/connections/create_connection.py +13 -7
- robosystems_client/api/connections/create_link_token.py +8 -3
- robosystems_client/api/connections/delete_connection.py +12 -7
- robosystems_client/api/connections/exchange_link_token.py +8 -3
- robosystems_client/api/connections/get_connection.py +8 -3
- robosystems_client/api/connections/get_connection_options.py +7 -3
- robosystems_client/api/connections/init_o_auth.py +2 -0
- robosystems_client/api/connections/list_connections.py +7 -3
- robosystems_client/api/connections/oauth_callback.py +9 -3
- robosystems_client/api/connections/sync_connection.py +12 -7
- robosystems_client/api/graph_analytics/get_graph_metrics.py +12 -7
- robosystems_client/api/graph_analytics/get_graph_usage_stats.py +11 -7
- robosystems_client/api/graph_billing/get_current_graph_bill.py +8 -3
- robosystems_client/api/graph_billing/get_graph_billing_history.py +8 -3
- robosystems_client/api/graph_billing/get_graph_monthly_bill.py +9 -3
- robosystems_client/api/graph_billing/get_graph_usage_details.py +9 -3
- robosystems_client/api/graph_credits/check_credit_balance.py +8 -3
- robosystems_client/api/graph_credits/check_storage_limits.py +8 -3
- robosystems_client/api/graph_credits/get_credit_summary.py +8 -3
- robosystems_client/api/graph_credits/get_storage_usage.py +7 -3
- robosystems_client/api/graph_credits/list_credit_transactions.py +8 -3
- robosystems_client/api/graph_health/get_database_health.py +8 -3
- robosystems_client/api/graph_info/get_database_info.py +8 -3
- robosystems_client/api/graph_limits/get_graph_limits.py +8 -3
- robosystems_client/api/graphs/create_graph.py +6 -4
- robosystems_client/api/graphs/get_available_extensions.py +1 -0
- robosystems_client/api/graphs/get_graphs.py +2 -0
- robosystems_client/api/graphs/select_graph.py +8 -3
- robosystems_client/api/mcp/call_mcp_tool.py +17 -7
- robosystems_client/api/mcp/list_mcp_tools.py +11 -7
- robosystems_client/api/operations/cancel_operation.py +9 -3
- robosystems_client/api/operations/get_operation_status.py +8 -3
- robosystems_client/api/operations/stream_operation_events.py +8 -3
- robosystems_client/api/query/execute_cypher_query.py +48 -15
- robosystems_client/api/schema/export_graph_schema.py +2 -0
- robosystems_client/api/schema/{get_graph_schema_info.py → get_graph_schema.py} +37 -47
- robosystems_client/api/schema/validate_schema.py +9 -4
- robosystems_client/api/service_offerings/get_service_offerings.py +2 -0
- robosystems_client/api/status/get_service_status.py +1 -0
- robosystems_client/api/subgraphs/create_subgraph.py +2 -0
- robosystems_client/api/subgraphs/delete_subgraph.py +14 -6
- robosystems_client/api/subgraphs/get_subgraph_info.py +13 -6
- robosystems_client/api/subgraphs/get_subgraph_quota.py +9 -3
- robosystems_client/api/subgraphs/list_subgraphs.py +2 -0
- robosystems_client/api/tables/delete_file_v1_graphs_graph_id_tables_files_file_id_delete.py +287 -0
- robosystems_client/api/tables/get_file_info_v1_graphs_graph_id_tables_files_file_id_get.py +283 -0
- robosystems_client/api/tables/get_upload_url_v1_graphs_graph_id_tables_table_name_files_post.py +260 -0
- robosystems_client/api/tables/ingest_tables_v1_graphs_graph_id_tables_ingest_post.py +251 -0
- robosystems_client/api/tables/list_table_files_v1_graphs_graph_id_tables_table_name_files_get.py +283 -0
- robosystems_client/api/{backup/export_backup.py → tables/list_tables_v1_graphs_graph_id_tables_get.py} +36 -36
- robosystems_client/api/{schema/list_schema_extensions.py → tables/query_tables_v1_graphs_graph_id_tables_query_post.py} +67 -43
- robosystems_client/api/tables/update_file_v1_graphs_graph_id_tables_files_file_id_patch.py +306 -0
- robosystems_client/api/user/create_user_api_key.py +2 -0
- robosystems_client/api/user/get_all_credit_summaries.py +6 -3
- robosystems_client/api/user/get_current_user.py +2 -0
- robosystems_client/api/user/list_user_api_keys.py +2 -0
- robosystems_client/api/user/revoke_user_api_key.py +7 -3
- robosystems_client/api/user/update_user.py +2 -0
- robosystems_client/api/user/update_user_api_key.py +2 -0
- robosystems_client/api/user/update_user_password.py +8 -3
- robosystems_client/api/user_analytics/get_detailed_user_analytics.py +2 -0
- robosystems_client/api/user_analytics/get_user_usage_overview.py +2 -0
- robosystems_client/api/user_limits/get_all_shared_repository_limits.py +2 -0
- robosystems_client/api/user_limits/get_shared_repository_limits.py +6 -4
- robosystems_client/api/user_limits/get_user_limits.py +3 -0
- robosystems_client/api/user_limits/get_user_usage.py +2 -0
- robosystems_client/api/user_subscriptions/cancel_shared_repository_subscription.py +11 -6
- robosystems_client/api/user_subscriptions/get_repository_credits.py +7 -3
- robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +7 -3
- robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +7 -3
- robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +8 -3
- robosystems_client/api/user_subscriptions/upgrade_shared_repository_subscription.py +12 -6
- robosystems_client/extensions/README.md +1 -212
- robosystems_client/extensions/__init__.py +12 -28
- robosystems_client/extensions/extensions.py +3 -17
- robosystems_client/extensions/operation_client.py +12 -4
- robosystems_client/extensions/query_client.py +38 -24
- robosystems_client/extensions/sse_client.py +11 -0
- robosystems_client/extensions/table_ingest_client.py +466 -0
- robosystems_client/models/__init__.py +39 -29
- robosystems_client/models/backup_restore_request.py +1 -12
- robosystems_client/models/bulk_ingest_request.py +50 -0
- robosystems_client/models/bulk_ingest_response.py +137 -0
- robosystems_client/models/create_graph_request.py +4 -3
- 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 +47 -0
- robosystems_client/models/file_update_request.py +62 -0
- robosystems_client/models/file_upload_request.py +51 -0
- robosystems_client/models/file_upload_response.py +83 -0
- robosystems_client/models/{get_graph_schema_info_response_getgraphschemainfo.py → 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} +8 -5
- robosystems_client/models/{copy_response_error_details_type_0.py → get_graph_schema_response_getgraphschema.py} +5 -5
- 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 +47 -0
- robosystems_client/models/table_info.py +107 -0
- robosystems_client/models/table_ingest_result.py +107 -0
- robosystems_client/models/table_list_response.py +81 -0
- robosystems_client/models/table_query_request.py +40 -0
- robosystems_client/models/table_query_response.py +92 -0
- robosystems_client/models/{list_schema_extensions_response_listschemaextensions.py → update_file_v1_graphs_graph_id_tables_files_file_id_patch_response_update_file_v1_graphs_graph_id_tables_files_file_id_patch.py} +8 -5
- {robosystems_client-0.1.19.dist-info → robosystems_client-0.2.1.dist-info}/METADATA +25 -12
- {robosystems_client-0.1.19.dist-info → robosystems_client-0.2.1.dist-info}/RECORD +129 -122
- robosystems_client/api/copy/copy_data_to_graph.py +0 -486
- robosystems_client/extensions/copy_client.py +0 -479
- robosystems_client/models/copy_response.py +0 -275
- robosystems_client/models/copy_response_status.py +0 -11
- robosystems_client/models/data_frame_copy_request.py +0 -125
- robosystems_client/models/data_frame_copy_request_format.py +0 -10
- robosystems_client/models/s3_copy_request.py +0 -378
- robosystems_client/models/s3_copy_request_file_format.py +0 -12
- robosystems_client/models/s3_copy_request_s3_url_style_type_0.py +0 -9
- robosystems_client/models/url_copy_request.py +0 -157
- robosystems_client/models/url_copy_request_file_format.py +0 -10
- robosystems_client/models/url_copy_request_headers_type_0.py +0 -44
- /robosystems_client/api/{copy → tables}/__init__.py +0 -0
- {robosystems_client-0.1.19.dist-info → robosystems_client-0.2.1.dist-info}/WHEEL +0 -0
- {robosystems_client-0.1.19.dist-info → robosystems_client-0.2.1.dist-info}/licenses/LICENSE +0 -0
robosystems_client/api/tables/list_table_files_v1_graphs_graph_id_tables_table_name_files_get.py
ADDED
|
@@ -0,0 +1,283 @@
|
|
|
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.http_validation_error import HTTPValidationError
|
|
10
|
+
from ...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 import (
|
|
11
|
+
ListTableFilesV1GraphsGraphIdTablesTableNameFilesGetResponseListTableFilesV1GraphsGraphIdTablesTableNameFilesGet,
|
|
12
|
+
)
|
|
13
|
+
from ...types import UNSET, Response, Unset
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def _get_kwargs(
|
|
17
|
+
graph_id: str,
|
|
18
|
+
table_name: str,
|
|
19
|
+
*,
|
|
20
|
+
token: Union[None, Unset, str] = UNSET,
|
|
21
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
22
|
+
) -> dict[str, Any]:
|
|
23
|
+
headers: dict[str, Any] = {}
|
|
24
|
+
if not isinstance(authorization, Unset):
|
|
25
|
+
headers["authorization"] = authorization
|
|
26
|
+
|
|
27
|
+
params: dict[str, Any] = {}
|
|
28
|
+
|
|
29
|
+
json_token: Union[None, Unset, str]
|
|
30
|
+
if isinstance(token, Unset):
|
|
31
|
+
json_token = UNSET
|
|
32
|
+
else:
|
|
33
|
+
json_token = token
|
|
34
|
+
params["token"] = json_token
|
|
35
|
+
|
|
36
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
37
|
+
|
|
38
|
+
_kwargs: dict[str, Any] = {
|
|
39
|
+
"method": "get",
|
|
40
|
+
"url": f"/v1/graphs/{graph_id}/tables/{table_name}/files",
|
|
41
|
+
"params": params,
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
_kwargs["headers"] = headers
|
|
45
|
+
return _kwargs
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def _parse_response(
|
|
49
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
50
|
+
) -> Optional[
|
|
51
|
+
Union[
|
|
52
|
+
Any,
|
|
53
|
+
ErrorResponse,
|
|
54
|
+
HTTPValidationError,
|
|
55
|
+
ListTableFilesV1GraphsGraphIdTablesTableNameFilesGetResponseListTableFilesV1GraphsGraphIdTablesTableNameFilesGet,
|
|
56
|
+
]
|
|
57
|
+
]:
|
|
58
|
+
if response.status_code == 200:
|
|
59
|
+
response_200 = ListTableFilesV1GraphsGraphIdTablesTableNameFilesGetResponseListTableFilesV1GraphsGraphIdTablesTableNameFilesGet.from_dict(
|
|
60
|
+
response.json()
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
return response_200
|
|
64
|
+
|
|
65
|
+
if response.status_code == 401:
|
|
66
|
+
response_401 = cast(Any, None)
|
|
67
|
+
return response_401
|
|
68
|
+
|
|
69
|
+
if response.status_code == 403:
|
|
70
|
+
response_403 = ErrorResponse.from_dict(response.json())
|
|
71
|
+
|
|
72
|
+
return response_403
|
|
73
|
+
|
|
74
|
+
if response.status_code == 404:
|
|
75
|
+
response_404 = ErrorResponse.from_dict(response.json())
|
|
76
|
+
|
|
77
|
+
return response_404
|
|
78
|
+
|
|
79
|
+
if response.status_code == 422:
|
|
80
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
81
|
+
|
|
82
|
+
return response_422
|
|
83
|
+
|
|
84
|
+
if client.raise_on_unexpected_status:
|
|
85
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
86
|
+
else:
|
|
87
|
+
return None
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def _build_response(
|
|
91
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
92
|
+
) -> Response[
|
|
93
|
+
Union[
|
|
94
|
+
Any,
|
|
95
|
+
ErrorResponse,
|
|
96
|
+
HTTPValidationError,
|
|
97
|
+
ListTableFilesV1GraphsGraphIdTablesTableNameFilesGetResponseListTableFilesV1GraphsGraphIdTablesTableNameFilesGet,
|
|
98
|
+
]
|
|
99
|
+
]:
|
|
100
|
+
return Response(
|
|
101
|
+
status_code=HTTPStatus(response.status_code),
|
|
102
|
+
content=response.content,
|
|
103
|
+
headers=response.headers,
|
|
104
|
+
parsed=_parse_response(client=client, response=response),
|
|
105
|
+
)
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
def sync_detailed(
|
|
109
|
+
graph_id: str,
|
|
110
|
+
table_name: str,
|
|
111
|
+
*,
|
|
112
|
+
client: AuthenticatedClient,
|
|
113
|
+
token: Union[None, Unset, str] = UNSET,
|
|
114
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
115
|
+
) -> Response[
|
|
116
|
+
Union[
|
|
117
|
+
Any,
|
|
118
|
+
ErrorResponse,
|
|
119
|
+
HTTPValidationError,
|
|
120
|
+
ListTableFilesV1GraphsGraphIdTablesTableNameFilesGetResponseListTableFilesV1GraphsGraphIdTablesTableNameFilesGet,
|
|
121
|
+
]
|
|
122
|
+
]:
|
|
123
|
+
"""List Files in Table
|
|
124
|
+
|
|
125
|
+
List all files uploaded to a staging table
|
|
126
|
+
|
|
127
|
+
Args:
|
|
128
|
+
graph_id (str): Graph database identifier
|
|
129
|
+
table_name (str): Table name
|
|
130
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
131
|
+
authorization (Union[None, Unset, str]):
|
|
132
|
+
|
|
133
|
+
Raises:
|
|
134
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
135
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
136
|
+
|
|
137
|
+
Returns:
|
|
138
|
+
Response[Union[Any, ErrorResponse, HTTPValidationError, ListTableFilesV1GraphsGraphIdTablesTableNameFilesGetResponseListTableFilesV1GraphsGraphIdTablesTableNameFilesGet]]
|
|
139
|
+
"""
|
|
140
|
+
|
|
141
|
+
kwargs = _get_kwargs(
|
|
142
|
+
graph_id=graph_id,
|
|
143
|
+
table_name=table_name,
|
|
144
|
+
token=token,
|
|
145
|
+
authorization=authorization,
|
|
146
|
+
)
|
|
147
|
+
|
|
148
|
+
response = client.get_httpx_client().request(
|
|
149
|
+
**kwargs,
|
|
150
|
+
)
|
|
151
|
+
|
|
152
|
+
return _build_response(client=client, response=response)
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
def sync(
|
|
156
|
+
graph_id: str,
|
|
157
|
+
table_name: str,
|
|
158
|
+
*,
|
|
159
|
+
client: AuthenticatedClient,
|
|
160
|
+
token: Union[None, Unset, str] = UNSET,
|
|
161
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
162
|
+
) -> Optional[
|
|
163
|
+
Union[
|
|
164
|
+
Any,
|
|
165
|
+
ErrorResponse,
|
|
166
|
+
HTTPValidationError,
|
|
167
|
+
ListTableFilesV1GraphsGraphIdTablesTableNameFilesGetResponseListTableFilesV1GraphsGraphIdTablesTableNameFilesGet,
|
|
168
|
+
]
|
|
169
|
+
]:
|
|
170
|
+
"""List Files in Table
|
|
171
|
+
|
|
172
|
+
List all files uploaded to a staging table
|
|
173
|
+
|
|
174
|
+
Args:
|
|
175
|
+
graph_id (str): Graph database identifier
|
|
176
|
+
table_name (str): Table name
|
|
177
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
178
|
+
authorization (Union[None, Unset, str]):
|
|
179
|
+
|
|
180
|
+
Raises:
|
|
181
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
182
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
183
|
+
|
|
184
|
+
Returns:
|
|
185
|
+
Union[Any, ErrorResponse, HTTPValidationError, ListTableFilesV1GraphsGraphIdTablesTableNameFilesGetResponseListTableFilesV1GraphsGraphIdTablesTableNameFilesGet]
|
|
186
|
+
"""
|
|
187
|
+
|
|
188
|
+
return sync_detailed(
|
|
189
|
+
graph_id=graph_id,
|
|
190
|
+
table_name=table_name,
|
|
191
|
+
client=client,
|
|
192
|
+
token=token,
|
|
193
|
+
authorization=authorization,
|
|
194
|
+
).parsed
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
async def asyncio_detailed(
|
|
198
|
+
graph_id: str,
|
|
199
|
+
table_name: str,
|
|
200
|
+
*,
|
|
201
|
+
client: AuthenticatedClient,
|
|
202
|
+
token: Union[None, Unset, str] = UNSET,
|
|
203
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
204
|
+
) -> Response[
|
|
205
|
+
Union[
|
|
206
|
+
Any,
|
|
207
|
+
ErrorResponse,
|
|
208
|
+
HTTPValidationError,
|
|
209
|
+
ListTableFilesV1GraphsGraphIdTablesTableNameFilesGetResponseListTableFilesV1GraphsGraphIdTablesTableNameFilesGet,
|
|
210
|
+
]
|
|
211
|
+
]:
|
|
212
|
+
"""List Files in Table
|
|
213
|
+
|
|
214
|
+
List all files uploaded to a staging table
|
|
215
|
+
|
|
216
|
+
Args:
|
|
217
|
+
graph_id (str): Graph database identifier
|
|
218
|
+
table_name (str): Table name
|
|
219
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
220
|
+
authorization (Union[None, Unset, str]):
|
|
221
|
+
|
|
222
|
+
Raises:
|
|
223
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
224
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
225
|
+
|
|
226
|
+
Returns:
|
|
227
|
+
Response[Union[Any, ErrorResponse, HTTPValidationError, ListTableFilesV1GraphsGraphIdTablesTableNameFilesGetResponseListTableFilesV1GraphsGraphIdTablesTableNameFilesGet]]
|
|
228
|
+
"""
|
|
229
|
+
|
|
230
|
+
kwargs = _get_kwargs(
|
|
231
|
+
graph_id=graph_id,
|
|
232
|
+
table_name=table_name,
|
|
233
|
+
token=token,
|
|
234
|
+
authorization=authorization,
|
|
235
|
+
)
|
|
236
|
+
|
|
237
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
238
|
+
|
|
239
|
+
return _build_response(client=client, response=response)
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
async def asyncio(
|
|
243
|
+
graph_id: str,
|
|
244
|
+
table_name: str,
|
|
245
|
+
*,
|
|
246
|
+
client: AuthenticatedClient,
|
|
247
|
+
token: Union[None, Unset, str] = UNSET,
|
|
248
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
249
|
+
) -> Optional[
|
|
250
|
+
Union[
|
|
251
|
+
Any,
|
|
252
|
+
ErrorResponse,
|
|
253
|
+
HTTPValidationError,
|
|
254
|
+
ListTableFilesV1GraphsGraphIdTablesTableNameFilesGetResponseListTableFilesV1GraphsGraphIdTablesTableNameFilesGet,
|
|
255
|
+
]
|
|
256
|
+
]:
|
|
257
|
+
"""List Files in Table
|
|
258
|
+
|
|
259
|
+
List all files uploaded to a staging table
|
|
260
|
+
|
|
261
|
+
Args:
|
|
262
|
+
graph_id (str): Graph database identifier
|
|
263
|
+
table_name (str): Table name
|
|
264
|
+
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
265
|
+
authorization (Union[None, Unset, str]):
|
|
266
|
+
|
|
267
|
+
Raises:
|
|
268
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
269
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
270
|
+
|
|
271
|
+
Returns:
|
|
272
|
+
Union[Any, ErrorResponse, HTTPValidationError, ListTableFilesV1GraphsGraphIdTablesTableNameFilesGetResponseListTableFilesV1GraphsGraphIdTablesTableNameFilesGet]
|
|
273
|
+
"""
|
|
274
|
+
|
|
275
|
+
return (
|
|
276
|
+
await asyncio_detailed(
|
|
277
|
+
graph_id=graph_id,
|
|
278
|
+
table_name=table_name,
|
|
279
|
+
client=client,
|
|
280
|
+
token=token,
|
|
281
|
+
authorization=authorization,
|
|
282
|
+
)
|
|
283
|
+
).parsed
|
|
@@ -5,13 +5,14 @@ import httpx
|
|
|
5
5
|
|
|
6
6
|
from ... import errors
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.error_response import ErrorResponse
|
|
8
9
|
from ...models.http_validation_error import HTTPValidationError
|
|
10
|
+
from ...models.table_list_response import TableListResponse
|
|
9
11
|
from ...types import UNSET, Response, Unset
|
|
10
12
|
|
|
11
13
|
|
|
12
14
|
def _get_kwargs(
|
|
13
15
|
graph_id: str,
|
|
14
|
-
backup_id: str,
|
|
15
16
|
*,
|
|
16
17
|
token: Union[None, Unset, str] = UNSET,
|
|
17
18
|
authorization: Union[None, Unset, str] = UNSET,
|
|
@@ -32,8 +33,8 @@ def _get_kwargs(
|
|
|
32
33
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
33
34
|
|
|
34
35
|
_kwargs: dict[str, Any] = {
|
|
35
|
-
"method": "
|
|
36
|
-
"url": f"/v1/graphs/{graph_id}/
|
|
36
|
+
"method": "get",
|
|
37
|
+
"url": f"/v1/graphs/{graph_id}/tables",
|
|
37
38
|
"params": params,
|
|
38
39
|
}
|
|
39
40
|
|
|
@@ -43,20 +44,31 @@ def _get_kwargs(
|
|
|
43
44
|
|
|
44
45
|
def _parse_response(
|
|
45
46
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
46
|
-
) -> Optional[Union[Any, HTTPValidationError]]:
|
|
47
|
+
) -> Optional[Union[Any, ErrorResponse, HTTPValidationError, TableListResponse]]:
|
|
47
48
|
if response.status_code == 200:
|
|
48
|
-
response_200 = response.json()
|
|
49
|
+
response_200 = TableListResponse.from_dict(response.json())
|
|
50
|
+
|
|
49
51
|
return response_200
|
|
52
|
+
|
|
53
|
+
if response.status_code == 401:
|
|
54
|
+
response_401 = cast(Any, None)
|
|
55
|
+
return response_401
|
|
56
|
+
|
|
50
57
|
if response.status_code == 403:
|
|
51
|
-
response_403 =
|
|
58
|
+
response_403 = ErrorResponse.from_dict(response.json())
|
|
59
|
+
|
|
52
60
|
return response_403
|
|
61
|
+
|
|
53
62
|
if response.status_code == 404:
|
|
54
|
-
response_404 =
|
|
63
|
+
response_404 = ErrorResponse.from_dict(response.json())
|
|
64
|
+
|
|
55
65
|
return response_404
|
|
66
|
+
|
|
56
67
|
if response.status_code == 422:
|
|
57
68
|
response_422 = HTTPValidationError.from_dict(response.json())
|
|
58
69
|
|
|
59
70
|
return response_422
|
|
71
|
+
|
|
60
72
|
if client.raise_on_unexpected_status:
|
|
61
73
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
62
74
|
else:
|
|
@@ -65,7 +77,7 @@ def _parse_response(
|
|
|
65
77
|
|
|
66
78
|
def _build_response(
|
|
67
79
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
68
|
-
) -> Response[Union[Any, HTTPValidationError]]:
|
|
80
|
+
) -> Response[Union[Any, ErrorResponse, HTTPValidationError, TableListResponse]]:
|
|
69
81
|
return Response(
|
|
70
82
|
status_code=HTTPStatus(response.status_code),
|
|
71
83
|
content=response.content,
|
|
@@ -76,19 +88,17 @@ def _build_response(
|
|
|
76
88
|
|
|
77
89
|
def sync_detailed(
|
|
78
90
|
graph_id: str,
|
|
79
|
-
backup_id: str,
|
|
80
91
|
*,
|
|
81
92
|
client: AuthenticatedClient,
|
|
82
93
|
token: Union[None, Unset, str] = UNSET,
|
|
83
94
|
authorization: Union[None, Unset, str] = UNSET,
|
|
84
|
-
) -> Response[Union[Any, HTTPValidationError]]:
|
|
85
|
-
"""
|
|
95
|
+
) -> Response[Union[Any, ErrorResponse, HTTPValidationError, TableListResponse]]:
|
|
96
|
+
"""List Staging Tables
|
|
86
97
|
|
|
87
|
-
|
|
98
|
+
List all DuckDB staging tables for a graph
|
|
88
99
|
|
|
89
100
|
Args:
|
|
90
101
|
graph_id (str): Graph database identifier
|
|
91
|
-
backup_id (str): Backup identifier
|
|
92
102
|
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
93
103
|
authorization (Union[None, Unset, str]):
|
|
94
104
|
|
|
@@ -97,12 +107,11 @@ def sync_detailed(
|
|
|
97
107
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
98
108
|
|
|
99
109
|
Returns:
|
|
100
|
-
Response[Union[Any, HTTPValidationError]]
|
|
110
|
+
Response[Union[Any, ErrorResponse, HTTPValidationError, TableListResponse]]
|
|
101
111
|
"""
|
|
102
112
|
|
|
103
113
|
kwargs = _get_kwargs(
|
|
104
114
|
graph_id=graph_id,
|
|
105
|
-
backup_id=backup_id,
|
|
106
115
|
token=token,
|
|
107
116
|
authorization=authorization,
|
|
108
117
|
)
|
|
@@ -116,19 +125,17 @@ def sync_detailed(
|
|
|
116
125
|
|
|
117
126
|
def sync(
|
|
118
127
|
graph_id: str,
|
|
119
|
-
backup_id: str,
|
|
120
128
|
*,
|
|
121
129
|
client: AuthenticatedClient,
|
|
122
130
|
token: Union[None, Unset, str] = UNSET,
|
|
123
131
|
authorization: Union[None, Unset, str] = UNSET,
|
|
124
|
-
) -> Optional[Union[Any, HTTPValidationError]]:
|
|
125
|
-
"""
|
|
132
|
+
) -> Optional[Union[Any, ErrorResponse, HTTPValidationError, TableListResponse]]:
|
|
133
|
+
"""List Staging Tables
|
|
126
134
|
|
|
127
|
-
|
|
135
|
+
List all DuckDB staging tables for a graph
|
|
128
136
|
|
|
129
137
|
Args:
|
|
130
138
|
graph_id (str): Graph database identifier
|
|
131
|
-
backup_id (str): Backup identifier
|
|
132
139
|
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
133
140
|
authorization (Union[None, Unset, str]):
|
|
134
141
|
|
|
@@ -137,12 +144,11 @@ def sync(
|
|
|
137
144
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
138
145
|
|
|
139
146
|
Returns:
|
|
140
|
-
Union[Any, HTTPValidationError]
|
|
147
|
+
Union[Any, ErrorResponse, HTTPValidationError, TableListResponse]
|
|
141
148
|
"""
|
|
142
149
|
|
|
143
150
|
return sync_detailed(
|
|
144
151
|
graph_id=graph_id,
|
|
145
|
-
backup_id=backup_id,
|
|
146
152
|
client=client,
|
|
147
153
|
token=token,
|
|
148
154
|
authorization=authorization,
|
|
@@ -151,19 +157,17 @@ def sync(
|
|
|
151
157
|
|
|
152
158
|
async def asyncio_detailed(
|
|
153
159
|
graph_id: str,
|
|
154
|
-
backup_id: str,
|
|
155
160
|
*,
|
|
156
161
|
client: AuthenticatedClient,
|
|
157
162
|
token: Union[None, Unset, str] = UNSET,
|
|
158
163
|
authorization: Union[None, Unset, str] = UNSET,
|
|
159
|
-
) -> Response[Union[Any, HTTPValidationError]]:
|
|
160
|
-
"""
|
|
164
|
+
) -> Response[Union[Any, ErrorResponse, HTTPValidationError, TableListResponse]]:
|
|
165
|
+
"""List Staging Tables
|
|
161
166
|
|
|
162
|
-
|
|
167
|
+
List all DuckDB staging tables for a graph
|
|
163
168
|
|
|
164
169
|
Args:
|
|
165
170
|
graph_id (str): Graph database identifier
|
|
166
|
-
backup_id (str): Backup identifier
|
|
167
171
|
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
168
172
|
authorization (Union[None, Unset, str]):
|
|
169
173
|
|
|
@@ -172,12 +176,11 @@ async def asyncio_detailed(
|
|
|
172
176
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
173
177
|
|
|
174
178
|
Returns:
|
|
175
|
-
Response[Union[Any, HTTPValidationError]]
|
|
179
|
+
Response[Union[Any, ErrorResponse, HTTPValidationError, TableListResponse]]
|
|
176
180
|
"""
|
|
177
181
|
|
|
178
182
|
kwargs = _get_kwargs(
|
|
179
183
|
graph_id=graph_id,
|
|
180
|
-
backup_id=backup_id,
|
|
181
184
|
token=token,
|
|
182
185
|
authorization=authorization,
|
|
183
186
|
)
|
|
@@ -189,19 +192,17 @@ async def asyncio_detailed(
|
|
|
189
192
|
|
|
190
193
|
async def asyncio(
|
|
191
194
|
graph_id: str,
|
|
192
|
-
backup_id: str,
|
|
193
195
|
*,
|
|
194
196
|
client: AuthenticatedClient,
|
|
195
197
|
token: Union[None, Unset, str] = UNSET,
|
|
196
198
|
authorization: Union[None, Unset, str] = UNSET,
|
|
197
|
-
) -> Optional[Union[Any, HTTPValidationError]]:
|
|
198
|
-
"""
|
|
199
|
+
) -> Optional[Union[Any, ErrorResponse, HTTPValidationError, TableListResponse]]:
|
|
200
|
+
"""List Staging Tables
|
|
199
201
|
|
|
200
|
-
|
|
202
|
+
List all DuckDB staging tables for a graph
|
|
201
203
|
|
|
202
204
|
Args:
|
|
203
205
|
graph_id (str): Graph database identifier
|
|
204
|
-
backup_id (str): Backup identifier
|
|
205
206
|
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
206
207
|
authorization (Union[None, Unset, str]):
|
|
207
208
|
|
|
@@ -210,13 +211,12 @@ async def asyncio(
|
|
|
210
211
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
211
212
|
|
|
212
213
|
Returns:
|
|
213
|
-
Union[Any, HTTPValidationError]
|
|
214
|
+
Union[Any, ErrorResponse, HTTPValidationError, TableListResponse]
|
|
214
215
|
"""
|
|
215
216
|
|
|
216
217
|
return (
|
|
217
218
|
await asyncio_detailed(
|
|
218
219
|
graph_id=graph_id,
|
|
219
|
-
backup_id=backup_id,
|
|
220
220
|
client=client,
|
|
221
221
|
token=token,
|
|
222
222
|
authorization=authorization,
|