robosystems-client 0.1.19__py3-none-any.whl → 0.2.0__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.0.dist-info}/METADATA +15 -3
- {robosystems_client-0.1.19.dist-info → robosystems_client-0.2.0.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.0.dist-info}/WHEEL +0 -0
- {robosystems_client-0.1.19.dist-info → robosystems_client-0.2.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,275 +0,0 @@
|
|
|
1
|
-
from collections.abc import Mapping
|
|
2
|
-
from typing import TYPE_CHECKING, Any, TypeVar, Union, cast
|
|
3
|
-
|
|
4
|
-
from attrs import define as _attrs_define
|
|
5
|
-
from attrs import field as _attrs_field
|
|
6
|
-
|
|
7
|
-
from ..models.copy_response_status import CopyResponseStatus
|
|
8
|
-
from ..types import UNSET, Unset
|
|
9
|
-
|
|
10
|
-
if TYPE_CHECKING:
|
|
11
|
-
from ..models.copy_response_error_details_type_0 import CopyResponseErrorDetailsType0
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
T = TypeVar("T", bound="CopyResponse")
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
@_attrs_define
|
|
18
|
-
class CopyResponse:
|
|
19
|
-
"""Response model for copy operations.
|
|
20
|
-
|
|
21
|
-
Attributes:
|
|
22
|
-
status (CopyResponseStatus): Operation status
|
|
23
|
-
source_type (str): Type of source that was copied from
|
|
24
|
-
message (str): Human-readable status message
|
|
25
|
-
operation_id (Union[None, Unset, str]): Operation ID for SSE monitoring (for long-running operations)
|
|
26
|
-
sse_url (Union[None, Unset, str]): SSE endpoint URL for monitoring operation progress
|
|
27
|
-
execution_time_ms (Union[None, Unset, float]): Total execution time in milliseconds (for synchronous operations)
|
|
28
|
-
rows_imported (Union[None, Unset, int]): Number of rows successfully imported
|
|
29
|
-
rows_skipped (Union[None, Unset, int]): Number of rows skipped due to errors (when ignore_errors=true)
|
|
30
|
-
warnings (Union[None, Unset, list[str]]): List of warnings encountered during import
|
|
31
|
-
error_details (Union['CopyResponseErrorDetailsType0', None, Unset]): Detailed error information if operation
|
|
32
|
-
failed
|
|
33
|
-
bytes_processed (Union[None, Unset, int]): Total bytes processed from source
|
|
34
|
-
"""
|
|
35
|
-
|
|
36
|
-
status: CopyResponseStatus
|
|
37
|
-
source_type: str
|
|
38
|
-
message: str
|
|
39
|
-
operation_id: Union[None, Unset, str] = UNSET
|
|
40
|
-
sse_url: Union[None, Unset, str] = UNSET
|
|
41
|
-
execution_time_ms: Union[None, Unset, float] = UNSET
|
|
42
|
-
rows_imported: Union[None, Unset, int] = UNSET
|
|
43
|
-
rows_skipped: Union[None, Unset, int] = UNSET
|
|
44
|
-
warnings: Union[None, Unset, list[str]] = UNSET
|
|
45
|
-
error_details: Union["CopyResponseErrorDetailsType0", None, Unset] = UNSET
|
|
46
|
-
bytes_processed: Union[None, Unset, int] = UNSET
|
|
47
|
-
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
48
|
-
|
|
49
|
-
def to_dict(self) -> dict[str, Any]:
|
|
50
|
-
from ..models.copy_response_error_details_type_0 import (
|
|
51
|
-
CopyResponseErrorDetailsType0,
|
|
52
|
-
)
|
|
53
|
-
|
|
54
|
-
status = self.status.value
|
|
55
|
-
|
|
56
|
-
source_type = self.source_type
|
|
57
|
-
|
|
58
|
-
message = self.message
|
|
59
|
-
|
|
60
|
-
operation_id: Union[None, Unset, str]
|
|
61
|
-
if isinstance(self.operation_id, Unset):
|
|
62
|
-
operation_id = UNSET
|
|
63
|
-
else:
|
|
64
|
-
operation_id = self.operation_id
|
|
65
|
-
|
|
66
|
-
sse_url: Union[None, Unset, str]
|
|
67
|
-
if isinstance(self.sse_url, Unset):
|
|
68
|
-
sse_url = UNSET
|
|
69
|
-
else:
|
|
70
|
-
sse_url = self.sse_url
|
|
71
|
-
|
|
72
|
-
execution_time_ms: Union[None, Unset, float]
|
|
73
|
-
if isinstance(self.execution_time_ms, Unset):
|
|
74
|
-
execution_time_ms = UNSET
|
|
75
|
-
else:
|
|
76
|
-
execution_time_ms = self.execution_time_ms
|
|
77
|
-
|
|
78
|
-
rows_imported: Union[None, Unset, int]
|
|
79
|
-
if isinstance(self.rows_imported, Unset):
|
|
80
|
-
rows_imported = UNSET
|
|
81
|
-
else:
|
|
82
|
-
rows_imported = self.rows_imported
|
|
83
|
-
|
|
84
|
-
rows_skipped: Union[None, Unset, int]
|
|
85
|
-
if isinstance(self.rows_skipped, Unset):
|
|
86
|
-
rows_skipped = UNSET
|
|
87
|
-
else:
|
|
88
|
-
rows_skipped = self.rows_skipped
|
|
89
|
-
|
|
90
|
-
warnings: Union[None, Unset, list[str]]
|
|
91
|
-
if isinstance(self.warnings, Unset):
|
|
92
|
-
warnings = UNSET
|
|
93
|
-
elif isinstance(self.warnings, list):
|
|
94
|
-
warnings = self.warnings
|
|
95
|
-
|
|
96
|
-
else:
|
|
97
|
-
warnings = self.warnings
|
|
98
|
-
|
|
99
|
-
error_details: Union[None, Unset, dict[str, Any]]
|
|
100
|
-
if isinstance(self.error_details, Unset):
|
|
101
|
-
error_details = UNSET
|
|
102
|
-
elif isinstance(self.error_details, CopyResponseErrorDetailsType0):
|
|
103
|
-
error_details = self.error_details.to_dict()
|
|
104
|
-
else:
|
|
105
|
-
error_details = self.error_details
|
|
106
|
-
|
|
107
|
-
bytes_processed: Union[None, Unset, int]
|
|
108
|
-
if isinstance(self.bytes_processed, Unset):
|
|
109
|
-
bytes_processed = UNSET
|
|
110
|
-
else:
|
|
111
|
-
bytes_processed = self.bytes_processed
|
|
112
|
-
|
|
113
|
-
field_dict: dict[str, Any] = {}
|
|
114
|
-
field_dict.update(self.additional_properties)
|
|
115
|
-
field_dict.update(
|
|
116
|
-
{
|
|
117
|
-
"status": status,
|
|
118
|
-
"source_type": source_type,
|
|
119
|
-
"message": message,
|
|
120
|
-
}
|
|
121
|
-
)
|
|
122
|
-
if operation_id is not UNSET:
|
|
123
|
-
field_dict["operation_id"] = operation_id
|
|
124
|
-
if sse_url is not UNSET:
|
|
125
|
-
field_dict["sse_url"] = sse_url
|
|
126
|
-
if execution_time_ms is not UNSET:
|
|
127
|
-
field_dict["execution_time_ms"] = execution_time_ms
|
|
128
|
-
if rows_imported is not UNSET:
|
|
129
|
-
field_dict["rows_imported"] = rows_imported
|
|
130
|
-
if rows_skipped is not UNSET:
|
|
131
|
-
field_dict["rows_skipped"] = rows_skipped
|
|
132
|
-
if warnings is not UNSET:
|
|
133
|
-
field_dict["warnings"] = warnings
|
|
134
|
-
if error_details is not UNSET:
|
|
135
|
-
field_dict["error_details"] = error_details
|
|
136
|
-
if bytes_processed is not UNSET:
|
|
137
|
-
field_dict["bytes_processed"] = bytes_processed
|
|
138
|
-
|
|
139
|
-
return field_dict
|
|
140
|
-
|
|
141
|
-
@classmethod
|
|
142
|
-
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
143
|
-
from ..models.copy_response_error_details_type_0 import (
|
|
144
|
-
CopyResponseErrorDetailsType0,
|
|
145
|
-
)
|
|
146
|
-
|
|
147
|
-
d = dict(src_dict)
|
|
148
|
-
status = CopyResponseStatus(d.pop("status"))
|
|
149
|
-
|
|
150
|
-
source_type = d.pop("source_type")
|
|
151
|
-
|
|
152
|
-
message = d.pop("message")
|
|
153
|
-
|
|
154
|
-
def _parse_operation_id(data: object) -> Union[None, Unset, str]:
|
|
155
|
-
if data is None:
|
|
156
|
-
return data
|
|
157
|
-
if isinstance(data, Unset):
|
|
158
|
-
return data
|
|
159
|
-
return cast(Union[None, Unset, str], data)
|
|
160
|
-
|
|
161
|
-
operation_id = _parse_operation_id(d.pop("operation_id", UNSET))
|
|
162
|
-
|
|
163
|
-
def _parse_sse_url(data: object) -> Union[None, Unset, str]:
|
|
164
|
-
if data is None:
|
|
165
|
-
return data
|
|
166
|
-
if isinstance(data, Unset):
|
|
167
|
-
return data
|
|
168
|
-
return cast(Union[None, Unset, str], data)
|
|
169
|
-
|
|
170
|
-
sse_url = _parse_sse_url(d.pop("sse_url", UNSET))
|
|
171
|
-
|
|
172
|
-
def _parse_execution_time_ms(data: object) -> Union[None, Unset, float]:
|
|
173
|
-
if data is None:
|
|
174
|
-
return data
|
|
175
|
-
if isinstance(data, Unset):
|
|
176
|
-
return data
|
|
177
|
-
return cast(Union[None, Unset, float], data)
|
|
178
|
-
|
|
179
|
-
execution_time_ms = _parse_execution_time_ms(d.pop("execution_time_ms", UNSET))
|
|
180
|
-
|
|
181
|
-
def _parse_rows_imported(data: object) -> Union[None, Unset, int]:
|
|
182
|
-
if data is None:
|
|
183
|
-
return data
|
|
184
|
-
if isinstance(data, Unset):
|
|
185
|
-
return data
|
|
186
|
-
return cast(Union[None, Unset, int], data)
|
|
187
|
-
|
|
188
|
-
rows_imported = _parse_rows_imported(d.pop("rows_imported", UNSET))
|
|
189
|
-
|
|
190
|
-
def _parse_rows_skipped(data: object) -> Union[None, Unset, int]:
|
|
191
|
-
if data is None:
|
|
192
|
-
return data
|
|
193
|
-
if isinstance(data, Unset):
|
|
194
|
-
return data
|
|
195
|
-
return cast(Union[None, Unset, int], data)
|
|
196
|
-
|
|
197
|
-
rows_skipped = _parse_rows_skipped(d.pop("rows_skipped", UNSET))
|
|
198
|
-
|
|
199
|
-
def _parse_warnings(data: object) -> Union[None, Unset, list[str]]:
|
|
200
|
-
if data is None:
|
|
201
|
-
return data
|
|
202
|
-
if isinstance(data, Unset):
|
|
203
|
-
return data
|
|
204
|
-
try:
|
|
205
|
-
if not isinstance(data, list):
|
|
206
|
-
raise TypeError()
|
|
207
|
-
warnings_type_0 = cast(list[str], data)
|
|
208
|
-
|
|
209
|
-
return warnings_type_0
|
|
210
|
-
except: # noqa: E722
|
|
211
|
-
pass
|
|
212
|
-
return cast(Union[None, Unset, list[str]], data)
|
|
213
|
-
|
|
214
|
-
warnings = _parse_warnings(d.pop("warnings", UNSET))
|
|
215
|
-
|
|
216
|
-
def _parse_error_details(
|
|
217
|
-
data: object,
|
|
218
|
-
) -> Union["CopyResponseErrorDetailsType0", None, Unset]:
|
|
219
|
-
if data is None:
|
|
220
|
-
return data
|
|
221
|
-
if isinstance(data, Unset):
|
|
222
|
-
return data
|
|
223
|
-
try:
|
|
224
|
-
if not isinstance(data, dict):
|
|
225
|
-
raise TypeError()
|
|
226
|
-
error_details_type_0 = CopyResponseErrorDetailsType0.from_dict(data)
|
|
227
|
-
|
|
228
|
-
return error_details_type_0
|
|
229
|
-
except: # noqa: E722
|
|
230
|
-
pass
|
|
231
|
-
return cast(Union["CopyResponseErrorDetailsType0", None, Unset], data)
|
|
232
|
-
|
|
233
|
-
error_details = _parse_error_details(d.pop("error_details", UNSET))
|
|
234
|
-
|
|
235
|
-
def _parse_bytes_processed(data: object) -> Union[None, Unset, int]:
|
|
236
|
-
if data is None:
|
|
237
|
-
return data
|
|
238
|
-
if isinstance(data, Unset):
|
|
239
|
-
return data
|
|
240
|
-
return cast(Union[None, Unset, int], data)
|
|
241
|
-
|
|
242
|
-
bytes_processed = _parse_bytes_processed(d.pop("bytes_processed", UNSET))
|
|
243
|
-
|
|
244
|
-
copy_response = cls(
|
|
245
|
-
status=status,
|
|
246
|
-
source_type=source_type,
|
|
247
|
-
message=message,
|
|
248
|
-
operation_id=operation_id,
|
|
249
|
-
sse_url=sse_url,
|
|
250
|
-
execution_time_ms=execution_time_ms,
|
|
251
|
-
rows_imported=rows_imported,
|
|
252
|
-
rows_skipped=rows_skipped,
|
|
253
|
-
warnings=warnings,
|
|
254
|
-
error_details=error_details,
|
|
255
|
-
bytes_processed=bytes_processed,
|
|
256
|
-
)
|
|
257
|
-
|
|
258
|
-
copy_response.additional_properties = d
|
|
259
|
-
return copy_response
|
|
260
|
-
|
|
261
|
-
@property
|
|
262
|
-
def additional_keys(self) -> list[str]:
|
|
263
|
-
return list(self.additional_properties.keys())
|
|
264
|
-
|
|
265
|
-
def __getitem__(self, key: str) -> Any:
|
|
266
|
-
return self.additional_properties[key]
|
|
267
|
-
|
|
268
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
269
|
-
self.additional_properties[key] = value
|
|
270
|
-
|
|
271
|
-
def __delitem__(self, key: str) -> None:
|
|
272
|
-
del self.additional_properties[key]
|
|
273
|
-
|
|
274
|
-
def __contains__(self, key: str) -> bool:
|
|
275
|
-
return key in self.additional_properties
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
from collections.abc import Mapping
|
|
2
|
-
from typing import Any, Literal, TypeVar, Union, cast
|
|
3
|
-
|
|
4
|
-
from attrs import define as _attrs_define
|
|
5
|
-
from attrs import field as _attrs_field
|
|
6
|
-
|
|
7
|
-
from ..models.data_frame_copy_request_format import DataFrameCopyRequestFormat
|
|
8
|
-
from ..types import UNSET, Unset
|
|
9
|
-
|
|
10
|
-
T = TypeVar("T", bound="DataFrameCopyRequest")
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
@_attrs_define
|
|
14
|
-
class DataFrameCopyRequest:
|
|
15
|
-
"""Request model for DataFrame copy operations (future).
|
|
16
|
-
|
|
17
|
-
Attributes:
|
|
18
|
-
table_name (str): Target Kuzu table name
|
|
19
|
-
data_reference (str): Reference to uploaded DataFrame data
|
|
20
|
-
ignore_errors (Union[Unset, bool]): Skip duplicate/invalid rows (enables upsert-like behavior) Default: True.
|
|
21
|
-
extended_timeout (Union[Unset, bool]): Use extended timeout for large datasets Default: False.
|
|
22
|
-
validate_schema (Union[Unset, bool]): Validate source schema against target table Default: True.
|
|
23
|
-
source_type (Union[Literal['dataframe'], Unset]): Source type identifier Default: 'dataframe'.
|
|
24
|
-
format_ (Union[Unset, DataFrameCopyRequestFormat]): DataFrame format Default: DataFrameCopyRequestFormat.PANDAS.
|
|
25
|
-
"""
|
|
26
|
-
|
|
27
|
-
table_name: str
|
|
28
|
-
data_reference: str
|
|
29
|
-
ignore_errors: Union[Unset, bool] = True
|
|
30
|
-
extended_timeout: Union[Unset, bool] = False
|
|
31
|
-
validate_schema: Union[Unset, bool] = True
|
|
32
|
-
source_type: Union[Literal["dataframe"], Unset] = "dataframe"
|
|
33
|
-
format_: Union[Unset, DataFrameCopyRequestFormat] = DataFrameCopyRequestFormat.PANDAS
|
|
34
|
-
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
35
|
-
|
|
36
|
-
def to_dict(self) -> dict[str, Any]:
|
|
37
|
-
table_name = self.table_name
|
|
38
|
-
|
|
39
|
-
data_reference = self.data_reference
|
|
40
|
-
|
|
41
|
-
ignore_errors = self.ignore_errors
|
|
42
|
-
|
|
43
|
-
extended_timeout = self.extended_timeout
|
|
44
|
-
|
|
45
|
-
validate_schema = self.validate_schema
|
|
46
|
-
|
|
47
|
-
source_type = self.source_type
|
|
48
|
-
|
|
49
|
-
format_: Union[Unset, str] = UNSET
|
|
50
|
-
if not isinstance(self.format_, Unset):
|
|
51
|
-
format_ = self.format_.value
|
|
52
|
-
|
|
53
|
-
field_dict: dict[str, Any] = {}
|
|
54
|
-
field_dict.update(self.additional_properties)
|
|
55
|
-
field_dict.update(
|
|
56
|
-
{
|
|
57
|
-
"table_name": table_name,
|
|
58
|
-
"data_reference": data_reference,
|
|
59
|
-
}
|
|
60
|
-
)
|
|
61
|
-
if ignore_errors is not UNSET:
|
|
62
|
-
field_dict["ignore_errors"] = ignore_errors
|
|
63
|
-
if extended_timeout is not UNSET:
|
|
64
|
-
field_dict["extended_timeout"] = extended_timeout
|
|
65
|
-
if validate_schema is not UNSET:
|
|
66
|
-
field_dict["validate_schema"] = validate_schema
|
|
67
|
-
if source_type is not UNSET:
|
|
68
|
-
field_dict["source_type"] = source_type
|
|
69
|
-
if format_ is not UNSET:
|
|
70
|
-
field_dict["format"] = format_
|
|
71
|
-
|
|
72
|
-
return field_dict
|
|
73
|
-
|
|
74
|
-
@classmethod
|
|
75
|
-
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
76
|
-
d = dict(src_dict)
|
|
77
|
-
table_name = d.pop("table_name")
|
|
78
|
-
|
|
79
|
-
data_reference = d.pop("data_reference")
|
|
80
|
-
|
|
81
|
-
ignore_errors = d.pop("ignore_errors", UNSET)
|
|
82
|
-
|
|
83
|
-
extended_timeout = d.pop("extended_timeout", UNSET)
|
|
84
|
-
|
|
85
|
-
validate_schema = d.pop("validate_schema", UNSET)
|
|
86
|
-
|
|
87
|
-
source_type = cast(Union[Literal["dataframe"], Unset], d.pop("source_type", UNSET))
|
|
88
|
-
if source_type != "dataframe" and not isinstance(source_type, Unset):
|
|
89
|
-
raise ValueError(f"source_type must match const 'dataframe', got '{source_type}'")
|
|
90
|
-
|
|
91
|
-
_format_ = d.pop("format", UNSET)
|
|
92
|
-
format_: Union[Unset, DataFrameCopyRequestFormat]
|
|
93
|
-
if isinstance(_format_, Unset):
|
|
94
|
-
format_ = UNSET
|
|
95
|
-
else:
|
|
96
|
-
format_ = DataFrameCopyRequestFormat(_format_)
|
|
97
|
-
|
|
98
|
-
data_frame_copy_request = cls(
|
|
99
|
-
table_name=table_name,
|
|
100
|
-
data_reference=data_reference,
|
|
101
|
-
ignore_errors=ignore_errors,
|
|
102
|
-
extended_timeout=extended_timeout,
|
|
103
|
-
validate_schema=validate_schema,
|
|
104
|
-
source_type=source_type,
|
|
105
|
-
format_=format_,
|
|
106
|
-
)
|
|
107
|
-
|
|
108
|
-
data_frame_copy_request.additional_properties = d
|
|
109
|
-
return data_frame_copy_request
|
|
110
|
-
|
|
111
|
-
@property
|
|
112
|
-
def additional_keys(self) -> list[str]:
|
|
113
|
-
return list(self.additional_properties.keys())
|
|
114
|
-
|
|
115
|
-
def __getitem__(self, key: str) -> Any:
|
|
116
|
-
return self.additional_properties[key]
|
|
117
|
-
|
|
118
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
119
|
-
self.additional_properties[key] = value
|
|
120
|
-
|
|
121
|
-
def __delitem__(self, key: str) -> None:
|
|
122
|
-
del self.additional_properties[key]
|
|
123
|
-
|
|
124
|
-
def __contains__(self, key: str) -> bool:
|
|
125
|
-
return key in self.additional_properties
|