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
|
@@ -0,0 +1,197 @@
|
|
|
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.graph_subscription_response import GraphSubscriptionResponse
|
|
9
|
+
from ...models.http_validation_error import HTTPValidationError
|
|
10
|
+
from ...types import Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
graph_id: str,
|
|
15
|
+
) -> dict[str, Any]:
|
|
16
|
+
_kwargs: dict[str, Any] = {
|
|
17
|
+
"method": "get",
|
|
18
|
+
"url": f"/v1/graphs/{graph_id}/subscriptions",
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return _kwargs
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def _parse_response(
|
|
25
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
26
|
+
) -> Optional[Union[Any, GraphSubscriptionResponse, HTTPValidationError]]:
|
|
27
|
+
if response.status_code == 200:
|
|
28
|
+
response_200 = GraphSubscriptionResponse.from_dict(response.json())
|
|
29
|
+
|
|
30
|
+
return response_200
|
|
31
|
+
|
|
32
|
+
if response.status_code == 404:
|
|
33
|
+
response_404 = cast(Any, None)
|
|
34
|
+
return response_404
|
|
35
|
+
|
|
36
|
+
if response.status_code == 422:
|
|
37
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
38
|
+
|
|
39
|
+
return response_422
|
|
40
|
+
|
|
41
|
+
if client.raise_on_unexpected_status:
|
|
42
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
43
|
+
else:
|
|
44
|
+
return None
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def _build_response(
|
|
48
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
49
|
+
) -> Response[Union[Any, GraphSubscriptionResponse, HTTPValidationError]]:
|
|
50
|
+
return Response(
|
|
51
|
+
status_code=HTTPStatus(response.status_code),
|
|
52
|
+
content=response.content,
|
|
53
|
+
headers=response.headers,
|
|
54
|
+
parsed=_parse_response(client=client, response=response),
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def sync_detailed(
|
|
59
|
+
graph_id: str,
|
|
60
|
+
*,
|
|
61
|
+
client: AuthenticatedClient,
|
|
62
|
+
) -> Response[Union[Any, GraphSubscriptionResponse, HTTPValidationError]]:
|
|
63
|
+
"""Get Subscription
|
|
64
|
+
|
|
65
|
+
Get subscription details for a graph or shared repository.
|
|
66
|
+
|
|
67
|
+
For user graphs (kg*): Returns the graph's subscription (owned by graph creator)
|
|
68
|
+
For shared repositories (sec, industry, etc.): Returns user's personal subscription to that
|
|
69
|
+
repository
|
|
70
|
+
|
|
71
|
+
This unified endpoint automatically detects the resource type and returns the appropriate
|
|
72
|
+
subscription.
|
|
73
|
+
|
|
74
|
+
Args:
|
|
75
|
+
graph_id (str): Graph ID or repository name
|
|
76
|
+
|
|
77
|
+
Raises:
|
|
78
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
79
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
80
|
+
|
|
81
|
+
Returns:
|
|
82
|
+
Response[Union[Any, GraphSubscriptionResponse, HTTPValidationError]]
|
|
83
|
+
"""
|
|
84
|
+
|
|
85
|
+
kwargs = _get_kwargs(
|
|
86
|
+
graph_id=graph_id,
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
response = client.get_httpx_client().request(
|
|
90
|
+
**kwargs,
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
return _build_response(client=client, response=response)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
def sync(
|
|
97
|
+
graph_id: str,
|
|
98
|
+
*,
|
|
99
|
+
client: AuthenticatedClient,
|
|
100
|
+
) -> Optional[Union[Any, GraphSubscriptionResponse, HTTPValidationError]]:
|
|
101
|
+
"""Get Subscription
|
|
102
|
+
|
|
103
|
+
Get subscription details for a graph or shared repository.
|
|
104
|
+
|
|
105
|
+
For user graphs (kg*): Returns the graph's subscription (owned by graph creator)
|
|
106
|
+
For shared repositories (sec, industry, etc.): Returns user's personal subscription to that
|
|
107
|
+
repository
|
|
108
|
+
|
|
109
|
+
This unified endpoint automatically detects the resource type and returns the appropriate
|
|
110
|
+
subscription.
|
|
111
|
+
|
|
112
|
+
Args:
|
|
113
|
+
graph_id (str): Graph ID or repository name
|
|
114
|
+
|
|
115
|
+
Raises:
|
|
116
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
117
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
118
|
+
|
|
119
|
+
Returns:
|
|
120
|
+
Union[Any, GraphSubscriptionResponse, HTTPValidationError]
|
|
121
|
+
"""
|
|
122
|
+
|
|
123
|
+
return sync_detailed(
|
|
124
|
+
graph_id=graph_id,
|
|
125
|
+
client=client,
|
|
126
|
+
).parsed
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
async def asyncio_detailed(
|
|
130
|
+
graph_id: str,
|
|
131
|
+
*,
|
|
132
|
+
client: AuthenticatedClient,
|
|
133
|
+
) -> Response[Union[Any, GraphSubscriptionResponse, HTTPValidationError]]:
|
|
134
|
+
"""Get Subscription
|
|
135
|
+
|
|
136
|
+
Get subscription details for a graph or shared repository.
|
|
137
|
+
|
|
138
|
+
For user graphs (kg*): Returns the graph's subscription (owned by graph creator)
|
|
139
|
+
For shared repositories (sec, industry, etc.): Returns user's personal subscription to that
|
|
140
|
+
repository
|
|
141
|
+
|
|
142
|
+
This unified endpoint automatically detects the resource type and returns the appropriate
|
|
143
|
+
subscription.
|
|
144
|
+
|
|
145
|
+
Args:
|
|
146
|
+
graph_id (str): Graph ID or repository name
|
|
147
|
+
|
|
148
|
+
Raises:
|
|
149
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
150
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
151
|
+
|
|
152
|
+
Returns:
|
|
153
|
+
Response[Union[Any, GraphSubscriptionResponse, HTTPValidationError]]
|
|
154
|
+
"""
|
|
155
|
+
|
|
156
|
+
kwargs = _get_kwargs(
|
|
157
|
+
graph_id=graph_id,
|
|
158
|
+
)
|
|
159
|
+
|
|
160
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
161
|
+
|
|
162
|
+
return _build_response(client=client, response=response)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
async def asyncio(
|
|
166
|
+
graph_id: str,
|
|
167
|
+
*,
|
|
168
|
+
client: AuthenticatedClient,
|
|
169
|
+
) -> Optional[Union[Any, GraphSubscriptionResponse, HTTPValidationError]]:
|
|
170
|
+
"""Get Subscription
|
|
171
|
+
|
|
172
|
+
Get subscription details for a graph or shared repository.
|
|
173
|
+
|
|
174
|
+
For user graphs (kg*): Returns the graph's subscription (owned by graph creator)
|
|
175
|
+
For shared repositories (sec, industry, etc.): Returns user's personal subscription to that
|
|
176
|
+
repository
|
|
177
|
+
|
|
178
|
+
This unified endpoint automatically detects the resource type and returns the appropriate
|
|
179
|
+
subscription.
|
|
180
|
+
|
|
181
|
+
Args:
|
|
182
|
+
graph_id (str): Graph ID or repository name
|
|
183
|
+
|
|
184
|
+
Raises:
|
|
185
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
186
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
187
|
+
|
|
188
|
+
Returns:
|
|
189
|
+
Union[Any, GraphSubscriptionResponse, HTTPValidationError]
|
|
190
|
+
"""
|
|
191
|
+
|
|
192
|
+
return (
|
|
193
|
+
await asyncio_detailed(
|
|
194
|
+
graph_id=graph_id,
|
|
195
|
+
client=client,
|
|
196
|
+
)
|
|
197
|
+
).parsed
|
|
@@ -5,21 +5,22 @@ import httpx
|
|
|
5
5
|
|
|
6
6
|
from ... import errors
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.graph_subscription_response import GraphSubscriptionResponse
|
|
8
9
|
from ...models.http_validation_error import HTTPValidationError
|
|
9
|
-
from ...models.
|
|
10
|
+
from ...models.upgrade_subscription_request import UpgradeSubscriptionRequest
|
|
10
11
|
from ...types import Response
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
def _get_kwargs(
|
|
14
|
-
|
|
15
|
+
graph_id: str,
|
|
15
16
|
*,
|
|
16
|
-
body:
|
|
17
|
+
body: UpgradeSubscriptionRequest,
|
|
17
18
|
) -> dict[str, Any]:
|
|
18
19
|
headers: dict[str, Any] = {}
|
|
19
20
|
|
|
20
21
|
_kwargs: dict[str, Any] = {
|
|
21
22
|
"method": "put",
|
|
22
|
-
"url": f"/v1/
|
|
23
|
+
"url": f"/v1/graphs/{graph_id}/subscriptions/upgrade",
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
_kwargs["json"] = body.to_dict()
|
|
@@ -32,18 +33,11 @@ def _get_kwargs(
|
|
|
32
33
|
|
|
33
34
|
def _parse_response(
|
|
34
35
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
35
|
-
) -> Optional[Union[Any, HTTPValidationError]]:
|
|
36
|
+
) -> Optional[Union[Any, GraphSubscriptionResponse, HTTPValidationError]]:
|
|
36
37
|
if response.status_code == 200:
|
|
37
|
-
response_200 = response.json()
|
|
38
|
-
return response_200
|
|
39
|
-
|
|
40
|
-
if response.status_code == 400:
|
|
41
|
-
response_400 = cast(Any, None)
|
|
42
|
-
return response_400
|
|
38
|
+
response_200 = GraphSubscriptionResponse.from_dict(response.json())
|
|
43
39
|
|
|
44
|
-
|
|
45
|
-
response_401 = cast(Any, None)
|
|
46
|
-
return response_401
|
|
40
|
+
return response_200
|
|
47
41
|
|
|
48
42
|
if response.status_code == 404:
|
|
49
43
|
response_404 = cast(Any, None)
|
|
@@ -54,10 +48,6 @@ def _parse_response(
|
|
|
54
48
|
|
|
55
49
|
return response_422
|
|
56
50
|
|
|
57
|
-
if response.status_code == 500:
|
|
58
|
-
response_500 = cast(Any, None)
|
|
59
|
-
return response_500
|
|
60
|
-
|
|
61
51
|
if client.raise_on_unexpected_status:
|
|
62
52
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
63
53
|
else:
|
|
@@ -66,7 +56,7 @@ def _parse_response(
|
|
|
66
56
|
|
|
67
57
|
def _build_response(
|
|
68
58
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
69
|
-
) -> Response[Union[Any, HTTPValidationError]]:
|
|
59
|
+
) -> Response[Union[Any, GraphSubscriptionResponse, HTTPValidationError]]:
|
|
70
60
|
return Response(
|
|
71
61
|
status_code=HTTPStatus(response.status_code),
|
|
72
62
|
content=response.content,
|
|
@@ -76,29 +66,32 @@ def _build_response(
|
|
|
76
66
|
|
|
77
67
|
|
|
78
68
|
def sync_detailed(
|
|
79
|
-
|
|
69
|
+
graph_id: str,
|
|
80
70
|
*,
|
|
81
71
|
client: AuthenticatedClient,
|
|
82
|
-
body:
|
|
83
|
-
) -> Response[Union[Any, HTTPValidationError]]:
|
|
84
|
-
"""Upgrade Subscription
|
|
72
|
+
body: UpgradeSubscriptionRequest,
|
|
73
|
+
) -> Response[Union[Any, GraphSubscriptionResponse, HTTPValidationError]]:
|
|
74
|
+
"""Upgrade Subscription
|
|
85
75
|
|
|
86
|
-
Upgrade a subscription to a
|
|
76
|
+
Upgrade a subscription to a different plan.
|
|
77
|
+
|
|
78
|
+
Works for both user graphs and shared repositories.
|
|
79
|
+
The subscription will be immediately updated to the new plan and pricing.
|
|
87
80
|
|
|
88
81
|
Args:
|
|
89
|
-
|
|
90
|
-
body (
|
|
82
|
+
graph_id (str): Graph ID or repository name
|
|
83
|
+
body (UpgradeSubscriptionRequest): Request to upgrade a subscription.
|
|
91
84
|
|
|
92
85
|
Raises:
|
|
93
86
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
94
87
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
95
88
|
|
|
96
89
|
Returns:
|
|
97
|
-
Response[Union[Any, HTTPValidationError]]
|
|
90
|
+
Response[Union[Any, GraphSubscriptionResponse, HTTPValidationError]]
|
|
98
91
|
"""
|
|
99
92
|
|
|
100
93
|
kwargs = _get_kwargs(
|
|
101
|
-
|
|
94
|
+
graph_id=graph_id,
|
|
102
95
|
body=body,
|
|
103
96
|
)
|
|
104
97
|
|
|
@@ -110,58 +103,64 @@ def sync_detailed(
|
|
|
110
103
|
|
|
111
104
|
|
|
112
105
|
def sync(
|
|
113
|
-
|
|
106
|
+
graph_id: str,
|
|
114
107
|
*,
|
|
115
108
|
client: AuthenticatedClient,
|
|
116
|
-
body:
|
|
117
|
-
) -> Optional[Union[Any, HTTPValidationError]]:
|
|
118
|
-
"""Upgrade Subscription
|
|
109
|
+
body: UpgradeSubscriptionRequest,
|
|
110
|
+
) -> Optional[Union[Any, GraphSubscriptionResponse, HTTPValidationError]]:
|
|
111
|
+
"""Upgrade Subscription
|
|
112
|
+
|
|
113
|
+
Upgrade a subscription to a different plan.
|
|
119
114
|
|
|
120
|
-
|
|
115
|
+
Works for both user graphs and shared repositories.
|
|
116
|
+
The subscription will be immediately updated to the new plan and pricing.
|
|
121
117
|
|
|
122
118
|
Args:
|
|
123
|
-
|
|
124
|
-
body (
|
|
119
|
+
graph_id (str): Graph ID or repository name
|
|
120
|
+
body (UpgradeSubscriptionRequest): Request to upgrade a subscription.
|
|
125
121
|
|
|
126
122
|
Raises:
|
|
127
123
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
128
124
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
129
125
|
|
|
130
126
|
Returns:
|
|
131
|
-
Union[Any, HTTPValidationError]
|
|
127
|
+
Union[Any, GraphSubscriptionResponse, HTTPValidationError]
|
|
132
128
|
"""
|
|
133
129
|
|
|
134
130
|
return sync_detailed(
|
|
135
|
-
|
|
131
|
+
graph_id=graph_id,
|
|
136
132
|
client=client,
|
|
137
133
|
body=body,
|
|
138
134
|
).parsed
|
|
139
135
|
|
|
140
136
|
|
|
141
137
|
async def asyncio_detailed(
|
|
142
|
-
|
|
138
|
+
graph_id: str,
|
|
143
139
|
*,
|
|
144
140
|
client: AuthenticatedClient,
|
|
145
|
-
body:
|
|
146
|
-
) -> Response[Union[Any, HTTPValidationError]]:
|
|
147
|
-
"""Upgrade Subscription
|
|
141
|
+
body: UpgradeSubscriptionRequest,
|
|
142
|
+
) -> Response[Union[Any, GraphSubscriptionResponse, HTTPValidationError]]:
|
|
143
|
+
"""Upgrade Subscription
|
|
148
144
|
|
|
149
|
-
Upgrade a subscription to a
|
|
145
|
+
Upgrade a subscription to a different plan.
|
|
146
|
+
|
|
147
|
+
Works for both user graphs and shared repositories.
|
|
148
|
+
The subscription will be immediately updated to the new plan and pricing.
|
|
150
149
|
|
|
151
150
|
Args:
|
|
152
|
-
|
|
153
|
-
body (
|
|
151
|
+
graph_id (str): Graph ID or repository name
|
|
152
|
+
body (UpgradeSubscriptionRequest): Request to upgrade a subscription.
|
|
154
153
|
|
|
155
154
|
Raises:
|
|
156
155
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
157
156
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
158
157
|
|
|
159
158
|
Returns:
|
|
160
|
-
Response[Union[Any, HTTPValidationError]]
|
|
159
|
+
Response[Union[Any, GraphSubscriptionResponse, HTTPValidationError]]
|
|
161
160
|
"""
|
|
162
161
|
|
|
163
162
|
kwargs = _get_kwargs(
|
|
164
|
-
|
|
163
|
+
graph_id=graph_id,
|
|
165
164
|
body=body,
|
|
166
165
|
)
|
|
167
166
|
|
|
@@ -171,30 +170,33 @@ async def asyncio_detailed(
|
|
|
171
170
|
|
|
172
171
|
|
|
173
172
|
async def asyncio(
|
|
174
|
-
|
|
173
|
+
graph_id: str,
|
|
175
174
|
*,
|
|
176
175
|
client: AuthenticatedClient,
|
|
177
|
-
body:
|
|
178
|
-
) -> Optional[Union[Any, HTTPValidationError]]:
|
|
179
|
-
"""Upgrade Subscription
|
|
176
|
+
body: UpgradeSubscriptionRequest,
|
|
177
|
+
) -> Optional[Union[Any, GraphSubscriptionResponse, HTTPValidationError]]:
|
|
178
|
+
"""Upgrade Subscription
|
|
179
|
+
|
|
180
|
+
Upgrade a subscription to a different plan.
|
|
180
181
|
|
|
181
|
-
|
|
182
|
+
Works for both user graphs and shared repositories.
|
|
183
|
+
The subscription will be immediately updated to the new plan and pricing.
|
|
182
184
|
|
|
183
185
|
Args:
|
|
184
|
-
|
|
185
|
-
body (
|
|
186
|
+
graph_id (str): Graph ID or repository name
|
|
187
|
+
body (UpgradeSubscriptionRequest): Request to upgrade a subscription.
|
|
186
188
|
|
|
187
189
|
Raises:
|
|
188
190
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
189
191
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
190
192
|
|
|
191
193
|
Returns:
|
|
192
|
-
Union[Any, HTTPValidationError]
|
|
194
|
+
Union[Any, GraphSubscriptionResponse, HTTPValidationError]
|
|
193
195
|
"""
|
|
194
196
|
|
|
195
197
|
return (
|
|
196
198
|
await asyncio_detailed(
|
|
197
|
-
|
|
199
|
+
graph_id=graph_id,
|
|
198
200
|
client=client,
|
|
199
201
|
body=body,
|
|
200
202
|
)
|