robosystems-client 0.2.9__py3-none-any.whl → 0.2.10__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. robosystems_client/api/{user_subscriptions/cancel_shared_repository_subscription.py → subscriptions/cancel_subscription.py} +41 -25
  2. robosystems_client/api/subscriptions/create_repository_subscription.py +217 -0
  3. robosystems_client/api/subscriptions/get_graph_subscription.py +197 -0
  4. robosystems_client/api/{user_subscriptions/upgrade_shared_repository_subscription.py → subscriptions/upgrade_subscription.py} +57 -55
  5. robosystems_client/api/usage/get_graph_usage_analytics.py +377 -0
  6. robosystems_client/api/{user_limits/get_user_usage.py → user/get_user_limits.py} +13 -9
  7. robosystems_client/models/__init__.py +18 -82
  8. robosystems_client/models/{credits_summary_response_credits_by_addon_type_0_item.py → create_repository_subscription_request.py} +22 -6
  9. robosystems_client/models/credit_summary.py +55 -89
  10. robosystems_client/models/{graph_usage_response_storage_usage.py → credit_summary_operation_breakdown.py} +6 -6
  11. robosystems_client/models/graph_subscription_response.py +200 -0
  12. robosystems_client/models/graph_usage_response.py +136 -39
  13. robosystems_client/models/{user_analytics_response_limits.py → graph_usage_response_recent_events_item.py} +6 -6
  14. robosystems_client/models/performance_insights.py +120 -0
  15. robosystems_client/models/{graph_usage_response_recent_activity.py → performance_insights_operation_stats.py} +6 -6
  16. robosystems_client/models/{user_analytics_response_api_usage.py → performance_insights_slow_queries_item.py} +6 -6
  17. robosystems_client/models/storage_summary.py +100 -0
  18. robosystems_client/models/{tier_upgrade_request.py → upgrade_subscription_request.py} +12 -14
  19. {robosystems_client-0.2.9.dist-info → robosystems_client-0.2.10.dist-info}/METADATA +1 -1
  20. {robosystems_client-0.2.9.dist-info → robosystems_client-0.2.10.dist-info}/RECORD +31 -68
  21. robosystems_client/api/graph_analytics/get_graph_usage_stats.py +0 -289
  22. robosystems_client/api/graph_billing/get_current_graph_bill.py +0 -253
  23. robosystems_client/api/graph_billing/get_graph_billing_history.py +0 -298
  24. robosystems_client/api/graph_billing/get_graph_monthly_bill.py +0 -284
  25. robosystems_client/api/graph_billing/get_graph_usage_details.py +0 -320
  26. robosystems_client/api/user/get_all_credit_summaries.py +0 -169
  27. robosystems_client/api/user_analytics/__init__.py +0 -1
  28. robosystems_client/api/user_analytics/get_detailed_user_analytics.py +0 -188
  29. robosystems_client/api/user_analytics/get_user_usage_overview.py +0 -135
  30. robosystems_client/api/user_limits/__init__.py +0 -1
  31. robosystems_client/api/user_limits/get_all_shared_repository_limits.py +0 -141
  32. robosystems_client/api/user_limits/get_shared_repository_limits.py +0 -213
  33. robosystems_client/api/user_limits/get_user_limits.py +0 -139
  34. robosystems_client/api/user_subscriptions/__init__.py +0 -1
  35. robosystems_client/api/user_subscriptions/get_repository_credits.py +0 -173
  36. robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +0 -143
  37. robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +0 -181
  38. robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +0 -186
  39. robosystems_client/models/add_on_credit_info.py +0 -119
  40. robosystems_client/models/credits_summary_response.py +0 -148
  41. robosystems_client/models/get_all_credit_summaries_response_getallcreditsummaries.py +0 -44
  42. robosystems_client/models/get_all_shared_repository_limits_response_getallsharedrepositorylimits.py +0 -46
  43. robosystems_client/models/get_current_graph_bill_response_getcurrentgraphbill.py +0 -44
  44. robosystems_client/models/get_graph_billing_history_response_getgraphbillinghistory.py +0 -44
  45. robosystems_client/models/get_graph_monthly_bill_response_getgraphmonthlybill.py +0 -44
  46. robosystems_client/models/get_graph_usage_details_response_getgraphusagedetails.py +0 -44
  47. robosystems_client/models/get_shared_repository_limits_response_getsharedrepositorylimits.py +0 -44
  48. robosystems_client/models/graph_usage_response_query_statistics.py +0 -44
  49. robosystems_client/models/repository_credits_response.py +0 -128
  50. robosystems_client/models/repository_plan.py +0 -10
  51. robosystems_client/models/repository_type.py +0 -10
  52. robosystems_client/models/subscription_info.py +0 -152
  53. robosystems_client/models/subscription_info_metadata.py +0 -44
  54. robosystems_client/models/subscription_request.py +0 -80
  55. robosystems_client/models/subscription_response.py +0 -74
  56. robosystems_client/models/user_analytics_response.py +0 -132
  57. robosystems_client/models/user_analytics_response_graph_usage.py +0 -44
  58. robosystems_client/models/user_analytics_response_recent_activity_item.py +0 -44
  59. robosystems_client/models/user_analytics_response_user_info.py +0 -44
  60. robosystems_client/models/user_graph_summary.py +0 -134
  61. robosystems_client/models/user_subscriptions_response.py +0 -90
  62. robosystems_client/models/user_usage_summary_response.py +0 -130
  63. robosystems_client/models/user_usage_summary_response_usage_vs_limits.py +0 -44
  64. /robosystems_client/api/{graph_analytics → credits_}/__init__.py +0 -0
  65. /robosystems_client/api/{graph_credits → credits_}/check_credit_balance.py +0 -0
  66. /robosystems_client/api/{graph_credits → credits_}/check_storage_limits.py +0 -0
  67. /robosystems_client/api/{graph_credits → credits_}/get_credit_summary.py +0 -0
  68. /robosystems_client/api/{graph_credits → credits_}/get_storage_usage.py +0 -0
  69. /robosystems_client/api/{graph_credits → credits_}/list_credit_transactions.py +0 -0
  70. /robosystems_client/api/{graph_billing → subscriptions}/__init__.py +0 -0
  71. /robosystems_client/api/{graph_credits → usage}/__init__.py +0 -0
  72. /robosystems_client/api/{graph_analytics → usage}/get_graph_metrics.py +0 -0
  73. {robosystems_client-0.2.9.dist-info → robosystems_client-0.2.10.dist-info}/WHEEL +0 -0
  74. {robosystems_client-0.2.9.dist-info → robosystems_client-0.2.10.dist-info}/licenses/LICENSE +0 -0
