robosystems-client 0.1.10__py3-none-any.whl → 0.1.12__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/agent/query_financial_agent.py +16 -16
- robosystems_client/api/backup/create_backup.py +0 -4
- robosystems_client/api/backup/export_backup.py +0 -3
- robosystems_client/api/backup/get_backup_download_url.py +1 -1
- robosystems_client/api/backup/restore_backup.py +0 -4
- robosystems_client/api/connections/create_connection.py +8 -20
- robosystems_client/api/connections/delete_connection.py +8 -16
- robosystems_client/api/connections/sync_connection.py +8 -20
- robosystems_client/api/create/get_available_extensions.py +1 -1
- robosystems_client/api/graph_analytics/get_graph_metrics.py +8 -16
- robosystems_client/api/graph_analytics/get_graph_usage_stats.py +8 -16
- robosystems_client/api/mcp/call_mcp_tool.py +8 -20
- robosystems_client/api/query/execute_cypher_query.py +28 -31
- robosystems_client/api/schema/get_graph_schema_info.py +4 -19
- robosystems_client/api/schema/validate_schema.py +4 -16
- robosystems_client/api/service_offerings/get_service_offerings.py +4 -4
- robosystems_client/api/subgraphs/__init__.py +1 -0
- robosystems_client/api/subgraphs/create_subgraph.py +372 -0
- robosystems_client/api/subgraphs/delete_subgraph.py +317 -0
- robosystems_client/api/subgraphs/get_subgraph_info.py +300 -0
- robosystems_client/api/subgraphs/get_subgraph_quota.py +272 -0
- robosystems_client/api/subgraphs/list_subgraphs.py +272 -0
- robosystems_client/api/user/select_user_graph.py +1 -1
- robosystems_client/api/user_limits/get_all_shared_repository_limits.py +223 -0
- robosystems_client/api/user_limits/get_shared_repository_limits.py +248 -0
- robosystems_client/api/user_subscriptions/get_repository_credits.py +18 -18
- robosystems_client/extensions/README.md +2 -6
- robosystems_client/extensions/__init__.py +1 -1
- robosystems_client/extensions/auth_integration.py +2 -2
- robosystems_client/extensions/extensions.py +1 -1
- robosystems_client/extensions/tests/__init__.py +1 -1
- robosystems_client/extensions/tests/test_integration.py +3 -3
- robosystems_client/extensions/tests/test_unit.py +5 -3
- robosystems_client/extensions/utils.py +1 -1
- robosystems_client/models/__init__.py +28 -2
- robosystems_client/models/create_graph_request.py +5 -25
- robosystems_client/models/create_subgraph_request.py +185 -0
- robosystems_client/models/create_subgraph_request_metadata_type_0.py +44 -0
- robosystems_client/models/credit_summary_response.py +0 -8
- robosystems_client/models/database_health_response.py +1 -1
- robosystems_client/models/database_info_response.py +2 -2
- robosystems_client/models/delete_subgraph_request.py +89 -0
- robosystems_client/models/delete_subgraph_response.py +120 -0
- robosystems_client/models/get_all_shared_repository_limits_response_getallsharedrepositorylimits.py +46 -0
- robosystems_client/models/get_shared_repository_limits_response_getsharedrepositorylimits.py +44 -0
- robosystems_client/models/list_subgraphs_response.py +148 -0
- robosystems_client/models/repository_credits_response.py +6 -6
- robosystems_client/models/schema_export_response.py +2 -2
- robosystems_client/models/subgraph_quota_response.py +158 -0
- robosystems_client/models/subgraph_response.py +279 -0
- robosystems_client/models/{get_mcp_health_response_getmcphealth.py → subgraph_response_metadata_type_0.py} +5 -5
- robosystems_client/models/subgraph_summary.py +155 -0
- robosystems_client/models/subgraph_type.py +11 -0
- robosystems_client/models/subscription_info.py +0 -28
- robosystems_client/models/subscription_request.py +0 -9
- robosystems_client/models/subscription_response.py +0 -8
- robosystems_client/sdk-config.yaml +1 -1
- {robosystems_client-0.1.10.dist-info → robosystems_client-0.1.12.dist-info}/METADATA +1 -1
- {robosystems_client-0.1.10.dist-info → robosystems_client-0.1.12.dist-info}/RECORD +60 -42
- robosystems_client/api/status/get_mcp_health.py +0 -136
- {robosystems_client-0.1.10.dist-info → robosystems_client-0.1.12.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from collections.abc import Mapping
|
|
3
|
+
from typing import TYPE_CHECKING, Any, TypeVar, Union, cast
|
|
4
|
+
|
|
5
|
+
from attrs import define as _attrs_define
|
|
6
|
+
from attrs import field as _attrs_field
|
|
7
|
+
from dateutil.parser import isoparse
|
|
8
|
+
|
|
9
|
+
from ..models.subgraph_type import SubgraphType
|
|
10
|
+
from ..types import UNSET, Unset
|
|
11
|
+
|
|
12
|
+
if TYPE_CHECKING:
|
|
13
|
+
from ..models.subgraph_response_metadata_type_0 import SubgraphResponseMetadataType0
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
T = TypeVar("T", bound="SubgraphResponse")
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
@_attrs_define
|
|
20
|
+
class SubgraphResponse:
|
|
21
|
+
"""Response model for a subgraph.
|
|
22
|
+
|
|
23
|
+
Attributes:
|
|
24
|
+
graph_id (str): Full subgraph identifier (e.g., kg123_dev)
|
|
25
|
+
parent_graph_id (str): Parent graph identifier
|
|
26
|
+
subgraph_index (int): Numeric index of the subgraph
|
|
27
|
+
subgraph_name (str): Alphanumeric name of the subgraph
|
|
28
|
+
display_name (str): Human-readable display name
|
|
29
|
+
subgraph_type (SubgraphType): Types of subgraphs.
|
|
30
|
+
status (str): Current status of the subgraph
|
|
31
|
+
created_at (datetime.datetime): When the subgraph was created
|
|
32
|
+
updated_at (datetime.datetime): When the subgraph was last updated
|
|
33
|
+
description (Union[None, Unset, str]): Description of the subgraph's purpose
|
|
34
|
+
size_mb (Union[None, Unset, float]): Size of the subgraph database in megabytes
|
|
35
|
+
node_count (Union[None, Unset, int]): Number of nodes in the subgraph
|
|
36
|
+
edge_count (Union[None, Unset, int]): Number of edges in the subgraph
|
|
37
|
+
last_accessed (Union[None, Unset, datetime.datetime]): When the subgraph was last accessed
|
|
38
|
+
metadata (Union['SubgraphResponseMetadataType0', None, Unset]): Additional metadata for the subgraph
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
graph_id: str
|
|
42
|
+
parent_graph_id: str
|
|
43
|
+
subgraph_index: int
|
|
44
|
+
subgraph_name: str
|
|
45
|
+
display_name: str
|
|
46
|
+
subgraph_type: SubgraphType
|
|
47
|
+
status: str
|
|
48
|
+
created_at: datetime.datetime
|
|
49
|
+
updated_at: datetime.datetime
|
|
50
|
+
description: Union[None, Unset, str] = UNSET
|
|
51
|
+
size_mb: Union[None, Unset, float] = UNSET
|
|
52
|
+
node_count: Union[None, Unset, int] = UNSET
|
|
53
|
+
edge_count: Union[None, Unset, int] = UNSET
|
|
54
|
+
last_accessed: Union[None, Unset, datetime.datetime] = UNSET
|
|
55
|
+
metadata: Union["SubgraphResponseMetadataType0", None, Unset] = UNSET
|
|
56
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
57
|
+
|
|
58
|
+
def to_dict(self) -> dict[str, Any]:
|
|
59
|
+
from ..models.subgraph_response_metadata_type_0 import SubgraphResponseMetadataType0
|
|
60
|
+
|
|
61
|
+
graph_id = self.graph_id
|
|
62
|
+
|
|
63
|
+
parent_graph_id = self.parent_graph_id
|
|
64
|
+
|
|
65
|
+
subgraph_index = self.subgraph_index
|
|
66
|
+
|
|
67
|
+
subgraph_name = self.subgraph_name
|
|
68
|
+
|
|
69
|
+
display_name = self.display_name
|
|
70
|
+
|
|
71
|
+
subgraph_type = self.subgraph_type.value
|
|
72
|
+
|
|
73
|
+
status = self.status
|
|
74
|
+
|
|
75
|
+
created_at = self.created_at.isoformat()
|
|
76
|
+
|
|
77
|
+
updated_at = self.updated_at.isoformat()
|
|
78
|
+
|
|
79
|
+
description: Union[None, Unset, str]
|
|
80
|
+
if isinstance(self.description, Unset):
|
|
81
|
+
description = UNSET
|
|
82
|
+
else:
|
|
83
|
+
description = self.description
|
|
84
|
+
|
|
85
|
+
size_mb: Union[None, Unset, float]
|
|
86
|
+
if isinstance(self.size_mb, Unset):
|
|
87
|
+
size_mb = UNSET
|
|
88
|
+
else:
|
|
89
|
+
size_mb = self.size_mb
|
|
90
|
+
|
|
91
|
+
node_count: Union[None, Unset, int]
|
|
92
|
+
if isinstance(self.node_count, Unset):
|
|
93
|
+
node_count = UNSET
|
|
94
|
+
else:
|
|
95
|
+
node_count = self.node_count
|
|
96
|
+
|
|
97
|
+
edge_count: Union[None, Unset, int]
|
|
98
|
+
if isinstance(self.edge_count, Unset):
|
|
99
|
+
edge_count = UNSET
|
|
100
|
+
else:
|
|
101
|
+
edge_count = self.edge_count
|
|
102
|
+
|
|
103
|
+
last_accessed: Union[None, Unset, str]
|
|
104
|
+
if isinstance(self.last_accessed, Unset):
|
|
105
|
+
last_accessed = UNSET
|
|
106
|
+
elif isinstance(self.last_accessed, datetime.datetime):
|
|
107
|
+
last_accessed = self.last_accessed.isoformat()
|
|
108
|
+
else:
|
|
109
|
+
last_accessed = self.last_accessed
|
|
110
|
+
|
|
111
|
+
metadata: Union[None, Unset, dict[str, Any]]
|
|
112
|
+
if isinstance(self.metadata, Unset):
|
|
113
|
+
metadata = UNSET
|
|
114
|
+
elif isinstance(self.metadata, SubgraphResponseMetadataType0):
|
|
115
|
+
metadata = self.metadata.to_dict()
|
|
116
|
+
else:
|
|
117
|
+
metadata = self.metadata
|
|
118
|
+
|
|
119
|
+
field_dict: dict[str, Any] = {}
|
|
120
|
+
field_dict.update(self.additional_properties)
|
|
121
|
+
field_dict.update(
|
|
122
|
+
{
|
|
123
|
+
"graph_id": graph_id,
|
|
124
|
+
"parent_graph_id": parent_graph_id,
|
|
125
|
+
"subgraph_index": subgraph_index,
|
|
126
|
+
"subgraph_name": subgraph_name,
|
|
127
|
+
"display_name": display_name,
|
|
128
|
+
"subgraph_type": subgraph_type,
|
|
129
|
+
"status": status,
|
|
130
|
+
"created_at": created_at,
|
|
131
|
+
"updated_at": updated_at,
|
|
132
|
+
}
|
|
133
|
+
)
|
|
134
|
+
if description is not UNSET:
|
|
135
|
+
field_dict["description"] = description
|
|
136
|
+
if size_mb is not UNSET:
|
|
137
|
+
field_dict["size_mb"] = size_mb
|
|
138
|
+
if node_count is not UNSET:
|
|
139
|
+
field_dict["node_count"] = node_count
|
|
140
|
+
if edge_count is not UNSET:
|
|
141
|
+
field_dict["edge_count"] = edge_count
|
|
142
|
+
if last_accessed is not UNSET:
|
|
143
|
+
field_dict["last_accessed"] = last_accessed
|
|
144
|
+
if metadata is not UNSET:
|
|
145
|
+
field_dict["metadata"] = metadata
|
|
146
|
+
|
|
147
|
+
return field_dict
|
|
148
|
+
|
|
149
|
+
@classmethod
|
|
150
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
151
|
+
from ..models.subgraph_response_metadata_type_0 import SubgraphResponseMetadataType0
|
|
152
|
+
|
|
153
|
+
d = dict(src_dict)
|
|
154
|
+
graph_id = d.pop("graph_id")
|
|
155
|
+
|
|
156
|
+
parent_graph_id = d.pop("parent_graph_id")
|
|
157
|
+
|
|
158
|
+
subgraph_index = d.pop("subgraph_index")
|
|
159
|
+
|
|
160
|
+
subgraph_name = d.pop("subgraph_name")
|
|
161
|
+
|
|
162
|
+
display_name = d.pop("display_name")
|
|
163
|
+
|
|
164
|
+
subgraph_type = SubgraphType(d.pop("subgraph_type"))
|
|
165
|
+
|
|
166
|
+
status = d.pop("status")
|
|
167
|
+
|
|
168
|
+
created_at = isoparse(d.pop("created_at"))
|
|
169
|
+
|
|
170
|
+
updated_at = isoparse(d.pop("updated_at"))
|
|
171
|
+
|
|
172
|
+
def _parse_description(data: object) -> Union[None, Unset, str]:
|
|
173
|
+
if data is None:
|
|
174
|
+
return data
|
|
175
|
+
if isinstance(data, Unset):
|
|
176
|
+
return data
|
|
177
|
+
return cast(Union[None, Unset, str], data)
|
|
178
|
+
|
|
179
|
+
description = _parse_description(d.pop("description", UNSET))
|
|
180
|
+
|
|
181
|
+
def _parse_size_mb(data: object) -> Union[None, Unset, float]:
|
|
182
|
+
if data is None:
|
|
183
|
+
return data
|
|
184
|
+
if isinstance(data, Unset):
|
|
185
|
+
return data
|
|
186
|
+
return cast(Union[None, Unset, float], data)
|
|
187
|
+
|
|
188
|
+
size_mb = _parse_size_mb(d.pop("size_mb", UNSET))
|
|
189
|
+
|
|
190
|
+
def _parse_node_count(data: object) -> Union[None, Unset, int]:
|
|
191
|
+
if data is None:
|
|
192
|
+
return data
|
|
193
|
+
if isinstance(data, Unset):
|
|
194
|
+
return data
|
|
195
|
+
return cast(Union[None, Unset, int], data)
|
|
196
|
+
|
|
197
|
+
node_count = _parse_node_count(d.pop("node_count", UNSET))
|
|
198
|
+
|
|
199
|
+
def _parse_edge_count(data: object) -> Union[None, Unset, int]:
|
|
200
|
+
if data is None:
|
|
201
|
+
return data
|
|
202
|
+
if isinstance(data, Unset):
|
|
203
|
+
return data
|
|
204
|
+
return cast(Union[None, Unset, int], data)
|
|
205
|
+
|
|
206
|
+
edge_count = _parse_edge_count(d.pop("edge_count", UNSET))
|
|
207
|
+
|
|
208
|
+
def _parse_last_accessed(data: object) -> Union[None, Unset, datetime.datetime]:
|
|
209
|
+
if data is None:
|
|
210
|
+
return data
|
|
211
|
+
if isinstance(data, Unset):
|
|
212
|
+
return data
|
|
213
|
+
try:
|
|
214
|
+
if not isinstance(data, str):
|
|
215
|
+
raise TypeError()
|
|
216
|
+
last_accessed_type_0 = isoparse(data)
|
|
217
|
+
|
|
218
|
+
return last_accessed_type_0
|
|
219
|
+
except: # noqa: E722
|
|
220
|
+
pass
|
|
221
|
+
return cast(Union[None, Unset, datetime.datetime], data)
|
|
222
|
+
|
|
223
|
+
last_accessed = _parse_last_accessed(d.pop("last_accessed", UNSET))
|
|
224
|
+
|
|
225
|
+
def _parse_metadata(
|
|
226
|
+
data: object,
|
|
227
|
+
) -> Union["SubgraphResponseMetadataType0", None, Unset]:
|
|
228
|
+
if data is None:
|
|
229
|
+
return data
|
|
230
|
+
if isinstance(data, Unset):
|
|
231
|
+
return data
|
|
232
|
+
try:
|
|
233
|
+
if not isinstance(data, dict):
|
|
234
|
+
raise TypeError()
|
|
235
|
+
metadata_type_0 = SubgraphResponseMetadataType0.from_dict(data)
|
|
236
|
+
|
|
237
|
+
return metadata_type_0
|
|
238
|
+
except: # noqa: E722
|
|
239
|
+
pass
|
|
240
|
+
return cast(Union["SubgraphResponseMetadataType0", None, Unset], data)
|
|
241
|
+
|
|
242
|
+
metadata = _parse_metadata(d.pop("metadata", UNSET))
|
|
243
|
+
|
|
244
|
+
subgraph_response = cls(
|
|
245
|
+
graph_id=graph_id,
|
|
246
|
+
parent_graph_id=parent_graph_id,
|
|
247
|
+
subgraph_index=subgraph_index,
|
|
248
|
+
subgraph_name=subgraph_name,
|
|
249
|
+
display_name=display_name,
|
|
250
|
+
subgraph_type=subgraph_type,
|
|
251
|
+
status=status,
|
|
252
|
+
created_at=created_at,
|
|
253
|
+
updated_at=updated_at,
|
|
254
|
+
description=description,
|
|
255
|
+
size_mb=size_mb,
|
|
256
|
+
node_count=node_count,
|
|
257
|
+
edge_count=edge_count,
|
|
258
|
+
last_accessed=last_accessed,
|
|
259
|
+
metadata=metadata,
|
|
260
|
+
)
|
|
261
|
+
|
|
262
|
+
subgraph_response.additional_properties = d
|
|
263
|
+
return subgraph_response
|
|
264
|
+
|
|
265
|
+
@property
|
|
266
|
+
def additional_keys(self) -> list[str]:
|
|
267
|
+
return list(self.additional_properties.keys())
|
|
268
|
+
|
|
269
|
+
def __getitem__(self, key: str) -> Any:
|
|
270
|
+
return self.additional_properties[key]
|
|
271
|
+
|
|
272
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
273
|
+
self.additional_properties[key] = value
|
|
274
|
+
|
|
275
|
+
def __delitem__(self, key: str) -> None:
|
|
276
|
+
del self.additional_properties[key]
|
|
277
|
+
|
|
278
|
+
def __contains__(self, key: str) -> bool:
|
|
279
|
+
return key in self.additional_properties
|
|
@@ -4,11 +4,11 @@ from typing import Any, TypeVar
|
|
|
4
4
|
from attrs import define as _attrs_define
|
|
5
5
|
from attrs import field as _attrs_field
|
|
6
6
|
|
|
7
|
-
T = TypeVar("T", bound="
|
|
7
|
+
T = TypeVar("T", bound="SubgraphResponseMetadataType0")
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
@_attrs_define
|
|
11
|
-
class
|
|
11
|
+
class SubgraphResponseMetadataType0:
|
|
12
12
|
""" """
|
|
13
13
|
|
|
14
14
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
@@ -22,10 +22,10 @@ class GetMCPHealthResponseGetmcphealth:
|
|
|
22
22
|
@classmethod
|
|
23
23
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
24
24
|
d = dict(src_dict)
|
|
25
|
-
|
|
25
|
+
subgraph_response_metadata_type_0 = cls()
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
return
|
|
27
|
+
subgraph_response_metadata_type_0.additional_properties = d
|
|
28
|
+
return subgraph_response_metadata_type_0
|
|
29
29
|
|
|
30
30
|
@property
|
|
31
31
|
def additional_keys(self) -> list[str]:
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from collections.abc import Mapping
|
|
3
|
+
from typing import Any, TypeVar, Union, cast
|
|
4
|
+
|
|
5
|
+
from attrs import define as _attrs_define
|
|
6
|
+
from attrs import field as _attrs_field
|
|
7
|
+
from dateutil.parser import isoparse
|
|
8
|
+
|
|
9
|
+
from ..models.subgraph_type import SubgraphType
|
|
10
|
+
from ..types import UNSET, Unset
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="SubgraphSummary")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class SubgraphSummary:
|
|
17
|
+
"""Summary model for listing subgraphs.
|
|
18
|
+
|
|
19
|
+
Attributes:
|
|
20
|
+
graph_id (str): Full subgraph identifier
|
|
21
|
+
subgraph_name (str): Alphanumeric name
|
|
22
|
+
display_name (str): Human-readable name
|
|
23
|
+
subgraph_type (SubgraphType): Types of subgraphs.
|
|
24
|
+
status (str): Current status
|
|
25
|
+
created_at (datetime.datetime): Creation timestamp
|
|
26
|
+
size_mb (Union[None, Unset, float]): Size in megabytes
|
|
27
|
+
last_accessed (Union[None, Unset, datetime.datetime]): Last access timestamp
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
graph_id: str
|
|
31
|
+
subgraph_name: str
|
|
32
|
+
display_name: str
|
|
33
|
+
subgraph_type: SubgraphType
|
|
34
|
+
status: str
|
|
35
|
+
created_at: datetime.datetime
|
|
36
|
+
size_mb: Union[None, Unset, float] = UNSET
|
|
37
|
+
last_accessed: Union[None, Unset, datetime.datetime] = UNSET
|
|
38
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
39
|
+
|
|
40
|
+
def to_dict(self) -> dict[str, Any]:
|
|
41
|
+
graph_id = self.graph_id
|
|
42
|
+
|
|
43
|
+
subgraph_name = self.subgraph_name
|
|
44
|
+
|
|
45
|
+
display_name = self.display_name
|
|
46
|
+
|
|
47
|
+
subgraph_type = self.subgraph_type.value
|
|
48
|
+
|
|
49
|
+
status = self.status
|
|
50
|
+
|
|
51
|
+
created_at = self.created_at.isoformat()
|
|
52
|
+
|
|
53
|
+
size_mb: Union[None, Unset, float]
|
|
54
|
+
if isinstance(self.size_mb, Unset):
|
|
55
|
+
size_mb = UNSET
|
|
56
|
+
else:
|
|
57
|
+
size_mb = self.size_mb
|
|
58
|
+
|
|
59
|
+
last_accessed: Union[None, Unset, str]
|
|
60
|
+
if isinstance(self.last_accessed, Unset):
|
|
61
|
+
last_accessed = UNSET
|
|
62
|
+
elif isinstance(self.last_accessed, datetime.datetime):
|
|
63
|
+
last_accessed = self.last_accessed.isoformat()
|
|
64
|
+
else:
|
|
65
|
+
last_accessed = self.last_accessed
|
|
66
|
+
|
|
67
|
+
field_dict: dict[str, Any] = {}
|
|
68
|
+
field_dict.update(self.additional_properties)
|
|
69
|
+
field_dict.update(
|
|
70
|
+
{
|
|
71
|
+
"graph_id": graph_id,
|
|
72
|
+
"subgraph_name": subgraph_name,
|
|
73
|
+
"display_name": display_name,
|
|
74
|
+
"subgraph_type": subgraph_type,
|
|
75
|
+
"status": status,
|
|
76
|
+
"created_at": created_at,
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
if size_mb is not UNSET:
|
|
80
|
+
field_dict["size_mb"] = size_mb
|
|
81
|
+
if last_accessed is not UNSET:
|
|
82
|
+
field_dict["last_accessed"] = last_accessed
|
|
83
|
+
|
|
84
|
+
return field_dict
|
|
85
|
+
|
|
86
|
+
@classmethod
|
|
87
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
88
|
+
d = dict(src_dict)
|
|
89
|
+
graph_id = d.pop("graph_id")
|
|
90
|
+
|
|
91
|
+
subgraph_name = d.pop("subgraph_name")
|
|
92
|
+
|
|
93
|
+
display_name = d.pop("display_name")
|
|
94
|
+
|
|
95
|
+
subgraph_type = SubgraphType(d.pop("subgraph_type"))
|
|
96
|
+
|
|
97
|
+
status = d.pop("status")
|
|
98
|
+
|
|
99
|
+
created_at = isoparse(d.pop("created_at"))
|
|
100
|
+
|
|
101
|
+
def _parse_size_mb(data: object) -> Union[None, Unset, float]:
|
|
102
|
+
if data is None:
|
|
103
|
+
return data
|
|
104
|
+
if isinstance(data, Unset):
|
|
105
|
+
return data
|
|
106
|
+
return cast(Union[None, Unset, float], data)
|
|
107
|
+
|
|
108
|
+
size_mb = _parse_size_mb(d.pop("size_mb", UNSET))
|
|
109
|
+
|
|
110
|
+
def _parse_last_accessed(data: object) -> Union[None, Unset, datetime.datetime]:
|
|
111
|
+
if data is None:
|
|
112
|
+
return data
|
|
113
|
+
if isinstance(data, Unset):
|
|
114
|
+
return data
|
|
115
|
+
try:
|
|
116
|
+
if not isinstance(data, str):
|
|
117
|
+
raise TypeError()
|
|
118
|
+
last_accessed_type_0 = isoparse(data)
|
|
119
|
+
|
|
120
|
+
return last_accessed_type_0
|
|
121
|
+
except: # noqa: E722
|
|
122
|
+
pass
|
|
123
|
+
return cast(Union[None, Unset, datetime.datetime], data)
|
|
124
|
+
|
|
125
|
+
last_accessed = _parse_last_accessed(d.pop("last_accessed", UNSET))
|
|
126
|
+
|
|
127
|
+
subgraph_summary = cls(
|
|
128
|
+
graph_id=graph_id,
|
|
129
|
+
subgraph_name=subgraph_name,
|
|
130
|
+
display_name=display_name,
|
|
131
|
+
subgraph_type=subgraph_type,
|
|
132
|
+
status=status,
|
|
133
|
+
created_at=created_at,
|
|
134
|
+
size_mb=size_mb,
|
|
135
|
+
last_accessed=last_accessed,
|
|
136
|
+
)
|
|
137
|
+
|
|
138
|
+
subgraph_summary.additional_properties = d
|
|
139
|
+
return subgraph_summary
|
|
140
|
+
|
|
141
|
+
@property
|
|
142
|
+
def additional_keys(self) -> list[str]:
|
|
143
|
+
return list(self.additional_properties.keys())
|
|
144
|
+
|
|
145
|
+
def __getitem__(self, key: str) -> Any:
|
|
146
|
+
return self.additional_properties[key]
|
|
147
|
+
|
|
148
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
149
|
+
self.additional_properties[key] = value
|
|
150
|
+
|
|
151
|
+
def __delitem__(self, key: str) -> None:
|
|
152
|
+
del self.additional_properties[key]
|
|
153
|
+
|
|
154
|
+
def __contains__(self, key: str) -> bool:
|
|
155
|
+
return key in self.additional_properties
|
|
@@ -23,12 +23,10 @@ class SubscriptionInfo:
|
|
|
23
23
|
addon_type (str): Add-on type
|
|
24
24
|
addon_tier (str): Subscription tier
|
|
25
25
|
is_active (bool): Whether subscription is active
|
|
26
|
-
is_trial (bool): Whether this is a trial subscription
|
|
27
26
|
activated_at (str): Activation date (ISO format)
|
|
28
27
|
monthly_price_cents (int): Monthly price in cents
|
|
29
28
|
features (list[str]): List of features
|
|
30
29
|
metadata (SubscriptionInfoMetadata): Additional metadata
|
|
31
|
-
trial_ends_at (Union[None, Unset, str]): Trial expiration date (ISO format)
|
|
32
30
|
expires_at (Union[None, Unset, str]): Expiration date (ISO format)
|
|
33
31
|
"""
|
|
34
32
|
|
|
@@ -37,12 +35,10 @@ class SubscriptionInfo:
|
|
|
37
35
|
addon_type: str
|
|
38
36
|
addon_tier: str
|
|
39
37
|
is_active: bool
|
|
40
|
-
is_trial: bool
|
|
41
38
|
activated_at: str
|
|
42
39
|
monthly_price_cents: int
|
|
43
40
|
features: list[str]
|
|
44
41
|
metadata: "SubscriptionInfoMetadata"
|
|
45
|
-
trial_ends_at: Union[None, Unset, str] = UNSET
|
|
46
42
|
expires_at: Union[None, Unset, str] = UNSET
|
|
47
43
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
48
44
|
|
|
@@ -57,8 +53,6 @@ class SubscriptionInfo:
|
|
|
57
53
|
|
|
58
54
|
is_active = self.is_active
|
|
59
55
|
|
|
60
|
-
is_trial = self.is_trial
|
|
61
|
-
|
|
62
56
|
activated_at = self.activated_at
|
|
63
57
|
|
|
64
58
|
monthly_price_cents = self.monthly_price_cents
|
|
@@ -67,12 +61,6 @@ class SubscriptionInfo:
|
|
|
67
61
|
|
|
68
62
|
metadata = self.metadata.to_dict()
|
|
69
63
|
|
|
70
|
-
trial_ends_at: Union[None, Unset, str]
|
|
71
|
-
if isinstance(self.trial_ends_at, Unset):
|
|
72
|
-
trial_ends_at = UNSET
|
|
73
|
-
else:
|
|
74
|
-
trial_ends_at = self.trial_ends_at
|
|
75
|
-
|
|
76
64
|
expires_at: Union[None, Unset, str]
|
|
77
65
|
if isinstance(self.expires_at, Unset):
|
|
78
66
|
expires_at = UNSET
|
|
@@ -88,15 +76,12 @@ class SubscriptionInfo:
|
|
|
88
76
|
"addon_type": addon_type,
|
|
89
77
|
"addon_tier": addon_tier,
|
|
90
78
|
"is_active": is_active,
|
|
91
|
-
"is_trial": is_trial,
|
|
92
79
|
"activated_at": activated_at,
|
|
93
80
|
"monthly_price_cents": monthly_price_cents,
|
|
94
81
|
"features": features,
|
|
95
82
|
"metadata": metadata,
|
|
96
83
|
}
|
|
97
84
|
)
|
|
98
|
-
if trial_ends_at is not UNSET:
|
|
99
|
-
field_dict["trial_ends_at"] = trial_ends_at
|
|
100
85
|
if expires_at is not UNSET:
|
|
101
86
|
field_dict["expires_at"] = expires_at
|
|
102
87
|
|
|
@@ -117,8 +102,6 @@ class SubscriptionInfo:
|
|
|
117
102
|
|
|
118
103
|
is_active = d.pop("is_active")
|
|
119
104
|
|
|
120
|
-
is_trial = d.pop("is_trial")
|
|
121
|
-
|
|
122
105
|
activated_at = d.pop("activated_at")
|
|
123
106
|
|
|
124
107
|
monthly_price_cents = d.pop("monthly_price_cents")
|
|
@@ -127,15 +110,6 @@ class SubscriptionInfo:
|
|
|
127
110
|
|
|
128
111
|
metadata = SubscriptionInfoMetadata.from_dict(d.pop("metadata"))
|
|
129
112
|
|
|
130
|
-
def _parse_trial_ends_at(data: object) -> Union[None, Unset, str]:
|
|
131
|
-
if data is None:
|
|
132
|
-
return data
|
|
133
|
-
if isinstance(data, Unset):
|
|
134
|
-
return data
|
|
135
|
-
return cast(Union[None, Unset, str], data)
|
|
136
|
-
|
|
137
|
-
trial_ends_at = _parse_trial_ends_at(d.pop("trial_ends_at", UNSET))
|
|
138
|
-
|
|
139
113
|
def _parse_expires_at(data: object) -> Union[None, Unset, str]:
|
|
140
114
|
if data is None:
|
|
141
115
|
return data
|
|
@@ -151,12 +125,10 @@ class SubscriptionInfo:
|
|
|
151
125
|
addon_type=addon_type,
|
|
152
126
|
addon_tier=addon_tier,
|
|
153
127
|
is_active=is_active,
|
|
154
|
-
is_trial=is_trial,
|
|
155
128
|
activated_at=activated_at,
|
|
156
129
|
monthly_price_cents=monthly_price_cents,
|
|
157
130
|
features=features,
|
|
158
131
|
metadata=metadata,
|
|
159
|
-
trial_ends_at=trial_ends_at,
|
|
160
132
|
expires_at=expires_at,
|
|
161
133
|
)
|
|
162
134
|
|
|
@@ -18,12 +18,10 @@ class SubscriptionRequest:
|
|
|
18
18
|
Attributes:
|
|
19
19
|
repository_type (RepositoryType): Types of shared repositories.
|
|
20
20
|
repository_plan (Union[Unset, RepositoryPlan]): Repository access plans for shared data.
|
|
21
|
-
is_trial (Union[Unset, bool]): Start with trial period Default: False.
|
|
22
21
|
"""
|
|
23
22
|
|
|
24
23
|
repository_type: RepositoryType
|
|
25
24
|
repository_plan: Union[Unset, RepositoryPlan] = UNSET
|
|
26
|
-
is_trial: Union[Unset, bool] = False
|
|
27
25
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
28
26
|
|
|
29
27
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -33,8 +31,6 @@ class SubscriptionRequest:
|
|
|
33
31
|
if not isinstance(self.repository_plan, Unset):
|
|
34
32
|
repository_plan = self.repository_plan.value
|
|
35
33
|
|
|
36
|
-
is_trial = self.is_trial
|
|
37
|
-
|
|
38
34
|
field_dict: dict[str, Any] = {}
|
|
39
35
|
field_dict.update(self.additional_properties)
|
|
40
36
|
field_dict.update(
|
|
@@ -44,8 +40,6 @@ class SubscriptionRequest:
|
|
|
44
40
|
)
|
|
45
41
|
if repository_plan is not UNSET:
|
|
46
42
|
field_dict["repository_plan"] = repository_plan
|
|
47
|
-
if is_trial is not UNSET:
|
|
48
|
-
field_dict["is_trial"] = is_trial
|
|
49
43
|
|
|
50
44
|
return field_dict
|
|
51
45
|
|
|
@@ -61,12 +55,9 @@ class SubscriptionRequest:
|
|
|
61
55
|
else:
|
|
62
56
|
repository_plan = RepositoryPlan(_repository_plan)
|
|
63
57
|
|
|
64
|
-
is_trial = d.pop("is_trial", UNSET)
|
|
65
|
-
|
|
66
58
|
subscription_request = cls(
|
|
67
59
|
repository_type=repository_type,
|
|
68
60
|
repository_plan=repository_plan,
|
|
69
|
-
is_trial=is_trial,
|
|
70
61
|
)
|
|
71
62
|
|
|
72
63
|
subscription_request.additional_properties = d
|
|
@@ -18,12 +18,10 @@ class SubscriptionResponse:
|
|
|
18
18
|
Attributes:
|
|
19
19
|
message (str): Success message
|
|
20
20
|
subscription (SubscriptionInfo): User subscription information.
|
|
21
|
-
trial_period (int): Trial period in days
|
|
22
21
|
"""
|
|
23
22
|
|
|
24
23
|
message: str
|
|
25
24
|
subscription: "SubscriptionInfo"
|
|
26
|
-
trial_period: int
|
|
27
25
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
28
26
|
|
|
29
27
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -31,15 +29,12 @@ class SubscriptionResponse:
|
|
|
31
29
|
|
|
32
30
|
subscription = self.subscription.to_dict()
|
|
33
31
|
|
|
34
|
-
trial_period = self.trial_period
|
|
35
|
-
|
|
36
32
|
field_dict: dict[str, Any] = {}
|
|
37
33
|
field_dict.update(self.additional_properties)
|
|
38
34
|
field_dict.update(
|
|
39
35
|
{
|
|
40
36
|
"message": message,
|
|
41
37
|
"subscription": subscription,
|
|
42
|
-
"trial_period": trial_period,
|
|
43
38
|
}
|
|
44
39
|
)
|
|
45
40
|
|
|
@@ -54,12 +49,9 @@ class SubscriptionResponse:
|
|
|
54
49
|
|
|
55
50
|
subscription = SubscriptionInfo.from_dict(d.pop("subscription"))
|
|
56
51
|
|
|
57
|
-
trial_period = d.pop("trial_period")
|
|
58
|
-
|
|
59
52
|
subscription_response = cls(
|
|
60
53
|
message=message,
|
|
61
54
|
subscription=subscription,
|
|
62
|
-
trial_period=trial_period,
|
|
63
55
|
)
|
|
64
56
|
|
|
65
57
|
subscription_response.additional_properties = d
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
class_name: RoboSystemsClient
|
|
2
2
|
package_name: robosystems_client
|
|
3
3
|
project_name: robosystems-sdk
|
|
4
|
-
package_description: "Python
|
|
4
|
+
package_description: "Python Client for RoboSystems financial graph database API"
|
|
5
5
|
package_version: "0.1.0"
|