robosystems-client 0.1.12__py3-none-any.whl → 0.1.14__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.
Files changed (61) hide show
  1. robosystems_client/api/backup/create_backup.py +1 -1
  2. robosystems_client/api/backup/export_backup.py +14 -19
  3. robosystems_client/api/backup/get_backup_download_url.py +1 -1
  4. robosystems_client/api/backup/get_backup_stats.py +19 -1
  5. robosystems_client/api/backup/list_backups.py +19 -1
  6. robosystems_client/api/backup/restore_backup.py +1 -1
  7. robosystems_client/api/copy/copy_data_to_graph.py +479 -0
  8. robosystems_client/api/{credits_ → graph_credits}/check_credit_balance.py +42 -20
  9. robosystems_client/api/graph_health/__init__.py +1 -0
  10. robosystems_client/api/{graph_status → graph_health}/get_database_health.py +1 -1
  11. robosystems_client/api/graph_info/__init__.py +1 -0
  12. robosystems_client/api/{graph_status → graph_info}/get_database_info.py +1 -1
  13. robosystems_client/api/graph_limits/__init__.py +1 -0
  14. robosystems_client/api/graph_limits/get_graph_limits.py +259 -0
  15. robosystems_client/api/subgraphs/create_subgraph.py +63 -173
  16. robosystems_client/api/subgraphs/delete_subgraph.py +14 -14
  17. robosystems_client/api/subgraphs/get_subgraph_info.py +14 -14
  18. robosystems_client/api/subgraphs/get_subgraph_quota.py +8 -4
  19. robosystems_client/api/subgraphs/list_subgraphs.py +39 -75
  20. robosystems_client/api/user/get_all_credit_summaries.py +1 -1
  21. robosystems_client/extensions/README.md +211 -0
  22. robosystems_client/extensions/__init__.py +29 -0
  23. robosystems_client/extensions/copy_client.py +469 -0
  24. robosystems_client/extensions/extensions.py +17 -0
  25. robosystems_client/models/__init__.py +26 -10
  26. robosystems_client/models/copy_response.py +275 -0
  27. robosystems_client/models/{kuzu_backup_health_response_kuzubackuphealth.py → copy_response_error_details_type_0.py} +5 -5
  28. robosystems_client/models/copy_response_status.py +11 -0
  29. robosystems_client/models/custom_schema_definition.py +2 -2
  30. robosystems_client/models/data_frame_copy_request.py +125 -0
  31. robosystems_client/models/data_frame_copy_request_format.py +10 -0
  32. robosystems_client/models/get_graph_limits_response_getgraphlimits.py +44 -0
  33. robosystems_client/models/s3_copy_request.py +378 -0
  34. robosystems_client/models/s3_copy_request_file_format.py +12 -0
  35. robosystems_client/models/s3_copy_request_s3_url_style_type_0.py +9 -0
  36. robosystems_client/models/url_copy_request.py +157 -0
  37. robosystems_client/models/url_copy_request_file_format.py +10 -0
  38. robosystems_client/models/url_copy_request_headers_type_0.py +44 -0
  39. {robosystems_client-0.1.12.dist-info → robosystems_client-0.1.14.dist-info}/METADATA +1 -1
  40. {robosystems_client-0.1.12.dist-info → robosystems_client-0.1.14.dist-info}/RECORD +52 -44
  41. robosystems_client/api/backup/kuzu_backup_health.py +0 -202
  42. robosystems_client/api/billing/get_available_subscription_plans_v1_graph_id_billing_available_plans_get.py +0 -198
  43. robosystems_client/api/billing/get_credit_billing_info_v1_graph_id_billing_credits_get.py +0 -210
  44. robosystems_client/api/billing/get_graph_pricing_info_v1_graph_id_billing_pricing_get.py +0 -198
  45. robosystems_client/api/billing/get_graph_subscription_v1_graph_id_billing_subscription_get.py +0 -198
  46. robosystems_client/api/billing/upgrade_graph_subscription_v1_graph_id_billing_subscription_upgrade_post.py +0 -216
  47. robosystems_client/models/backup_export_request.py +0 -72
  48. robosystems_client/models/credit_check_request.py +0 -82
  49. robosystems_client/models/upgrade_subscription_request.py +0 -82
  50. /robosystems_client/api/{billing → copy}/__init__.py +0 -0
  51. /robosystems_client/api/{credits_ → graph_billing}/__init__.py +0 -0
  52. /robosystems_client/api/{billing → graph_billing}/get_current_graph_bill.py +0 -0
  53. /robosystems_client/api/{billing → graph_billing}/get_graph_billing_history.py +0 -0
  54. /robosystems_client/api/{billing → graph_billing}/get_graph_monthly_bill.py +0 -0
  55. /robosystems_client/api/{billing → graph_billing}/get_graph_usage_details.py +0 -0
  56. /robosystems_client/api/{graph_status → graph_credits}/__init__.py +0 -0
  57. /robosystems_client/api/{credits_ → graph_credits}/check_storage_limits.py +0 -0
  58. /robosystems_client/api/{credits_ → graph_credits}/get_credit_summary.py +0 -0
  59. /robosystems_client/api/{credits_ → graph_credits}/get_storage_usage.py +0 -0
  60. /robosystems_client/api/{credits_ → graph_credits}/list_credit_transactions.py +0 -0
  61. {robosystems_client-0.1.12.dist-info → robosystems_client-0.1.14.dist-info}/WHEEL +0 -0
