robosystems-client 0.2.3__py3-none-any.whl → 0.2.5__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/api/agent/auto_select_agent.py +1 -41
- robosystems_client/api/agent/batch_process_queries.py +1 -41
- robosystems_client/api/agent/execute_specific_agent.py +1 -41
- robosystems_client/api/agent/get_agent_metadata.py +5 -49
- robosystems_client/api/agent/list_agents.py +4 -42
- robosystems_client/api/agent/recommend_agent.py +5 -45
- robosystems_client/api/auth/generate_sso_token.py +0 -18
- robosystems_client/api/auth/get_current_auth_user.py +14 -74
- robosystems_client/api/auth/logout_user.py +14 -50
- robosystems_client/api/auth/refresh_auth_session.py +14 -50
- robosystems_client/api/auth/resend_verification_email.py +14 -74
- robosystems_client/api/backup/create_backup.py +5 -45
- robosystems_client/api/backup/get_backup_download_url.py +4 -42
- robosystems_client/api/backup/get_backup_stats.py +5 -49
- robosystems_client/api/backup/list_backups.py +4 -42
- robosystems_client/api/backup/restore_backup.py +5 -45
- robosystems_client/api/connections/create_connection.py +5 -45
- robosystems_client/api/connections/create_link_token.py +5 -45
- robosystems_client/api/connections/delete_connection.py +5 -49
- robosystems_client/api/connections/exchange_link_token.py +5 -45
- robosystems_client/api/connections/get_connection.py +5 -49
- robosystems_client/api/connections/get_connection_options.py +5 -49
- robosystems_client/api/connections/init_o_auth.py +5 -45
- robosystems_client/api/connections/list_connections.py +4 -42
- robosystems_client/api/connections/oauth_callback.py +5 -45
- robosystems_client/api/connections/sync_connection.py +5 -45
- robosystems_client/api/graph_analytics/get_graph_metrics.py +5 -49
- robosystems_client/api/graph_analytics/get_graph_usage_stats.py +4 -42
- robosystems_client/api/graph_billing/get_current_graph_bill.py +5 -49
- robosystems_client/api/graph_billing/get_graph_billing_history.py +4 -42
- robosystems_client/api/graph_billing/get_graph_monthly_bill.py +5 -49
- robosystems_client/api/graph_billing/get_graph_usage_details.py +4 -42
- robosystems_client/api/graph_credits/check_credit_balance.py +0 -38
- robosystems_client/api/graph_credits/check_storage_limits.py +1 -45
- robosystems_client/api/graph_credits/get_credit_summary.py +1 -45
- robosystems_client/api/graph_credits/get_storage_usage.py +0 -38
- robosystems_client/api/graph_credits/list_credit_transactions.py +4 -42
- robosystems_client/api/graph_health/get_database_health.py +5 -49
- robosystems_client/api/graph_info/get_database_info.py +5 -49
- robosystems_client/api/graph_limits/get_graph_limits.py +5 -49
- robosystems_client/api/graphs/create_graph.py +21 -57
- robosystems_client/api/graphs/get_available_extensions.py +131 -15
- robosystems_client/api/graphs/get_graphs.py +154 -79
- robosystems_client/api/graphs/select_graph.py +117 -49
- robosystems_client/api/mcp/call_mcp_tool.py +24 -47
- robosystems_client/api/mcp/list_mcp_tools.py +13 -61
- robosystems_client/api/operations/cancel_operation.py +1 -45
- robosystems_client/api/operations/get_operation_status.py +1 -45
- robosystems_client/api/query/execute_cypher_query.py +69 -53
- robosystems_client/api/schema/export_graph_schema.py +223 -65
- robosystems_client/api/schema/get_graph_schema.py +137 -79
- robosystems_client/api/schema/validate_schema.py +5 -45
- robosystems_client/api/subgraphs/create_subgraph.py +5 -45
- robosystems_client/api/subgraphs/delete_subgraph.py +5 -45
- robosystems_client/api/subgraphs/get_subgraph_info.py +5 -49
- robosystems_client/api/subgraphs/get_subgraph_quota.py +5 -49
- robosystems_client/api/subgraphs/list_subgraphs.py +5 -49
- robosystems_client/api/tables/delete_file.py +181 -301
- robosystems_client/api/tables/get_file_info.py +117 -265
- robosystems_client/api/tables/get_upload_url.py +193 -389
- robosystems_client/api/tables/ingest_tables.py +277 -465
- robosystems_client/api/tables/list_table_files.py +193 -373
- robosystems_client/api/tables/list_tables.py +189 -361
- robosystems_client/api/tables/query_tables.py +85 -141
- robosystems_client/api/tables/update_file_status.py +205 -349
- robosystems_client/api/user/create_user_api_key.py +1 -41
- robosystems_client/api/user/get_all_credit_summaries.py +14 -111
- robosystems_client/api/user/get_current_user.py +14 -75
- robosystems_client/api/user/list_user_api_keys.py +14 -75
- robosystems_client/api/user/revoke_user_api_key.py +1 -45
- robosystems_client/api/user/update_user.py +1 -41
- robosystems_client/api/user/update_user_api_key.py +1 -41
- robosystems_client/api/user/update_user_password.py +1 -41
- robosystems_client/api/user_analytics/get_detailed_user_analytics.py +0 -38
- robosystems_client/api/user_analytics/get_user_usage_overview.py +14 -75
- robosystems_client/api/user_limits/get_all_shared_repository_limits.py +14 -105
- robosystems_client/api/user_limits/get_shared_repository_limits.py +1 -45
- robosystems_client/api/user_limits/get_user_limits.py +14 -75
- robosystems_client/api/user_limits/get_user_usage.py +14 -75
- robosystems_client/api/user_subscriptions/cancel_shared_repository_subscription.py +1 -45
- robosystems_client/api/user_subscriptions/get_repository_credits.py +1 -45
- robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +14 -75
- robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +0 -38
- robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +1 -41
- robosystems_client/api/user_subscriptions/upgrade_shared_repository_subscription.py +1 -41
- robosystems_client/extensions/__init__.py +8 -1
- robosystems_client/extensions/auth_integration.py +1 -2
- robosystems_client/extensions/query_client.py +3 -2
- robosystems_client/extensions/sse_client.py +1 -1
- robosystems_client/extensions/table_ingest_client.py +5 -0
- robosystems_client/extensions/utils.py +2 -2
- robosystems_client/models/__init__.py +4 -4
- robosystems_client/models/auth_response.py +40 -0
- robosystems_client/models/create_graph_request.py +4 -3
- robosystems_client/models/cypher_query_request.py +5 -22
- robosystems_client/models/schema_export_response.py +4 -2
- robosystems_client/models/schema_info_response.py +77 -0
- robosystems_client/models/{get_graph_schema_response_getgraphschema.py → schema_info_response_schema.py} +6 -6
- robosystems_client/models/schema_validation_response.py +7 -6
- robosystems_client/models/table_query_request.py +37 -2
- {robosystems_client-0.2.3.dist-info → robosystems_client-0.2.5.dist-info}/METADATA +2 -4
- {robosystems_client-0.2.3.dist-info → robosystems_client-0.2.5.dist-info}/RECORD +104 -103
- {robosystems_client-0.2.3.dist-info → robosystems_client-0.2.5.dist-info}/WHEEL +0 -0
- {robosystems_client-0.2.3.dist-info → robosystems_client-0.2.5.dist-info}/licenses/LICENSE +0 -0
|
@@ -17,24 +17,11 @@ def _get_kwargs(
|
|
|
17
17
|
backup_id: str,
|
|
18
18
|
*,
|
|
19
19
|
expires_in: Union[Unset, int] = 3600,
|
|
20
|
-
token: Union[None, Unset, str] = UNSET,
|
|
21
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
22
20
|
) -> dict[str, Any]:
|
|
23
|
-
headers: dict[str, Any] = {}
|
|
24
|
-
if not isinstance(authorization, Unset):
|
|
25
|
-
headers["authorization"] = authorization
|
|
26
|
-
|
|
27
21
|
params: dict[str, Any] = {}
|
|
28
22
|
|
|
29
23
|
params["expires_in"] = expires_in
|
|
30
24
|
|
|
31
|
-
json_token: Union[None, Unset, str]
|
|
32
|
-
if isinstance(token, Unset):
|
|
33
|
-
json_token = UNSET
|
|
34
|
-
else:
|
|
35
|
-
json_token = token
|
|
36
|
-
params["token"] = json_token
|
|
37
|
-
|
|
38
25
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
39
26
|
|
|
40
27
|
_kwargs: dict[str, Any] = {
|
|
@@ -43,7 +30,6 @@ def _get_kwargs(
|
|
|
43
30
|
"params": params,
|
|
44
31
|
}
|
|
45
32
|
|
|
46
|
-
_kwargs["headers"] = headers
|
|
47
33
|
return _kwargs
|
|
48
34
|
|
|
49
35
|
|
|
@@ -101,8 +87,6 @@ def sync_detailed(
|
|
|
101
87
|
*,
|
|
102
88
|
client: AuthenticatedClient,
|
|
103
89
|
expires_in: Union[Unset, int] = 3600,
|
|
104
|
-
token: Union[None, Unset, str] = UNSET,
|
|
105
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
106
90
|
) -> Response[
|
|
107
91
|
Union[Any, GetBackupDownloadUrlResponseGetbackupdownloadurl, HTTPValidationError]
|
|
108
92
|
]:
|
|
@@ -111,11 +95,9 @@ def sync_detailed(
|
|
|
111
95
|
Generate a temporary download URL for a backup (unencrypted, compressed .kuzu files only)
|
|
112
96
|
|
|
113
97
|
Args:
|
|
114
|
-
graph_id (str):
|
|
98
|
+
graph_id (str):
|
|
115
99
|
backup_id (str): Backup identifier
|
|
116
100
|
expires_in (Union[Unset, int]): URL expiration time in seconds Default: 3600.
|
|
117
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
118
|
-
authorization (Union[None, Unset, str]):
|
|
119
101
|
|
|
120
102
|
Raises:
|
|
121
103
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -129,8 +111,6 @@ def sync_detailed(
|
|
|
129
111
|
graph_id=graph_id,
|
|
130
112
|
backup_id=backup_id,
|
|
131
113
|
expires_in=expires_in,
|
|
132
|
-
token=token,
|
|
133
|
-
authorization=authorization,
|
|
134
114
|
)
|
|
135
115
|
|
|
136
116
|
response = client.get_httpx_client().request(
|
|
@@ -146,8 +126,6 @@ def sync(
|
|
|
146
126
|
*,
|
|
147
127
|
client: AuthenticatedClient,
|
|
148
128
|
expires_in: Union[Unset, int] = 3600,
|
|
149
|
-
token: Union[None, Unset, str] = UNSET,
|
|
150
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
151
129
|
) -> Optional[
|
|
152
130
|
Union[Any, GetBackupDownloadUrlResponseGetbackupdownloadurl, HTTPValidationError]
|
|
153
131
|
]:
|
|
@@ -156,11 +134,9 @@ def sync(
|
|
|
156
134
|
Generate a temporary download URL for a backup (unencrypted, compressed .kuzu files only)
|
|
157
135
|
|
|
158
136
|
Args:
|
|
159
|
-
graph_id (str):
|
|
137
|
+
graph_id (str):
|
|
160
138
|
backup_id (str): Backup identifier
|
|
161
139
|
expires_in (Union[Unset, int]): URL expiration time in seconds Default: 3600.
|
|
162
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
163
|
-
authorization (Union[None, Unset, str]):
|
|
164
140
|
|
|
165
141
|
Raises:
|
|
166
142
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -175,8 +151,6 @@ def sync(
|
|
|
175
151
|
backup_id=backup_id,
|
|
176
152
|
client=client,
|
|
177
153
|
expires_in=expires_in,
|
|
178
|
-
token=token,
|
|
179
|
-
authorization=authorization,
|
|
180
154
|
).parsed
|
|
181
155
|
|
|
182
156
|
|
|
@@ -186,8 +160,6 @@ async def asyncio_detailed(
|
|
|
186
160
|
*,
|
|
187
161
|
client: AuthenticatedClient,
|
|
188
162
|
expires_in: Union[Unset, int] = 3600,
|
|
189
|
-
token: Union[None, Unset, str] = UNSET,
|
|
190
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
191
163
|
) -> Response[
|
|
192
164
|
Union[Any, GetBackupDownloadUrlResponseGetbackupdownloadurl, HTTPValidationError]
|
|
193
165
|
]:
|
|
@@ -196,11 +168,9 @@ async def asyncio_detailed(
|
|
|
196
168
|
Generate a temporary download URL for a backup (unencrypted, compressed .kuzu files only)
|
|
197
169
|
|
|
198
170
|
Args:
|
|
199
|
-
graph_id (str):
|
|
171
|
+
graph_id (str):
|
|
200
172
|
backup_id (str): Backup identifier
|
|
201
173
|
expires_in (Union[Unset, int]): URL expiration time in seconds Default: 3600.
|
|
202
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
203
|
-
authorization (Union[None, Unset, str]):
|
|
204
174
|
|
|
205
175
|
Raises:
|
|
206
176
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -214,8 +184,6 @@ async def asyncio_detailed(
|
|
|
214
184
|
graph_id=graph_id,
|
|
215
185
|
backup_id=backup_id,
|
|
216
186
|
expires_in=expires_in,
|
|
217
|
-
token=token,
|
|
218
|
-
authorization=authorization,
|
|
219
187
|
)
|
|
220
188
|
|
|
221
189
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -229,8 +197,6 @@ async def asyncio(
|
|
|
229
197
|
*,
|
|
230
198
|
client: AuthenticatedClient,
|
|
231
199
|
expires_in: Union[Unset, int] = 3600,
|
|
232
|
-
token: Union[None, Unset, str] = UNSET,
|
|
233
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
234
200
|
) -> Optional[
|
|
235
201
|
Union[Any, GetBackupDownloadUrlResponseGetbackupdownloadurl, HTTPValidationError]
|
|
236
202
|
]:
|
|
@@ -239,11 +205,9 @@ async def asyncio(
|
|
|
239
205
|
Generate a temporary download URL for a backup (unencrypted, compressed .kuzu files only)
|
|
240
206
|
|
|
241
207
|
Args:
|
|
242
|
-
graph_id (str):
|
|
208
|
+
graph_id (str):
|
|
243
209
|
backup_id (str): Backup identifier
|
|
244
210
|
expires_in (Union[Unset, int]): URL expiration time in seconds Default: 3600.
|
|
245
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
246
|
-
authorization (Union[None, Unset, str]):
|
|
247
211
|
|
|
248
212
|
Raises:
|
|
249
213
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -259,7 +223,5 @@ async def asyncio(
|
|
|
259
223
|
backup_id=backup_id,
|
|
260
224
|
client=client,
|
|
261
225
|
expires_in=expires_in,
|
|
262
|
-
token=token,
|
|
263
|
-
authorization=authorization,
|
|
264
226
|
)
|
|
265
227
|
).parsed
|
|
@@ -7,37 +7,17 @@ from ... import errors
|
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
8
|
from ...models.backup_stats_response import BackupStatsResponse
|
|
9
9
|
from ...models.http_validation_error import HTTPValidationError
|
|
10
|
-
from ...types import
|
|
10
|
+
from ...types import Response
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
def _get_kwargs(
|
|
14
14
|
graph_id: str,
|
|
15
|
-
*,
|
|
16
|
-
token: Union[None, Unset, str] = UNSET,
|
|
17
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
18
15
|
) -> dict[str, Any]:
|
|
19
|
-
headers: dict[str, Any] = {}
|
|
20
|
-
if not isinstance(authorization, Unset):
|
|
21
|
-
headers["authorization"] = authorization
|
|
22
|
-
|
|
23
|
-
params: dict[str, Any] = {}
|
|
24
|
-
|
|
25
|
-
json_token: Union[None, Unset, str]
|
|
26
|
-
if isinstance(token, Unset):
|
|
27
|
-
json_token = UNSET
|
|
28
|
-
else:
|
|
29
|
-
json_token = token
|
|
30
|
-
params["token"] = json_token
|
|
31
|
-
|
|
32
|
-
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
33
|
-
|
|
34
16
|
_kwargs: dict[str, Any] = {
|
|
35
17
|
"method": "get",
|
|
36
18
|
"url": f"/v1/graphs/{graph_id}/backups/stats",
|
|
37
|
-
"params": params,
|
|
38
19
|
}
|
|
39
20
|
|
|
40
|
-
_kwargs["headers"] = headers
|
|
41
21
|
return _kwargs
|
|
42
22
|
|
|
43
23
|
|
|
@@ -75,17 +55,13 @@ def sync_detailed(
|
|
|
75
55
|
graph_id: str,
|
|
76
56
|
*,
|
|
77
57
|
client: AuthenticatedClient,
|
|
78
|
-
token: Union[None, Unset, str] = UNSET,
|
|
79
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
80
58
|
) -> Response[Union[BackupStatsResponse, HTTPValidationError]]:
|
|
81
59
|
"""Get backup statistics
|
|
82
60
|
|
|
83
61
|
Get comprehensive backup statistics for the specified graph database
|
|
84
62
|
|
|
85
63
|
Args:
|
|
86
|
-
graph_id (str):
|
|
87
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
88
|
-
authorization (Union[None, Unset, str]):
|
|
64
|
+
graph_id (str):
|
|
89
65
|
|
|
90
66
|
Raises:
|
|
91
67
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -97,8 +73,6 @@ def sync_detailed(
|
|
|
97
73
|
|
|
98
74
|
kwargs = _get_kwargs(
|
|
99
75
|
graph_id=graph_id,
|
|
100
|
-
token=token,
|
|
101
|
-
authorization=authorization,
|
|
102
76
|
)
|
|
103
77
|
|
|
104
78
|
response = client.get_httpx_client().request(
|
|
@@ -112,17 +86,13 @@ def sync(
|
|
|
112
86
|
graph_id: str,
|
|
113
87
|
*,
|
|
114
88
|
client: AuthenticatedClient,
|
|
115
|
-
token: Union[None, Unset, str] = UNSET,
|
|
116
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
117
89
|
) -> Optional[Union[BackupStatsResponse, HTTPValidationError]]:
|
|
118
90
|
"""Get backup statistics
|
|
119
91
|
|
|
120
92
|
Get comprehensive backup statistics for the specified graph database
|
|
121
93
|
|
|
122
94
|
Args:
|
|
123
|
-
graph_id (str):
|
|
124
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
125
|
-
authorization (Union[None, Unset, str]):
|
|
95
|
+
graph_id (str):
|
|
126
96
|
|
|
127
97
|
Raises:
|
|
128
98
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -135,8 +105,6 @@ def sync(
|
|
|
135
105
|
return sync_detailed(
|
|
136
106
|
graph_id=graph_id,
|
|
137
107
|
client=client,
|
|
138
|
-
token=token,
|
|
139
|
-
authorization=authorization,
|
|
140
108
|
).parsed
|
|
141
109
|
|
|
142
110
|
|
|
@@ -144,17 +112,13 @@ async def asyncio_detailed(
|
|
|
144
112
|
graph_id: str,
|
|
145
113
|
*,
|
|
146
114
|
client: AuthenticatedClient,
|
|
147
|
-
token: Union[None, Unset, str] = UNSET,
|
|
148
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
149
115
|
) -> Response[Union[BackupStatsResponse, HTTPValidationError]]:
|
|
150
116
|
"""Get backup statistics
|
|
151
117
|
|
|
152
118
|
Get comprehensive backup statistics for the specified graph database
|
|
153
119
|
|
|
154
120
|
Args:
|
|
155
|
-
graph_id (str):
|
|
156
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
157
|
-
authorization (Union[None, Unset, str]):
|
|
121
|
+
graph_id (str):
|
|
158
122
|
|
|
159
123
|
Raises:
|
|
160
124
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -166,8 +130,6 @@ async def asyncio_detailed(
|
|
|
166
130
|
|
|
167
131
|
kwargs = _get_kwargs(
|
|
168
132
|
graph_id=graph_id,
|
|
169
|
-
token=token,
|
|
170
|
-
authorization=authorization,
|
|
171
133
|
)
|
|
172
134
|
|
|
173
135
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -179,17 +141,13 @@ async def asyncio(
|
|
|
179
141
|
graph_id: str,
|
|
180
142
|
*,
|
|
181
143
|
client: AuthenticatedClient,
|
|
182
|
-
token: Union[None, Unset, str] = UNSET,
|
|
183
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
184
144
|
) -> Optional[Union[BackupStatsResponse, HTTPValidationError]]:
|
|
185
145
|
"""Get backup statistics
|
|
186
146
|
|
|
187
147
|
Get comprehensive backup statistics for the specified graph database
|
|
188
148
|
|
|
189
149
|
Args:
|
|
190
|
-
graph_id (str):
|
|
191
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
192
|
-
authorization (Union[None, Unset, str]):
|
|
150
|
+
graph_id (str):
|
|
193
151
|
|
|
194
152
|
Raises:
|
|
195
153
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -203,7 +161,5 @@ async def asyncio(
|
|
|
203
161
|
await asyncio_detailed(
|
|
204
162
|
graph_id=graph_id,
|
|
205
163
|
client=client,
|
|
206
|
-
token=token,
|
|
207
|
-
authorization=authorization,
|
|
208
164
|
)
|
|
209
165
|
).parsed
|
|
@@ -15,26 +15,13 @@ def _get_kwargs(
|
|
|
15
15
|
*,
|
|
16
16
|
limit: Union[Unset, int] = 50,
|
|
17
17
|
offset: Union[Unset, int] = 0,
|
|
18
|
-
token: Union[None, Unset, str] = UNSET,
|
|
19
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
20
18
|
) -> dict[str, Any]:
|
|
21
|
-
headers: dict[str, Any] = {}
|
|
22
|
-
if not isinstance(authorization, Unset):
|
|
23
|
-
headers["authorization"] = authorization
|
|
24
|
-
|
|
25
19
|
params: dict[str, Any] = {}
|
|
26
20
|
|
|
27
21
|
params["limit"] = limit
|
|
28
22
|
|
|
29
23
|
params["offset"] = offset
|
|
30
24
|
|
|
31
|
-
json_token: Union[None, Unset, str]
|
|
32
|
-
if isinstance(token, Unset):
|
|
33
|
-
json_token = UNSET
|
|
34
|
-
else:
|
|
35
|
-
json_token = token
|
|
36
|
-
params["token"] = json_token
|
|
37
|
-
|
|
38
25
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
39
26
|
|
|
40
27
|
_kwargs: dict[str, Any] = {
|
|
@@ -43,7 +30,6 @@ def _get_kwargs(
|
|
|
43
30
|
"params": params,
|
|
44
31
|
}
|
|
45
32
|
|
|
46
|
-
_kwargs["headers"] = headers
|
|
47
33
|
return _kwargs
|
|
48
34
|
|
|
49
35
|
|
|
@@ -83,19 +69,15 @@ def sync_detailed(
|
|
|
83
69
|
client: AuthenticatedClient,
|
|
84
70
|
limit: Union[Unset, int] = 50,
|
|
85
71
|
offset: Union[Unset, int] = 0,
|
|
86
|
-
token: Union[None, Unset, str] = UNSET,
|
|
87
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
88
72
|
) -> Response[Union[BackupListResponse, HTTPValidationError]]:
|
|
89
73
|
"""List graph database backups
|
|
90
74
|
|
|
91
75
|
List all backups for the specified graph database
|
|
92
76
|
|
|
93
77
|
Args:
|
|
94
|
-
graph_id (str):
|
|
78
|
+
graph_id (str):
|
|
95
79
|
limit (Union[Unset, int]): Maximum number of backups to return Default: 50.
|
|
96
80
|
offset (Union[Unset, int]): Number of backups to skip Default: 0.
|
|
97
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
98
|
-
authorization (Union[None, Unset, str]):
|
|
99
81
|
|
|
100
82
|
Raises:
|
|
101
83
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -109,8 +91,6 @@ def sync_detailed(
|
|
|
109
91
|
graph_id=graph_id,
|
|
110
92
|
limit=limit,
|
|
111
93
|
offset=offset,
|
|
112
|
-
token=token,
|
|
113
|
-
authorization=authorization,
|
|
114
94
|
)
|
|
115
95
|
|
|
116
96
|
response = client.get_httpx_client().request(
|
|
@@ -126,19 +106,15 @@ def sync(
|
|
|
126
106
|
client: AuthenticatedClient,
|
|
127
107
|
limit: Union[Unset, int] = 50,
|
|
128
108
|
offset: Union[Unset, int] = 0,
|
|
129
|
-
token: Union[None, Unset, str] = UNSET,
|
|
130
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
131
109
|
) -> Optional[Union[BackupListResponse, HTTPValidationError]]:
|
|
132
110
|
"""List graph database backups
|
|
133
111
|
|
|
134
112
|
List all backups for the specified graph database
|
|
135
113
|
|
|
136
114
|
Args:
|
|
137
|
-
graph_id (str):
|
|
115
|
+
graph_id (str):
|
|
138
116
|
limit (Union[Unset, int]): Maximum number of backups to return Default: 50.
|
|
139
117
|
offset (Union[Unset, int]): Number of backups to skip Default: 0.
|
|
140
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
141
|
-
authorization (Union[None, Unset, str]):
|
|
142
118
|
|
|
143
119
|
Raises:
|
|
144
120
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -153,8 +129,6 @@ def sync(
|
|
|
153
129
|
client=client,
|
|
154
130
|
limit=limit,
|
|
155
131
|
offset=offset,
|
|
156
|
-
token=token,
|
|
157
|
-
authorization=authorization,
|
|
158
132
|
).parsed
|
|
159
133
|
|
|
160
134
|
|
|
@@ -164,19 +138,15 @@ async def asyncio_detailed(
|
|
|
164
138
|
client: AuthenticatedClient,
|
|
165
139
|
limit: Union[Unset, int] = 50,
|
|
166
140
|
offset: Union[Unset, int] = 0,
|
|
167
|
-
token: Union[None, Unset, str] = UNSET,
|
|
168
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
169
141
|
) -> Response[Union[BackupListResponse, HTTPValidationError]]:
|
|
170
142
|
"""List graph database backups
|
|
171
143
|
|
|
172
144
|
List all backups for the specified graph database
|
|
173
145
|
|
|
174
146
|
Args:
|
|
175
|
-
graph_id (str):
|
|
147
|
+
graph_id (str):
|
|
176
148
|
limit (Union[Unset, int]): Maximum number of backups to return Default: 50.
|
|
177
149
|
offset (Union[Unset, int]): Number of backups to skip Default: 0.
|
|
178
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
179
|
-
authorization (Union[None, Unset, str]):
|
|
180
150
|
|
|
181
151
|
Raises:
|
|
182
152
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -190,8 +160,6 @@ async def asyncio_detailed(
|
|
|
190
160
|
graph_id=graph_id,
|
|
191
161
|
limit=limit,
|
|
192
162
|
offset=offset,
|
|
193
|
-
token=token,
|
|
194
|
-
authorization=authorization,
|
|
195
163
|
)
|
|
196
164
|
|
|
197
165
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -205,19 +173,15 @@ async def asyncio(
|
|
|
205
173
|
client: AuthenticatedClient,
|
|
206
174
|
limit: Union[Unset, int] = 50,
|
|
207
175
|
offset: Union[Unset, int] = 0,
|
|
208
|
-
token: Union[None, Unset, str] = UNSET,
|
|
209
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
210
176
|
) -> Optional[Union[BackupListResponse, HTTPValidationError]]:
|
|
211
177
|
"""List graph database backups
|
|
212
178
|
|
|
213
179
|
List all backups for the specified graph database
|
|
214
180
|
|
|
215
181
|
Args:
|
|
216
|
-
graph_id (str):
|
|
182
|
+
graph_id (str):
|
|
217
183
|
limit (Union[Unset, int]): Maximum number of backups to return Default: 50.
|
|
218
184
|
offset (Union[Unset, int]): Number of backups to skip Default: 0.
|
|
219
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
220
|
-
authorization (Union[None, Unset, str]):
|
|
221
185
|
|
|
222
186
|
Raises:
|
|
223
187
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -233,7 +197,5 @@ async def asyncio(
|
|
|
233
197
|
client=client,
|
|
234
198
|
limit=limit,
|
|
235
199
|
offset=offset,
|
|
236
|
-
token=token,
|
|
237
|
-
authorization=authorization,
|
|
238
200
|
)
|
|
239
201
|
).parsed
|
|
@@ -8,7 +8,7 @@ from ...client import AuthenticatedClient, Client
|
|
|
8
8
|
from ...models.backup_restore_request import BackupRestoreRequest
|
|
9
9
|
from ...models.error_response import ErrorResponse
|
|
10
10
|
from ...models.http_validation_error import HTTPValidationError
|
|
11
|
-
from ...types import
|
|
11
|
+
from ...types import Response
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
def _get_kwargs(
|
|
@@ -16,28 +16,12 @@ def _get_kwargs(
|
|
|
16
16
|
backup_id: str,
|
|
17
17
|
*,
|
|
18
18
|
body: BackupRestoreRequest,
|
|
19
|
-
token: Union[None, Unset, str] = UNSET,
|
|
20
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
21
19
|
) -> dict[str, Any]:
|
|
22
20
|
headers: dict[str, Any] = {}
|
|
23
|
-
if not isinstance(authorization, Unset):
|
|
24
|
-
headers["authorization"] = authorization
|
|
25
|
-
|
|
26
|
-
params: dict[str, Any] = {}
|
|
27
|
-
|
|
28
|
-
json_token: Union[None, Unset, str]
|
|
29
|
-
if isinstance(token, Unset):
|
|
30
|
-
json_token = UNSET
|
|
31
|
-
else:
|
|
32
|
-
json_token = token
|
|
33
|
-
params["token"] = json_token
|
|
34
|
-
|
|
35
|
-
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
36
21
|
|
|
37
22
|
_kwargs: dict[str, Any] = {
|
|
38
23
|
"method": "post",
|
|
39
24
|
"url": f"/v1/graphs/{graph_id}/backups/{backup_id}/restore",
|
|
40
|
-
"params": params,
|
|
41
25
|
}
|
|
42
26
|
|
|
43
27
|
_kwargs["json"] = body.to_dict()
|
|
@@ -103,8 +87,6 @@ def sync_detailed(
|
|
|
103
87
|
*,
|
|
104
88
|
client: AuthenticatedClient,
|
|
105
89
|
body: BackupRestoreRequest,
|
|
106
|
-
token: Union[None, Unset, str] = UNSET,
|
|
107
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
108
90
|
) -> Response[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
109
91
|
"""Restore Encrypted Backup
|
|
110
92
|
|
|
@@ -152,10 +134,8 @@ def sync_detailed(
|
|
|
152
134
|
Returns operation details for SSE monitoring.
|
|
153
135
|
|
|
154
136
|
Args:
|
|
155
|
-
graph_id (str):
|
|
137
|
+
graph_id (str):
|
|
156
138
|
backup_id (str): Backup identifier
|
|
157
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
158
|
-
authorization (Union[None, Unset, str]):
|
|
159
139
|
body (BackupRestoreRequest): Request model for restoring from a backup.
|
|
160
140
|
|
|
161
141
|
Raises:
|
|
@@ -170,8 +150,6 @@ def sync_detailed(
|
|
|
170
150
|
graph_id=graph_id,
|
|
171
151
|
backup_id=backup_id,
|
|
172
152
|
body=body,
|
|
173
|
-
token=token,
|
|
174
|
-
authorization=authorization,
|
|
175
153
|
)
|
|
176
154
|
|
|
177
155
|
response = client.get_httpx_client().request(
|
|
@@ -187,8 +165,6 @@ def sync(
|
|
|
187
165
|
*,
|
|
188
166
|
client: AuthenticatedClient,
|
|
189
167
|
body: BackupRestoreRequest,
|
|
190
|
-
token: Union[None, Unset, str] = UNSET,
|
|
191
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
192
168
|
) -> Optional[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
193
169
|
"""Restore Encrypted Backup
|
|
194
170
|
|
|
@@ -236,10 +212,8 @@ def sync(
|
|
|
236
212
|
Returns operation details for SSE monitoring.
|
|
237
213
|
|
|
238
214
|
Args:
|
|
239
|
-
graph_id (str):
|
|
215
|
+
graph_id (str):
|
|
240
216
|
backup_id (str): Backup identifier
|
|
241
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
242
|
-
authorization (Union[None, Unset, str]):
|
|
243
217
|
body (BackupRestoreRequest): Request model for restoring from a backup.
|
|
244
218
|
|
|
245
219
|
Raises:
|
|
@@ -255,8 +229,6 @@ def sync(
|
|
|
255
229
|
backup_id=backup_id,
|
|
256
230
|
client=client,
|
|
257
231
|
body=body,
|
|
258
|
-
token=token,
|
|
259
|
-
authorization=authorization,
|
|
260
232
|
).parsed
|
|
261
233
|
|
|
262
234
|
|
|
@@ -266,8 +238,6 @@ async def asyncio_detailed(
|
|
|
266
238
|
*,
|
|
267
239
|
client: AuthenticatedClient,
|
|
268
240
|
body: BackupRestoreRequest,
|
|
269
|
-
token: Union[None, Unset, str] = UNSET,
|
|
270
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
271
241
|
) -> Response[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
272
242
|
"""Restore Encrypted Backup
|
|
273
243
|
|
|
@@ -315,10 +285,8 @@ async def asyncio_detailed(
|
|
|
315
285
|
Returns operation details for SSE monitoring.
|
|
316
286
|
|
|
317
287
|
Args:
|
|
318
|
-
graph_id (str):
|
|
288
|
+
graph_id (str):
|
|
319
289
|
backup_id (str): Backup identifier
|
|
320
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
321
|
-
authorization (Union[None, Unset, str]):
|
|
322
290
|
body (BackupRestoreRequest): Request model for restoring from a backup.
|
|
323
291
|
|
|
324
292
|
Raises:
|
|
@@ -333,8 +301,6 @@ async def asyncio_detailed(
|
|
|
333
301
|
graph_id=graph_id,
|
|
334
302
|
backup_id=backup_id,
|
|
335
303
|
body=body,
|
|
336
|
-
token=token,
|
|
337
|
-
authorization=authorization,
|
|
338
304
|
)
|
|
339
305
|
|
|
340
306
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -348,8 +314,6 @@ async def asyncio(
|
|
|
348
314
|
*,
|
|
349
315
|
client: AuthenticatedClient,
|
|
350
316
|
body: BackupRestoreRequest,
|
|
351
|
-
token: Union[None, Unset, str] = UNSET,
|
|
352
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
353
317
|
) -> Optional[Union[Any, ErrorResponse, HTTPValidationError]]:
|
|
354
318
|
"""Restore Encrypted Backup
|
|
355
319
|
|
|
@@ -397,10 +361,8 @@ async def asyncio(
|
|
|
397
361
|
Returns operation details for SSE monitoring.
|
|
398
362
|
|
|
399
363
|
Args:
|
|
400
|
-
graph_id (str):
|
|
364
|
+
graph_id (str):
|
|
401
365
|
backup_id (str): Backup identifier
|
|
402
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
403
|
-
authorization (Union[None, Unset, str]):
|
|
404
366
|
body (BackupRestoreRequest): Request model for restoring from a backup.
|
|
405
367
|
|
|
406
368
|
Raises:
|
|
@@ -417,7 +379,5 @@ async def asyncio(
|
|
|
417
379
|
backup_id=backup_id,
|
|
418
380
|
client=client,
|
|
419
381
|
body=body,
|
|
420
|
-
token=token,
|
|
421
|
-
authorization=authorization,
|
|
422
382
|
)
|
|
423
383
|
).parsed
|