robosystems-client 0.1.9__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/__init__.py +14 -0
- robosystems_client/api/__init__.py +1 -0
- robosystems_client/api/agent/__init__.py +1 -0
- robosystems_client/api/agent/query_financial_agent.py +423 -0
- robosystems_client/api/auth/__init__.py +1 -0
- robosystems_client/api/auth/check_password_strength.py +172 -0
- robosystems_client/api/auth/complete_sso_auth.py +177 -0
- robosystems_client/api/auth/generate_sso_token.py +174 -0
- robosystems_client/api/auth/get_captcha_config.py +87 -0
- robosystems_client/api/auth/get_current_auth_user.py +220 -0
- robosystems_client/api/auth/get_password_policy.py +134 -0
- robosystems_client/api/auth/login_user.py +181 -0
- robosystems_client/api/auth/logout_user.py +169 -0
- robosystems_client/api/auth/refresh_session.py +174 -0
- robosystems_client/api/auth/register_user.py +189 -0
- robosystems_client/api/auth/sso_login.py +177 -0
- robosystems_client/api/auth/sso_token_exchange.py +181 -0
- robosystems_client/api/backup/__init__.py +1 -0
- robosystems_client/api/backup/create_backup.py +401 -0
- robosystems_client/api/backup/export_backup.py +225 -0
- robosystems_client/api/backup/get_backup_download_url.py +258 -0
- robosystems_client/api/backup/get_backup_stats.py +182 -0
- robosystems_client/api/backup/kuzu_backup_health.py +202 -0
- robosystems_client/api/backup/list_backups.py +217 -0
- robosystems_client/api/backup/restore_backup.py +401 -0
- robosystems_client/api/billing/__init__.py +1 -0
- robosystems_client/api/billing/get_available_subscription_plans_v1_graph_id_billing_available_plans_get.py +198 -0
- robosystems_client/api/billing/get_credit_billing_info_v1_graph_id_billing_credits_get.py +210 -0
- robosystems_client/api/billing/get_current_graph_bill.py +285 -0
- robosystems_client/api/billing/get_graph_billing_history.py +329 -0
- robosystems_client/api/billing/get_graph_monthly_bill.py +315 -0
- robosystems_client/api/billing/get_graph_pricing_info_v1_graph_id_billing_pricing_get.py +198 -0
- robosystems_client/api/billing/get_graph_subscription_v1_graph_id_billing_subscription_get.py +198 -0
- robosystems_client/api/billing/get_graph_usage_details.py +350 -0
- robosystems_client/api/billing/upgrade_graph_subscription_v1_graph_id_billing_subscription_upgrade_post.py +216 -0
- robosystems_client/api/connections/__init__.py +1 -0
- robosystems_client/api/connections/create_connection.py +327 -0
- robosystems_client/api/connections/create_link_token.py +281 -0
- robosystems_client/api/connections/delete_connection.py +278 -0
- robosystems_client/api/connections/exchange_link_token.py +301 -0
- robosystems_client/api/connections/get_connection.py +262 -0
- robosystems_client/api/connections/get_connection_options.py +285 -0
- robosystems_client/api/connections/init_o_auth.py +230 -0
- robosystems_client/api/connections/list_connections.py +314 -0
- robosystems_client/api/connections/oauth_callback.py +318 -0
- robosystems_client/api/connections/sync_connection.py +362 -0
- robosystems_client/api/create/__init__.py +1 -0
- robosystems_client/api/create/create_graph.py +375 -0
- robosystems_client/api/create/get_available_extensions.py +134 -0
- robosystems_client/api/credits_/__init__.py +1 -0
- robosystems_client/api/credits_/check_credit_balance.py +299 -0
- robosystems_client/api/credits_/check_storage_limits.py +249 -0
- robosystems_client/api/credits_/get_credit_summary.py +245 -0
- robosystems_client/api/credits_/get_storage_usage.py +279 -0
- robosystems_client/api/credits_/list_credit_transactions.py +392 -0
- robosystems_client/api/graph_analytics/__init__.py +1 -0
- robosystems_client/api/graph_analytics/get_graph_metrics.py +285 -0
- robosystems_client/api/graph_analytics/get_graph_usage_stats.py +329 -0
- robosystems_client/api/graph_status/__init__.py +1 -0
- robosystems_client/api/graph_status/get_database_health.py +273 -0
- robosystems_client/api/graph_status/get_database_info.py +277 -0
- robosystems_client/api/mcp/__init__.py +1 -0
- robosystems_client/api/mcp/call_mcp_tool.py +432 -0
- robosystems_client/api/mcp/list_mcp_tools.py +265 -0
- robosystems_client/api/operations/__init__.py +1 -0
- robosystems_client/api/operations/cancel_operation.py +246 -0
- robosystems_client/api/operations/get_operation_status.py +273 -0
- robosystems_client/api/operations/stream_operation_events.py +415 -0
- robosystems_client/api/query/__init__.py +1 -0
- robosystems_client/api/query/execute_cypher_query.py +482 -0
- robosystems_client/api/schema/__init__.py +1 -0
- robosystems_client/api/schema/export_graph_schema.py +239 -0
- robosystems_client/api/schema/get_graph_schema_info.py +277 -0
- robosystems_client/api/schema/list_schema_extensions.py +216 -0
- robosystems_client/api/schema/validate_schema.py +326 -0
- robosystems_client/api/service_offerings/__init__.py +1 -0
- robosystems_client/api/service_offerings/get_service_offerings.py +197 -0
- robosystems_client/api/status/__init__.py +1 -0
- robosystems_client/api/status/get_mcp_health.py +136 -0
- robosystems_client/api/status/get_service_status.py +134 -0
- robosystems_client/api/user/__init__.py +1 -0
- robosystems_client/api/user/create_user_api_key.py +205 -0
- robosystems_client/api/user/get_all_credit_summaries.py +256 -0
- robosystems_client/api/user/get_current_user.py +187 -0
- robosystems_client/api/user/get_user_graphs.py +187 -0
- robosystems_client/api/user/list_user_api_keys.py +187 -0
- robosystems_client/api/user/revoke_user_api_key.py +209 -0
- robosystems_client/api/user/select_user_graph.py +213 -0
- robosystems_client/api/user/update_user.py +205 -0
- robosystems_client/api/user/update_user_api_key.py +218 -0
- robosystems_client/api/user/update_user_password.py +218 -0
- robosystems_client/api/user_analytics/__init__.py +1 -0
- robosystems_client/api/user_analytics/get_detailed_user_analytics.py +222 -0
- robosystems_client/api/user_analytics/get_user_usage_overview.py +187 -0
- robosystems_client/api/user_limits/__init__.py +1 -0
- robosystems_client/api/user_limits/get_user_limits.py +190 -0
- robosystems_client/api/user_limits/get_user_usage.py +187 -0
- robosystems_client/api/user_subscriptions/__init__.py +1 -0
- robosystems_client/api/user_subscriptions/cancel_shared_repository_subscription.py +209 -0
- robosystems_client/api/user_subscriptions/get_repository_credits.py +206 -0
- robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +193 -0
- robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +213 -0
- robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +214 -0
- robosystems_client/api/user_subscriptions/upgrade_shared_repository_subscription.py +228 -0
- robosystems_client/client.py +278 -0
- robosystems_client/errors.py +16 -0
- robosystems_client/extensions/README.md +611 -0
- robosystems_client/extensions/__init__.py +108 -0
- robosystems_client/extensions/auth_integration.py +210 -0
- robosystems_client/extensions/extensions.py +170 -0
- robosystems_client/extensions/operation_client.py +368 -0
- robosystems_client/extensions/query_client.py +375 -0
- robosystems_client/extensions/sse_client.py +520 -0
- robosystems_client/extensions/tests/__init__.py +1 -0
- robosystems_client/extensions/tests/test_integration.py +490 -0
- robosystems_client/extensions/tests/test_unit.py +560 -0
- robosystems_client/extensions/utils.py +526 -0
- robosystems_client/models/__init__.py +379 -0
- robosystems_client/models/account_info.py +79 -0
- robosystems_client/models/add_on_credit_info.py +119 -0
- robosystems_client/models/agent_message.py +68 -0
- robosystems_client/models/agent_request.py +132 -0
- robosystems_client/models/agent_request_context_type_0.py +44 -0
- robosystems_client/models/agent_response.py +132 -0
- robosystems_client/models/agent_response_metadata_type_0.py +44 -0
- robosystems_client/models/api_key_info.py +134 -0
- robosystems_client/models/api_keys_response.py +74 -0
- robosystems_client/models/auth_response.py +82 -0
- robosystems_client/models/auth_response_user.py +44 -0
- robosystems_client/models/available_extension.py +78 -0
- robosystems_client/models/available_extensions_response.py +73 -0
- robosystems_client/models/backup_create_request.py +117 -0
- robosystems_client/models/backup_export_request.py +72 -0
- robosystems_client/models/backup_list_response.py +90 -0
- robosystems_client/models/backup_response.py +200 -0
- robosystems_client/models/backup_restore_request.py +81 -0
- robosystems_client/models/backup_stats_response.py +156 -0
- robosystems_client/models/backup_stats_response_backup_formats.py +44 -0
- robosystems_client/models/cancel_operation_response_canceloperation.py +44 -0
- robosystems_client/models/cancellation_response.py +76 -0
- robosystems_client/models/check_credit_balance_response_checkcreditbalance.py +44 -0
- robosystems_client/models/connection_options_response.py +82 -0
- robosystems_client/models/connection_provider_info.py +203 -0
- robosystems_client/models/connection_provider_info_auth_type.py +11 -0
- robosystems_client/models/connection_provider_info_provider.py +10 -0
- robosystems_client/models/connection_response.py +149 -0
- robosystems_client/models/connection_response_metadata.py +44 -0
- robosystems_client/models/connection_response_provider.py +10 -0
- robosystems_client/models/create_api_key_request.py +82 -0
- robosystems_client/models/create_api_key_response.py +74 -0
- robosystems_client/models/create_connection_request.py +179 -0
- robosystems_client/models/create_connection_request_provider.py +10 -0
- robosystems_client/models/create_graph_request.py +183 -0
- robosystems_client/models/credit_check_request.py +82 -0
- robosystems_client/models/credit_summary.py +128 -0
- robosystems_client/models/credit_summary_response.py +140 -0
- robosystems_client/models/credits_summary_response.py +122 -0
- robosystems_client/models/credits_summary_response_credits_by_addon_item.py +44 -0
- robosystems_client/models/custom_schema_definition.py +194 -0
- robosystems_client/models/custom_schema_definition_metadata.py +49 -0
- robosystems_client/models/custom_schema_definition_nodes_item.py +44 -0
- robosystems_client/models/custom_schema_definition_relationships_item.py +44 -0
- robosystems_client/models/cypher_query_request.py +128 -0
- robosystems_client/models/cypher_query_request_parameters_type_0.py +44 -0
- robosystems_client/models/database_health_response.py +181 -0
- robosystems_client/models/database_info_response.py +191 -0
- robosystems_client/models/detailed_transactions_response.py +124 -0
- robosystems_client/models/detailed_transactions_response_date_range.py +44 -0
- robosystems_client/models/detailed_transactions_response_summary.py +59 -0
- robosystems_client/models/enhanced_credit_transaction_response.py +192 -0
- robosystems_client/models/enhanced_credit_transaction_response_metadata.py +44 -0
- robosystems_client/models/error_response.py +145 -0
- robosystems_client/models/exchange_token_request.py +116 -0
- robosystems_client/models/exchange_token_request_metadata_type_0.py +44 -0
- robosystems_client/models/get_all_credit_summaries_response_getallcreditsummaries.py +44 -0
- robosystems_client/models/get_backup_download_url_response_getbackupdownloadurl.py +44 -0
- robosystems_client/models/get_current_auth_user_response_getcurrentauthuser.py +44 -0
- robosystems_client/models/get_current_graph_bill_response_getcurrentgraphbill.py +44 -0
- robosystems_client/models/get_graph_billing_history_response_getgraphbillinghistory.py +44 -0
- robosystems_client/models/get_graph_monthly_bill_response_getgraphmonthlybill.py +44 -0
- robosystems_client/models/get_graph_schema_info_response_getgraphschemainfo.py +44 -0
- robosystems_client/models/get_graph_usage_details_response_getgraphusagedetails.py +44 -0
- robosystems_client/models/get_mcp_health_response_getmcphealth.py +44 -0
- robosystems_client/models/get_operation_status_response_getoperationstatus.py +44 -0
- robosystems_client/models/get_storage_usage_response_getstorageusage.py +44 -0
- robosystems_client/models/graph_info.py +92 -0
- robosystems_client/models/graph_metadata.py +105 -0
- robosystems_client/models/graph_metrics_response.py +188 -0
- robosystems_client/models/graph_metrics_response_estimated_size.py +44 -0
- robosystems_client/models/graph_metrics_response_health_status.py +44 -0
- robosystems_client/models/graph_metrics_response_node_counts.py +44 -0
- robosystems_client/models/graph_metrics_response_relationship_counts.py +44 -0
- robosystems_client/models/graph_usage_response.py +116 -0
- robosystems_client/models/graph_usage_response_query_statistics.py +44 -0
- robosystems_client/models/graph_usage_response_recent_activity.py +44 -0
- robosystems_client/models/graph_usage_response_storage_usage.py +44 -0
- robosystems_client/models/health_status.py +110 -0
- robosystems_client/models/health_status_details_type_0.py +44 -0
- robosystems_client/models/http_validation_error.py +75 -0
- robosystems_client/models/initial_entity_data.py +212 -0
- robosystems_client/models/kuzu_backup_health_response_kuzubackuphealth.py +44 -0
- robosystems_client/models/link_token_request.py +174 -0
- robosystems_client/models/link_token_request_options_type_0.py +44 -0
- robosystems_client/models/link_token_request_provider_type_0.py +10 -0
- robosystems_client/models/list_connections_provider_type_0.py +10 -0
- robosystems_client/models/list_schema_extensions_response_listschemaextensions.py +44 -0
- robosystems_client/models/login_request.py +68 -0
- robosystems_client/models/logout_user_response_logoutuser.py +44 -0
- robosystems_client/models/mcp_tool_call.py +84 -0
- robosystems_client/models/mcp_tool_call_arguments.py +44 -0
- robosystems_client/models/mcp_tools_response.py +74 -0
- robosystems_client/models/mcp_tools_response_tools_item.py +44 -0
- robosystems_client/models/o_auth_callback_request.py +130 -0
- robosystems_client/models/o_auth_init_request.py +128 -0
- robosystems_client/models/o_auth_init_request_additional_params_type_0.py +44 -0
- robosystems_client/models/o_auth_init_response.py +78 -0
- robosystems_client/models/password_check_request.py +82 -0
- robosystems_client/models/password_check_response.py +112 -0
- robosystems_client/models/password_check_response_character_types.py +44 -0
- robosystems_client/models/password_policy_response.py +66 -0
- robosystems_client/models/password_policy_response_policy.py +44 -0
- robosystems_client/models/plaid_connection_config.py +209 -0
- robosystems_client/models/plaid_connection_config_accounts_type_0_item.py +44 -0
- robosystems_client/models/plaid_connection_config_institution_type_0.py +44 -0
- robosystems_client/models/quick_books_connection_config.py +92 -0
- robosystems_client/models/register_request.py +98 -0
- robosystems_client/models/repository_credits_response.py +101 -0
- robosystems_client/models/repository_plan.py +10 -0
- robosystems_client/models/repository_type.py +10 -0
- robosystems_client/models/response_mode.py +11 -0
- robosystems_client/models/schema_export_response.py +163 -0
- robosystems_client/models/schema_export_response_data_stats_type_0.py +44 -0
- robosystems_client/models/schema_export_response_schema_definition_type_0.py +44 -0
- robosystems_client/models/schema_validation_request.py +142 -0
- robosystems_client/models/schema_validation_request_schema_definition_type_0.py +44 -0
- robosystems_client/models/schema_validation_response.py +227 -0
- robosystems_client/models/schema_validation_response_compatibility_type_0.py +44 -0
- robosystems_client/models/schema_validation_response_stats_type_0.py +44 -0
- robosystems_client/models/sec_connection_config.py +82 -0
- robosystems_client/models/sso_complete_request.py +60 -0
- robosystems_client/models/sso_exchange_request.py +90 -0
- robosystems_client/models/sso_exchange_response.py +78 -0
- robosystems_client/models/sso_login_request.py +60 -0
- robosystems_client/models/sso_token_response.py +78 -0
- robosystems_client/models/storage_limit_response.py +149 -0
- robosystems_client/models/subscription_info.py +180 -0
- robosystems_client/models/subscription_info_metadata.py +44 -0
- robosystems_client/models/subscription_request.py +89 -0
- robosystems_client/models/subscription_response.py +82 -0
- robosystems_client/models/success_response.py +112 -0
- robosystems_client/models/success_response_data_type_0.py +44 -0
- robosystems_client/models/sync_connection_request.py +106 -0
- robosystems_client/models/sync_connection_request_sync_options_type_0.py +44 -0
- robosystems_client/models/sync_connection_response_syncconnection.py +44 -0
- robosystems_client/models/tier_upgrade_request.py +62 -0
- robosystems_client/models/transaction_summary_response.py +126 -0
- robosystems_client/models/update_api_key_request.py +92 -0
- robosystems_client/models/update_password_request.py +76 -0
- robosystems_client/models/update_user_request.py +92 -0
- robosystems_client/models/upgrade_subscription_request.py +82 -0
- robosystems_client/models/user_analytics_response.py +132 -0
- robosystems_client/models/user_analytics_response_api_usage.py +44 -0
- robosystems_client/models/user_analytics_response_graph_usage.py +44 -0
- robosystems_client/models/user_analytics_response_limits.py +44 -0
- robosystems_client/models/user_analytics_response_recent_activity_item.py +44 -0
- robosystems_client/models/user_analytics_response_user_info.py +44 -0
- robosystems_client/models/user_graph_summary.py +134 -0
- robosystems_client/models/user_graphs_response.py +96 -0
- robosystems_client/models/user_limits_response.py +95 -0
- robosystems_client/models/user_response.py +132 -0
- robosystems_client/models/user_subscriptions_response.py +90 -0
- robosystems_client/models/user_usage_response.py +90 -0
- robosystems_client/models/user_usage_response_graphs.py +44 -0
- robosystems_client/models/user_usage_summary_response.py +130 -0
- robosystems_client/models/user_usage_summary_response_usage_vs_limits.py +44 -0
- robosystems_client/models/validation_error.py +88 -0
- robosystems_client/py.typed +1 -0
- robosystems_client/sdk-config.yaml +5 -0
- robosystems_client/types.py +54 -0
- robosystems_client-0.1.9.dist-info/METADATA +302 -0
- robosystems_client-0.1.9.dist-info/RECORD +282 -0
- robosystems_client-0.1.9.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.backup_list_response import BackupListResponse
|
|
9
|
+
from ...models.http_validation_error import HTTPValidationError
|
|
10
|
+
from ...types import UNSET, Response, Unset
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
graph_id: str,
|
|
15
|
+
*,
|
|
16
|
+
limit: Union[Unset, int] = 50,
|
|
17
|
+
offset: Union[Unset, int] = 0,
|
|
18
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
19
|
+
) -> dict[str, Any]:
|
|
20
|
+
cookies = {}
|
|
21
|
+
if auth_token is not UNSET:
|
|
22
|
+
cookies["auth-token"] = auth_token
|
|
23
|
+
|
|
24
|
+
params: dict[str, Any] = {}
|
|
25
|
+
|
|
26
|
+
params["limit"] = limit
|
|
27
|
+
|
|
28
|
+
params["offset"] = offset
|
|
29
|
+
|
|
30
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
31
|
+
|
|
32
|
+
_kwargs: dict[str, Any] = {
|
|
33
|
+
"method": "get",
|
|
34
|
+
"url": f"/v1/{graph_id}/backup/list",
|
|
35
|
+
"params": params,
|
|
36
|
+
"cookies": cookies,
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
return _kwargs
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def _parse_response(
|
|
43
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
44
|
+
) -> Optional[Union[BackupListResponse, HTTPValidationError]]:
|
|
45
|
+
if response.status_code == 200:
|
|
46
|
+
response_200 = BackupListResponse.from_dict(response.json())
|
|
47
|
+
|
|
48
|
+
return response_200
|
|
49
|
+
if response.status_code == 422:
|
|
50
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
51
|
+
|
|
52
|
+
return response_422
|
|
53
|
+
if client.raise_on_unexpected_status:
|
|
54
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
55
|
+
else:
|
|
56
|
+
return None
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def _build_response(
|
|
60
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
61
|
+
) -> Response[Union[BackupListResponse, HTTPValidationError]]:
|
|
62
|
+
return Response(
|
|
63
|
+
status_code=HTTPStatus(response.status_code),
|
|
64
|
+
content=response.content,
|
|
65
|
+
headers=response.headers,
|
|
66
|
+
parsed=_parse_response(client=client, response=response),
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def sync_detailed(
|
|
71
|
+
graph_id: str,
|
|
72
|
+
*,
|
|
73
|
+
client: AuthenticatedClient,
|
|
74
|
+
limit: Union[Unset, int] = 50,
|
|
75
|
+
offset: Union[Unset, int] = 0,
|
|
76
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
77
|
+
) -> Response[Union[BackupListResponse, HTTPValidationError]]:
|
|
78
|
+
"""List Kuzu graph backups
|
|
79
|
+
|
|
80
|
+
List all backups for the specified graph database
|
|
81
|
+
|
|
82
|
+
Args:
|
|
83
|
+
graph_id (str): Graph database identifier
|
|
84
|
+
limit (Union[Unset, int]): Maximum number of backups to return Default: 50.
|
|
85
|
+
offset (Union[Unset, int]): Number of backups to skip Default: 0.
|
|
86
|
+
auth_token (Union[None, Unset, str]):
|
|
87
|
+
|
|
88
|
+
Raises:
|
|
89
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
90
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
91
|
+
|
|
92
|
+
Returns:
|
|
93
|
+
Response[Union[BackupListResponse, HTTPValidationError]]
|
|
94
|
+
"""
|
|
95
|
+
|
|
96
|
+
kwargs = _get_kwargs(
|
|
97
|
+
graph_id=graph_id,
|
|
98
|
+
limit=limit,
|
|
99
|
+
offset=offset,
|
|
100
|
+
auth_token=auth_token,
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
response = client.get_httpx_client().request(
|
|
104
|
+
**kwargs,
|
|
105
|
+
)
|
|
106
|
+
|
|
107
|
+
return _build_response(client=client, response=response)
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
def sync(
|
|
111
|
+
graph_id: str,
|
|
112
|
+
*,
|
|
113
|
+
client: AuthenticatedClient,
|
|
114
|
+
limit: Union[Unset, int] = 50,
|
|
115
|
+
offset: Union[Unset, int] = 0,
|
|
116
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
117
|
+
) -> Optional[Union[BackupListResponse, HTTPValidationError]]:
|
|
118
|
+
"""List Kuzu graph backups
|
|
119
|
+
|
|
120
|
+
List all backups for the specified graph database
|
|
121
|
+
|
|
122
|
+
Args:
|
|
123
|
+
graph_id (str): Graph database identifier
|
|
124
|
+
limit (Union[Unset, int]): Maximum number of backups to return Default: 50.
|
|
125
|
+
offset (Union[Unset, int]): Number of backups to skip Default: 0.
|
|
126
|
+
auth_token (Union[None, Unset, str]):
|
|
127
|
+
|
|
128
|
+
Raises:
|
|
129
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
130
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
131
|
+
|
|
132
|
+
Returns:
|
|
133
|
+
Union[BackupListResponse, HTTPValidationError]
|
|
134
|
+
"""
|
|
135
|
+
|
|
136
|
+
return sync_detailed(
|
|
137
|
+
graph_id=graph_id,
|
|
138
|
+
client=client,
|
|
139
|
+
limit=limit,
|
|
140
|
+
offset=offset,
|
|
141
|
+
auth_token=auth_token,
|
|
142
|
+
).parsed
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
async def asyncio_detailed(
|
|
146
|
+
graph_id: str,
|
|
147
|
+
*,
|
|
148
|
+
client: AuthenticatedClient,
|
|
149
|
+
limit: Union[Unset, int] = 50,
|
|
150
|
+
offset: Union[Unset, int] = 0,
|
|
151
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
152
|
+
) -> Response[Union[BackupListResponse, HTTPValidationError]]:
|
|
153
|
+
"""List Kuzu graph backups
|
|
154
|
+
|
|
155
|
+
List all backups for the specified graph database
|
|
156
|
+
|
|
157
|
+
Args:
|
|
158
|
+
graph_id (str): Graph database identifier
|
|
159
|
+
limit (Union[Unset, int]): Maximum number of backups to return Default: 50.
|
|
160
|
+
offset (Union[Unset, int]): Number of backups to skip Default: 0.
|
|
161
|
+
auth_token (Union[None, Unset, str]):
|
|
162
|
+
|
|
163
|
+
Raises:
|
|
164
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
165
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
166
|
+
|
|
167
|
+
Returns:
|
|
168
|
+
Response[Union[BackupListResponse, HTTPValidationError]]
|
|
169
|
+
"""
|
|
170
|
+
|
|
171
|
+
kwargs = _get_kwargs(
|
|
172
|
+
graph_id=graph_id,
|
|
173
|
+
limit=limit,
|
|
174
|
+
offset=offset,
|
|
175
|
+
auth_token=auth_token,
|
|
176
|
+
)
|
|
177
|
+
|
|
178
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
179
|
+
|
|
180
|
+
return _build_response(client=client, response=response)
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
async def asyncio(
|
|
184
|
+
graph_id: str,
|
|
185
|
+
*,
|
|
186
|
+
client: AuthenticatedClient,
|
|
187
|
+
limit: Union[Unset, int] = 50,
|
|
188
|
+
offset: Union[Unset, int] = 0,
|
|
189
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
190
|
+
) -> Optional[Union[BackupListResponse, HTTPValidationError]]:
|
|
191
|
+
"""List Kuzu graph backups
|
|
192
|
+
|
|
193
|
+
List all backups for the specified graph database
|
|
194
|
+
|
|
195
|
+
Args:
|
|
196
|
+
graph_id (str): Graph database identifier
|
|
197
|
+
limit (Union[Unset, int]): Maximum number of backups to return Default: 50.
|
|
198
|
+
offset (Union[Unset, int]): Number of backups to skip Default: 0.
|
|
199
|
+
auth_token (Union[None, Unset, str]):
|
|
200
|
+
|
|
201
|
+
Raises:
|
|
202
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
203
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
204
|
+
|
|
205
|
+
Returns:
|
|
206
|
+
Union[BackupListResponse, HTTPValidationError]
|
|
207
|
+
"""
|
|
208
|
+
|
|
209
|
+
return (
|
|
210
|
+
await asyncio_detailed(
|
|
211
|
+
graph_id=graph_id,
|
|
212
|
+
client=client,
|
|
213
|
+
limit=limit,
|
|
214
|
+
offset=offset,
|
|
215
|
+
auth_token=auth_token,
|
|
216
|
+
)
|
|
217
|
+
).parsed
|
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.backup_restore_request import BackupRestoreRequest
|
|
9
|
+
from ...models.error_response import ErrorResponse
|
|
10
|
+
from ...models.http_validation_error import HTTPValidationError
|
|
11
|
+
from ...types import UNSET, Response, Unset
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_kwargs(
|
|
15
|
+
graph_id: str,
|
|
16
|
+
*,
|
|
17
|
+
body: BackupRestoreRequest,
|
|
18
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
19
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
20
|
+
) -> dict[str, Any]:
|
|
21
|
+
headers: dict[str, Any] = {}
|
|
22
|
+
if not isinstance(authorization, Unset):
|
|
23
|
+
headers["authorization"] = authorization
|
|
24
|
+
|
|
25
|
+
cookies = {}
|
|
26
|
+
if auth_token is not UNSET:
|
|
27
|
+
cookies["auth-token"] = auth_token
|
|
28
|
+
|
|
29
|
+
_kwargs: dict[str, Any] = {
|
|
30
|
+
"method": "post",
|
|
31
|
+
"url": f"/v1/{graph_id}/backup/restore",
|
|
32
|
+
"cookies": cookies,
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
_kwargs["json"] = body.to_dict()
|
|
36
|
+
|
|
37
|
+
headers["Content-Type"] = "application/json"
|
|
38
|
+
|
|
39
|
+
_kwargs["headers"] = headers
|
|
40
|
+
return _kwargs
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def _parse_response(
|
|
44
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
45
|
+
) -> Optional[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
46
|
+
if response.status_code == 202:
|
|
47
|
+
response_202 = response.json()
|
|
48
|
+
return response_202
|
|
49
|
+
if response.status_code == 400:
|
|
50
|
+
response_400 = ErrorResponse.from_dict(response.json())
|
|
51
|
+
|
|
52
|
+
return response_400
|
|
53
|
+
if response.status_code == 402:
|
|
54
|
+
response_402 = ErrorResponse.from_dict(response.json())
|
|
55
|
+
|
|
56
|
+
return response_402
|
|
57
|
+
if response.status_code == 403:
|
|
58
|
+
response_403 = ErrorResponse.from_dict(response.json())
|
|
59
|
+
|
|
60
|
+
return response_403
|
|
61
|
+
if response.status_code == 404:
|
|
62
|
+
response_404 = ErrorResponse.from_dict(response.json())
|
|
63
|
+
|
|
64
|
+
return response_404
|
|
65
|
+
if response.status_code == 500:
|
|
66
|
+
response_500 = ErrorResponse.from_dict(response.json())
|
|
67
|
+
|
|
68
|
+
return response_500
|
|
69
|
+
if response.status_code == 422:
|
|
70
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
71
|
+
|
|
72
|
+
return response_422
|
|
73
|
+
if client.raise_on_unexpected_status:
|
|
74
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
75
|
+
else:
|
|
76
|
+
return None
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
def _build_response(
|
|
80
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
81
|
+
) -> Response[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
82
|
+
return Response(
|
|
83
|
+
status_code=HTTPStatus(response.status_code),
|
|
84
|
+
content=response.content,
|
|
85
|
+
headers=response.headers,
|
|
86
|
+
parsed=_parse_response(client=client, response=response),
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def sync_detailed(
|
|
91
|
+
graph_id: str,
|
|
92
|
+
*,
|
|
93
|
+
client: AuthenticatedClient,
|
|
94
|
+
body: BackupRestoreRequest,
|
|
95
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
96
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
97
|
+
) -> Response[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
98
|
+
"""Restore Encrypted Backup
|
|
99
|
+
|
|
100
|
+
Restore a graph database from an encrypted backup.
|
|
101
|
+
|
|
102
|
+
Restores a complete Kuzu database from an encrypted backup:
|
|
103
|
+
- **Format**: Only full_dump backups can be restored
|
|
104
|
+
- **Encryption**: Only encrypted backups can be restored (security requirement)
|
|
105
|
+
- **System Backup**: Creates automatic backup of existing database before restore
|
|
106
|
+
- **Verification**: Optionally verifies database integrity after restore
|
|
107
|
+
|
|
108
|
+
**Restore Features:**
|
|
109
|
+
- **Atomic Operation**: Complete replacement of database
|
|
110
|
+
- **Rollback Protection**: System backup created before restore
|
|
111
|
+
- **Data Integrity**: Verification ensures successful restore
|
|
112
|
+
- **Security**: Only encrypted backups to prevent data tampering
|
|
113
|
+
|
|
114
|
+
**Progress Monitoring:**
|
|
115
|
+
Use the returned operation_id to connect to the SSE stream:
|
|
116
|
+
```javascript
|
|
117
|
+
const eventSource = new EventSource('/v1/operations/{operation_id}/stream');
|
|
118
|
+
eventSource.addEventListener('operation_progress', (event) => {
|
|
119
|
+
const data = JSON.parse(event.data);
|
|
120
|
+
console.log('Restore progress:', data.message);
|
|
121
|
+
});
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
**SSE Connection Limits:**
|
|
125
|
+
- Maximum 5 concurrent SSE connections per user
|
|
126
|
+
- Rate limited to 10 new connections per minute
|
|
127
|
+
- Automatic circuit breaker for Redis failures
|
|
128
|
+
- Graceful degradation if event system unavailable
|
|
129
|
+
|
|
130
|
+
**Important Notes:**
|
|
131
|
+
- Only encrypted backups can be restored (security measure)
|
|
132
|
+
- Existing database is backed up to S3 before restore
|
|
133
|
+
- Restore is a destructive operation - existing data is replaced
|
|
134
|
+
- System backups are stored separately for recovery
|
|
135
|
+
|
|
136
|
+
**Credit Consumption:**
|
|
137
|
+
- Base cost: 100.0 credits
|
|
138
|
+
- Large databases (>10GB): 200.0 credits
|
|
139
|
+
- Multiplied by graph tier
|
|
140
|
+
|
|
141
|
+
Returns operation details for SSE monitoring.
|
|
142
|
+
|
|
143
|
+
Args:
|
|
144
|
+
graph_id (str): Graph database identifier
|
|
145
|
+
authorization (Union[None, Unset, str]):
|
|
146
|
+
auth_token (Union[None, Unset, str]):
|
|
147
|
+
body (BackupRestoreRequest): Request model for restoring from a backup.
|
|
148
|
+
|
|
149
|
+
Raises:
|
|
150
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
151
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
152
|
+
|
|
153
|
+
Returns:
|
|
154
|
+
Response[Union[Any, ErrorResponse, HTTPValidationError]]
|
|
155
|
+
"""
|
|
156
|
+
|
|
157
|
+
kwargs = _get_kwargs(
|
|
158
|
+
graph_id=graph_id,
|
|
159
|
+
body=body,
|
|
160
|
+
authorization=authorization,
|
|
161
|
+
auth_token=auth_token,
|
|
162
|
+
)
|
|
163
|
+
|
|
164
|
+
response = client.get_httpx_client().request(
|
|
165
|
+
**kwargs,
|
|
166
|
+
)
|
|
167
|
+
|
|
168
|
+
return _build_response(client=client, response=response)
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
def sync(
|
|
172
|
+
graph_id: str,
|
|
173
|
+
*,
|
|
174
|
+
client: AuthenticatedClient,
|
|
175
|
+
body: BackupRestoreRequest,
|
|
176
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
177
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
178
|
+
) -> Optional[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
179
|
+
"""Restore Encrypted Backup
|
|
180
|
+
|
|
181
|
+
Restore a graph database from an encrypted backup.
|
|
182
|
+
|
|
183
|
+
Restores a complete Kuzu database from an encrypted backup:
|
|
184
|
+
- **Format**: Only full_dump backups can be restored
|
|
185
|
+
- **Encryption**: Only encrypted backups can be restored (security requirement)
|
|
186
|
+
- **System Backup**: Creates automatic backup of existing database before restore
|
|
187
|
+
- **Verification**: Optionally verifies database integrity after restore
|
|
188
|
+
|
|
189
|
+
**Restore Features:**
|
|
190
|
+
- **Atomic Operation**: Complete replacement of database
|
|
191
|
+
- **Rollback Protection**: System backup created before restore
|
|
192
|
+
- **Data Integrity**: Verification ensures successful restore
|
|
193
|
+
- **Security**: Only encrypted backups to prevent data tampering
|
|
194
|
+
|
|
195
|
+
**Progress Monitoring:**
|
|
196
|
+
Use the returned operation_id to connect to the SSE stream:
|
|
197
|
+
```javascript
|
|
198
|
+
const eventSource = new EventSource('/v1/operations/{operation_id}/stream');
|
|
199
|
+
eventSource.addEventListener('operation_progress', (event) => {
|
|
200
|
+
const data = JSON.parse(event.data);
|
|
201
|
+
console.log('Restore progress:', data.message);
|
|
202
|
+
});
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
**SSE Connection Limits:**
|
|
206
|
+
- Maximum 5 concurrent SSE connections per user
|
|
207
|
+
- Rate limited to 10 new connections per minute
|
|
208
|
+
- Automatic circuit breaker for Redis failures
|
|
209
|
+
- Graceful degradation if event system unavailable
|
|
210
|
+
|
|
211
|
+
**Important Notes:**
|
|
212
|
+
- Only encrypted backups can be restored (security measure)
|
|
213
|
+
- Existing database is backed up to S3 before restore
|
|
214
|
+
- Restore is a destructive operation - existing data is replaced
|
|
215
|
+
- System backups are stored separately for recovery
|
|
216
|
+
|
|
217
|
+
**Credit Consumption:**
|
|
218
|
+
- Base cost: 100.0 credits
|
|
219
|
+
- Large databases (>10GB): 200.0 credits
|
|
220
|
+
- Multiplied by graph tier
|
|
221
|
+
|
|
222
|
+
Returns operation details for SSE monitoring.
|
|
223
|
+
|
|
224
|
+
Args:
|
|
225
|
+
graph_id (str): Graph database identifier
|
|
226
|
+
authorization (Union[None, Unset, str]):
|
|
227
|
+
auth_token (Union[None, Unset, str]):
|
|
228
|
+
body (BackupRestoreRequest): Request model for restoring from a backup.
|
|
229
|
+
|
|
230
|
+
Raises:
|
|
231
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
232
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
233
|
+
|
|
234
|
+
Returns:
|
|
235
|
+
Union[Any, ErrorResponse, HTTPValidationError]
|
|
236
|
+
"""
|
|
237
|
+
|
|
238
|
+
return sync_detailed(
|
|
239
|
+
graph_id=graph_id,
|
|
240
|
+
client=client,
|
|
241
|
+
body=body,
|
|
242
|
+
authorization=authorization,
|
|
243
|
+
auth_token=auth_token,
|
|
244
|
+
).parsed
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
async def asyncio_detailed(
|
|
248
|
+
graph_id: str,
|
|
249
|
+
*,
|
|
250
|
+
client: AuthenticatedClient,
|
|
251
|
+
body: BackupRestoreRequest,
|
|
252
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
253
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
254
|
+
) -> Response[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
255
|
+
"""Restore Encrypted Backup
|
|
256
|
+
|
|
257
|
+
Restore a graph database from an encrypted backup.
|
|
258
|
+
|
|
259
|
+
Restores a complete Kuzu database from an encrypted backup:
|
|
260
|
+
- **Format**: Only full_dump backups can be restored
|
|
261
|
+
- **Encryption**: Only encrypted backups can be restored (security requirement)
|
|
262
|
+
- **System Backup**: Creates automatic backup of existing database before restore
|
|
263
|
+
- **Verification**: Optionally verifies database integrity after restore
|
|
264
|
+
|
|
265
|
+
**Restore Features:**
|
|
266
|
+
- **Atomic Operation**: Complete replacement of database
|
|
267
|
+
- **Rollback Protection**: System backup created before restore
|
|
268
|
+
- **Data Integrity**: Verification ensures successful restore
|
|
269
|
+
- **Security**: Only encrypted backups to prevent data tampering
|
|
270
|
+
|
|
271
|
+
**Progress Monitoring:**
|
|
272
|
+
Use the returned operation_id to connect to the SSE stream:
|
|
273
|
+
```javascript
|
|
274
|
+
const eventSource = new EventSource('/v1/operations/{operation_id}/stream');
|
|
275
|
+
eventSource.addEventListener('operation_progress', (event) => {
|
|
276
|
+
const data = JSON.parse(event.data);
|
|
277
|
+
console.log('Restore progress:', data.message);
|
|
278
|
+
});
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
**SSE Connection Limits:**
|
|
282
|
+
- Maximum 5 concurrent SSE connections per user
|
|
283
|
+
- Rate limited to 10 new connections per minute
|
|
284
|
+
- Automatic circuit breaker for Redis failures
|
|
285
|
+
- Graceful degradation if event system unavailable
|
|
286
|
+
|
|
287
|
+
**Important Notes:**
|
|
288
|
+
- Only encrypted backups can be restored (security measure)
|
|
289
|
+
- Existing database is backed up to S3 before restore
|
|
290
|
+
- Restore is a destructive operation - existing data is replaced
|
|
291
|
+
- System backups are stored separately for recovery
|
|
292
|
+
|
|
293
|
+
**Credit Consumption:**
|
|
294
|
+
- Base cost: 100.0 credits
|
|
295
|
+
- Large databases (>10GB): 200.0 credits
|
|
296
|
+
- Multiplied by graph tier
|
|
297
|
+
|
|
298
|
+
Returns operation details for SSE monitoring.
|
|
299
|
+
|
|
300
|
+
Args:
|
|
301
|
+
graph_id (str): Graph database identifier
|
|
302
|
+
authorization (Union[None, Unset, str]):
|
|
303
|
+
auth_token (Union[None, Unset, str]):
|
|
304
|
+
body (BackupRestoreRequest): Request model for restoring from a backup.
|
|
305
|
+
|
|
306
|
+
Raises:
|
|
307
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
308
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
309
|
+
|
|
310
|
+
Returns:
|
|
311
|
+
Response[Union[Any, ErrorResponse, HTTPValidationError]]
|
|
312
|
+
"""
|
|
313
|
+
|
|
314
|
+
kwargs = _get_kwargs(
|
|
315
|
+
graph_id=graph_id,
|
|
316
|
+
body=body,
|
|
317
|
+
authorization=authorization,
|
|
318
|
+
auth_token=auth_token,
|
|
319
|
+
)
|
|
320
|
+
|
|
321
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
322
|
+
|
|
323
|
+
return _build_response(client=client, response=response)
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
async def asyncio(
|
|
327
|
+
graph_id: str,
|
|
328
|
+
*,
|
|
329
|
+
client: AuthenticatedClient,
|
|
330
|
+
body: BackupRestoreRequest,
|
|
331
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
332
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
333
|
+
) -> Optional[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
334
|
+
"""Restore Encrypted Backup
|
|
335
|
+
|
|
336
|
+
Restore a graph database from an encrypted backup.
|
|
337
|
+
|
|
338
|
+
Restores a complete Kuzu database from an encrypted backup:
|
|
339
|
+
- **Format**: Only full_dump backups can be restored
|
|
340
|
+
- **Encryption**: Only encrypted backups can be restored (security requirement)
|
|
341
|
+
- **System Backup**: Creates automatic backup of existing database before restore
|
|
342
|
+
- **Verification**: Optionally verifies database integrity after restore
|
|
343
|
+
|
|
344
|
+
**Restore Features:**
|
|
345
|
+
- **Atomic Operation**: Complete replacement of database
|
|
346
|
+
- **Rollback Protection**: System backup created before restore
|
|
347
|
+
- **Data Integrity**: Verification ensures successful restore
|
|
348
|
+
- **Security**: Only encrypted backups to prevent data tampering
|
|
349
|
+
|
|
350
|
+
**Progress Monitoring:**
|
|
351
|
+
Use the returned operation_id to connect to the SSE stream:
|
|
352
|
+
```javascript
|
|
353
|
+
const eventSource = new EventSource('/v1/operations/{operation_id}/stream');
|
|
354
|
+
eventSource.addEventListener('operation_progress', (event) => {
|
|
355
|
+
const data = JSON.parse(event.data);
|
|
356
|
+
console.log('Restore progress:', data.message);
|
|
357
|
+
});
|
|
358
|
+
```
|
|
359
|
+
|
|
360
|
+
**SSE Connection Limits:**
|
|
361
|
+
- Maximum 5 concurrent SSE connections per user
|
|
362
|
+
- Rate limited to 10 new connections per minute
|
|
363
|
+
- Automatic circuit breaker for Redis failures
|
|
364
|
+
- Graceful degradation if event system unavailable
|
|
365
|
+
|
|
366
|
+
**Important Notes:**
|
|
367
|
+
- Only encrypted backups can be restored (security measure)
|
|
368
|
+
- Existing database is backed up to S3 before restore
|
|
369
|
+
- Restore is a destructive operation - existing data is replaced
|
|
370
|
+
- System backups are stored separately for recovery
|
|
371
|
+
|
|
372
|
+
**Credit Consumption:**
|
|
373
|
+
- Base cost: 100.0 credits
|
|
374
|
+
- Large databases (>10GB): 200.0 credits
|
|
375
|
+
- Multiplied by graph tier
|
|
376
|
+
|
|
377
|
+
Returns operation details for SSE monitoring.
|
|
378
|
+
|
|
379
|
+
Args:
|
|
380
|
+
graph_id (str): Graph database identifier
|
|
381
|
+
authorization (Union[None, Unset, str]):
|
|
382
|
+
auth_token (Union[None, Unset, str]):
|
|
383
|
+
body (BackupRestoreRequest): Request model for restoring from a backup.
|
|
384
|
+
|
|
385
|
+
Raises:
|
|
386
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
387
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
388
|
+
|
|
389
|
+
Returns:
|
|
390
|
+
Union[Any, ErrorResponse, HTTPValidationError]
|
|
391
|
+
"""
|
|
392
|
+
|
|
393
|
+
return (
|
|
394
|
+
await asyncio_detailed(
|
|
395
|
+
graph_id=graph_id,
|
|
396
|
+
client=client,
|
|
397
|
+
body=body,
|
|
398
|
+
authorization=authorization,
|
|
399
|
+
auth_token=auth_token,
|
|
400
|
+
)
|
|
401
|
+
).parsed
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Contains endpoint functions for accessing the API"""
|