robosystems-client 0.2.8__py3-none-any.whl → 0.2.10__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.
- robosystems_client/api/graphs/get_graphs.py +120 -92
- robosystems_client/api/{user_subscriptions/cancel_shared_repository_subscription.py → subscriptions/cancel_subscription.py} +41 -25
- robosystems_client/api/subscriptions/create_repository_subscription.py +217 -0
- robosystems_client/api/subscriptions/get_graph_subscription.py +197 -0
- robosystems_client/api/{user_subscriptions/upgrade_shared_repository_subscription.py → subscriptions/upgrade_subscription.py} +57 -55
- robosystems_client/api/usage/get_graph_usage_analytics.py +377 -0
- robosystems_client/api/{user_limits/get_user_usage.py → user/get_user_limits.py} +13 -9
- robosystems_client/models/__init__.py +18 -82
- robosystems_client/models/{credits_summary_response_credits_by_addon_type_0_item.py → create_repository_subscription_request.py} +22 -6
- robosystems_client/models/credit_summary.py +55 -89
- robosystems_client/models/{graph_usage_response_storage_usage.py → credit_summary_operation_breakdown.py} +6 -6
- robosystems_client/models/graph_info.py +33 -2
- robosystems_client/models/graph_subscription_response.py +200 -0
- robosystems_client/models/graph_tier_instance.py +7 -7
- robosystems_client/models/graph_usage_response.py +136 -39
- robosystems_client/models/{user_analytics_response_limits.py → graph_usage_response_recent_events_item.py} +6 -6
- robosystems_client/models/performance_insights.py +120 -0
- robosystems_client/models/{graph_usage_response_recent_activity.py → performance_insights_operation_stats.py} +6 -6
- robosystems_client/models/{user_analytics_response_api_usage.py → performance_insights_slow_queries_item.py} +6 -6
- robosystems_client/models/storage_summary.py +100 -0
- robosystems_client/models/{tier_upgrade_request.py → upgrade_subscription_request.py} +12 -14
- {robosystems_client-0.2.8.dist-info → robosystems_client-0.2.10.dist-info}/METADATA +1 -1
- {robosystems_client-0.2.8.dist-info → robosystems_client-0.2.10.dist-info}/RECORD +34 -71
- robosystems_client/api/graph_analytics/get_graph_usage_stats.py +0 -289
- robosystems_client/api/graph_billing/get_current_graph_bill.py +0 -253
- robosystems_client/api/graph_billing/get_graph_billing_history.py +0 -298
- robosystems_client/api/graph_billing/get_graph_monthly_bill.py +0 -284
- robosystems_client/api/graph_billing/get_graph_usage_details.py +0 -320
- robosystems_client/api/user/get_all_credit_summaries.py +0 -169
- robosystems_client/api/user_analytics/__init__.py +0 -1
- robosystems_client/api/user_analytics/get_detailed_user_analytics.py +0 -188
- robosystems_client/api/user_analytics/get_user_usage_overview.py +0 -135
- robosystems_client/api/user_limits/__init__.py +0 -1
- robosystems_client/api/user_limits/get_all_shared_repository_limits.py +0 -141
- robosystems_client/api/user_limits/get_shared_repository_limits.py +0 -213
- robosystems_client/api/user_limits/get_user_limits.py +0 -139
- robosystems_client/api/user_subscriptions/__init__.py +0 -1
- robosystems_client/api/user_subscriptions/get_repository_credits.py +0 -173
- robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +0 -143
- robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +0 -181
- robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +0 -186
- robosystems_client/models/add_on_credit_info.py +0 -119
- robosystems_client/models/credits_summary_response.py +0 -148
- robosystems_client/models/get_all_credit_summaries_response_getallcreditsummaries.py +0 -44
- robosystems_client/models/get_all_shared_repository_limits_response_getallsharedrepositorylimits.py +0 -46
- robosystems_client/models/get_current_graph_bill_response_getcurrentgraphbill.py +0 -44
- robosystems_client/models/get_graph_billing_history_response_getgraphbillinghistory.py +0 -44
- robosystems_client/models/get_graph_monthly_bill_response_getgraphmonthlybill.py +0 -44
- robosystems_client/models/get_graph_usage_details_response_getgraphusagedetails.py +0 -44
- robosystems_client/models/get_shared_repository_limits_response_getsharedrepositorylimits.py +0 -44
- robosystems_client/models/graph_usage_response_query_statistics.py +0 -44
- robosystems_client/models/repository_credits_response.py +0 -128
- robosystems_client/models/repository_plan.py +0 -10
- robosystems_client/models/repository_type.py +0 -10
- robosystems_client/models/subscription_info.py +0 -152
- robosystems_client/models/subscription_info_metadata.py +0 -44
- robosystems_client/models/subscription_request.py +0 -80
- robosystems_client/models/subscription_response.py +0 -74
- robosystems_client/models/user_analytics_response.py +0 -132
- robosystems_client/models/user_analytics_response_graph_usage.py +0 -44
- robosystems_client/models/user_analytics_response_recent_activity_item.py +0 -44
- robosystems_client/models/user_analytics_response_user_info.py +0 -44
- robosystems_client/models/user_graph_summary.py +0 -134
- robosystems_client/models/user_subscriptions_response.py +0 -90
- robosystems_client/models/user_usage_summary_response.py +0 -130
- robosystems_client/models/user_usage_summary_response_usage_vs_limits.py +0 -44
- /robosystems_client/api/{graph_analytics → credits_}/__init__.py +0 -0
- /robosystems_client/api/{graph_credits → credits_}/check_credit_balance.py +0 -0
- /robosystems_client/api/{graph_credits → credits_}/check_storage_limits.py +0 -0
- /robosystems_client/api/{graph_credits → credits_}/get_credit_summary.py +0 -0
- /robosystems_client/api/{graph_credits → credits_}/get_storage_usage.py +0 -0
- /robosystems_client/api/{graph_credits → credits_}/list_credit_transactions.py +0 -0
- /robosystems_client/api/{graph_billing → subscriptions}/__init__.py +0 -0
- /robosystems_client/api/{graph_credits → usage}/__init__.py +0 -0
- /robosystems_client/api/{graph_analytics → usage}/get_graph_metrics.py +0 -0
- {robosystems_client-0.2.8.dist-info → robosystems_client-0.2.10.dist-info}/WHEEL +0 -0
- {robosystems_client-0.2.8.dist-info → robosystems_client-0.2.10.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,289 +0,0 @@
|
|
|
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.graph_usage_response import GraphUsageResponse
|
|
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
|
-
include_details: Union[Unset, bool] = False,
|
|
18
|
-
) -> dict[str, Any]:
|
|
19
|
-
params: dict[str, Any] = {}
|
|
20
|
-
|
|
21
|
-
params["include_details"] = include_details
|
|
22
|
-
|
|
23
|
-
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
24
|
-
|
|
25
|
-
_kwargs: dict[str, Any] = {
|
|
26
|
-
"method": "get",
|
|
27
|
-
"url": f"/v1/graphs/{graph_id}/analytics/usage",
|
|
28
|
-
"params": params,
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
return _kwargs
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
def _parse_response(
|
|
35
|
-
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
36
|
-
) -> Optional[Union[ErrorResponse, GraphUsageResponse, HTTPValidationError]]:
|
|
37
|
-
if response.status_code == 200:
|
|
38
|
-
response_200 = GraphUsageResponse.from_dict(response.json())
|
|
39
|
-
|
|
40
|
-
return response_200
|
|
41
|
-
|
|
42
|
-
if response.status_code == 403:
|
|
43
|
-
response_403 = ErrorResponse.from_dict(response.json())
|
|
44
|
-
|
|
45
|
-
return response_403
|
|
46
|
-
|
|
47
|
-
if response.status_code == 422:
|
|
48
|
-
response_422 = HTTPValidationError.from_dict(response.json())
|
|
49
|
-
|
|
50
|
-
return response_422
|
|
51
|
-
|
|
52
|
-
if response.status_code == 500:
|
|
53
|
-
response_500 = ErrorResponse.from_dict(response.json())
|
|
54
|
-
|
|
55
|
-
return response_500
|
|
56
|
-
|
|
57
|
-
if client.raise_on_unexpected_status:
|
|
58
|
-
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
59
|
-
else:
|
|
60
|
-
return None
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
def _build_response(
|
|
64
|
-
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
65
|
-
) -> Response[Union[ErrorResponse, GraphUsageResponse, HTTPValidationError]]:
|
|
66
|
-
return Response(
|
|
67
|
-
status_code=HTTPStatus(response.status_code),
|
|
68
|
-
content=response.content,
|
|
69
|
-
headers=response.headers,
|
|
70
|
-
parsed=_parse_response(client=client, response=response),
|
|
71
|
-
)
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
def sync_detailed(
|
|
75
|
-
graph_id: str,
|
|
76
|
-
*,
|
|
77
|
-
client: AuthenticatedClient,
|
|
78
|
-
include_details: Union[Unset, bool] = False,
|
|
79
|
-
) -> Response[Union[ErrorResponse, GraphUsageResponse, HTTPValidationError]]:
|
|
80
|
-
"""Get Usage Statistics
|
|
81
|
-
|
|
82
|
-
Get detailed usage statistics for the graph.
|
|
83
|
-
|
|
84
|
-
Provides temporal usage patterns including:
|
|
85
|
-
- **Query Volume**: API calls per day/hour
|
|
86
|
-
- **Credit Consumption**: Usage patterns and trends
|
|
87
|
-
- **Operation Breakdown**: Usage by operation type
|
|
88
|
-
- **User Activity**: Access patterns by user role
|
|
89
|
-
- **Peak Usage Times**: Identify high-activity periods
|
|
90
|
-
|
|
91
|
-
Time ranges available:
|
|
92
|
-
- Last 24 hours (hourly breakdown)
|
|
93
|
-
- Last 7 days (daily breakdown)
|
|
94
|
-
- Last 30 days (daily breakdown)
|
|
95
|
-
- Custom date ranges
|
|
96
|
-
|
|
97
|
-
Useful for:
|
|
98
|
-
- Capacity planning
|
|
99
|
-
- Cost optimization
|
|
100
|
-
- Usage trend analysis
|
|
101
|
-
- Performance tuning
|
|
102
|
-
|
|
103
|
-
Note:
|
|
104
|
-
This operation is included - no credit consumption required.
|
|
105
|
-
|
|
106
|
-
Args:
|
|
107
|
-
graph_id (str):
|
|
108
|
-
include_details (Union[Unset, bool]): Include detailed metrics (may be slower) Default:
|
|
109
|
-
False.
|
|
110
|
-
|
|
111
|
-
Raises:
|
|
112
|
-
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
113
|
-
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
114
|
-
|
|
115
|
-
Returns:
|
|
116
|
-
Response[Union[ErrorResponse, GraphUsageResponse, HTTPValidationError]]
|
|
117
|
-
"""
|
|
118
|
-
|
|
119
|
-
kwargs = _get_kwargs(
|
|
120
|
-
graph_id=graph_id,
|
|
121
|
-
include_details=include_details,
|
|
122
|
-
)
|
|
123
|
-
|
|
124
|
-
response = client.get_httpx_client().request(
|
|
125
|
-
**kwargs,
|
|
126
|
-
)
|
|
127
|
-
|
|
128
|
-
return _build_response(client=client, response=response)
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
def sync(
|
|
132
|
-
graph_id: str,
|
|
133
|
-
*,
|
|
134
|
-
client: AuthenticatedClient,
|
|
135
|
-
include_details: Union[Unset, bool] = False,
|
|
136
|
-
) -> Optional[Union[ErrorResponse, GraphUsageResponse, HTTPValidationError]]:
|
|
137
|
-
"""Get Usage Statistics
|
|
138
|
-
|
|
139
|
-
Get detailed usage statistics for the graph.
|
|
140
|
-
|
|
141
|
-
Provides temporal usage patterns including:
|
|
142
|
-
- **Query Volume**: API calls per day/hour
|
|
143
|
-
- **Credit Consumption**: Usage patterns and trends
|
|
144
|
-
- **Operation Breakdown**: Usage by operation type
|
|
145
|
-
- **User Activity**: Access patterns by user role
|
|
146
|
-
- **Peak Usage Times**: Identify high-activity periods
|
|
147
|
-
|
|
148
|
-
Time ranges available:
|
|
149
|
-
- Last 24 hours (hourly breakdown)
|
|
150
|
-
- Last 7 days (daily breakdown)
|
|
151
|
-
- Last 30 days (daily breakdown)
|
|
152
|
-
- Custom date ranges
|
|
153
|
-
|
|
154
|
-
Useful for:
|
|
155
|
-
- Capacity planning
|
|
156
|
-
- Cost optimization
|
|
157
|
-
- Usage trend analysis
|
|
158
|
-
- Performance tuning
|
|
159
|
-
|
|
160
|
-
Note:
|
|
161
|
-
This operation is included - no credit consumption required.
|
|
162
|
-
|
|
163
|
-
Args:
|
|
164
|
-
graph_id (str):
|
|
165
|
-
include_details (Union[Unset, bool]): Include detailed metrics (may be slower) Default:
|
|
166
|
-
False.
|
|
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[ErrorResponse, GraphUsageResponse, HTTPValidationError]
|
|
174
|
-
"""
|
|
175
|
-
|
|
176
|
-
return sync_detailed(
|
|
177
|
-
graph_id=graph_id,
|
|
178
|
-
client=client,
|
|
179
|
-
include_details=include_details,
|
|
180
|
-
).parsed
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
async def asyncio_detailed(
|
|
184
|
-
graph_id: str,
|
|
185
|
-
*,
|
|
186
|
-
client: AuthenticatedClient,
|
|
187
|
-
include_details: Union[Unset, bool] = False,
|
|
188
|
-
) -> Response[Union[ErrorResponse, GraphUsageResponse, HTTPValidationError]]:
|
|
189
|
-
"""Get Usage Statistics
|
|
190
|
-
|
|
191
|
-
Get detailed usage statistics for the graph.
|
|
192
|
-
|
|
193
|
-
Provides temporal usage patterns including:
|
|
194
|
-
- **Query Volume**: API calls per day/hour
|
|
195
|
-
- **Credit Consumption**: Usage patterns and trends
|
|
196
|
-
- **Operation Breakdown**: Usage by operation type
|
|
197
|
-
- **User Activity**: Access patterns by user role
|
|
198
|
-
- **Peak Usage Times**: Identify high-activity periods
|
|
199
|
-
|
|
200
|
-
Time ranges available:
|
|
201
|
-
- Last 24 hours (hourly breakdown)
|
|
202
|
-
- Last 7 days (daily breakdown)
|
|
203
|
-
- Last 30 days (daily breakdown)
|
|
204
|
-
- Custom date ranges
|
|
205
|
-
|
|
206
|
-
Useful for:
|
|
207
|
-
- Capacity planning
|
|
208
|
-
- Cost optimization
|
|
209
|
-
- Usage trend analysis
|
|
210
|
-
- Performance tuning
|
|
211
|
-
|
|
212
|
-
Note:
|
|
213
|
-
This operation is included - no credit consumption required.
|
|
214
|
-
|
|
215
|
-
Args:
|
|
216
|
-
graph_id (str):
|
|
217
|
-
include_details (Union[Unset, bool]): Include detailed metrics (may be slower) Default:
|
|
218
|
-
False.
|
|
219
|
-
|
|
220
|
-
Raises:
|
|
221
|
-
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
222
|
-
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
223
|
-
|
|
224
|
-
Returns:
|
|
225
|
-
Response[Union[ErrorResponse, GraphUsageResponse, HTTPValidationError]]
|
|
226
|
-
"""
|
|
227
|
-
|
|
228
|
-
kwargs = _get_kwargs(
|
|
229
|
-
graph_id=graph_id,
|
|
230
|
-
include_details=include_details,
|
|
231
|
-
)
|
|
232
|
-
|
|
233
|
-
response = await client.get_async_httpx_client().request(**kwargs)
|
|
234
|
-
|
|
235
|
-
return _build_response(client=client, response=response)
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
async def asyncio(
|
|
239
|
-
graph_id: str,
|
|
240
|
-
*,
|
|
241
|
-
client: AuthenticatedClient,
|
|
242
|
-
include_details: Union[Unset, bool] = False,
|
|
243
|
-
) -> Optional[Union[ErrorResponse, GraphUsageResponse, HTTPValidationError]]:
|
|
244
|
-
"""Get Usage Statistics
|
|
245
|
-
|
|
246
|
-
Get detailed usage statistics for the graph.
|
|
247
|
-
|
|
248
|
-
Provides temporal usage patterns including:
|
|
249
|
-
- **Query Volume**: API calls per day/hour
|
|
250
|
-
- **Credit Consumption**: Usage patterns and trends
|
|
251
|
-
- **Operation Breakdown**: Usage by operation type
|
|
252
|
-
- **User Activity**: Access patterns by user role
|
|
253
|
-
- **Peak Usage Times**: Identify high-activity periods
|
|
254
|
-
|
|
255
|
-
Time ranges available:
|
|
256
|
-
- Last 24 hours (hourly breakdown)
|
|
257
|
-
- Last 7 days (daily breakdown)
|
|
258
|
-
- Last 30 days (daily breakdown)
|
|
259
|
-
- Custom date ranges
|
|
260
|
-
|
|
261
|
-
Useful for:
|
|
262
|
-
- Capacity planning
|
|
263
|
-
- Cost optimization
|
|
264
|
-
- Usage trend analysis
|
|
265
|
-
- Performance tuning
|
|
266
|
-
|
|
267
|
-
Note:
|
|
268
|
-
This operation is included - no credit consumption required.
|
|
269
|
-
|
|
270
|
-
Args:
|
|
271
|
-
graph_id (str):
|
|
272
|
-
include_details (Union[Unset, bool]): Include detailed metrics (may be slower) Default:
|
|
273
|
-
False.
|
|
274
|
-
|
|
275
|
-
Raises:
|
|
276
|
-
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
277
|
-
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
278
|
-
|
|
279
|
-
Returns:
|
|
280
|
-
Union[ErrorResponse, GraphUsageResponse, HTTPValidationError]
|
|
281
|
-
"""
|
|
282
|
-
|
|
283
|
-
return (
|
|
284
|
-
await asyncio_detailed(
|
|
285
|
-
graph_id=graph_id,
|
|
286
|
-
client=client,
|
|
287
|
-
include_details=include_details,
|
|
288
|
-
)
|
|
289
|
-
).parsed
|
|
@@ -1,253 +0,0 @@
|
|
|
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_current_graph_bill_response_getcurrentgraphbill import (
|
|
10
|
-
GetCurrentGraphBillResponseGetcurrentgraphbill,
|
|
11
|
-
)
|
|
12
|
-
from ...models.http_validation_error import HTTPValidationError
|
|
13
|
-
from ...types import Response
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
def _get_kwargs(
|
|
17
|
-
graph_id: str,
|
|
18
|
-
) -> dict[str, Any]:
|
|
19
|
-
_kwargs: dict[str, Any] = {
|
|
20
|
-
"method": "get",
|
|
21
|
-
"url": f"/v1/graphs/{graph_id}/billing/current",
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
return _kwargs
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
def _parse_response(
|
|
28
|
-
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
29
|
-
) -> Optional[
|
|
30
|
-
Union[
|
|
31
|
-
ErrorResponse, GetCurrentGraphBillResponseGetcurrentgraphbill, HTTPValidationError
|
|
32
|
-
]
|
|
33
|
-
]:
|
|
34
|
-
if response.status_code == 200:
|
|
35
|
-
response_200 = GetCurrentGraphBillResponseGetcurrentgraphbill.from_dict(
|
|
36
|
-
response.json()
|
|
37
|
-
)
|
|
38
|
-
|
|
39
|
-
return response_200
|
|
40
|
-
|
|
41
|
-
if response.status_code == 403:
|
|
42
|
-
response_403 = ErrorResponse.from_dict(response.json())
|
|
43
|
-
|
|
44
|
-
return response_403
|
|
45
|
-
|
|
46
|
-
if response.status_code == 404:
|
|
47
|
-
response_404 = ErrorResponse.from_dict(response.json())
|
|
48
|
-
|
|
49
|
-
return response_404
|
|
50
|
-
|
|
51
|
-
if response.status_code == 422:
|
|
52
|
-
response_422 = HTTPValidationError.from_dict(response.json())
|
|
53
|
-
|
|
54
|
-
return response_422
|
|
55
|
-
|
|
56
|
-
if response.status_code == 500:
|
|
57
|
-
response_500 = ErrorResponse.from_dict(response.json())
|
|
58
|
-
|
|
59
|
-
return response_500
|
|
60
|
-
|
|
61
|
-
if client.raise_on_unexpected_status:
|
|
62
|
-
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
63
|
-
else:
|
|
64
|
-
return None
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
def _build_response(
|
|
68
|
-
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
69
|
-
) -> Response[
|
|
70
|
-
Union[
|
|
71
|
-
ErrorResponse, GetCurrentGraphBillResponseGetcurrentgraphbill, HTTPValidationError
|
|
72
|
-
]
|
|
73
|
-
]:
|
|
74
|
-
return Response(
|
|
75
|
-
status_code=HTTPStatus(response.status_code),
|
|
76
|
-
content=response.content,
|
|
77
|
-
headers=response.headers,
|
|
78
|
-
parsed=_parse_response(client=client, response=response),
|
|
79
|
-
)
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
def sync_detailed(
|
|
83
|
-
graph_id: str,
|
|
84
|
-
*,
|
|
85
|
-
client: AuthenticatedClient,
|
|
86
|
-
) -> Response[
|
|
87
|
-
Union[
|
|
88
|
-
ErrorResponse, GetCurrentGraphBillResponseGetcurrentgraphbill, HTTPValidationError
|
|
89
|
-
]
|
|
90
|
-
]:
|
|
91
|
-
"""Get Current Bill
|
|
92
|
-
|
|
93
|
-
Get current month's billing details for the graph.
|
|
94
|
-
|
|
95
|
-
Returns comprehensive billing information including:
|
|
96
|
-
- **Credit Usage**: Consumed vs. allocated credits
|
|
97
|
-
- **Storage Charges**: Current storage usage and costs
|
|
98
|
-
- **Subscription Tier**: Current plan and features
|
|
99
|
-
- **Pro-rated Charges**: If plan changed mid-month
|
|
100
|
-
- **Estimated Total**: Current charges to date
|
|
101
|
-
|
|
102
|
-
Billing calculations are updated hourly. Storage is measured in GB-months.
|
|
103
|
-
|
|
104
|
-
ℹ️ No credits are consumed for viewing billing information.
|
|
105
|
-
|
|
106
|
-
Args:
|
|
107
|
-
graph_id (str):
|
|
108
|
-
|
|
109
|
-
Raises:
|
|
110
|
-
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
111
|
-
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
112
|
-
|
|
113
|
-
Returns:
|
|
114
|
-
Response[Union[ErrorResponse, GetCurrentGraphBillResponseGetcurrentgraphbill, HTTPValidationError]]
|
|
115
|
-
"""
|
|
116
|
-
|
|
117
|
-
kwargs = _get_kwargs(
|
|
118
|
-
graph_id=graph_id,
|
|
119
|
-
)
|
|
120
|
-
|
|
121
|
-
response = client.get_httpx_client().request(
|
|
122
|
-
**kwargs,
|
|
123
|
-
)
|
|
124
|
-
|
|
125
|
-
return _build_response(client=client, response=response)
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
def sync(
|
|
129
|
-
graph_id: str,
|
|
130
|
-
*,
|
|
131
|
-
client: AuthenticatedClient,
|
|
132
|
-
) -> Optional[
|
|
133
|
-
Union[
|
|
134
|
-
ErrorResponse, GetCurrentGraphBillResponseGetcurrentgraphbill, HTTPValidationError
|
|
135
|
-
]
|
|
136
|
-
]:
|
|
137
|
-
"""Get Current Bill
|
|
138
|
-
|
|
139
|
-
Get current month's billing details for the graph.
|
|
140
|
-
|
|
141
|
-
Returns comprehensive billing information including:
|
|
142
|
-
- **Credit Usage**: Consumed vs. allocated credits
|
|
143
|
-
- **Storage Charges**: Current storage usage and costs
|
|
144
|
-
- **Subscription Tier**: Current plan and features
|
|
145
|
-
- **Pro-rated Charges**: If plan changed mid-month
|
|
146
|
-
- **Estimated Total**: Current charges to date
|
|
147
|
-
|
|
148
|
-
Billing calculations are updated hourly. Storage is measured in GB-months.
|
|
149
|
-
|
|
150
|
-
ℹ️ No credits are consumed for viewing billing information.
|
|
151
|
-
|
|
152
|
-
Args:
|
|
153
|
-
graph_id (str):
|
|
154
|
-
|
|
155
|
-
Raises:
|
|
156
|
-
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
157
|
-
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
158
|
-
|
|
159
|
-
Returns:
|
|
160
|
-
Union[ErrorResponse, GetCurrentGraphBillResponseGetcurrentgraphbill, HTTPValidationError]
|
|
161
|
-
"""
|
|
162
|
-
|
|
163
|
-
return sync_detailed(
|
|
164
|
-
graph_id=graph_id,
|
|
165
|
-
client=client,
|
|
166
|
-
).parsed
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
async def asyncio_detailed(
|
|
170
|
-
graph_id: str,
|
|
171
|
-
*,
|
|
172
|
-
client: AuthenticatedClient,
|
|
173
|
-
) -> Response[
|
|
174
|
-
Union[
|
|
175
|
-
ErrorResponse, GetCurrentGraphBillResponseGetcurrentgraphbill, HTTPValidationError
|
|
176
|
-
]
|
|
177
|
-
]:
|
|
178
|
-
"""Get Current Bill
|
|
179
|
-
|
|
180
|
-
Get current month's billing details for the graph.
|
|
181
|
-
|
|
182
|
-
Returns comprehensive billing information including:
|
|
183
|
-
- **Credit Usage**: Consumed vs. allocated credits
|
|
184
|
-
- **Storage Charges**: Current storage usage and costs
|
|
185
|
-
- **Subscription Tier**: Current plan and features
|
|
186
|
-
- **Pro-rated Charges**: If plan changed mid-month
|
|
187
|
-
- **Estimated Total**: Current charges to date
|
|
188
|
-
|
|
189
|
-
Billing calculations are updated hourly. Storage is measured in GB-months.
|
|
190
|
-
|
|
191
|
-
ℹ️ No credits are consumed for viewing billing information.
|
|
192
|
-
|
|
193
|
-
Args:
|
|
194
|
-
graph_id (str):
|
|
195
|
-
|
|
196
|
-
Raises:
|
|
197
|
-
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
198
|
-
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
199
|
-
|
|
200
|
-
Returns:
|
|
201
|
-
Response[Union[ErrorResponse, GetCurrentGraphBillResponseGetcurrentgraphbill, HTTPValidationError]]
|
|
202
|
-
"""
|
|
203
|
-
|
|
204
|
-
kwargs = _get_kwargs(
|
|
205
|
-
graph_id=graph_id,
|
|
206
|
-
)
|
|
207
|
-
|
|
208
|
-
response = await client.get_async_httpx_client().request(**kwargs)
|
|
209
|
-
|
|
210
|
-
return _build_response(client=client, response=response)
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
async def asyncio(
|
|
214
|
-
graph_id: str,
|
|
215
|
-
*,
|
|
216
|
-
client: AuthenticatedClient,
|
|
217
|
-
) -> Optional[
|
|
218
|
-
Union[
|
|
219
|
-
ErrorResponse, GetCurrentGraphBillResponseGetcurrentgraphbill, HTTPValidationError
|
|
220
|
-
]
|
|
221
|
-
]:
|
|
222
|
-
"""Get Current Bill
|
|
223
|
-
|
|
224
|
-
Get current month's billing details for the graph.
|
|
225
|
-
|
|
226
|
-
Returns comprehensive billing information including:
|
|
227
|
-
- **Credit Usage**: Consumed vs. allocated credits
|
|
228
|
-
- **Storage Charges**: Current storage usage and costs
|
|
229
|
-
- **Subscription Tier**: Current plan and features
|
|
230
|
-
- **Pro-rated Charges**: If plan changed mid-month
|
|
231
|
-
- **Estimated Total**: Current charges to date
|
|
232
|
-
|
|
233
|
-
Billing calculations are updated hourly. Storage is measured in GB-months.
|
|
234
|
-
|
|
235
|
-
ℹ️ No credits are consumed for viewing billing information.
|
|
236
|
-
|
|
237
|
-
Args:
|
|
238
|
-
graph_id (str):
|
|
239
|
-
|
|
240
|
-
Raises:
|
|
241
|
-
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
242
|
-
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
243
|
-
|
|
244
|
-
Returns:
|
|
245
|
-
Union[ErrorResponse, GetCurrentGraphBillResponseGetcurrentgraphbill, HTTPValidationError]
|
|
246
|
-
"""
|
|
247
|
-
|
|
248
|
-
return (
|
|
249
|
-
await asyncio_detailed(
|
|
250
|
-
graph_id=graph_id,
|
|
251
|
-
client=client,
|
|
252
|
-
)
|
|
253
|
-
).parsed
|