@@ -1,119 +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="AddOnCreditInfo")
10
-
11
-
12
- @_attrs_define
13
- class AddOnCreditInfo:
14
- """Credit information for a specific add-on.
15
-
16
- Attributes:
17
- subscription_id (str): Subscription ID
18
- addon_type (str): Add-on type (e.g., sec_data)
19
- name (str): Display name of the add-on
20
- tier (str): Subscription tier
21
- credits_remaining (float): Credits remaining
22
- credits_allocated (float): Monthly credit allocation
23
- credits_consumed (float): Credits consumed this month
24
- rollover_amount (Union[Unset, float]): Credits rolled over from previous month Default: 0.0.
25
- """
26
-
27
- subscription_id: str
28
- addon_type: str
29
- name: str
30
- tier: str
31
- credits_remaining: float
32
- credits_allocated: float
33
- credits_consumed: float
34
- rollover_amount: Union[Unset, float] = 0.0
35
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
36
-
37
- def to_dict(self) -> dict[str, Any]:
38
- subscription_id = self.subscription_id
39
-
40
- addon_type = self.addon_type
41
-
42
- name = self.name
43
-
44
- tier = self.tier
45
-
46
- credits_remaining = self.credits_remaining
47
-
48
- credits_allocated = self.credits_allocated
49
-
50
- credits_consumed = self.credits_consumed
51
-
52
- rollover_amount = self.rollover_amount
53
-
54
- field_dict: dict[str, Any] = {}
55
- field_dict.update(self.additional_properties)
56
- field_dict.update(
57
- {
58
- "subscription_id": subscription_id,
59
- "addon_type": addon_type,
60
- "name": name,
61
- "tier": tier,
62
- "credits_remaining": credits_remaining,
63
- "credits_allocated": credits_allocated,
64
- "credits_consumed": credits_consumed,
65
- }
66
- )
67
- if rollover_amount is not UNSET:
68
- field_dict["rollover_amount"] = rollover_amount
69
-
70
- return field_dict
71
-
72
- @classmethod
73
- def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
74
- d = dict(src_dict)
75
- subscription_id = d.pop("subscription_id")
76
-
77
- addon_type = d.pop("addon_type")
78
-
79
- name = d.pop("name")
80
-
81
- tier = d.pop("tier")
82
-
83
- credits_remaining = d.pop("credits_remaining")
84
-
85
- credits_allocated = d.pop("credits_allocated")
86
-
87
- credits_consumed = d.pop("credits_consumed")
88
-
89
- rollover_amount = d.pop("rollover_amount", UNSET)
90
-
91
- add_on_credit_info = cls(
92
- subscription_id=subscription_id,
93
- addon_type=addon_type,
94
- name=name,
95
- tier=tier,
96
- credits_remaining=credits_remaining,
97
- credits_allocated=credits_allocated,
98
- credits_consumed=credits_consumed,
99
- rollover_amount=rollover_amount,
100
- )
101
-
102
- add_on_credit_info.additional_properties = d
103
- return add_on_credit_info
104
-
105
- @property
106
- def additional_keys(self) -> list[str]:
107
- return list(self.additional_properties.keys())
108
-
109
- def __getitem__(self, key: str) -> Any:
110
- return self.additional_properties[key]
111
-
112
- def __setitem__(self, key: str, value: Any) -> None:
113
- self.additional_properties[key] = value
114
-
115
- def __delitem__(self, key: str) -> None:
116
- del self.additional_properties[key]
117
-
118
- def __contains__(self, key: str) -> bool:
119
- return key in self.additional_properties
@@ -1,148 +0,0 @@
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.add_on_credit_info import AddOnCreditInfo
11
- from ..models.credits_summary_response_credits_by_addon_type_0_item import (
12
- CreditsSummaryResponseCreditsByAddonType0Item,
13
- )
14
-
15
-
16
- T = TypeVar("T", bound="CreditsSummaryResponse")
17
-
18
-
19
- @_attrs_define
20
- class CreditsSummaryResponse:
21
- """Response for credits summary.
22
-
23
- Attributes:
24
- add_ons (list['AddOnCreditInfo']): Credits breakdown by add-on
25
- total_credits (float): Total credits remaining across all subscriptions
26
- addon_count (int): Number of active add-ons
27
- credits_by_addon (Union[None, Unset, list['CreditsSummaryResponseCreditsByAddonType0Item']]): Legacy field -
28
- Credits breakdown by add-on
29
- """
30
-
31
- add_ons: list["AddOnCreditInfo"]
32
- total_credits: float
33
- addon_count: int
34
- credits_by_addon: Union[
35
- None, Unset, list["CreditsSummaryResponseCreditsByAddonType0Item"]
36
- ] = UNSET
37
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
38
-
39
- def to_dict(self) -> dict[str, Any]:
40
- add_ons = []
41
- for add_ons_item_data in self.add_ons:
42
- add_ons_item = add_ons_item_data.to_dict()
43
- add_ons.append(add_ons_item)
44
-
45
- total_credits = self.total_credits
46
-
47
- addon_count = self.addon_count
48
-
49
- credits_by_addon: Union[None, Unset, list[dict[str, Any]]]
50
- if isinstance(self.credits_by_addon, Unset):
51
- credits_by_addon = UNSET
52
- elif isinstance(self.credits_by_addon, list):
53
- credits_by_addon = []
54
- for credits_by_addon_type_0_item_data in self.credits_by_addon:
55
- credits_by_addon_type_0_item = credits_by_addon_type_0_item_data.to_dict()
56
- credits_by_addon.append(credits_by_addon_type_0_item)
57
-
58
- else:
59
- credits_by_addon = self.credits_by_addon
60
-
61
- field_dict: dict[str, Any] = {}
62
- field_dict.update(self.additional_properties)
63
- field_dict.update(
64
- {
65
- "add_ons": add_ons,
66
- "total_credits": total_credits,
67
- "addon_count": addon_count,
68
- }
69
- )
70
- if credits_by_addon is not UNSET:
71
- field_dict["credits_by_addon"] = credits_by_addon
72
-
73
- return field_dict
74
-
75
- @classmethod
76
- def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
77
- from ..models.add_on_credit_info import AddOnCreditInfo
78
- from ..models.credits_summary_response_credits_by_addon_type_0_item import (
79
- CreditsSummaryResponseCreditsByAddonType0Item,
80
- )
81
-
82
- d = dict(src_dict)
83
- add_ons = []
84
- _add_ons = d.pop("add_ons")
85
- for add_ons_item_data in _add_ons:
86
- add_ons_item = AddOnCreditInfo.from_dict(add_ons_item_data)
87
-
88
- add_ons.append(add_ons_item)
89
-
90
- total_credits = d.pop("total_credits")
91
-
92
- addon_count = d.pop("addon_count")
93
-
94
- def _parse_credits_by_addon(
95
- data: object,
96
- ) -> Union[None, Unset, list["CreditsSummaryResponseCreditsByAddonType0Item"]]:
97
- if data is None:
98
- return data
99
- if isinstance(data, Unset):
100
- return data
101
- try:
102
- if not isinstance(data, list):
103
- raise TypeError()
104
- credits_by_addon_type_0 = []
105
- _credits_by_addon_type_0 = data
106
- for credits_by_addon_type_0_item_data in _credits_by_addon_type_0:
107
- credits_by_addon_type_0_item = (
108
- CreditsSummaryResponseCreditsByAddonType0Item.from_dict(
109
- credits_by_addon_type_0_item_data
110
- )
111
- )
112
-
113
- credits_by_addon_type_0.append(credits_by_addon_type_0_item)
114
-
115
- return credits_by_addon_type_0
116
- except: # noqa: E722
117
- pass
118
- return cast(
119
- Union[None, Unset, list["CreditsSummaryResponseCreditsByAddonType0Item"]], data
120
- )
121
-
122
- credits_by_addon = _parse_credits_by_addon(d.pop("credits_by_addon", UNSET))
123
-
124
- credits_summary_response = cls(
125
- add_ons=add_ons,
126
- total_credits=total_credits,
127
- addon_count=addon_count,
128
- credits_by_addon=credits_by_addon,
129
- )
130
-
131
- credits_summary_response.additional_properties = d
132
- return credits_summary_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
@@ -1,44 +0,0 @@
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="GetAllCreditSummariesResponseGetallcreditsummaries")
8
-
9
-
10
- @_attrs_define
11
- class GetAllCreditSummariesResponseGetallcreditsummaries:
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_all_credit_summaries_response_getallcreditsummaries = cls()
26
-
27
- get_all_credit_summaries_response_getallcreditsummaries.additional_properties = d
28
- return get_all_credit_summaries_response_getallcreditsummaries
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
@@ -1,46 +0,0 @@
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(
8
- "T", bound="GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits"
9
- )
10
-
11
-
12
- @_attrs_define
13
- class GetAllSharedRepositoryLimitsResponseGetallsharedrepositorylimits:
14
- """ """
15
-
16
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
17
-
18
- def to_dict(self) -> dict[str, Any]:
19
- field_dict: dict[str, Any] = {}
20
- field_dict.update(self.additional_properties)
21
-
22
- return field_dict
23
-
24
- @classmethod
25
- def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
26
- d = dict(src_dict)
27
- get_all_shared_repository_limits_response_getallsharedrepositorylimits = cls()
28
-
29
- get_all_shared_repository_limits_response_getallsharedrepositorylimits.additional_properties = d
30
- return get_all_shared_repository_limits_response_getallsharedrepositorylimits
31
-
32
- @property
33
- def additional_keys(self) -> list[str]:
34
- return list(self.additional_properties.keys())
35
-
36
- def __getitem__(self, key: str) -> Any:
37
- return self.additional_properties[key]
38
-
39
- def __setitem__(self, key: str, value: Any) -> None:
40
- self.additional_properties[key] = value
41
-
42
- def __delitem__(self, key: str) -> None:
43
- del self.additional_properties[key]
44
-
45
- def __contains__(self, key: str) -> bool:
46
- return key in self.additional_properties
@@ -1,44 +0,0 @@
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="GetCurrentGraphBillResponseGetcurrentgraphbill")
8
-
9
-
10
- @_attrs_define
11
- class GetCurrentGraphBillResponseGetcurrentgraphbill:
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_current_graph_bill_response_getcurrentgraphbill = cls()
26
-
27
- get_current_graph_bill_response_getcurrentgraphbill.additional_properties = d
28
- return get_current_graph_bill_response_getcurrentgraphbill
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
@@ -1,44 +0,0 @@
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="GetGraphBillingHistoryResponseGetgraphbillinghistory")
8
-
9
-
10
- @_attrs_define
11
- class GetGraphBillingHistoryResponseGetgraphbillinghistory:
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_billing_history_response_getgraphbillinghistory = cls()
26
-
27
- get_graph_billing_history_response_getgraphbillinghistory.additional_properties = d
28
- return get_graph_billing_history_response_getgraphbillinghistory
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
@@ -1,44 +0,0 @@
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="GetGraphMonthlyBillResponseGetgraphmonthlybill")
8
-
9
-
10
- @_attrs_define
11
- class GetGraphMonthlyBillResponseGetgraphmonthlybill:
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_monthly_bill_response_getgraphmonthlybill = cls()
26
-
27
- get_graph_monthly_bill_response_getgraphmonthlybill.additional_properties = d
28
- return get_graph_monthly_bill_response_getgraphmonthlybill
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
@@ -1,44 +0,0 @@
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="GetGraphUsageDetailsResponseGetgraphusagedetails")
8
-
9
-
10
- @_attrs_define
11
- class GetGraphUsageDetailsResponseGetgraphusagedetails:
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_usage_details_response_getgraphusagedetails = cls()
26
-
27
- get_graph_usage_details_response_getgraphusagedetails.additional_properties = d
28
- return get_graph_usage_details_response_getgraphusagedetails
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
@@ -1,44 +0,0 @@
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="GetSharedRepositoryLimitsResponseGetsharedrepositorylimits")
8
-
9
-
10
- @_attrs_define
11
- class GetSharedRepositoryLimitsResponseGetsharedrepositorylimits:
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_shared_repository_limits_response_getsharedrepositorylimits = cls()
26
-
27
- get_shared_repository_limits_response_getsharedrepositorylimits.additional_properties = d
28
- return get_shared_repository_limits_response_getsharedrepositorylimits
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
@@ -1,44 +0,0 @@
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="GraphUsageResponseQueryStatistics")
8
-
9
-
10
- @_attrs_define
11
- class GraphUsageResponseQueryStatistics:
12
- """Query statistics"""
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
- graph_usage_response_query_statistics = cls()
26
-
27
- graph_usage_response_query_statistics.additional_properties = d
28
- return graph_usage_response_query_statistics
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