robosystems-client 0.1.11__py3-none-any.whl → 0.1.13__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.

Files changed (69) hide show
  1. robosystems_client/api/agent/query_financial_agent.py +4 -4
  2. robosystems_client/api/backup/create_backup.py +1 -1
  3. robosystems_client/api/backup/export_backup.py +14 -19
  4. robosystems_client/api/backup/get_backup_download_url.py +1 -1
  5. robosystems_client/api/backup/get_backup_stats.py +19 -1
  6. robosystems_client/api/backup/list_backups.py +19 -1
  7. robosystems_client/api/backup/restore_backup.py +1 -1
  8. robosystems_client/api/copy/copy_data_to_graph.py +314 -0
  9. robosystems_client/api/{credits_ → graph_credits}/check_credit_balance.py +42 -20
  10. robosystems_client/api/graph_health/__init__.py +1 -0
  11. robosystems_client/api/{graph_status → graph_health}/get_database_health.py +1 -1
  12. robosystems_client/api/graph_info/__init__.py +1 -0
  13. robosystems_client/api/{graph_status → graph_info}/get_database_info.py +1 -1
  14. robosystems_client/api/graph_limits/__init__.py +1 -0
  15. robosystems_client/api/graph_limits/get_graph_limits.py +259 -0
  16. robosystems_client/api/subgraphs/__init__.py +1 -0
  17. robosystems_client/api/{billing/upgrade_graph_subscription_v1_graph_id_billing_subscription_upgrade_post.py → subgraphs/create_subgraph.py} +82 -36
  18. robosystems_client/api/subgraphs/delete_subgraph.py +317 -0
  19. robosystems_client/api/subgraphs/get_subgraph_info.py +300 -0
  20. robosystems_client/api/subgraphs/get_subgraph_quota.py +276 -0
  21. robosystems_client/api/{billing/get_credit_billing_info_v1_graph_id_billing_credits_get.py → subgraphs/list_subgraphs.py} +58 -32
  22. robosystems_client/api/user/get_all_credit_summaries.py +1 -1
  23. robosystems_client/extensions/README.md +2 -6
  24. robosystems_client/models/__init__.py +46 -10
  25. robosystems_client/models/copy_response.py +223 -0
  26. robosystems_client/models/{kuzu_backup_health_response_kuzubackuphealth.py → copy_response_error_details_type_0.py} +5 -5
  27. robosystems_client/models/copy_response_status.py +10 -0
  28. robosystems_client/models/create_subgraph_request.py +185 -0
  29. robosystems_client/models/create_subgraph_request_metadata_type_0.py +44 -0
  30. robosystems_client/models/credit_summary_response.py +0 -8
  31. robosystems_client/models/custom_schema_definition.py +2 -2
  32. robosystems_client/models/data_frame_copy_request.py +125 -0
  33. robosystems_client/models/data_frame_copy_request_format.py +10 -0
  34. robosystems_client/models/delete_subgraph_request.py +89 -0
  35. robosystems_client/models/delete_subgraph_response.py +120 -0
  36. robosystems_client/models/get_graph_limits_response_getgraphlimits.py +44 -0
  37. robosystems_client/models/list_subgraphs_response.py +148 -0
  38. robosystems_client/models/s3_copy_request.py +375 -0
  39. robosystems_client/models/s3_copy_request_file_format.py +12 -0
  40. robosystems_client/models/s3_copy_request_s3_url_style_type_0.py +9 -0
  41. robosystems_client/models/subgraph_quota_response.py +158 -0
  42. robosystems_client/models/subgraph_response.py +279 -0
  43. robosystems_client/models/subgraph_response_metadata_type_0.py +44 -0
  44. robosystems_client/models/subgraph_summary.py +155 -0
  45. robosystems_client/models/subgraph_type.py +11 -0
  46. robosystems_client/models/url_copy_request.py +157 -0
  47. robosystems_client/models/url_copy_request_file_format.py +10 -0
  48. robosystems_client/models/url_copy_request_headers_type_0.py +44 -0
  49. {robosystems_client-0.1.11.dist-info → robosystems_client-0.1.13.dist-info}/METADATA +1 -1
  50. {robosystems_client-0.1.11.dist-info → robosystems_client-0.1.13.dist-info}/RECORD +62 -39
  51. robosystems_client/api/backup/kuzu_backup_health.py +0 -202
  52. robosystems_client/api/billing/get_available_subscription_plans_v1_graph_id_billing_available_plans_get.py +0 -198
  53. robosystems_client/api/billing/get_graph_pricing_info_v1_graph_id_billing_pricing_get.py +0 -198
  54. robosystems_client/api/billing/get_graph_subscription_v1_graph_id_billing_subscription_get.py +0 -198
  55. robosystems_client/models/backup_export_request.py +0 -72
  56. robosystems_client/models/credit_check_request.py +0 -82
  57. robosystems_client/models/upgrade_subscription_request.py +0 -82
  58. /robosystems_client/api/{billing → copy}/__init__.py +0 -0
  59. /robosystems_client/api/{credits_ → graph_billing}/__init__.py +0 -0
  60. /robosystems_client/api/{billing → graph_billing}/get_current_graph_bill.py +0 -0
  61. /robosystems_client/api/{billing → graph_billing}/get_graph_billing_history.py +0 -0
  62. /robosystems_client/api/{billing → graph_billing}/get_graph_monthly_bill.py +0 -0
  63. /robosystems_client/api/{billing → graph_billing}/get_graph_usage_details.py +0 -0
  64. /robosystems_client/api/{graph_status → graph_credits}/__init__.py +0 -0
  65. /robosystems_client/api/{credits_ → graph_credits}/check_storage_limits.py +0 -0
  66. /robosystems_client/api/{credits_ → graph_credits}/get_credit_summary.py +0 -0
  67. /robosystems_client/api/{credits_ → graph_credits}/get_storage_usage.py +0 -0
  68. /robosystems_client/api/{credits_ → graph_credits}/list_credit_transactions.py +0 -0
  69. {robosystems_client-0.1.11.dist-info → robosystems_client-0.1.13.dist-info}/WHEEL +0 -0
