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,329 @@
|
|
|
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.error_response import ErrorResponse
|
|
9
|
+
from ...models.get_graph_billing_history_response_getgraphbillinghistory import (
|
|
10
|
+
GetGraphBillingHistoryResponseGetgraphbillinghistory,
|
|
11
|
+
)
|
|
12
|
+
from ...models.http_validation_error import HTTPValidationError
|
|
13
|
+
from ...types import UNSET, Response, Unset
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def _get_kwargs(
|
|
17
|
+
graph_id: str,
|
|
18
|
+
*,
|
|
19
|
+
months: Union[Unset, int] = 6,
|
|
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["months"] = months
|
|
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}/billing/history",
|
|
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[
|
|
52
|
+
ErrorResponse,
|
|
53
|
+
GetGraphBillingHistoryResponseGetgraphbillinghistory,
|
|
54
|
+
HTTPValidationError,
|
|
55
|
+
]
|
|
56
|
+
]:
|
|
57
|
+
if response.status_code == 200:
|
|
58
|
+
response_200 = GetGraphBillingHistoryResponseGetgraphbillinghistory.from_dict(
|
|
59
|
+
response.json()
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
return response_200
|
|
63
|
+
if response.status_code == 403:
|
|
64
|
+
response_403 = ErrorResponse.from_dict(response.json())
|
|
65
|
+
|
|
66
|
+
return response_403
|
|
67
|
+
if response.status_code == 404:
|
|
68
|
+
response_404 = ErrorResponse.from_dict(response.json())
|
|
69
|
+
|
|
70
|
+
return response_404
|
|
71
|
+
if response.status_code == 500:
|
|
72
|
+
response_500 = ErrorResponse.from_dict(response.json())
|
|
73
|
+
|
|
74
|
+
return response_500
|
|
75
|
+
if response.status_code == 422:
|
|
76
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
77
|
+
|
|
78
|
+
return response_422
|
|
79
|
+
if client.raise_on_unexpected_status:
|
|
80
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
81
|
+
else:
|
|
82
|
+
return None
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def _build_response(
|
|
86
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
87
|
+
) -> Response[
|
|
88
|
+
Union[
|
|
89
|
+
ErrorResponse,
|
|
90
|
+
GetGraphBillingHistoryResponseGetgraphbillinghistory,
|
|
91
|
+
HTTPValidationError,
|
|
92
|
+
]
|
|
93
|
+
]:
|
|
94
|
+
return Response(
|
|
95
|
+
status_code=HTTPStatus(response.status_code),
|
|
96
|
+
content=response.content,
|
|
97
|
+
headers=response.headers,
|
|
98
|
+
parsed=_parse_response(client=client, response=response),
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
def sync_detailed(
|
|
103
|
+
graph_id: str,
|
|
104
|
+
*,
|
|
105
|
+
client: AuthenticatedClient,
|
|
106
|
+
months: Union[Unset, int] = 6,
|
|
107
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
108
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
109
|
+
) -> Response[
|
|
110
|
+
Union[
|
|
111
|
+
ErrorResponse,
|
|
112
|
+
GetGraphBillingHistoryResponseGetgraphbillinghistory,
|
|
113
|
+
HTTPValidationError,
|
|
114
|
+
]
|
|
115
|
+
]:
|
|
116
|
+
"""Get Billing History
|
|
117
|
+
|
|
118
|
+
Get billing history for the graph.
|
|
119
|
+
|
|
120
|
+
Returns a chronological list of monthly bills, perfect for:
|
|
121
|
+
- Tracking spending trends over time
|
|
122
|
+
- Identifying usage patterns
|
|
123
|
+
- Budget forecasting
|
|
124
|
+
- Financial reporting
|
|
125
|
+
|
|
126
|
+
Each month includes:
|
|
127
|
+
- Credit usage and overages
|
|
128
|
+
- Storage charges
|
|
129
|
+
- Total charges
|
|
130
|
+
- Usage metrics
|
|
131
|
+
|
|
132
|
+
ℹ️ No credits are consumed for viewing billing history.
|
|
133
|
+
|
|
134
|
+
Args:
|
|
135
|
+
graph_id (str): Graph database identifier
|
|
136
|
+
months (Union[Unset, int]): Number of months to retrieve (1-24) Default: 6.
|
|
137
|
+
authorization (Union[None, Unset, str]):
|
|
138
|
+
auth_token (Union[None, Unset, str]):
|
|
139
|
+
|
|
140
|
+
Raises:
|
|
141
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
142
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
143
|
+
|
|
144
|
+
Returns:
|
|
145
|
+
Response[Union[ErrorResponse, GetGraphBillingHistoryResponseGetgraphbillinghistory, HTTPValidationError]]
|
|
146
|
+
"""
|
|
147
|
+
|
|
148
|
+
kwargs = _get_kwargs(
|
|
149
|
+
graph_id=graph_id,
|
|
150
|
+
months=months,
|
|
151
|
+
authorization=authorization,
|
|
152
|
+
auth_token=auth_token,
|
|
153
|
+
)
|
|
154
|
+
|
|
155
|
+
response = client.get_httpx_client().request(
|
|
156
|
+
**kwargs,
|
|
157
|
+
)
|
|
158
|
+
|
|
159
|
+
return _build_response(client=client, response=response)
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
def sync(
|
|
163
|
+
graph_id: str,
|
|
164
|
+
*,
|
|
165
|
+
client: AuthenticatedClient,
|
|
166
|
+
months: Union[Unset, int] = 6,
|
|
167
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
168
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
169
|
+
) -> Optional[
|
|
170
|
+
Union[
|
|
171
|
+
ErrorResponse,
|
|
172
|
+
GetGraphBillingHistoryResponseGetgraphbillinghistory,
|
|
173
|
+
HTTPValidationError,
|
|
174
|
+
]
|
|
175
|
+
]:
|
|
176
|
+
"""Get Billing History
|
|
177
|
+
|
|
178
|
+
Get billing history for the graph.
|
|
179
|
+
|
|
180
|
+
Returns a chronological list of monthly bills, perfect for:
|
|
181
|
+
- Tracking spending trends over time
|
|
182
|
+
- Identifying usage patterns
|
|
183
|
+
- Budget forecasting
|
|
184
|
+
- Financial reporting
|
|
185
|
+
|
|
186
|
+
Each month includes:
|
|
187
|
+
- Credit usage and overages
|
|
188
|
+
- Storage charges
|
|
189
|
+
- Total charges
|
|
190
|
+
- Usage metrics
|
|
191
|
+
|
|
192
|
+
ℹ️ No credits are consumed for viewing billing history.
|
|
193
|
+
|
|
194
|
+
Args:
|
|
195
|
+
graph_id (str): Graph database identifier
|
|
196
|
+
months (Union[Unset, int]): Number of months to retrieve (1-24) Default: 6.
|
|
197
|
+
authorization (Union[None, Unset, str]):
|
|
198
|
+
auth_token (Union[None, Unset, str]):
|
|
199
|
+
|
|
200
|
+
Raises:
|
|
201
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
202
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
203
|
+
|
|
204
|
+
Returns:
|
|
205
|
+
Union[ErrorResponse, GetGraphBillingHistoryResponseGetgraphbillinghistory, HTTPValidationError]
|
|
206
|
+
"""
|
|
207
|
+
|
|
208
|
+
return sync_detailed(
|
|
209
|
+
graph_id=graph_id,
|
|
210
|
+
client=client,
|
|
211
|
+
months=months,
|
|
212
|
+
authorization=authorization,
|
|
213
|
+
auth_token=auth_token,
|
|
214
|
+
).parsed
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
async def asyncio_detailed(
|
|
218
|
+
graph_id: str,
|
|
219
|
+
*,
|
|
220
|
+
client: AuthenticatedClient,
|
|
221
|
+
months: Union[Unset, int] = 6,
|
|
222
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
223
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
224
|
+
) -> Response[
|
|
225
|
+
Union[
|
|
226
|
+
ErrorResponse,
|
|
227
|
+
GetGraphBillingHistoryResponseGetgraphbillinghistory,
|
|
228
|
+
HTTPValidationError,
|
|
229
|
+
]
|
|
230
|
+
]:
|
|
231
|
+
"""Get Billing History
|
|
232
|
+
|
|
233
|
+
Get billing history for the graph.
|
|
234
|
+
|
|
235
|
+
Returns a chronological list of monthly bills, perfect for:
|
|
236
|
+
- Tracking spending trends over time
|
|
237
|
+
- Identifying usage patterns
|
|
238
|
+
- Budget forecasting
|
|
239
|
+
- Financial reporting
|
|
240
|
+
|
|
241
|
+
Each month includes:
|
|
242
|
+
- Credit usage and overages
|
|
243
|
+
- Storage charges
|
|
244
|
+
- Total charges
|
|
245
|
+
- Usage metrics
|
|
246
|
+
|
|
247
|
+
ℹ️ No credits are consumed for viewing billing history.
|
|
248
|
+
|
|
249
|
+
Args:
|
|
250
|
+
graph_id (str): Graph database identifier
|
|
251
|
+
months (Union[Unset, int]): Number of months to retrieve (1-24) Default: 6.
|
|
252
|
+
authorization (Union[None, Unset, str]):
|
|
253
|
+
auth_token (Union[None, Unset, str]):
|
|
254
|
+
|
|
255
|
+
Raises:
|
|
256
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
257
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
258
|
+
|
|
259
|
+
Returns:
|
|
260
|
+
Response[Union[ErrorResponse, GetGraphBillingHistoryResponseGetgraphbillinghistory, HTTPValidationError]]
|
|
261
|
+
"""
|
|
262
|
+
|
|
263
|
+
kwargs = _get_kwargs(
|
|
264
|
+
graph_id=graph_id,
|
|
265
|
+
months=months,
|
|
266
|
+
authorization=authorization,
|
|
267
|
+
auth_token=auth_token,
|
|
268
|
+
)
|
|
269
|
+
|
|
270
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
271
|
+
|
|
272
|
+
return _build_response(client=client, response=response)
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
async def asyncio(
|
|
276
|
+
graph_id: str,
|
|
277
|
+
*,
|
|
278
|
+
client: AuthenticatedClient,
|
|
279
|
+
months: Union[Unset, int] = 6,
|
|
280
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
281
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
282
|
+
) -> Optional[
|
|
283
|
+
Union[
|
|
284
|
+
ErrorResponse,
|
|
285
|
+
GetGraphBillingHistoryResponseGetgraphbillinghistory,
|
|
286
|
+
HTTPValidationError,
|
|
287
|
+
]
|
|
288
|
+
]:
|
|
289
|
+
"""Get Billing History
|
|
290
|
+
|
|
291
|
+
Get billing history for the graph.
|
|
292
|
+
|
|
293
|
+
Returns a chronological list of monthly bills, perfect for:
|
|
294
|
+
- Tracking spending trends over time
|
|
295
|
+
- Identifying usage patterns
|
|
296
|
+
- Budget forecasting
|
|
297
|
+
- Financial reporting
|
|
298
|
+
|
|
299
|
+
Each month includes:
|
|
300
|
+
- Credit usage and overages
|
|
301
|
+
- Storage charges
|
|
302
|
+
- Total charges
|
|
303
|
+
- Usage metrics
|
|
304
|
+
|
|
305
|
+
ℹ️ No credits are consumed for viewing billing history.
|
|
306
|
+
|
|
307
|
+
Args:
|
|
308
|
+
graph_id (str): Graph database identifier
|
|
309
|
+
months (Union[Unset, int]): Number of months to retrieve (1-24) Default: 6.
|
|
310
|
+
authorization (Union[None, Unset, str]):
|
|
311
|
+
auth_token (Union[None, Unset, str]):
|
|
312
|
+
|
|
313
|
+
Raises:
|
|
314
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
315
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
316
|
+
|
|
317
|
+
Returns:
|
|
318
|
+
Union[ErrorResponse, GetGraphBillingHistoryResponseGetgraphbillinghistory, HTTPValidationError]
|
|
319
|
+
"""
|
|
320
|
+
|
|
321
|
+
return (
|
|
322
|
+
await asyncio_detailed(
|
|
323
|
+
graph_id=graph_id,
|
|
324
|
+
client=client,
|
|
325
|
+
months=months,
|
|
326
|
+
authorization=authorization,
|
|
327
|
+
auth_token=auth_token,
|
|
328
|
+
)
|
|
329
|
+
).parsed
|
|
@@ -0,0 +1,315 @@
|
|
|
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.error_response import ErrorResponse
|
|
9
|
+
from ...models.get_graph_monthly_bill_response_getgraphmonthlybill import (
|
|
10
|
+
GetGraphMonthlyBillResponseGetgraphmonthlybill,
|
|
11
|
+
)
|
|
12
|
+
from ...models.http_validation_error import HTTPValidationError
|
|
13
|
+
from ...types import UNSET, Response, Unset
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def _get_kwargs(
|
|
17
|
+
graph_id: str,
|
|
18
|
+
year: int,
|
|
19
|
+
month: int,
|
|
20
|
+
*,
|
|
21
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
22
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
23
|
+
) -> dict[str, Any]:
|
|
24
|
+
headers: dict[str, Any] = {}
|
|
25
|
+
if not isinstance(authorization, Unset):
|
|
26
|
+
headers["authorization"] = authorization
|
|
27
|
+
|
|
28
|
+
cookies = {}
|
|
29
|
+
if auth_token is not UNSET:
|
|
30
|
+
cookies["auth-token"] = auth_token
|
|
31
|
+
|
|
32
|
+
_kwargs: dict[str, Any] = {
|
|
33
|
+
"method": "get",
|
|
34
|
+
"url": f"/v1/{graph_id}/billing/history/{year}/{month}",
|
|
35
|
+
"cookies": cookies,
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
_kwargs["headers"] = headers
|
|
39
|
+
return _kwargs
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def _parse_response(
|
|
43
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
44
|
+
) -> Optional[
|
|
45
|
+
Union[
|
|
46
|
+
ErrorResponse, GetGraphMonthlyBillResponseGetgraphmonthlybill, HTTPValidationError
|
|
47
|
+
]
|
|
48
|
+
]:
|
|
49
|
+
if response.status_code == 200:
|
|
50
|
+
response_200 = GetGraphMonthlyBillResponseGetgraphmonthlybill.from_dict(
|
|
51
|
+
response.json()
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
return response_200
|
|
55
|
+
if response.status_code == 400:
|
|
56
|
+
response_400 = ErrorResponse.from_dict(response.json())
|
|
57
|
+
|
|
58
|
+
return response_400
|
|
59
|
+
if response.status_code == 403:
|
|
60
|
+
response_403 = ErrorResponse.from_dict(response.json())
|
|
61
|
+
|
|
62
|
+
return response_403
|
|
63
|
+
if response.status_code == 404:
|
|
64
|
+
response_404 = ErrorResponse.from_dict(response.json())
|
|
65
|
+
|
|
66
|
+
return response_404
|
|
67
|
+
if response.status_code == 500:
|
|
68
|
+
response_500 = ErrorResponse.from_dict(response.json())
|
|
69
|
+
|
|
70
|
+
return response_500
|
|
71
|
+
if response.status_code == 422:
|
|
72
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
73
|
+
|
|
74
|
+
return response_422
|
|
75
|
+
if client.raise_on_unexpected_status:
|
|
76
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
77
|
+
else:
|
|
78
|
+
return None
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
def _build_response(
|
|
82
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
83
|
+
) -> Response[
|
|
84
|
+
Union[
|
|
85
|
+
ErrorResponse, GetGraphMonthlyBillResponseGetgraphmonthlybill, HTTPValidationError
|
|
86
|
+
]
|
|
87
|
+
]:
|
|
88
|
+
return Response(
|
|
89
|
+
status_code=HTTPStatus(response.status_code),
|
|
90
|
+
content=response.content,
|
|
91
|
+
headers=response.headers,
|
|
92
|
+
parsed=_parse_response(client=client, response=response),
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
def sync_detailed(
|
|
97
|
+
graph_id: str,
|
|
98
|
+
year: int,
|
|
99
|
+
month: int,
|
|
100
|
+
*,
|
|
101
|
+
client: AuthenticatedClient,
|
|
102
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
103
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
104
|
+
) -> Response[
|
|
105
|
+
Union[
|
|
106
|
+
ErrorResponse, GetGraphMonthlyBillResponseGetgraphmonthlybill, HTTPValidationError
|
|
107
|
+
]
|
|
108
|
+
]:
|
|
109
|
+
"""Get Monthly Bill
|
|
110
|
+
|
|
111
|
+
Get billing details for a specific month.
|
|
112
|
+
|
|
113
|
+
Retrieve historical billing information for any previous month.
|
|
114
|
+
Useful for:
|
|
115
|
+
- Reconciling past charges
|
|
116
|
+
- Tracking usage trends
|
|
117
|
+
- Expense reporting
|
|
118
|
+
- Budget analysis
|
|
119
|
+
|
|
120
|
+
Returns the same detailed breakdown as the current bill endpoint.
|
|
121
|
+
|
|
122
|
+
ℹ️ No credits are consumed for viewing billing history.
|
|
123
|
+
|
|
124
|
+
Args:
|
|
125
|
+
graph_id (str): Graph database identifier
|
|
126
|
+
year (int): Year (2024-2030)
|
|
127
|
+
month (int): Month (1-12)
|
|
128
|
+
authorization (Union[None, Unset, str]):
|
|
129
|
+
auth_token (Union[None, Unset, str]):
|
|
130
|
+
|
|
131
|
+
Raises:
|
|
132
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
133
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
134
|
+
|
|
135
|
+
Returns:
|
|
136
|
+
Response[Union[ErrorResponse, GetGraphMonthlyBillResponseGetgraphmonthlybill, HTTPValidationError]]
|
|
137
|
+
"""
|
|
138
|
+
|
|
139
|
+
kwargs = _get_kwargs(
|
|
140
|
+
graph_id=graph_id,
|
|
141
|
+
year=year,
|
|
142
|
+
month=month,
|
|
143
|
+
authorization=authorization,
|
|
144
|
+
auth_token=auth_token,
|
|
145
|
+
)
|
|
146
|
+
|
|
147
|
+
response = client.get_httpx_client().request(
|
|
148
|
+
**kwargs,
|
|
149
|
+
)
|
|
150
|
+
|
|
151
|
+
return _build_response(client=client, response=response)
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
def sync(
|
|
155
|
+
graph_id: str,
|
|
156
|
+
year: int,
|
|
157
|
+
month: int,
|
|
158
|
+
*,
|
|
159
|
+
client: AuthenticatedClient,
|
|
160
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
161
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
162
|
+
) -> Optional[
|
|
163
|
+
Union[
|
|
164
|
+
ErrorResponse, GetGraphMonthlyBillResponseGetgraphmonthlybill, HTTPValidationError
|
|
165
|
+
]
|
|
166
|
+
]:
|
|
167
|
+
"""Get Monthly Bill
|
|
168
|
+
|
|
169
|
+
Get billing details for a specific month.
|
|
170
|
+
|
|
171
|
+
Retrieve historical billing information for any previous month.
|
|
172
|
+
Useful for:
|
|
173
|
+
- Reconciling past charges
|
|
174
|
+
- Tracking usage trends
|
|
175
|
+
- Expense reporting
|
|
176
|
+
- Budget analysis
|
|
177
|
+
|
|
178
|
+
Returns the same detailed breakdown as the current bill endpoint.
|
|
179
|
+
|
|
180
|
+
ℹ️ No credits are consumed for viewing billing history.
|
|
181
|
+
|
|
182
|
+
Args:
|
|
183
|
+
graph_id (str): Graph database identifier
|
|
184
|
+
year (int): Year (2024-2030)
|
|
185
|
+
month (int): Month (1-12)
|
|
186
|
+
authorization (Union[None, Unset, str]):
|
|
187
|
+
auth_token (Union[None, Unset, str]):
|
|
188
|
+
|
|
189
|
+
Raises:
|
|
190
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
191
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
192
|
+
|
|
193
|
+
Returns:
|
|
194
|
+
Union[ErrorResponse, GetGraphMonthlyBillResponseGetgraphmonthlybill, HTTPValidationError]
|
|
195
|
+
"""
|
|
196
|
+
|
|
197
|
+
return sync_detailed(
|
|
198
|
+
graph_id=graph_id,
|
|
199
|
+
year=year,
|
|
200
|
+
month=month,
|
|
201
|
+
client=client,
|
|
202
|
+
authorization=authorization,
|
|
203
|
+
auth_token=auth_token,
|
|
204
|
+
).parsed
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
async def asyncio_detailed(
|
|
208
|
+
graph_id: str,
|
|
209
|
+
year: int,
|
|
210
|
+
month: int,
|
|
211
|
+
*,
|
|
212
|
+
client: AuthenticatedClient,
|
|
213
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
214
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
215
|
+
) -> Response[
|
|
216
|
+
Union[
|
|
217
|
+
ErrorResponse, GetGraphMonthlyBillResponseGetgraphmonthlybill, HTTPValidationError
|
|
218
|
+
]
|
|
219
|
+
]:
|
|
220
|
+
"""Get Monthly Bill
|
|
221
|
+
|
|
222
|
+
Get billing details for a specific month.
|
|
223
|
+
|
|
224
|
+
Retrieve historical billing information for any previous month.
|
|
225
|
+
Useful for:
|
|
226
|
+
- Reconciling past charges
|
|
227
|
+
- Tracking usage trends
|
|
228
|
+
- Expense reporting
|
|
229
|
+
- Budget analysis
|
|
230
|
+
|
|
231
|
+
Returns the same detailed breakdown as the current bill endpoint.
|
|
232
|
+
|
|
233
|
+
ℹ️ No credits are consumed for viewing billing history.
|
|
234
|
+
|
|
235
|
+
Args:
|
|
236
|
+
graph_id (str): Graph database identifier
|
|
237
|
+
year (int): Year (2024-2030)
|
|
238
|
+
month (int): Month (1-12)
|
|
239
|
+
authorization (Union[None, Unset, str]):
|
|
240
|
+
auth_token (Union[None, Unset, str]):
|
|
241
|
+
|
|
242
|
+
Raises:
|
|
243
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
244
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
245
|
+
|
|
246
|
+
Returns:
|
|
247
|
+
Response[Union[ErrorResponse, GetGraphMonthlyBillResponseGetgraphmonthlybill, HTTPValidationError]]
|
|
248
|
+
"""
|
|
249
|
+
|
|
250
|
+
kwargs = _get_kwargs(
|
|
251
|
+
graph_id=graph_id,
|
|
252
|
+
year=year,
|
|
253
|
+
month=month,
|
|
254
|
+
authorization=authorization,
|
|
255
|
+
auth_token=auth_token,
|
|
256
|
+
)
|
|
257
|
+
|
|
258
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
259
|
+
|
|
260
|
+
return _build_response(client=client, response=response)
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
async def asyncio(
|
|
264
|
+
graph_id: str,
|
|
265
|
+
year: int,
|
|
266
|
+
month: int,
|
|
267
|
+
*,
|
|
268
|
+
client: AuthenticatedClient,
|
|
269
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
270
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
271
|
+
) -> Optional[
|
|
272
|
+
Union[
|
|
273
|
+
ErrorResponse, GetGraphMonthlyBillResponseGetgraphmonthlybill, HTTPValidationError
|
|
274
|
+
]
|
|
275
|
+
]:
|
|
276
|
+
"""Get Monthly Bill
|
|
277
|
+
|
|
278
|
+
Get billing details for a specific month.
|
|
279
|
+
|
|
280
|
+
Retrieve historical billing information for any previous month.
|
|
281
|
+
Useful for:
|
|
282
|
+
- Reconciling past charges
|
|
283
|
+
- Tracking usage trends
|
|
284
|
+
- Expense reporting
|
|
285
|
+
- Budget analysis
|
|
286
|
+
|
|
287
|
+
Returns the same detailed breakdown as the current bill endpoint.
|
|
288
|
+
|
|
289
|
+
ℹ️ No credits are consumed for viewing billing history.
|
|
290
|
+
|
|
291
|
+
Args:
|
|
292
|
+
graph_id (str): Graph database identifier
|
|
293
|
+
year (int): Year (2024-2030)
|
|
294
|
+
month (int): Month (1-12)
|
|
295
|
+
authorization (Union[None, Unset, str]):
|
|
296
|
+
auth_token (Union[None, Unset, str]):
|
|
297
|
+
|
|
298
|
+
Raises:
|
|
299
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
300
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
301
|
+
|
|
302
|
+
Returns:
|
|
303
|
+
Union[ErrorResponse, GetGraphMonthlyBillResponseGetgraphmonthlybill, HTTPValidationError]
|
|
304
|
+
"""
|
|
305
|
+
|
|
306
|
+
return (
|
|
307
|
+
await asyncio_detailed(
|
|
308
|
+
graph_id=graph_id,
|
|
309
|
+
year=year,
|
|
310
|
+
month=month,
|
|
311
|
+
client=client,
|
|
312
|
+
authorization=authorization,
|
|
313
|
+
auth_token=auth_token,
|
|
314
|
+
)
|
|
315
|
+
).parsed
|