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,258 @@
|
|
|
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.get_backup_download_url_response_getbackupdownloadurl import (
|
|
9
|
+
GetBackupDownloadUrlResponseGetbackupdownloadurl,
|
|
10
|
+
)
|
|
11
|
+
from ...models.http_validation_error import HTTPValidationError
|
|
12
|
+
from ...types import UNSET, Response, Unset
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def _get_kwargs(
|
|
16
|
+
graph_id: str,
|
|
17
|
+
backup_id: str,
|
|
18
|
+
*,
|
|
19
|
+
expires_in: Union[Unset, int] = 3600,
|
|
20
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
21
|
+
auth_token: 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
|
+
cookies = {}
|
|
28
|
+
if auth_token is not UNSET:
|
|
29
|
+
cookies["auth-token"] = auth_token
|
|
30
|
+
|
|
31
|
+
params: dict[str, Any] = {}
|
|
32
|
+
|
|
33
|
+
params["expires_in"] = expires_in
|
|
34
|
+
|
|
35
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
36
|
+
|
|
37
|
+
_kwargs: dict[str, Any] = {
|
|
38
|
+
"method": "get",
|
|
39
|
+
"url": f"/v1/{graph_id}/backup/{backup_id}/download-url",
|
|
40
|
+
"params": params,
|
|
41
|
+
"cookies": cookies,
|
|
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[Any, GetBackupDownloadUrlResponseGetbackupdownloadurl, HTTPValidationError]
|
|
52
|
+
]:
|
|
53
|
+
if response.status_code == 200:
|
|
54
|
+
response_200 = GetBackupDownloadUrlResponseGetbackupdownloadurl.from_dict(
|
|
55
|
+
response.json()
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
return response_200
|
|
59
|
+
if response.status_code == 403:
|
|
60
|
+
response_403 = cast(Any, None)
|
|
61
|
+
return response_403
|
|
62
|
+
if response.status_code == 404:
|
|
63
|
+
response_404 = cast(Any, None)
|
|
64
|
+
return response_404
|
|
65
|
+
if response.status_code == 500:
|
|
66
|
+
response_500 = cast(Any, None)
|
|
67
|
+
return response_500
|
|
68
|
+
if response.status_code == 422:
|
|
69
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
70
|
+
|
|
71
|
+
return response_422
|
|
72
|
+
if client.raise_on_unexpected_status:
|
|
73
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
74
|
+
else:
|
|
75
|
+
return None
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
def _build_response(
|
|
79
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
80
|
+
) -> Response[
|
|
81
|
+
Union[Any, GetBackupDownloadUrlResponseGetbackupdownloadurl, HTTPValidationError]
|
|
82
|
+
]:
|
|
83
|
+
return Response(
|
|
84
|
+
status_code=HTTPStatus(response.status_code),
|
|
85
|
+
content=response.content,
|
|
86
|
+
headers=response.headers,
|
|
87
|
+
parsed=_parse_response(client=client, response=response),
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
def sync_detailed(
|
|
92
|
+
graph_id: str,
|
|
93
|
+
backup_id: str,
|
|
94
|
+
*,
|
|
95
|
+
client: AuthenticatedClient,
|
|
96
|
+
expires_in: Union[Unset, int] = 3600,
|
|
97
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
98
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
99
|
+
) -> Response[
|
|
100
|
+
Union[Any, GetBackupDownloadUrlResponseGetbackupdownloadurl, HTTPValidationError]
|
|
101
|
+
]:
|
|
102
|
+
"""Get temporary download URL for backup
|
|
103
|
+
|
|
104
|
+
Generate a temporary download URL for a backup (unencrypted, compressed .kuzu files only)
|
|
105
|
+
|
|
106
|
+
Args:
|
|
107
|
+
graph_id (str): Graph database identifier
|
|
108
|
+
backup_id (str): Backup identifier
|
|
109
|
+
expires_in (Union[Unset, int]): URL expiration time in seconds Default: 3600.
|
|
110
|
+
authorization (Union[None, Unset, str]):
|
|
111
|
+
auth_token (Union[None, Unset, str]):
|
|
112
|
+
|
|
113
|
+
Raises:
|
|
114
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
115
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
116
|
+
|
|
117
|
+
Returns:
|
|
118
|
+
Response[Union[Any, GetBackupDownloadUrlResponseGetbackupdownloadurl, HTTPValidationError]]
|
|
119
|
+
"""
|
|
120
|
+
|
|
121
|
+
kwargs = _get_kwargs(
|
|
122
|
+
graph_id=graph_id,
|
|
123
|
+
backup_id=backup_id,
|
|
124
|
+
expires_in=expires_in,
|
|
125
|
+
authorization=authorization,
|
|
126
|
+
auth_token=auth_token,
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
response = client.get_httpx_client().request(
|
|
130
|
+
**kwargs,
|
|
131
|
+
)
|
|
132
|
+
|
|
133
|
+
return _build_response(client=client, response=response)
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
def sync(
|
|
137
|
+
graph_id: str,
|
|
138
|
+
backup_id: str,
|
|
139
|
+
*,
|
|
140
|
+
client: AuthenticatedClient,
|
|
141
|
+
expires_in: Union[Unset, int] = 3600,
|
|
142
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
143
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
144
|
+
) -> Optional[
|
|
145
|
+
Union[Any, GetBackupDownloadUrlResponseGetbackupdownloadurl, HTTPValidationError]
|
|
146
|
+
]:
|
|
147
|
+
"""Get temporary download URL for backup
|
|
148
|
+
|
|
149
|
+
Generate a temporary download URL for a backup (unencrypted, compressed .kuzu files only)
|
|
150
|
+
|
|
151
|
+
Args:
|
|
152
|
+
graph_id (str): Graph database identifier
|
|
153
|
+
backup_id (str): Backup identifier
|
|
154
|
+
expires_in (Union[Unset, int]): URL expiration time in seconds Default: 3600.
|
|
155
|
+
authorization (Union[None, Unset, str]):
|
|
156
|
+
auth_token (Union[None, Unset, str]):
|
|
157
|
+
|
|
158
|
+
Raises:
|
|
159
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
160
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
161
|
+
|
|
162
|
+
Returns:
|
|
163
|
+
Union[Any, GetBackupDownloadUrlResponseGetbackupdownloadurl, HTTPValidationError]
|
|
164
|
+
"""
|
|
165
|
+
|
|
166
|
+
return sync_detailed(
|
|
167
|
+
graph_id=graph_id,
|
|
168
|
+
backup_id=backup_id,
|
|
169
|
+
client=client,
|
|
170
|
+
expires_in=expires_in,
|
|
171
|
+
authorization=authorization,
|
|
172
|
+
auth_token=auth_token,
|
|
173
|
+
).parsed
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
async def asyncio_detailed(
|
|
177
|
+
graph_id: str,
|
|
178
|
+
backup_id: str,
|
|
179
|
+
*,
|
|
180
|
+
client: AuthenticatedClient,
|
|
181
|
+
expires_in: Union[Unset, int] = 3600,
|
|
182
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
183
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
184
|
+
) -> Response[
|
|
185
|
+
Union[Any, GetBackupDownloadUrlResponseGetbackupdownloadurl, HTTPValidationError]
|
|
186
|
+
]:
|
|
187
|
+
"""Get temporary download URL for backup
|
|
188
|
+
|
|
189
|
+
Generate a temporary download URL for a backup (unencrypted, compressed .kuzu files only)
|
|
190
|
+
|
|
191
|
+
Args:
|
|
192
|
+
graph_id (str): Graph database identifier
|
|
193
|
+
backup_id (str): Backup identifier
|
|
194
|
+
expires_in (Union[Unset, int]): URL expiration time in seconds Default: 3600.
|
|
195
|
+
authorization (Union[None, Unset, str]):
|
|
196
|
+
auth_token (Union[None, Unset, str]):
|
|
197
|
+
|
|
198
|
+
Raises:
|
|
199
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
200
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
201
|
+
|
|
202
|
+
Returns:
|
|
203
|
+
Response[Union[Any, GetBackupDownloadUrlResponseGetbackupdownloadurl, HTTPValidationError]]
|
|
204
|
+
"""
|
|
205
|
+
|
|
206
|
+
kwargs = _get_kwargs(
|
|
207
|
+
graph_id=graph_id,
|
|
208
|
+
backup_id=backup_id,
|
|
209
|
+
expires_in=expires_in,
|
|
210
|
+
authorization=authorization,
|
|
211
|
+
auth_token=auth_token,
|
|
212
|
+
)
|
|
213
|
+
|
|
214
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
215
|
+
|
|
216
|
+
return _build_response(client=client, response=response)
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
async def asyncio(
|
|
220
|
+
graph_id: str,
|
|
221
|
+
backup_id: str,
|
|
222
|
+
*,
|
|
223
|
+
client: AuthenticatedClient,
|
|
224
|
+
expires_in: Union[Unset, int] = 3600,
|
|
225
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
226
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
227
|
+
) -> Optional[
|
|
228
|
+
Union[Any, GetBackupDownloadUrlResponseGetbackupdownloadurl, HTTPValidationError]
|
|
229
|
+
]:
|
|
230
|
+
"""Get temporary download URL for backup
|
|
231
|
+
|
|
232
|
+
Generate a temporary download URL for a backup (unencrypted, compressed .kuzu files only)
|
|
233
|
+
|
|
234
|
+
Args:
|
|
235
|
+
graph_id (str): Graph database identifier
|
|
236
|
+
backup_id (str): Backup identifier
|
|
237
|
+
expires_in (Union[Unset, int]): URL expiration time in seconds Default: 3600.
|
|
238
|
+
authorization (Union[None, Unset, str]):
|
|
239
|
+
auth_token (Union[None, Unset, str]):
|
|
240
|
+
|
|
241
|
+
Raises:
|
|
242
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
243
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
244
|
+
|
|
245
|
+
Returns:
|
|
246
|
+
Union[Any, GetBackupDownloadUrlResponseGetbackupdownloadurl, HTTPValidationError]
|
|
247
|
+
"""
|
|
248
|
+
|
|
249
|
+
return (
|
|
250
|
+
await asyncio_detailed(
|
|
251
|
+
graph_id=graph_id,
|
|
252
|
+
backup_id=backup_id,
|
|
253
|
+
client=client,
|
|
254
|
+
expires_in=expires_in,
|
|
255
|
+
authorization=authorization,
|
|
256
|
+
auth_token=auth_token,
|
|
257
|
+
)
|
|
258
|
+
).parsed
|
|
@@ -0,0 +1,182 @@
|
|
|
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_stats_response import BackupStatsResponse
|
|
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
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
17
|
+
) -> dict[str, Any]:
|
|
18
|
+
cookies = {}
|
|
19
|
+
if auth_token is not UNSET:
|
|
20
|
+
cookies["auth-token"] = auth_token
|
|
21
|
+
|
|
22
|
+
_kwargs: dict[str, Any] = {
|
|
23
|
+
"method": "get",
|
|
24
|
+
"url": f"/v1/{graph_id}/backup/stats",
|
|
25
|
+
"cookies": cookies,
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return _kwargs
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def _parse_response(
|
|
32
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
33
|
+
) -> Optional[Union[BackupStatsResponse, HTTPValidationError]]:
|
|
34
|
+
if response.status_code == 200:
|
|
35
|
+
response_200 = BackupStatsResponse.from_dict(response.json())
|
|
36
|
+
|
|
37
|
+
return response_200
|
|
38
|
+
if response.status_code == 422:
|
|
39
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
40
|
+
|
|
41
|
+
return response_422
|
|
42
|
+
if client.raise_on_unexpected_status:
|
|
43
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
44
|
+
else:
|
|
45
|
+
return None
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def _build_response(
|
|
49
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
50
|
+
) -> Response[Union[BackupStatsResponse, HTTPValidationError]]:
|
|
51
|
+
return Response(
|
|
52
|
+
status_code=HTTPStatus(response.status_code),
|
|
53
|
+
content=response.content,
|
|
54
|
+
headers=response.headers,
|
|
55
|
+
parsed=_parse_response(client=client, response=response),
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def sync_detailed(
|
|
60
|
+
graph_id: str,
|
|
61
|
+
*,
|
|
62
|
+
client: AuthenticatedClient,
|
|
63
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
64
|
+
) -> Response[Union[BackupStatsResponse, HTTPValidationError]]:
|
|
65
|
+
"""Get backup statistics
|
|
66
|
+
|
|
67
|
+
Get comprehensive backup statistics for the specified graph database
|
|
68
|
+
|
|
69
|
+
Args:
|
|
70
|
+
graph_id (str): Graph database identifier
|
|
71
|
+
auth_token (Union[None, Unset, str]):
|
|
72
|
+
|
|
73
|
+
Raises:
|
|
74
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
75
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
76
|
+
|
|
77
|
+
Returns:
|
|
78
|
+
Response[Union[BackupStatsResponse, HTTPValidationError]]
|
|
79
|
+
"""
|
|
80
|
+
|
|
81
|
+
kwargs = _get_kwargs(
|
|
82
|
+
graph_id=graph_id,
|
|
83
|
+
auth_token=auth_token,
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
response = client.get_httpx_client().request(
|
|
87
|
+
**kwargs,
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
return _build_response(client=client, response=response)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
def sync(
|
|
94
|
+
graph_id: str,
|
|
95
|
+
*,
|
|
96
|
+
client: AuthenticatedClient,
|
|
97
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
98
|
+
) -> Optional[Union[BackupStatsResponse, HTTPValidationError]]:
|
|
99
|
+
"""Get backup statistics
|
|
100
|
+
|
|
101
|
+
Get comprehensive backup statistics for the specified graph database
|
|
102
|
+
|
|
103
|
+
Args:
|
|
104
|
+
graph_id (str): Graph database identifier
|
|
105
|
+
auth_token (Union[None, Unset, str]):
|
|
106
|
+
|
|
107
|
+
Raises:
|
|
108
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
109
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
110
|
+
|
|
111
|
+
Returns:
|
|
112
|
+
Union[BackupStatsResponse, HTTPValidationError]
|
|
113
|
+
"""
|
|
114
|
+
|
|
115
|
+
return sync_detailed(
|
|
116
|
+
graph_id=graph_id,
|
|
117
|
+
client=client,
|
|
118
|
+
auth_token=auth_token,
|
|
119
|
+
).parsed
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
async def asyncio_detailed(
|
|
123
|
+
graph_id: str,
|
|
124
|
+
*,
|
|
125
|
+
client: AuthenticatedClient,
|
|
126
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
127
|
+
) -> Response[Union[BackupStatsResponse, HTTPValidationError]]:
|
|
128
|
+
"""Get backup statistics
|
|
129
|
+
|
|
130
|
+
Get comprehensive backup statistics for the specified graph database
|
|
131
|
+
|
|
132
|
+
Args:
|
|
133
|
+
graph_id (str): Graph database identifier
|
|
134
|
+
auth_token (Union[None, Unset, str]):
|
|
135
|
+
|
|
136
|
+
Raises:
|
|
137
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
138
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
139
|
+
|
|
140
|
+
Returns:
|
|
141
|
+
Response[Union[BackupStatsResponse, HTTPValidationError]]
|
|
142
|
+
"""
|
|
143
|
+
|
|
144
|
+
kwargs = _get_kwargs(
|
|
145
|
+
graph_id=graph_id,
|
|
146
|
+
auth_token=auth_token,
|
|
147
|
+
)
|
|
148
|
+
|
|
149
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
150
|
+
|
|
151
|
+
return _build_response(client=client, response=response)
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
async def asyncio(
|
|
155
|
+
graph_id: str,
|
|
156
|
+
*,
|
|
157
|
+
client: AuthenticatedClient,
|
|
158
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
159
|
+
) -> Optional[Union[BackupStatsResponse, HTTPValidationError]]:
|
|
160
|
+
"""Get backup statistics
|
|
161
|
+
|
|
162
|
+
Get comprehensive backup statistics for the specified graph database
|
|
163
|
+
|
|
164
|
+
Args:
|
|
165
|
+
graph_id (str): Graph database identifier
|
|
166
|
+
auth_token (Union[None, Unset, str]):
|
|
167
|
+
|
|
168
|
+
Raises:
|
|
169
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
170
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
171
|
+
|
|
172
|
+
Returns:
|
|
173
|
+
Union[BackupStatsResponse, HTTPValidationError]
|
|
174
|
+
"""
|
|
175
|
+
|
|
176
|
+
return (
|
|
177
|
+
await asyncio_detailed(
|
|
178
|
+
graph_id=graph_id,
|
|
179
|
+
client=client,
|
|
180
|
+
auth_token=auth_token,
|
|
181
|
+
)
|
|
182
|
+
).parsed
|
|
@@ -0,0 +1,202 @@
|
|
|
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.http_validation_error import HTTPValidationError
|
|
9
|
+
from ...models.kuzu_backup_health_response_kuzubackuphealth import (
|
|
10
|
+
KuzuBackupHealthResponseKuzubackuphealth,
|
|
11
|
+
)
|
|
12
|
+
from ...types import UNSET, Response, Unset
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def _get_kwargs(
|
|
16
|
+
graph_id: str,
|
|
17
|
+
*,
|
|
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": "get",
|
|
31
|
+
"url": f"/v1/{graph_id}/backup/health",
|
|
32
|
+
"cookies": cookies,
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
_kwargs["headers"] = headers
|
|
36
|
+
return _kwargs
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def _parse_response(
|
|
40
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
41
|
+
) -> Optional[Union[HTTPValidationError, KuzuBackupHealthResponseKuzubackuphealth]]:
|
|
42
|
+
if response.status_code == 200:
|
|
43
|
+
response_200 = KuzuBackupHealthResponseKuzubackuphealth.from_dict(response.json())
|
|
44
|
+
|
|
45
|
+
return response_200
|
|
46
|
+
if response.status_code == 422:
|
|
47
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
48
|
+
|
|
49
|
+
return response_422
|
|
50
|
+
if client.raise_on_unexpected_status:
|
|
51
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
52
|
+
else:
|
|
53
|
+
return None
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def _build_response(
|
|
57
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
58
|
+
) -> Response[Union[HTTPValidationError, KuzuBackupHealthResponseKuzubackuphealth]]:
|
|
59
|
+
return Response(
|
|
60
|
+
status_code=HTTPStatus(response.status_code),
|
|
61
|
+
content=response.content,
|
|
62
|
+
headers=response.headers,
|
|
63
|
+
parsed=_parse_response(client=client, response=response),
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def sync_detailed(
|
|
68
|
+
graph_id: str,
|
|
69
|
+
*,
|
|
70
|
+
client: AuthenticatedClient,
|
|
71
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
72
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
73
|
+
) -> Response[Union[HTTPValidationError, KuzuBackupHealthResponseKuzubackuphealth]]:
|
|
74
|
+
"""Check Kuzu backup system health
|
|
75
|
+
|
|
76
|
+
Check the health status of the Kuzu backup system
|
|
77
|
+
|
|
78
|
+
Args:
|
|
79
|
+
graph_id (str): Graph database identifier
|
|
80
|
+
authorization (Union[None, Unset, str]):
|
|
81
|
+
auth_token (Union[None, Unset, str]):
|
|
82
|
+
|
|
83
|
+
Raises:
|
|
84
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
85
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
86
|
+
|
|
87
|
+
Returns:
|
|
88
|
+
Response[Union[HTTPValidationError, KuzuBackupHealthResponseKuzubackuphealth]]
|
|
89
|
+
"""
|
|
90
|
+
|
|
91
|
+
kwargs = _get_kwargs(
|
|
92
|
+
graph_id=graph_id,
|
|
93
|
+
authorization=authorization,
|
|
94
|
+
auth_token=auth_token,
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
response = client.get_httpx_client().request(
|
|
98
|
+
**kwargs,
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
return _build_response(client=client, response=response)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
def sync(
|
|
105
|
+
graph_id: str,
|
|
106
|
+
*,
|
|
107
|
+
client: AuthenticatedClient,
|
|
108
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
109
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
110
|
+
) -> Optional[Union[HTTPValidationError, KuzuBackupHealthResponseKuzubackuphealth]]:
|
|
111
|
+
"""Check Kuzu backup system health
|
|
112
|
+
|
|
113
|
+
Check the health status of the Kuzu backup system
|
|
114
|
+
|
|
115
|
+
Args:
|
|
116
|
+
graph_id (str): Graph database identifier
|
|
117
|
+
authorization (Union[None, Unset, str]):
|
|
118
|
+
auth_token (Union[None, Unset, str]):
|
|
119
|
+
|
|
120
|
+
Raises:
|
|
121
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
122
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
123
|
+
|
|
124
|
+
Returns:
|
|
125
|
+
Union[HTTPValidationError, KuzuBackupHealthResponseKuzubackuphealth]
|
|
126
|
+
"""
|
|
127
|
+
|
|
128
|
+
return sync_detailed(
|
|
129
|
+
graph_id=graph_id,
|
|
130
|
+
client=client,
|
|
131
|
+
authorization=authorization,
|
|
132
|
+
auth_token=auth_token,
|
|
133
|
+
).parsed
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
async def asyncio_detailed(
|
|
137
|
+
graph_id: str,
|
|
138
|
+
*,
|
|
139
|
+
client: AuthenticatedClient,
|
|
140
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
141
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
142
|
+
) -> Response[Union[HTTPValidationError, KuzuBackupHealthResponseKuzubackuphealth]]:
|
|
143
|
+
"""Check Kuzu backup system health
|
|
144
|
+
|
|
145
|
+
Check the health status of the Kuzu backup system
|
|
146
|
+
|
|
147
|
+
Args:
|
|
148
|
+
graph_id (str): Graph database identifier
|
|
149
|
+
authorization (Union[None, Unset, str]):
|
|
150
|
+
auth_token (Union[None, Unset, str]):
|
|
151
|
+
|
|
152
|
+
Raises:
|
|
153
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
154
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
155
|
+
|
|
156
|
+
Returns:
|
|
157
|
+
Response[Union[HTTPValidationError, KuzuBackupHealthResponseKuzubackuphealth]]
|
|
158
|
+
"""
|
|
159
|
+
|
|
160
|
+
kwargs = _get_kwargs(
|
|
161
|
+
graph_id=graph_id,
|
|
162
|
+
authorization=authorization,
|
|
163
|
+
auth_token=auth_token,
|
|
164
|
+
)
|
|
165
|
+
|
|
166
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
167
|
+
|
|
168
|
+
return _build_response(client=client, response=response)
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
async def asyncio(
|
|
172
|
+
graph_id: str,
|
|
173
|
+
*,
|
|
174
|
+
client: AuthenticatedClient,
|
|
175
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
176
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
177
|
+
) -> Optional[Union[HTTPValidationError, KuzuBackupHealthResponseKuzubackuphealth]]:
|
|
178
|
+
"""Check Kuzu backup system health
|
|
179
|
+
|
|
180
|
+
Check the health status of the Kuzu backup system
|
|
181
|
+
|
|
182
|
+
Args:
|
|
183
|
+
graph_id (str): Graph database identifier
|
|
184
|
+
authorization (Union[None, Unset, str]):
|
|
185
|
+
auth_token (Union[None, Unset, str]):
|
|
186
|
+
|
|
187
|
+
Raises:
|
|
188
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
189
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
190
|
+
|
|
191
|
+
Returns:
|
|
192
|
+
Union[HTTPValidationError, KuzuBackupHealthResponseKuzubackuphealth]
|
|
193
|
+
"""
|
|
194
|
+
|
|
195
|
+
return (
|
|
196
|
+
await asyncio_detailed(
|
|
197
|
+
graph_id=graph_id,
|
|
198
|
+
client=client,
|
|
199
|
+
authorization=authorization,
|
|
200
|
+
auth_token=auth_token,
|
|
201
|
+
)
|
|
202
|
+
).parsed
|