@@ -0,0 +1,89 @@
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="DeleteSubgraphRequest")
10
+
11
+
12
+ @_attrs_define
13
+ class DeleteSubgraphRequest:
14
+ """Request model for deleting a subgraph.
15
+
16
+ Attributes:
17
+ force (Union[Unset, bool]): Force deletion even if subgraph contains data Default: False.
18
+ backup_first (Union[Unset, bool]): Create a backup before deletion Default: True.
19
+ backup_location (Union[None, Unset, str]): S3 location for backup (uses default if not specified)
20
+ """
21
+
22
+ force: Union[Unset, bool] = False
23
+ backup_first: Union[Unset, bool] = True
24
+ backup_location: Union[None, Unset, str] = UNSET
25
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
26
+
27
+ def to_dict(self) -> dict[str, Any]:
28
+ force = self.force
29
+
30
+ backup_first = self.backup_first
31
+
32
+ backup_location: Union[None, Unset, str]
33
+ if isinstance(self.backup_location, Unset):
34
+ backup_location = UNSET
35
+ else:
36
+ backup_location = self.backup_location
37
+
38
+ field_dict: dict[str, Any] = {}
39
+ field_dict.update(self.additional_properties)
40
+ field_dict.update({})
41
+ if force is not UNSET:
42
+ field_dict["force"] = force
43
+ if backup_first is not UNSET:
44
+ field_dict["backup_first"] = backup_first
45
+ if backup_location is not UNSET:
46
+ field_dict["backup_location"] = backup_location
47
+
48
+ return field_dict
49
+
50
+ @classmethod
51
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
52
+ d = dict(src_dict)
53
+ force = d.pop("force", UNSET)
54
+
55
+ backup_first = d.pop("backup_first", UNSET)
56
+
57
+ def _parse_backup_location(data: object) -> Union[None, Unset, str]:
58
+ if data is None:
59
+ return data
60
+ if isinstance(data, Unset):
61
+ return data
62
+ return cast(Union[None, Unset, str], data)
63
+
64
+ backup_location = _parse_backup_location(d.pop("backup_location", UNSET))
65
+
66
+ delete_subgraph_request = cls(
67
+ force=force,
68
+ backup_first=backup_first,
69
+ backup_location=backup_location,
70
+ )
71
+
72
+ delete_subgraph_request.additional_properties = d
73
+ return delete_subgraph_request
74
+
75
+ @property
76
+ def additional_keys(self) -> list[str]:
77
+ return list(self.additional_properties.keys())
78
+
79
+ def __getitem__(self, key: str) -> Any:
80
+ return self.additional_properties[key]
81
+
82
+ def __setitem__(self, key: str, value: Any) -> None:
83
+ self.additional_properties[key] = value
84
+
85
+ def __delitem__(self, key: str) -> None:
86
+ del self.additional_properties[key]
87
+
88
+ def __contains__(self, key: str) -> bool:
89
+ return key in self.additional_properties
@@ -0,0 +1,120 @@
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 ..types import UNSET, Unset
10
+
11
+ T = TypeVar("T", bound="DeleteSubgraphResponse")
12
+
13
+
14
+ @_attrs_define
15
+ class DeleteSubgraphResponse:
16
+ """Response model for subgraph deletion.
17
+
18
+ Attributes:
19
+ graph_id (str): Deleted subgraph identifier
20
+ status (str): Deletion status
21
+ deleted_at (datetime.datetime): When deletion occurred
22
+ backup_location (Union[None, Unset, str]): Location of backup if created
23
+ message (Union[None, Unset, str]): Additional information about the deletion
24
+ """
25
+
26
+ graph_id: str
27
+ status: str
28
+ deleted_at: datetime.datetime
29
+ backup_location: Union[None, Unset, str] = UNSET
30
+ message: Union[None, Unset, str] = UNSET
31
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
32
+
33
+ def to_dict(self) -> dict[str, Any]:
34
+ graph_id = self.graph_id
35
+
36
+ status = self.status
37
+
38
+ deleted_at = self.deleted_at.isoformat()
39
+
40
+ backup_location: Union[None, Unset, str]
41
+ if isinstance(self.backup_location, Unset):
42
+ backup_location = UNSET
43
+ else:
44
+ backup_location = self.backup_location
45
+
46
+ message: Union[None, Unset, str]
47
+ if isinstance(self.message, Unset):
48
+ message = UNSET
49
+ else:
50
+ message = self.message
51
+
52
+ field_dict: dict[str, Any] = {}
53
+ field_dict.update(self.additional_properties)
54
+ field_dict.update(
55
+ {
56
+ "graph_id": graph_id,
57
+ "status": status,
58
+ "deleted_at": deleted_at,
59
+ }
60
+ )
61
+ if backup_location is not UNSET:
62
+ field_dict["backup_location"] = backup_location
63
+ if message is not UNSET:
64
+ field_dict["message"] = message
65
+
66
+ return field_dict
67
+
68
+ @classmethod
69
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
70
+ d = dict(src_dict)
71
+ graph_id = d.pop("graph_id")
72
+
73
+ status = d.pop("status")
74
+
75
+ deleted_at = isoparse(d.pop("deleted_at"))
76
+
77
+ def _parse_backup_location(data: object) -> Union[None, Unset, str]:
78
+ if data is None:
79
+ return data
80
+ if isinstance(data, Unset):
81
+ return data
82
+ return cast(Union[None, Unset, str], data)
83
+
84
+ backup_location = _parse_backup_location(d.pop("backup_location", UNSET))
85
+
86
+ def _parse_message(data: object) -> Union[None, Unset, str]:
87
+ if data is None:
88
+ return data
89
+ if isinstance(data, Unset):
90
+ return data
91
+ return cast(Union[None, Unset, str], data)
92
+
93
+ message = _parse_message(d.pop("message", UNSET))
94
+
95
+ delete_subgraph_response = cls(
96
+ graph_id=graph_id,
97
+ status=status,
98
+ deleted_at=deleted_at,
99
+ backup_location=backup_location,
100
+ message=message,
101
+ )
102
+
103
+ delete_subgraph_response.additional_properties = d
104
+ return delete_subgraph_response
105
+
106
+ @property
107
+ def additional_keys(self) -> list[str]:
108
+ return list(self.additional_properties.keys())
109
+
110
+ def __getitem__(self, key: str) -> Any:
111
+ return self.additional_properties[key]
112
+
113
+ def __setitem__(self, key: str, value: Any) -> None:
114
+ self.additional_properties[key] = value
115
+
116
+ def __delitem__(self, key: str) -> None:
117
+ del self.additional_properties[key]
118
+
119
+ def __contains__(self, key: str) -> bool:
120
+ return key in self.additional_properties
@@ -0,0 +1,44 @@
1
+ from collections.abc import Mapping
2
+ from typing import Any, TypeVar
3
+
4
+ from attrs import define as _attrs_define
5
+ from attrs import field as _attrs_field
6
+
7
+ T = TypeVar("T", bound="GetGraphLimitsResponseGetgraphlimits")
8
+
9
+
10
+ @_attrs_define
11
+ class GetGraphLimitsResponseGetgraphlimits:
12
+ """ """
13
+
14
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
15
+
16
+ def to_dict(self) -> dict[str, Any]:
17
+ field_dict: dict[str, Any] = {}
18
+ field_dict.update(self.additional_properties)
19
+
20
+ return field_dict
21
+
22
+ @classmethod
23
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
24
+ d = dict(src_dict)
25
+ get_graph_limits_response_getgraphlimits = cls()
26
+
27
+ get_graph_limits_response_getgraphlimits.additional_properties = d
28
+ return get_graph_limits_response_getgraphlimits
29
+
30
+ @property
31
+ def additional_keys(self) -> list[str]:
32
+ return list(self.additional_properties.keys())
33
+
34
+ def __getitem__(self, key: str) -> Any:
35
+ return self.additional_properties[key]
36
+
37
+ def __setitem__(self, key: str, value: Any) -> None:
38
+ self.additional_properties[key] = value
39
+
40
+ def __delitem__(self, key: str) -> None:
41
+ del self.additional_properties[key]
42
+
43
+ def __contains__(self, key: str) -> bool:
44
+ return key in self.additional_properties
@@ -0,0 +1,148 @@
1
+ from collections.abc import Mapping
2
+ from typing import TYPE_CHECKING, 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
+ if TYPE_CHECKING:
10
+ from ..models.subgraph_summary import SubgraphSummary
11
+
12
+
13
+ T = TypeVar("T", bound="ListSubgraphsResponse")
14
+
15
+
16
+ @_attrs_define
17
+ class ListSubgraphsResponse:
18
+ """Response model for listing subgraphs.
19
+
20
+ Attributes:
21
+ parent_graph_id (str): Parent graph identifier
22
+ parent_graph_name (str): Parent graph name
23
+ parent_graph_tier (str): Parent graph tier
24
+ subgraph_count (int): Total number of subgraphs
25
+ subgraphs (list['SubgraphSummary']): List of subgraphs
26
+ max_subgraphs (Union[None, Unset, int]): Maximum allowed subgraphs for this tier (None = unlimited)
27
+ total_size_mb (Union[None, Unset, float]): Combined size of all subgraphs in megabytes
28
+ """
29
+
30
+ parent_graph_id: str
31
+ parent_graph_name: str
32
+ parent_graph_tier: str
33
+ subgraph_count: int
34
+ subgraphs: list["SubgraphSummary"]
35
+ max_subgraphs: Union[None, Unset, int] = UNSET
36
+ total_size_mb: Union[None, Unset, float] = UNSET
37
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
38
+
39
+ def to_dict(self) -> dict[str, Any]:
40
+ parent_graph_id = self.parent_graph_id
41
+
42
+ parent_graph_name = self.parent_graph_name
43
+
44
+ parent_graph_tier = self.parent_graph_tier
45
+
46
+ subgraph_count = self.subgraph_count
47
+
48
+ subgraphs = []
49
+ for subgraphs_item_data in self.subgraphs:
50
+ subgraphs_item = subgraphs_item_data.to_dict()
51
+ subgraphs.append(subgraphs_item)
52
+
53
+ max_subgraphs: Union[None, Unset, int]
54
+ if isinstance(self.max_subgraphs, Unset):
55
+ max_subgraphs = UNSET
56
+ else:
57
+ max_subgraphs = self.max_subgraphs
58
+
59
+ total_size_mb: Union[None, Unset, float]
60
+ if isinstance(self.total_size_mb, Unset):
61
+ total_size_mb = UNSET
62
+ else:
63
+ total_size_mb = self.total_size_mb
64
+
65
+ field_dict: dict[str, Any] = {}
66
+ field_dict.update(self.additional_properties)
67
+ field_dict.update(
68
+ {
69
+ "parent_graph_id": parent_graph_id,
70
+ "parent_graph_name": parent_graph_name,
71
+ "parent_graph_tier": parent_graph_tier,
72
+ "subgraph_count": subgraph_count,
73
+ "subgraphs": subgraphs,
74
+ }
75
+ )
76
+ if max_subgraphs is not UNSET:
77
+ field_dict["max_subgraphs"] = max_subgraphs
78
+ if total_size_mb is not UNSET:
79
+ field_dict["total_size_mb"] = total_size_mb
80
+
81
+ return field_dict
82
+
83
+ @classmethod
84
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
85
+ from ..models.subgraph_summary import SubgraphSummary
86
+
87
+ d = dict(src_dict)
88
+ parent_graph_id = d.pop("parent_graph_id")
89
+
90
+ parent_graph_name = d.pop("parent_graph_name")
91
+
92
+ parent_graph_tier = d.pop("parent_graph_tier")
93
+
94
+ subgraph_count = d.pop("subgraph_count")
95
+
96
+ subgraphs = []
97
+ _subgraphs = d.pop("subgraphs")
98
+ for subgraphs_item_data in _subgraphs:
99
+ subgraphs_item = SubgraphSummary.from_dict(subgraphs_item_data)
100
+
101
+ subgraphs.append(subgraphs_item)
102
+
103
+ def _parse_max_subgraphs(data: object) -> Union[None, Unset, int]:
104
+ if data is None:
105
+ return data
106
+ if isinstance(data, Unset):
107
+ return data
108
+ return cast(Union[None, Unset, int], data)
109
+
110
+ max_subgraphs = _parse_max_subgraphs(d.pop("max_subgraphs", UNSET))
111
+
112
+ def _parse_total_size_mb(data: object) -> Union[None, Unset, float]:
113
+ if data is None:
114
+ return data
115
+ if isinstance(data, Unset):
116
+ return data
117
+ return cast(Union[None, Unset, float], data)
118
+
119
+ total_size_mb = _parse_total_size_mb(d.pop("total_size_mb", UNSET))
120
+
121
+ list_subgraphs_response = cls(
122
+ parent_graph_id=parent_graph_id,
123
+ parent_graph_name=parent_graph_name,
124
+ parent_graph_tier=parent_graph_tier,
125
+ subgraph_count=subgraph_count,
126
+ subgraphs=subgraphs,
127
+ max_subgraphs=max_subgraphs,
128
+ total_size_mb=total_size_mb,
129
+ )
130
+
131
+ list_subgraphs_response.additional_properties = d
132
+ return list_subgraphs_response
133
+
134
+ @property
135
+ def additional_keys(self) -> list[str]:
136
+ return list(self.additional_properties.keys())
137
+
138
+ def __getitem__(self, key: str) -> Any:
139
+ return self.additional_properties[key]
140
+
141
+ def __setitem__(self, key: str, value: Any) -> None:
142
+ self.additional_properties[key] = value
143
+
144
+ def __delitem__(self, key: str) -> None:
145
+ del self.additional_properties[key]
146
+
147
+ def __contains__(self, key: str) -> bool:
148
+ return key in self.additional_properties