@@ -1,216 +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.http_validation_error import HTTPValidationError
9
- from ...models.upgrade_subscription_request import UpgradeSubscriptionRequest
10
- from ...types import UNSET, Response, Unset
11
-
12
-
13
- def _get_kwargs(
14
- graph_id: str,
15
- *,
16
- body: UpgradeSubscriptionRequest,
17
- authorization: Union[None, Unset, str] = UNSET,
18
- auth_token: Union[None, Unset, str] = UNSET,
19
- ) -> dict[str, Any]:
20
- headers: dict[str, Any] = {}
21
- if not isinstance(authorization, Unset):
22
- headers["authorization"] = authorization
23
-
24
- cookies = {}
25
- if auth_token is not UNSET:
26
- cookies["auth-token"] = auth_token
27
-
28
- _kwargs: dict[str, Any] = {
29
- "method": "post",
30
- "url": f"/v1/{graph_id}/billing/subscription/upgrade",
31
- "cookies": cookies,
32
- }
33
-
34
- _kwargs["json"] = body.to_dict()
35
-
36
- headers["Content-Type"] = "application/json"
37
-
38
- _kwargs["headers"] = headers
39
- return _kwargs
40
-
41
-
42
- def _parse_response(
43
- *, client: Union[AuthenticatedClient, Client], response: httpx.Response
44
- ) -> Optional[Union[Any, HTTPValidationError]]:
45
- if response.status_code == 200:
46
- response_200 = response.json()
47
- return response_200
48
- if response.status_code == 422:
49
- response_422 = HTTPValidationError.from_dict(response.json())
50
-
51
- return response_422
52
- if client.raise_on_unexpected_status:
53
- raise errors.UnexpectedStatus(response.status_code, response.content)
54
- else:
55
- return None
56
-
57
-
58
- def _build_response(
59
- *, client: Union[AuthenticatedClient, Client], response: httpx.Response
60
- ) -> Response[Union[Any, HTTPValidationError]]:
61
- return Response(
62
- status_code=HTTPStatus(response.status_code),
63
- content=response.content,
64
- headers=response.headers,
65
- parsed=_parse_response(client=client, response=response),
66
- )
67
-
68
-
69
- def sync_detailed(
70
- graph_id: str,
71
- *,
72
- client: AuthenticatedClient,
73
- body: UpgradeSubscriptionRequest,
74
- authorization: Union[None, Unset, str] = UNSET,
75
- auth_token: Union[None, Unset, str] = UNSET,
76
- ) -> Response[Union[Any, HTTPValidationError]]:
77
- """Upgrade Graph Subscription
78
-
79
- Upgrade subscription for a specific graph database.
80
-
81
- Args:
82
- graph_id (str): Graph database ID
83
- authorization (Union[None, Unset, str]):
84
- auth_token (Union[None, Unset, str]):
85
- body (UpgradeSubscriptionRequest): Request to upgrade a graph database subscription.
86
-
87
- Raises:
88
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
89
- httpx.TimeoutException: If the request takes longer than Client.timeout.
90
-
91
- Returns:
92
- Response[Union[Any, HTTPValidationError]]
93
- """
94
-
95
- kwargs = _get_kwargs(
96
- graph_id=graph_id,
97
- body=body,
98
- authorization=authorization,
99
- auth_token=auth_token,
100
- )
101
-
102
- response = client.get_httpx_client().request(
103
- **kwargs,
104
- )
105
-
106
- return _build_response(client=client, response=response)
107
-
108
-
109
- def sync(
110
- graph_id: str,
111
- *,
112
- client: AuthenticatedClient,
113
- body: UpgradeSubscriptionRequest,
114
- authorization: Union[None, Unset, str] = UNSET,
115
- auth_token: Union[None, Unset, str] = UNSET,
116
- ) -> Optional[Union[Any, HTTPValidationError]]:
117
- """Upgrade Graph Subscription
118
-
119
- Upgrade subscription for a specific graph database.
120
-
121
- Args:
122
- graph_id (str): Graph database ID
123
- authorization (Union[None, Unset, str]):
124
- auth_token (Union[None, Unset, str]):
125
- body (UpgradeSubscriptionRequest): Request to upgrade a graph database subscription.
126
-
127
- Raises:
128
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
129
- httpx.TimeoutException: If the request takes longer than Client.timeout.
130
-
131
- Returns:
132
- Union[Any, HTTPValidationError]
133
- """
134
-
135
- return sync_detailed(
136
- graph_id=graph_id,
137
- client=client,
138
- body=body,
139
- authorization=authorization,
140
- auth_token=auth_token,
141
- ).parsed
142
-
143
-
144
- async def asyncio_detailed(
145
- graph_id: str,
146
- *,
147
- client: AuthenticatedClient,
148
- body: UpgradeSubscriptionRequest,
149
- authorization: Union[None, Unset, str] = UNSET,
150
- auth_token: Union[None, Unset, str] = UNSET,
151
- ) -> Response[Union[Any, HTTPValidationError]]:
152
- """Upgrade Graph Subscription
153
-
154
- Upgrade subscription for a specific graph database.
155
-
156
- Args:
157
- graph_id (str): Graph database ID
158
- authorization (Union[None, Unset, str]):
159
- auth_token (Union[None, Unset, str]):
160
- body (UpgradeSubscriptionRequest): Request to upgrade a graph database subscription.
161
-
162
- Raises:
163
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
164
- httpx.TimeoutException: If the request takes longer than Client.timeout.
165
-
166
- Returns:
167
- Response[Union[Any, HTTPValidationError]]
168
- """
169
-
170
- kwargs = _get_kwargs(
171
- graph_id=graph_id,
172
- body=body,
173
- authorization=authorization,
174
- auth_token=auth_token,
175
- )
176
-
177
- response = await client.get_async_httpx_client().request(**kwargs)
178
-
179
- return _build_response(client=client, response=response)
180
-
181
-
182
- async def asyncio(
183
- graph_id: str,
184
- *,
185
- client: AuthenticatedClient,
186
- body: UpgradeSubscriptionRequest,
187
- authorization: Union[None, Unset, str] = UNSET,
188
- auth_token: Union[None, Unset, str] = UNSET,
189
- ) -> Optional[Union[Any, HTTPValidationError]]:
190
- """Upgrade Graph Subscription
191
-
192
- Upgrade subscription for a specific graph database.
193
-
194
- Args:
195
- graph_id (str): Graph database ID
196
- authorization (Union[None, Unset, str]):
197
- auth_token (Union[None, Unset, str]):
198
- body (UpgradeSubscriptionRequest): Request to upgrade a graph database subscription.
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[Any, HTTPValidationError]
206
- """
207
-
208
- return (
209
- await asyncio_detailed(
210
- graph_id=graph_id,
211
- client=client,
212
- body=body,
213
- authorization=authorization,
214
- auth_token=auth_token,
215
- )
216
- ).parsed
@@ -1,72 +0,0 @@
1
- from collections.abc import Mapping
2
- from typing import Any, TypeVar, Union
3
-
4
- from attrs import define as _attrs_define
5
- from attrs import field as _attrs_field
6
-
7
- from ..types import UNSET, Unset
8
-
9
- T = TypeVar("T", bound="BackupExportRequest")
10
-
11
-
12
- @_attrs_define
13
- class BackupExportRequest:
14
- """Request model for exporting a backup.
15
-
16
- Attributes:
17
- backup_id (str): ID of backup to export
18
- export_format (Union[Unset, str]): Export format - only 'original' is supported (compressed .kuzu file) Default:
19
- 'original'.
20
- """
21
-
22
- backup_id: str
23
- export_format: Union[Unset, str] = "original"
24
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
25
-
26
- def to_dict(self) -> dict[str, Any]:
27
- backup_id = self.backup_id
28
-
29
- export_format = self.export_format
30
-
31
- field_dict: dict[str, Any] = {}
32
- field_dict.update(self.additional_properties)
33
- field_dict.update(
34
- {
35
- "backup_id": backup_id,
36
- }
37
- )
38
- if export_format is not UNSET:
39
- field_dict["export_format"] = export_format
40
-
41
- return field_dict
42
-
43
- @classmethod
44
- def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
45
- d = dict(src_dict)
46
- backup_id = d.pop("backup_id")
47
-
48
- export_format = d.pop("export_format", UNSET)
49
-
50
- backup_export_request = cls(
51
- backup_id=backup_id,
52
- export_format=export_format,
53
- )
54
-
55
- backup_export_request.additional_properties = d
56
- return backup_export_request
57
-
58
- @property
59
- def additional_keys(self) -> list[str]:
60
- return list(self.additional_properties.keys())
61
-
62
- def __getitem__(self, key: str) -> Any:
63
- return self.additional_properties[key]
64
-
65
- def __setitem__(self, key: str, value: Any) -> None:
66
- self.additional_properties[key] = value
67
-
68
- def __delitem__(self, key: str) -> None:
69
- del self.additional_properties[key]
70
-
71
- def __contains__(self, key: str) -> bool:
72
- return key in self.additional_properties
@@ -1,82 +0,0 @@
1
- from collections.abc import Mapping
2
- from typing import Any, TypeVar, Union, cast
3
-
4
- from attrs import define as _attrs_define
5
- from attrs import field as _attrs_field
6
-
7
- from ..types import UNSET, Unset
8
-
9
- T = TypeVar("T", bound="CreditCheckRequest")
10
-
11
-
12
- @_attrs_define
13
- class CreditCheckRequest:
14
- """Request to check credit balance.
15
-
16
- Attributes:
17
- operation_type (str): Type of operation to check
18
- base_cost (Union[None, Unset, float]): Custom base cost (uses default if not provided)
19
- """
20
-
21
- operation_type: str
22
- base_cost: Union[None, Unset, float] = UNSET
23
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
24
-
25
- def to_dict(self) -> dict[str, Any]:
26
- operation_type = self.operation_type
27
-
28
- base_cost: Union[None, Unset, float]
29
- if isinstance(self.base_cost, Unset):
30
- base_cost = UNSET
31
- else:
32
- base_cost = self.base_cost
33
-
34
- field_dict: dict[str, Any] = {}
35
- field_dict.update(self.additional_properties)
36
- field_dict.update(
37
- {
38
- "operation_type": operation_type,
39
- }
40
- )
41
- if base_cost is not UNSET:
42
- field_dict["base_cost"] = base_cost
43
-
44
- return field_dict
45
-
46
- @classmethod
47
- def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
48
- d = dict(src_dict)
49
- operation_type = d.pop("operation_type")
50
-
51
- def _parse_base_cost(data: object) -> Union[None, Unset, float]:
52
- if data is None:
53
- return data
54
- if isinstance(data, Unset):
55
- return data
56
- return cast(Union[None, Unset, float], data)
57
-
58
- base_cost = _parse_base_cost(d.pop("base_cost", UNSET))
59
-
60
- credit_check_request = cls(
61
- operation_type=operation_type,
62
- base_cost=base_cost,
63
- )
64
-
65
- credit_check_request.additional_properties = d
66
- return credit_check_request
67
-
68
- @property
69
- def additional_keys(self) -> list[str]:
70
- return list(self.additional_properties.keys())
71
-
72
- def __getitem__(self, key: str) -> Any:
73
- return self.additional_properties[key]
74
-
75
- def __setitem__(self, key: str, value: Any) -> None:
76
- self.additional_properties[key] = value
77
-
78
- def __delitem__(self, key: str) -> None:
79
- del self.additional_properties[key]
80
-
81
- def __contains__(self, key: str) -> bool:
82
- return key in self.additional_properties
@@ -1,82 +0,0 @@
1
- from collections.abc import Mapping
2
- from typing import Any, TypeVar, Union, cast
3
-
4
- from attrs import define as _attrs_define
5
- from attrs import field as _attrs_field
6
-
7
- from ..types import UNSET, Unset
8
-
9
- T = TypeVar("T", bound="UpgradeSubscriptionRequest")
10
-
11
-
12
- @_attrs_define
13
- class UpgradeSubscriptionRequest:
14
- """Request to upgrade a graph database subscription.
15
-
16
- Attributes:
17
- plan_name (str):
18
- payment_method_id (Union[None, Unset, str]):
19
- """
20
-
21
- plan_name: str
22
- payment_method_id: Union[None, Unset, str] = UNSET
23
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
24
-
25
- def to_dict(self) -> dict[str, Any]:
26
- plan_name = self.plan_name
27
-
28
- payment_method_id: Union[None, Unset, str]
29
- if isinstance(self.payment_method_id, Unset):
30
- payment_method_id = UNSET
31
- else:
32
- payment_method_id = self.payment_method_id
33
-
34
- field_dict: dict[str, Any] = {}
35
- field_dict.update(self.additional_properties)
36
- field_dict.update(
37
- {
38
- "plan_name": plan_name,
39
- }
40
- )
41
- if payment_method_id is not UNSET:
42
- field_dict["payment_method_id"] = payment_method_id
43
-
44
- return field_dict
45
-
46
- @classmethod
47
- def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
48
- d = dict(src_dict)
49
- plan_name = d.pop("plan_name")
50
-
51
- def _parse_payment_method_id(data: object) -> Union[None, Unset, str]:
52
- if data is None:
53
- return data
54
- if isinstance(data, Unset):
55
- return data
56
- return cast(Union[None, Unset, str], data)
57
-
58
- payment_method_id = _parse_payment_method_id(d.pop("payment_method_id", UNSET))
59
-
60
- upgrade_subscription_request = cls(
61
- plan_name=plan_name,
62
- payment_method_id=payment_method_id,
63
- )
64
-
65
- upgrade_subscription_request.additional_properties = d
66
- return upgrade_subscription_request
67
-
68
- @property
69
- def additional_keys(self) -> list[str]:
70
- return list(self.additional_properties.keys())
71
-
72
- def __getitem__(self, key: str) -> Any:
73
- return self.additional_properties[key]
74
-
75
- def __setitem__(self, key: str, value: Any) -> None:
76
- self.additional_properties[key] = value
77
-
78
- def __delitem__(self, key: str) -> None:
79
- del self.additional_properties[key]
80
-
81
- def __contains__(self, key: str) -> bool:
82
- return key in self.additional_properties
File without changes