robosystems-client 0.2.8__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.
- robosystems_client/api/graphs/get_graphs.py +120 -92
- robosystems_client/api/{user_subscriptions/cancel_shared_repository_subscription.py → subscriptions/cancel_subscription.py} +41 -25
- robosystems_client/api/subscriptions/create_repository_subscription.py +217 -0
- robosystems_client/api/subscriptions/get_graph_subscription.py +197 -0
- robosystems_client/api/{user_subscriptions/upgrade_shared_repository_subscription.py → subscriptions/upgrade_subscription.py} +57 -55
- robosystems_client/api/usage/get_graph_usage_analytics.py +377 -0
- robosystems_client/api/{user_limits/get_user_usage.py → user/get_user_limits.py} +13 -9
- robosystems_client/models/__init__.py +18 -82
- robosystems_client/models/{credits_summary_response_credits_by_addon_type_0_item.py → create_repository_subscription_request.py} +22 -6
- robosystems_client/models/credit_summary.py +55 -89
- robosystems_client/models/{graph_usage_response_storage_usage.py → credit_summary_operation_breakdown.py} +6 -6
- robosystems_client/models/graph_info.py +33 -2
- robosystems_client/models/graph_subscription_response.py +200 -0
- robosystems_client/models/graph_tier_instance.py +7 -7
- robosystems_client/models/graph_usage_response.py +136 -39
- robosystems_client/models/{user_analytics_response_limits.py → graph_usage_response_recent_events_item.py} +6 -6
- robosystems_client/models/performance_insights.py +120 -0
- robosystems_client/models/{graph_usage_response_recent_activity.py → performance_insights_operation_stats.py} +6 -6
- robosystems_client/models/{user_analytics_response_api_usage.py → performance_insights_slow_queries_item.py} +6 -6
- robosystems_client/models/storage_summary.py +100 -0
- robosystems_client/models/{tier_upgrade_request.py → upgrade_subscription_request.py} +12 -14
- {robosystems_client-0.2.8.dist-info → robosystems_client-0.2.10.dist-info}/METADATA +1 -1
- {robosystems_client-0.2.8.dist-info → robosystems_client-0.2.10.dist-info}/RECORD +34 -71
- robosystems_client/api/graph_analytics/get_graph_usage_stats.py +0 -289
- robosystems_client/api/graph_billing/get_current_graph_bill.py +0 -253
- robosystems_client/api/graph_billing/get_graph_billing_history.py +0 -298
- robosystems_client/api/graph_billing/get_graph_monthly_bill.py +0 -284
- robosystems_client/api/graph_billing/get_graph_usage_details.py +0 -320
- robosystems_client/api/user/get_all_credit_summaries.py +0 -169
- robosystems_client/api/user_analytics/__init__.py +0 -1
- robosystems_client/api/user_analytics/get_detailed_user_analytics.py +0 -188
- robosystems_client/api/user_analytics/get_user_usage_overview.py +0 -135
- robosystems_client/api/user_limits/__init__.py +0 -1
- robosystems_client/api/user_limits/get_all_shared_repository_limits.py +0 -141
- robosystems_client/api/user_limits/get_shared_repository_limits.py +0 -213
- robosystems_client/api/user_limits/get_user_limits.py +0 -139
- robosystems_client/api/user_subscriptions/__init__.py +0 -1
- robosystems_client/api/user_subscriptions/get_repository_credits.py +0 -173
- robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +0 -143
- robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +0 -181
- robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +0 -186
- robosystems_client/models/add_on_credit_info.py +0 -119
- robosystems_client/models/credits_summary_response.py +0 -148
- robosystems_client/models/get_all_credit_summaries_response_getallcreditsummaries.py +0 -44
- robosystems_client/models/get_all_shared_repository_limits_response_getallsharedrepositorylimits.py +0 -46
- robosystems_client/models/get_current_graph_bill_response_getcurrentgraphbill.py +0 -44
- robosystems_client/models/get_graph_billing_history_response_getgraphbillinghistory.py +0 -44
- robosystems_client/models/get_graph_monthly_bill_response_getgraphmonthlybill.py +0 -44
- robosystems_client/models/get_graph_usage_details_response_getgraphusagedetails.py +0 -44
- robosystems_client/models/get_shared_repository_limits_response_getsharedrepositorylimits.py +0 -44
- robosystems_client/models/graph_usage_response_query_statistics.py +0 -44
- robosystems_client/models/repository_credits_response.py +0 -128
- robosystems_client/models/repository_plan.py +0 -10
- robosystems_client/models/repository_type.py +0 -10
- robosystems_client/models/subscription_info.py +0 -152
- robosystems_client/models/subscription_info_metadata.py +0 -44
- robosystems_client/models/subscription_request.py +0 -80
- robosystems_client/models/subscription_response.py +0 -74
- robosystems_client/models/user_analytics_response.py +0 -132
- robosystems_client/models/user_analytics_response_graph_usage.py +0 -44
- robosystems_client/models/user_analytics_response_recent_activity_item.py +0 -44
- robosystems_client/models/user_analytics_response_user_info.py +0 -44
- robosystems_client/models/user_graph_summary.py +0 -134
- robosystems_client/models/user_subscriptions_response.py +0 -90
- robosystems_client/models/user_usage_summary_response.py +0 -130
- robosystems_client/models/user_usage_summary_response_usage_vs_limits.py +0 -44
- /robosystems_client/api/{graph_analytics → credits_}/__init__.py +0 -0
- /robosystems_client/api/{graph_credits → credits_}/check_credit_balance.py +0 -0
- /robosystems_client/api/{graph_credits → credits_}/check_storage_limits.py +0 -0
- /robosystems_client/api/{graph_credits → credits_}/get_credit_summary.py +0 -0
- /robosystems_client/api/{graph_credits → credits_}/get_storage_usage.py +0 -0
- /robosystems_client/api/{graph_credits → credits_}/list_credit_transactions.py +0 -0
- /robosystems_client/api/{graph_billing → subscriptions}/__init__.py +0 -0
- /robosystems_client/api/{graph_credits → usage}/__init__.py +0 -0
- /robosystems_client/api/{graph_analytics → usage}/get_graph_metrics.py +0 -0
- {robosystems_client-0.2.8.dist-info → robosystems_client-0.2.10.dist-info}/WHEEL +0 -0
- {robosystems_client-0.2.8.dist-info → robosystems_client-0.2.10.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,128 +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.credit_summary import CreditSummary
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
T = TypeVar("T", bound="RepositoryCreditsResponse")
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
@_attrs_define
|
|
17
|
-
class RepositoryCreditsResponse:
|
|
18
|
-
"""Response for repository-specific credits.
|
|
19
|
-
|
|
20
|
-
Attributes:
|
|
21
|
-
repository (str): Repository identifier
|
|
22
|
-
has_access (bool): Whether user has access
|
|
23
|
-
message (Union[None, Unset, str]): Access message
|
|
24
|
-
credits_ (Union['CreditSummary', None, Unset]): Credit summary if access available
|
|
25
|
-
"""
|
|
26
|
-
|
|
27
|
-
repository: str
|
|
28
|
-
has_access: bool
|
|
29
|
-
message: Union[None, Unset, str] = UNSET
|
|
30
|
-
credits_: Union["CreditSummary", None, Unset] = UNSET
|
|
31
|
-
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
32
|
-
|
|
33
|
-
def to_dict(self) -> dict[str, Any]:
|
|
34
|
-
from ..models.credit_summary import CreditSummary
|
|
35
|
-
|
|
36
|
-
repository = self.repository
|
|
37
|
-
|
|
38
|
-
has_access = self.has_access
|
|
39
|
-
|
|
40
|
-
message: Union[None, Unset, str]
|
|
41
|
-
if isinstance(self.message, Unset):
|
|
42
|
-
message = UNSET
|
|
43
|
-
else:
|
|
44
|
-
message = self.message
|
|
45
|
-
|
|
46
|
-
credits_: Union[None, Unset, dict[str, Any]]
|
|
47
|
-
if isinstance(self.credits_, Unset):
|
|
48
|
-
credits_ = UNSET
|
|
49
|
-
elif isinstance(self.credits_, CreditSummary):
|
|
50
|
-
credits_ = self.credits_.to_dict()
|
|
51
|
-
else:
|
|
52
|
-
credits_ = self.credits_
|
|
53
|
-
|
|
54
|
-
field_dict: dict[str, Any] = {}
|
|
55
|
-
field_dict.update(self.additional_properties)
|
|
56
|
-
field_dict.update(
|
|
57
|
-
{
|
|
58
|
-
"repository": repository,
|
|
59
|
-
"has_access": has_access,
|
|
60
|
-
}
|
|
61
|
-
)
|
|
62
|
-
if message is not UNSET:
|
|
63
|
-
field_dict["message"] = message
|
|
64
|
-
if credits_ is not UNSET:
|
|
65
|
-
field_dict["credits"] = credits_
|
|
66
|
-
|
|
67
|
-
return field_dict
|
|
68
|
-
|
|
69
|
-
@classmethod
|
|
70
|
-
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
71
|
-
from ..models.credit_summary import CreditSummary
|
|
72
|
-
|
|
73
|
-
d = dict(src_dict)
|
|
74
|
-
repository = d.pop("repository")
|
|
75
|
-
|
|
76
|
-
has_access = d.pop("has_access")
|
|
77
|
-
|
|
78
|
-
def _parse_message(data: object) -> Union[None, Unset, str]:
|
|
79
|
-
if data is None:
|
|
80
|
-
return data
|
|
81
|
-
if isinstance(data, Unset):
|
|
82
|
-
return data
|
|
83
|
-
return cast(Union[None, Unset, str], data)
|
|
84
|
-
|
|
85
|
-
message = _parse_message(d.pop("message", UNSET))
|
|
86
|
-
|
|
87
|
-
def _parse_credits_(data: object) -> Union["CreditSummary", None, Unset]:
|
|
88
|
-
if data is None:
|
|
89
|
-
return data
|
|
90
|
-
if isinstance(data, Unset):
|
|
91
|
-
return data
|
|
92
|
-
try:
|
|
93
|
-
if not isinstance(data, dict):
|
|
94
|
-
raise TypeError()
|
|
95
|
-
credits_type_0 = CreditSummary.from_dict(data)
|
|
96
|
-
|
|
97
|
-
return credits_type_0
|
|
98
|
-
except: # noqa: E722
|
|
99
|
-
pass
|
|
100
|
-
return cast(Union["CreditSummary", None, Unset], data)
|
|
101
|
-
|
|
102
|
-
credits_ = _parse_credits_(d.pop("credits", UNSET))
|
|
103
|
-
|
|
104
|
-
repository_credits_response = cls(
|
|
105
|
-
repository=repository,
|
|
106
|
-
has_access=has_access,
|
|
107
|
-
message=message,
|
|
108
|
-
credits_=credits_,
|
|
109
|
-
)
|
|
110
|
-
|
|
111
|
-
repository_credits_response.additional_properties = d
|
|
112
|
-
return repository_credits_response
|
|
113
|
-
|
|
114
|
-
@property
|
|
115
|
-
def additional_keys(self) -> list[str]:
|
|
116
|
-
return list(self.additional_properties.keys())
|
|
117
|
-
|
|
118
|
-
def __getitem__(self, key: str) -> Any:
|
|
119
|
-
return self.additional_properties[key]
|
|
120
|
-
|
|
121
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
122
|
-
self.additional_properties[key] = value
|
|
123
|
-
|
|
124
|
-
def __delitem__(self, key: str) -> None:
|
|
125
|
-
del self.additional_properties[key]
|
|
126
|
-
|
|
127
|
-
def __contains__(self, key: str) -> bool:
|
|
128
|
-
return key in self.additional_properties
|
|
@@ -1,152 +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.subscription_info_metadata import SubscriptionInfoMetadata
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
T = TypeVar("T", bound="SubscriptionInfo")
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
@_attrs_define
|
|
17
|
-
class SubscriptionInfo:
|
|
18
|
-
"""User subscription information.
|
|
19
|
-
|
|
20
|
-
Attributes:
|
|
21
|
-
id (str): Subscription ID
|
|
22
|
-
user_id (str): User ID
|
|
23
|
-
addon_type (str): Add-on type
|
|
24
|
-
addon_tier (str): Subscription tier
|
|
25
|
-
is_active (bool): Whether subscription is active
|
|
26
|
-
activated_at (str): Activation date (ISO format)
|
|
27
|
-
monthly_price_cents (int): Monthly price in cents
|
|
28
|
-
features (list[str]): List of features
|
|
29
|
-
metadata (SubscriptionInfoMetadata): Additional metadata
|
|
30
|
-
expires_at (Union[None, Unset, str]): Expiration date (ISO format)
|
|
31
|
-
"""
|
|
32
|
-
|
|
33
|
-
id: str
|
|
34
|
-
user_id: str
|
|
35
|
-
addon_type: str
|
|
36
|
-
addon_tier: str
|
|
37
|
-
is_active: bool
|
|
38
|
-
activated_at: str
|
|
39
|
-
monthly_price_cents: int
|
|
40
|
-
features: list[str]
|
|
41
|
-
metadata: "SubscriptionInfoMetadata"
|
|
42
|
-
expires_at: Union[None, Unset, str] = UNSET
|
|
43
|
-
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
44
|
-
|
|
45
|
-
def to_dict(self) -> dict[str, Any]:
|
|
46
|
-
id = self.id
|
|
47
|
-
|
|
48
|
-
user_id = self.user_id
|
|
49
|
-
|
|
50
|
-
addon_type = self.addon_type
|
|
51
|
-
|
|
52
|
-
addon_tier = self.addon_tier
|
|
53
|
-
|
|
54
|
-
is_active = self.is_active
|
|
55
|
-
|
|
56
|
-
activated_at = self.activated_at
|
|
57
|
-
|
|
58
|
-
monthly_price_cents = self.monthly_price_cents
|
|
59
|
-
|
|
60
|
-
features = self.features
|
|
61
|
-
|
|
62
|
-
metadata = self.metadata.to_dict()
|
|
63
|
-
|
|
64
|
-
expires_at: Union[None, Unset, str]
|
|
65
|
-
if isinstance(self.expires_at, Unset):
|
|
66
|
-
expires_at = UNSET
|
|
67
|
-
else:
|
|
68
|
-
expires_at = self.expires_at
|
|
69
|
-
|
|
70
|
-
field_dict: dict[str, Any] = {}
|
|
71
|
-
field_dict.update(self.additional_properties)
|
|
72
|
-
field_dict.update(
|
|
73
|
-
{
|
|
74
|
-
"id": id,
|
|
75
|
-
"user_id": user_id,
|
|
76
|
-
"addon_type": addon_type,
|
|
77
|
-
"addon_tier": addon_tier,
|
|
78
|
-
"is_active": is_active,
|
|
79
|
-
"activated_at": activated_at,
|
|
80
|
-
"monthly_price_cents": monthly_price_cents,
|
|
81
|
-
"features": features,
|
|
82
|
-
"metadata": metadata,
|
|
83
|
-
}
|
|
84
|
-
)
|
|
85
|
-
if expires_at is not UNSET:
|
|
86
|
-
field_dict["expires_at"] = expires_at
|
|
87
|
-
|
|
88
|
-
return field_dict
|
|
89
|
-
|
|
90
|
-
@classmethod
|
|
91
|
-
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
92
|
-
from ..models.subscription_info_metadata import SubscriptionInfoMetadata
|
|
93
|
-
|
|
94
|
-
d = dict(src_dict)
|
|
95
|
-
id = d.pop("id")
|
|
96
|
-
|
|
97
|
-
user_id = d.pop("user_id")
|
|
98
|
-
|
|
99
|
-
addon_type = d.pop("addon_type")
|
|
100
|
-
|
|
101
|
-
addon_tier = d.pop("addon_tier")
|
|
102
|
-
|
|
103
|
-
is_active = d.pop("is_active")
|
|
104
|
-
|
|
105
|
-
activated_at = d.pop("activated_at")
|
|
106
|
-
|
|
107
|
-
monthly_price_cents = d.pop("monthly_price_cents")
|
|
108
|
-
|
|
109
|
-
features = cast(list[str], d.pop("features"))
|
|
110
|
-
|
|
111
|
-
metadata = SubscriptionInfoMetadata.from_dict(d.pop("metadata"))
|
|
112
|
-
|
|
113
|
-
def _parse_expires_at(data: object) -> Union[None, Unset, str]:
|
|
114
|
-
if data is None:
|
|
115
|
-
return data
|
|
116
|
-
if isinstance(data, Unset):
|
|
117
|
-
return data
|
|
118
|
-
return cast(Union[None, Unset, str], data)
|
|
119
|
-
|
|
120
|
-
expires_at = _parse_expires_at(d.pop("expires_at", UNSET))
|
|
121
|
-
|
|
122
|
-
subscription_info = cls(
|
|
123
|
-
id=id,
|
|
124
|
-
user_id=user_id,
|
|
125
|
-
addon_type=addon_type,
|
|
126
|
-
addon_tier=addon_tier,
|
|
127
|
-
is_active=is_active,
|
|
128
|
-
activated_at=activated_at,
|
|
129
|
-
monthly_price_cents=monthly_price_cents,
|
|
130
|
-
features=features,
|
|
131
|
-
metadata=metadata,
|
|
132
|
-
expires_at=expires_at,
|
|
133
|
-
)
|
|
134
|
-
|
|
135
|
-
subscription_info.additional_properties = d
|
|
136
|
-
return subscription_info
|
|
137
|
-
|
|
138
|
-
@property
|
|
139
|
-
def additional_keys(self) -> list[str]:
|
|
140
|
-
return list(self.additional_properties.keys())
|
|
141
|
-
|
|
142
|
-
def __getitem__(self, key: str) -> Any:
|
|
143
|
-
return self.additional_properties[key]
|
|
144
|
-
|
|
145
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
146
|
-
self.additional_properties[key] = value
|
|
147
|
-
|
|
148
|
-
def __delitem__(self, key: str) -> None:
|
|
149
|
-
del self.additional_properties[key]
|
|
150
|
-
|
|
151
|
-
def __contains__(self, key: str) -> bool:
|
|
152
|
-
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="SubscriptionInfoMetadata")
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
@_attrs_define
|
|
11
|
-
class SubscriptionInfoMetadata:
|
|
12
|
-
"""Additional metadata"""
|
|
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
|
-
subscription_info_metadata = cls()
|
|
26
|
-
|
|
27
|
-
subscription_info_metadata.additional_properties = d
|
|
28
|
-
return subscription_info_metadata
|
|
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,80 +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 ..models.repository_plan import RepositoryPlan
|
|
8
|
-
from ..models.repository_type import RepositoryType
|
|
9
|
-
from ..types import UNSET, Unset
|
|
10
|
-
|
|
11
|
-
T = TypeVar("T", bound="SubscriptionRequest")
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
@_attrs_define
|
|
15
|
-
class SubscriptionRequest:
|
|
16
|
-
"""Request to create a new subscription.
|
|
17
|
-
|
|
18
|
-
Attributes:
|
|
19
|
-
repository_type (RepositoryType): Types of shared repositories.
|
|
20
|
-
repository_plan (Union[Unset, RepositoryPlan]): Repository access plans for shared data.
|
|
21
|
-
"""
|
|
22
|
-
|
|
23
|
-
repository_type: RepositoryType
|
|
24
|
-
repository_plan: Union[Unset, RepositoryPlan] = UNSET
|
|
25
|
-
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
|
-
|
|
27
|
-
def to_dict(self) -> dict[str, Any]:
|
|
28
|
-
repository_type = self.repository_type.value
|
|
29
|
-
|
|
30
|
-
repository_plan: Union[Unset, str] = UNSET
|
|
31
|
-
if not isinstance(self.repository_plan, Unset):
|
|
32
|
-
repository_plan = self.repository_plan.value
|
|
33
|
-
|
|
34
|
-
field_dict: dict[str, Any] = {}
|
|
35
|
-
field_dict.update(self.additional_properties)
|
|
36
|
-
field_dict.update(
|
|
37
|
-
{
|
|
38
|
-
"repository_type": repository_type,
|
|
39
|
-
}
|
|
40
|
-
)
|
|
41
|
-
if repository_plan is not UNSET:
|
|
42
|
-
field_dict["repository_plan"] = repository_plan
|
|
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
|
-
repository_type = RepositoryType(d.pop("repository_type"))
|
|
50
|
-
|
|
51
|
-
_repository_plan = d.pop("repository_plan", UNSET)
|
|
52
|
-
repository_plan: Union[Unset, RepositoryPlan]
|
|
53
|
-
if isinstance(_repository_plan, Unset):
|
|
54
|
-
repository_plan = UNSET
|
|
55
|
-
else:
|
|
56
|
-
repository_plan = RepositoryPlan(_repository_plan)
|
|
57
|
-
|
|
58
|
-
subscription_request = cls(
|
|
59
|
-
repository_type=repository_type,
|
|
60
|
-
repository_plan=repository_plan,
|
|
61
|
-
)
|
|
62
|
-
|
|
63
|
-
subscription_request.additional_properties = d
|
|
64
|
-
return subscription_request
|
|
65
|
-
|
|
66
|
-
@property
|
|
67
|
-
def additional_keys(self) -> list[str]:
|
|
68
|
-
return list(self.additional_properties.keys())
|
|
69
|
-
|
|
70
|
-
def __getitem__(self, key: str) -> Any:
|
|
71
|
-
return self.additional_properties[key]
|
|
72
|
-
|
|
73
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
74
|
-
self.additional_properties[key] = value
|
|
75
|
-
|
|
76
|
-
def __delitem__(self, key: str) -> None:
|
|
77
|
-
del self.additional_properties[key]
|
|
78
|
-
|
|
79
|
-
def __contains__(self, key: str) -> bool:
|
|
80
|
-
return key in self.additional_properties
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
from collections.abc import Mapping
|
|
2
|
-
from typing import TYPE_CHECKING, Any, TypeVar
|
|
3
|
-
|
|
4
|
-
from attrs import define as _attrs_define
|
|
5
|
-
from attrs import field as _attrs_field
|
|
6
|
-
|
|
7
|
-
if TYPE_CHECKING:
|
|
8
|
-
from ..models.subscription_info import SubscriptionInfo
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
T = TypeVar("T", bound="SubscriptionResponse")
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
@_attrs_define
|
|
15
|
-
class SubscriptionResponse:
|
|
16
|
-
"""Response for subscription creation.
|
|
17
|
-
|
|
18
|
-
Attributes:
|
|
19
|
-
message (str): Success message
|
|
20
|
-
subscription (SubscriptionInfo): User subscription information.
|
|
21
|
-
"""
|
|
22
|
-
|
|
23
|
-
message: str
|
|
24
|
-
subscription: "SubscriptionInfo"
|
|
25
|
-
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
|
-
|
|
27
|
-
def to_dict(self) -> dict[str, Any]:
|
|
28
|
-
message = self.message
|
|
29
|
-
|
|
30
|
-
subscription = self.subscription.to_dict()
|
|
31
|
-
|
|
32
|
-
field_dict: dict[str, Any] = {}
|
|
33
|
-
field_dict.update(self.additional_properties)
|
|
34
|
-
field_dict.update(
|
|
35
|
-
{
|
|
36
|
-
"message": message,
|
|
37
|
-
"subscription": subscription,
|
|
38
|
-
}
|
|
39
|
-
)
|
|
40
|
-
|
|
41
|
-
return field_dict
|
|
42
|
-
|
|
43
|
-
@classmethod
|
|
44
|
-
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
45
|
-
from ..models.subscription_info import SubscriptionInfo
|
|
46
|
-
|
|
47
|
-
d = dict(src_dict)
|
|
48
|
-
message = d.pop("message")
|
|
49
|
-
|
|
50
|
-
subscription = SubscriptionInfo.from_dict(d.pop("subscription"))
|
|
51
|
-
|
|
52
|
-
subscription_response = cls(
|
|
53
|
-
message=message,
|
|
54
|
-
subscription=subscription,
|
|
55
|
-
)
|
|
56
|
-
|
|
57
|
-
subscription_response.additional_properties = d
|
|
58
|
-
return subscription_response
|
|
59
|
-
|
|
60
|
-
@property
|
|
61
|
-
def additional_keys(self) -> list[str]:
|
|
62
|
-
return list(self.additional_properties.keys())
|
|
63
|
-
|
|
64
|
-
def __getitem__(self, key: str) -> Any:
|
|
65
|
-
return self.additional_properties[key]
|
|
66
|
-
|
|
67
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
68
|
-
self.additional_properties[key] = value
|
|
69
|
-
|
|
70
|
-
def __delitem__(self, key: str) -> None:
|
|
71
|
-
del self.additional_properties[key]
|
|
72
|
-
|
|
73
|
-
def __contains__(self, key: str) -> bool:
|
|
74
|
-
return key in self.additional_properties
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
from collections.abc import Mapping
|
|
2
|
-
from typing import TYPE_CHECKING, Any, TypeVar
|
|
3
|
-
|
|
4
|
-
from attrs import define as _attrs_define
|
|
5
|
-
from attrs import field as _attrs_field
|
|
6
|
-
|
|
7
|
-
if TYPE_CHECKING:
|
|
8
|
-
from ..models.user_analytics_response_api_usage import UserAnalyticsResponseApiUsage
|
|
9
|
-
from ..models.user_analytics_response_graph_usage import (
|
|
10
|
-
UserAnalyticsResponseGraphUsage,
|
|
11
|
-
)
|
|
12
|
-
from ..models.user_analytics_response_limits import UserAnalyticsResponseLimits
|
|
13
|
-
from ..models.user_analytics_response_recent_activity_item import (
|
|
14
|
-
UserAnalyticsResponseRecentActivityItem,
|
|
15
|
-
)
|
|
16
|
-
from ..models.user_analytics_response_user_info import UserAnalyticsResponseUserInfo
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
T = TypeVar("T", bound="UserAnalyticsResponse")
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
@_attrs_define
|
|
23
|
-
class UserAnalyticsResponse:
|
|
24
|
-
"""Response model for comprehensive user analytics.
|
|
25
|
-
|
|
26
|
-
Attributes:
|
|
27
|
-
user_info (UserAnalyticsResponseUserInfo): User information
|
|
28
|
-
graph_usage (UserAnalyticsResponseGraphUsage): Graph usage statistics
|
|
29
|
-
api_usage (UserAnalyticsResponseApiUsage): API usage statistics
|
|
30
|
-
limits (UserAnalyticsResponseLimits): Current limits and restrictions
|
|
31
|
-
recent_activity (list['UserAnalyticsResponseRecentActivityItem']): Recent user activity
|
|
32
|
-
timestamp (str): Analytics generation timestamp
|
|
33
|
-
"""
|
|
34
|
-
|
|
35
|
-
user_info: "UserAnalyticsResponseUserInfo"
|
|
36
|
-
graph_usage: "UserAnalyticsResponseGraphUsage"
|
|
37
|
-
api_usage: "UserAnalyticsResponseApiUsage"
|
|
38
|
-
limits: "UserAnalyticsResponseLimits"
|
|
39
|
-
recent_activity: list["UserAnalyticsResponseRecentActivityItem"]
|
|
40
|
-
timestamp: str
|
|
41
|
-
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
42
|
-
|
|
43
|
-
def to_dict(self) -> dict[str, Any]:
|
|
44
|
-
user_info = self.user_info.to_dict()
|
|
45
|
-
|
|
46
|
-
graph_usage = self.graph_usage.to_dict()
|
|
47
|
-
|
|
48
|
-
api_usage = self.api_usage.to_dict()
|
|
49
|
-
|
|
50
|
-
limits = self.limits.to_dict()
|
|
51
|
-
|
|
52
|
-
recent_activity = []
|
|
53
|
-
for recent_activity_item_data in self.recent_activity:
|
|
54
|
-
recent_activity_item = recent_activity_item_data.to_dict()
|
|
55
|
-
recent_activity.append(recent_activity_item)
|
|
56
|
-
|
|
57
|
-
timestamp = self.timestamp
|
|
58
|
-
|
|
59
|
-
field_dict: dict[str, Any] = {}
|
|
60
|
-
field_dict.update(self.additional_properties)
|
|
61
|
-
field_dict.update(
|
|
62
|
-
{
|
|
63
|
-
"user_info": user_info,
|
|
64
|
-
"graph_usage": graph_usage,
|
|
65
|
-
"api_usage": api_usage,
|
|
66
|
-
"limits": limits,
|
|
67
|
-
"recent_activity": recent_activity,
|
|
68
|
-
"timestamp": timestamp,
|
|
69
|
-
}
|
|
70
|
-
)
|
|
71
|
-
|
|
72
|
-
return field_dict
|
|
73
|
-
|
|
74
|
-
@classmethod
|
|
75
|
-
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
76
|
-
from ..models.user_analytics_response_api_usage import UserAnalyticsResponseApiUsage
|
|
77
|
-
from ..models.user_analytics_response_graph_usage import (
|
|
78
|
-
UserAnalyticsResponseGraphUsage,
|
|
79
|
-
)
|
|
80
|
-
from ..models.user_analytics_response_limits import UserAnalyticsResponseLimits
|
|
81
|
-
from ..models.user_analytics_response_recent_activity_item import (
|
|
82
|
-
UserAnalyticsResponseRecentActivityItem,
|
|
83
|
-
)
|
|
84
|
-
from ..models.user_analytics_response_user_info import UserAnalyticsResponseUserInfo
|
|
85
|
-
|
|
86
|
-
d = dict(src_dict)
|
|
87
|
-
user_info = UserAnalyticsResponseUserInfo.from_dict(d.pop("user_info"))
|
|
88
|
-
|
|
89
|
-
graph_usage = UserAnalyticsResponseGraphUsage.from_dict(d.pop("graph_usage"))
|
|
90
|
-
|
|
91
|
-
api_usage = UserAnalyticsResponseApiUsage.from_dict(d.pop("api_usage"))
|
|
92
|
-
|
|
93
|
-
limits = UserAnalyticsResponseLimits.from_dict(d.pop("limits"))
|
|
94
|
-
|
|
95
|
-
recent_activity = []
|
|
96
|
-
_recent_activity = d.pop("recent_activity")
|
|
97
|
-
for recent_activity_item_data in _recent_activity:
|
|
98
|
-
recent_activity_item = UserAnalyticsResponseRecentActivityItem.from_dict(
|
|
99
|
-
recent_activity_item_data
|
|
100
|
-
)
|
|
101
|
-
|
|
102
|
-
recent_activity.append(recent_activity_item)
|
|
103
|
-
|
|
104
|
-
timestamp = d.pop("timestamp")
|
|
105
|
-
|
|
106
|
-
user_analytics_response = cls(
|
|
107
|
-
user_info=user_info,
|
|
108
|
-
graph_usage=graph_usage,
|
|
109
|
-
api_usage=api_usage,
|
|
110
|
-
limits=limits,
|
|
111
|
-
recent_activity=recent_activity,
|
|
112
|
-
timestamp=timestamp,
|
|
113
|
-
)
|
|
114
|
-
|
|
115
|
-
user_analytics_response.additional_properties = d
|
|
116
|
-
return user_analytics_response
|
|
117
|
-
|
|
118
|
-
@property
|
|
119
|
-
def additional_keys(self) -> list[str]:
|
|
120
|
-
return list(self.additional_properties.keys())
|
|
121
|
-
|
|
122
|
-
def __getitem__(self, key: str) -> Any:
|
|
123
|
-
return self.additional_properties[key]
|
|
124
|
-
|
|
125
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
126
|
-
self.additional_properties[key] = value
|
|
127
|
-
|
|
128
|
-
def __delitem__(self, key: str) -> None:
|
|
129
|
-
del self.additional_properties[key]
|
|
130
|
-
|
|
131
|
-
def __contains__(self, key: str) -> bool:
|
|
132
|
-
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="UserAnalyticsResponseGraphUsage")
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
@_attrs_define
|
|
11
|
-
class UserAnalyticsResponseGraphUsage:
|
|
12
|
-
"""Graph usage 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
|
-
user_analytics_response_graph_usage = cls()
|
|
26
|
-
|
|
27
|
-
user_analytics_response_graph_usage.additional_properties = d
|
|
28
|
-
return user_analytics_response_graph_usage
|
|
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
|