robosystems-client 0.2.10__py3-none-any.whl → 0.2.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.
Potentially problematic release.
This version of robosystems-client might be problematic. Click here for more details.
- robosystems_client/api/auth/register_user.py +36 -8
- robosystems_client/api/billing/__init__.py +1 -0
- robosystems_client/api/billing/cancel_org_subscription.py +198 -0
- robosystems_client/api/billing/create_checkout_session.py +238 -0
- robosystems_client/api/billing/get_checkout_status.py +221 -0
- robosystems_client/api/billing/get_org_billing_customer.py +189 -0
- robosystems_client/api/billing/get_org_subscription.py +190 -0
- robosystems_client/api/billing/get_org_upcoming_invoice.py +203 -0
- robosystems_client/api/billing/list_org_invoices.py +210 -0
- robosystems_client/api/billing/list_org_subscriptions.py +194 -0
- robosystems_client/api/billing/update_org_payment_method.py +207 -0
- robosystems_client/api/org/__init__.py +1 -0
- robosystems_client/api/org/create_org.py +174 -0
- robosystems_client/api/org/get_org.py +165 -0
- robosystems_client/api/org/list_org_graphs.py +170 -0
- robosystems_client/api/{user/get_user_limits.py → org/list_user_orgs.py} +21 -25
- robosystems_client/api/org/update_org.py +187 -0
- robosystems_client/api/org_members/__init__.py +1 -0
- robosystems_client/api/org_members/invite_org_member.py +207 -0
- robosystems_client/api/org_members/list_org_members.py +165 -0
- robosystems_client/api/org_members/remove_org_member.py +176 -0
- robosystems_client/api/org_members/update_org_member_role.py +200 -0
- robosystems_client/api/org_usage/__init__.py +1 -0
- robosystems_client/api/org_usage/get_org_limits.py +165 -0
- robosystems_client/api/org_usage/get_org_usage.py +186 -0
- robosystems_client/api/service_offerings/get_service_offerings.py +32 -8
- robosystems_client/api/usage/get_graph_usage_analytics.py +4 -4
- robosystems_client/models/__init__.py +68 -6
- robosystems_client/models/auth_response.py +35 -0
- robosystems_client/models/{user_usage_response_graphs.py → auth_response_org_type_0.py} +6 -6
- robosystems_client/models/billing_customer.py +128 -0
- robosystems_client/models/checkout_response.py +130 -0
- robosystems_client/models/checkout_status_response.py +130 -0
- robosystems_client/models/create_checkout_request.py +88 -0
- robosystems_client/models/create_checkout_request_resource_config.py +44 -0
- robosystems_client/models/create_org_request.py +79 -0
- robosystems_client/models/graph_subscription_tier.py +40 -48
- robosystems_client/models/graph_subscriptions.py +17 -5
- robosystems_client/models/invite_member_request.py +93 -0
- robosystems_client/models/invoice.py +244 -0
- robosystems_client/models/invoice_line_item.py +118 -0
- robosystems_client/models/invoices_response.py +90 -0
- robosystems_client/models/list_org_graphs_response_200_item.py +44 -0
- robosystems_client/models/org_detail_response.py +174 -0
- robosystems_client/models/org_detail_response_graphs_item.py +44 -0
- robosystems_client/models/org_detail_response_limits_type_0.py +44 -0
- robosystems_client/models/org_detail_response_members_item.py +44 -0
- robosystems_client/models/org_limits_response.py +98 -0
- robosystems_client/models/org_limits_response_current_usage.py +44 -0
- robosystems_client/models/org_list_response.py +82 -0
- robosystems_client/models/org_member_list_response.py +90 -0
- robosystems_client/models/org_member_response.py +104 -0
- robosystems_client/models/org_response.py +121 -0
- robosystems_client/models/org_role.py +10 -0
- robosystems_client/models/org_type.py +10 -0
- robosystems_client/models/org_usage_response.py +146 -0
- robosystems_client/models/org_usage_response_daily_trend_item.py +44 -0
- robosystems_client/models/org_usage_response_graph_details_item.py +44 -0
- robosystems_client/models/org_usage_summary.py +158 -0
- robosystems_client/models/payment_method.py +158 -0
- robosystems_client/models/repository_subscriptions.py +15 -4
- robosystems_client/models/service_offerings_response.py +15 -0
- robosystems_client/models/upcoming_invoice.py +128 -0
- robosystems_client/models/update_member_role_request.py +62 -0
- robosystems_client/models/update_org_request.py +103 -0
- robosystems_client/models/update_payment_method_request.py +60 -0
- robosystems_client/models/update_payment_method_response.py +74 -0
- {robosystems_client-0.2.10.dist-info → robosystems_client-0.2.12.dist-info}/METADATA +1 -1
- {robosystems_client-0.2.10.dist-info → robosystems_client-0.2.12.dist-info}/RECORD +71 -17
- robosystems_client/models/user_limits_response.py +0 -95
- robosystems_client/models/user_usage_response.py +0 -90
- {robosystems_client-0.2.10.dist-info → robosystems_client-0.2.12.dist-info}/WHEEL +0 -0
- {robosystems_client-0.2.10.dist-info → robosystems_client-0.2.12.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,90 @@
|
|
|
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.org_member_response import OrgMemberResponse
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
T = TypeVar("T", bound="OrgMemberListResponse")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@_attrs_define
|
|
15
|
+
class OrgMemberListResponse:
|
|
16
|
+
"""List of organization members response.
|
|
17
|
+
|
|
18
|
+
Attributes:
|
|
19
|
+
members (list['OrgMemberResponse']):
|
|
20
|
+
total (int):
|
|
21
|
+
org_id (str):
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
members: list["OrgMemberResponse"]
|
|
25
|
+
total: int
|
|
26
|
+
org_id: str
|
|
27
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
28
|
+
|
|
29
|
+
def to_dict(self) -> dict[str, Any]:
|
|
30
|
+
members = []
|
|
31
|
+
for members_item_data in self.members:
|
|
32
|
+
members_item = members_item_data.to_dict()
|
|
33
|
+
members.append(members_item)
|
|
34
|
+
|
|
35
|
+
total = self.total
|
|
36
|
+
|
|
37
|
+
org_id = self.org_id
|
|
38
|
+
|
|
39
|
+
field_dict: dict[str, Any] = {}
|
|
40
|
+
field_dict.update(self.additional_properties)
|
|
41
|
+
field_dict.update(
|
|
42
|
+
{
|
|
43
|
+
"members": members,
|
|
44
|
+
"total": total,
|
|
45
|
+
"org_id": org_id,
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
return field_dict
|
|
50
|
+
|
|
51
|
+
@classmethod
|
|
52
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
53
|
+
from ..models.org_member_response import OrgMemberResponse
|
|
54
|
+
|
|
55
|
+
d = dict(src_dict)
|
|
56
|
+
members = []
|
|
57
|
+
_members = d.pop("members")
|
|
58
|
+
for members_item_data in _members:
|
|
59
|
+
members_item = OrgMemberResponse.from_dict(members_item_data)
|
|
60
|
+
|
|
61
|
+
members.append(members_item)
|
|
62
|
+
|
|
63
|
+
total = d.pop("total")
|
|
64
|
+
|
|
65
|
+
org_id = d.pop("org_id")
|
|
66
|
+
|
|
67
|
+
org_member_list_response = cls(
|
|
68
|
+
members=members,
|
|
69
|
+
total=total,
|
|
70
|
+
org_id=org_id,
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
org_member_list_response.additional_properties = d
|
|
74
|
+
return org_member_list_response
|
|
75
|
+
|
|
76
|
+
@property
|
|
77
|
+
def additional_keys(self) -> list[str]:
|
|
78
|
+
return list(self.additional_properties.keys())
|
|
79
|
+
|
|
80
|
+
def __getitem__(self, key: str) -> Any:
|
|
81
|
+
return self.additional_properties[key]
|
|
82
|
+
|
|
83
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
84
|
+
self.additional_properties[key] = value
|
|
85
|
+
|
|
86
|
+
def __delitem__(self, key: str) -> None:
|
|
87
|
+
del self.additional_properties[key]
|
|
88
|
+
|
|
89
|
+
def __contains__(self, key: str) -> bool:
|
|
90
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from collections.abc import Mapping
|
|
3
|
+
from typing import Any, TypeVar
|
|
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.org_role import OrgRole
|
|
10
|
+
|
|
11
|
+
T = TypeVar("T", bound="OrgMemberResponse")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@_attrs_define
|
|
15
|
+
class OrgMemberResponse:
|
|
16
|
+
"""Organization member response.
|
|
17
|
+
|
|
18
|
+
Attributes:
|
|
19
|
+
user_id (str):
|
|
20
|
+
name (str):
|
|
21
|
+
email (str):
|
|
22
|
+
role (OrgRole):
|
|
23
|
+
joined_at (datetime.datetime):
|
|
24
|
+
is_active (bool):
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
user_id: str
|
|
28
|
+
name: str
|
|
29
|
+
email: str
|
|
30
|
+
role: OrgRole
|
|
31
|
+
joined_at: datetime.datetime
|
|
32
|
+
is_active: bool
|
|
33
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
34
|
+
|
|
35
|
+
def to_dict(self) -> dict[str, Any]:
|
|
36
|
+
user_id = self.user_id
|
|
37
|
+
|
|
38
|
+
name = self.name
|
|
39
|
+
|
|
40
|
+
email = self.email
|
|
41
|
+
|
|
42
|
+
role = self.role.value
|
|
43
|
+
|
|
44
|
+
joined_at = self.joined_at.isoformat()
|
|
45
|
+
|
|
46
|
+
is_active = self.is_active
|
|
47
|
+
|
|
48
|
+
field_dict: dict[str, Any] = {}
|
|
49
|
+
field_dict.update(self.additional_properties)
|
|
50
|
+
field_dict.update(
|
|
51
|
+
{
|
|
52
|
+
"user_id": user_id,
|
|
53
|
+
"name": name,
|
|
54
|
+
"email": email,
|
|
55
|
+
"role": role,
|
|
56
|
+
"joined_at": joined_at,
|
|
57
|
+
"is_active": is_active,
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
return field_dict
|
|
62
|
+
|
|
63
|
+
@classmethod
|
|
64
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
65
|
+
d = dict(src_dict)
|
|
66
|
+
user_id = d.pop("user_id")
|
|
67
|
+
|
|
68
|
+
name = d.pop("name")
|
|
69
|
+
|
|
70
|
+
email = d.pop("email")
|
|
71
|
+
|
|
72
|
+
role = OrgRole(d.pop("role"))
|
|
73
|
+
|
|
74
|
+
joined_at = isoparse(d.pop("joined_at"))
|
|
75
|
+
|
|
76
|
+
is_active = d.pop("is_active")
|
|
77
|
+
|
|
78
|
+
org_member_response = cls(
|
|
79
|
+
user_id=user_id,
|
|
80
|
+
name=name,
|
|
81
|
+
email=email,
|
|
82
|
+
role=role,
|
|
83
|
+
joined_at=joined_at,
|
|
84
|
+
is_active=is_active,
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
org_member_response.additional_properties = d
|
|
88
|
+
return org_member_response
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
def additional_keys(self) -> list[str]:
|
|
92
|
+
return list(self.additional_properties.keys())
|
|
93
|
+
|
|
94
|
+
def __getitem__(self, key: str) -> Any:
|
|
95
|
+
return self.additional_properties[key]
|
|
96
|
+
|
|
97
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
98
|
+
self.additional_properties[key] = value
|
|
99
|
+
|
|
100
|
+
def __delitem__(self, key: str) -> None:
|
|
101
|
+
del self.additional_properties[key]
|
|
102
|
+
|
|
103
|
+
def __contains__(self, key: str) -> bool:
|
|
104
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from collections.abc import Mapping
|
|
3
|
+
from typing import Any, TypeVar
|
|
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.org_role import OrgRole
|
|
10
|
+
from ..models.org_type import OrgType
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="OrgResponse")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class OrgResponse:
|
|
17
|
+
"""Organization summary response.
|
|
18
|
+
|
|
19
|
+
Attributes:
|
|
20
|
+
id (str):
|
|
21
|
+
name (str):
|
|
22
|
+
org_type (OrgType):
|
|
23
|
+
role (OrgRole):
|
|
24
|
+
member_count (int):
|
|
25
|
+
graph_count (int):
|
|
26
|
+
created_at (datetime.datetime):
|
|
27
|
+
joined_at (datetime.datetime):
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
id: str
|
|
31
|
+
name: str
|
|
32
|
+
org_type: OrgType
|
|
33
|
+
role: OrgRole
|
|
34
|
+
member_count: int
|
|
35
|
+
graph_count: int
|
|
36
|
+
created_at: datetime.datetime
|
|
37
|
+
joined_at: datetime.datetime
|
|
38
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
39
|
+
|
|
40
|
+
def to_dict(self) -> dict[str, Any]:
|
|
41
|
+
id = self.id
|
|
42
|
+
|
|
43
|
+
name = self.name
|
|
44
|
+
|
|
45
|
+
org_type = self.org_type.value
|
|
46
|
+
|
|
47
|
+
role = self.role.value
|
|
48
|
+
|
|
49
|
+
member_count = self.member_count
|
|
50
|
+
|
|
51
|
+
graph_count = self.graph_count
|
|
52
|
+
|
|
53
|
+
created_at = self.created_at.isoformat()
|
|
54
|
+
|
|
55
|
+
joined_at = self.joined_at.isoformat()
|
|
56
|
+
|
|
57
|
+
field_dict: dict[str, Any] = {}
|
|
58
|
+
field_dict.update(self.additional_properties)
|
|
59
|
+
field_dict.update(
|
|
60
|
+
{
|
|
61
|
+
"id": id,
|
|
62
|
+
"name": name,
|
|
63
|
+
"org_type": org_type,
|
|
64
|
+
"role": role,
|
|
65
|
+
"member_count": member_count,
|
|
66
|
+
"graph_count": graph_count,
|
|
67
|
+
"created_at": created_at,
|
|
68
|
+
"joined_at": joined_at,
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
return field_dict
|
|
73
|
+
|
|
74
|
+
@classmethod
|
|
75
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
76
|
+
d = dict(src_dict)
|
|
77
|
+
id = d.pop("id")
|
|
78
|
+
|
|
79
|
+
name = d.pop("name")
|
|
80
|
+
|
|
81
|
+
org_type = OrgType(d.pop("org_type"))
|
|
82
|
+
|
|
83
|
+
role = OrgRole(d.pop("role"))
|
|
84
|
+
|
|
85
|
+
member_count = d.pop("member_count")
|
|
86
|
+
|
|
87
|
+
graph_count = d.pop("graph_count")
|
|
88
|
+
|
|
89
|
+
created_at = isoparse(d.pop("created_at"))
|
|
90
|
+
|
|
91
|
+
joined_at = isoparse(d.pop("joined_at"))
|
|
92
|
+
|
|
93
|
+
org_response = cls(
|
|
94
|
+
id=id,
|
|
95
|
+
name=name,
|
|
96
|
+
org_type=org_type,
|
|
97
|
+
role=role,
|
|
98
|
+
member_count=member_count,
|
|
99
|
+
graph_count=graph_count,
|
|
100
|
+
created_at=created_at,
|
|
101
|
+
joined_at=joined_at,
|
|
102
|
+
)
|
|
103
|
+
|
|
104
|
+
org_response.additional_properties = d
|
|
105
|
+
return org_response
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def additional_keys(self) -> list[str]:
|
|
109
|
+
return list(self.additional_properties.keys())
|
|
110
|
+
|
|
111
|
+
def __getitem__(self, key: str) -> Any:
|
|
112
|
+
return self.additional_properties[key]
|
|
113
|
+
|
|
114
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
115
|
+
self.additional_properties[key] = value
|
|
116
|
+
|
|
117
|
+
def __delitem__(self, key: str) -> None:
|
|
118
|
+
del self.additional_properties[key]
|
|
119
|
+
|
|
120
|
+
def __contains__(self, key: str) -> bool:
|
|
121
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from collections.abc import Mapping
|
|
3
|
+
from typing import TYPE_CHECKING, Any, TypeVar
|
|
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
|
+
if TYPE_CHECKING:
|
|
10
|
+
from ..models.org_usage_response_daily_trend_item import (
|
|
11
|
+
OrgUsageResponseDailyTrendItem,
|
|
12
|
+
)
|
|
13
|
+
from ..models.org_usage_response_graph_details_item import (
|
|
14
|
+
OrgUsageResponseGraphDetailsItem,
|
|
15
|
+
)
|
|
16
|
+
from ..models.org_usage_summary import OrgUsageSummary
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
T = TypeVar("T", bound="OrgUsageResponse")
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
@_attrs_define
|
|
23
|
+
class OrgUsageResponse:
|
|
24
|
+
"""Organization usage response.
|
|
25
|
+
|
|
26
|
+
Attributes:
|
|
27
|
+
org_id (str):
|
|
28
|
+
period_days (int):
|
|
29
|
+
start_date (datetime.datetime):
|
|
30
|
+
end_date (datetime.datetime):
|
|
31
|
+
summary (OrgUsageSummary): Organization usage summary.
|
|
32
|
+
graph_details (list['OrgUsageResponseGraphDetailsItem']):
|
|
33
|
+
daily_trend (list['OrgUsageResponseDailyTrendItem']):
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
org_id: str
|
|
37
|
+
period_days: int
|
|
38
|
+
start_date: datetime.datetime
|
|
39
|
+
end_date: datetime.datetime
|
|
40
|
+
summary: "OrgUsageSummary"
|
|
41
|
+
graph_details: list["OrgUsageResponseGraphDetailsItem"]
|
|
42
|
+
daily_trend: list["OrgUsageResponseDailyTrendItem"]
|
|
43
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
44
|
+
|
|
45
|
+
def to_dict(self) -> dict[str, Any]:
|
|
46
|
+
org_id = self.org_id
|
|
47
|
+
|
|
48
|
+
period_days = self.period_days
|
|
49
|
+
|
|
50
|
+
start_date = self.start_date.isoformat()
|
|
51
|
+
|
|
52
|
+
end_date = self.end_date.isoformat()
|
|
53
|
+
|
|
54
|
+
summary = self.summary.to_dict()
|
|
55
|
+
|
|
56
|
+
graph_details = []
|
|
57
|
+
for graph_details_item_data in self.graph_details:
|
|
58
|
+
graph_details_item = graph_details_item_data.to_dict()
|
|
59
|
+
graph_details.append(graph_details_item)
|
|
60
|
+
|
|
61
|
+
daily_trend = []
|
|
62
|
+
for daily_trend_item_data in self.daily_trend:
|
|
63
|
+
daily_trend_item = daily_trend_item_data.to_dict()
|
|
64
|
+
daily_trend.append(daily_trend_item)
|
|
65
|
+
|
|
66
|
+
field_dict: dict[str, Any] = {}
|
|
67
|
+
field_dict.update(self.additional_properties)
|
|
68
|
+
field_dict.update(
|
|
69
|
+
{
|
|
70
|
+
"org_id": org_id,
|
|
71
|
+
"period_days": period_days,
|
|
72
|
+
"start_date": start_date,
|
|
73
|
+
"end_date": end_date,
|
|
74
|
+
"summary": summary,
|
|
75
|
+
"graph_details": graph_details,
|
|
76
|
+
"daily_trend": daily_trend,
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
return field_dict
|
|
81
|
+
|
|
82
|
+
@classmethod
|
|
83
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
84
|
+
from ..models.org_usage_response_daily_trend_item import (
|
|
85
|
+
OrgUsageResponseDailyTrendItem,
|
|
86
|
+
)
|
|
87
|
+
from ..models.org_usage_response_graph_details_item import (
|
|
88
|
+
OrgUsageResponseGraphDetailsItem,
|
|
89
|
+
)
|
|
90
|
+
from ..models.org_usage_summary import OrgUsageSummary
|
|
91
|
+
|
|
92
|
+
d = dict(src_dict)
|
|
93
|
+
org_id = d.pop("org_id")
|
|
94
|
+
|
|
95
|
+
period_days = d.pop("period_days")
|
|
96
|
+
|
|
97
|
+
start_date = isoparse(d.pop("start_date"))
|
|
98
|
+
|
|
99
|
+
end_date = isoparse(d.pop("end_date"))
|
|
100
|
+
|
|
101
|
+
summary = OrgUsageSummary.from_dict(d.pop("summary"))
|
|
102
|
+
|
|
103
|
+
graph_details = []
|
|
104
|
+
_graph_details = d.pop("graph_details")
|
|
105
|
+
for graph_details_item_data in _graph_details:
|
|
106
|
+
graph_details_item = OrgUsageResponseGraphDetailsItem.from_dict(
|
|
107
|
+
graph_details_item_data
|
|
108
|
+
)
|
|
109
|
+
|
|
110
|
+
graph_details.append(graph_details_item)
|
|
111
|
+
|
|
112
|
+
daily_trend = []
|
|
113
|
+
_daily_trend = d.pop("daily_trend")
|
|
114
|
+
for daily_trend_item_data in _daily_trend:
|
|
115
|
+
daily_trend_item = OrgUsageResponseDailyTrendItem.from_dict(daily_trend_item_data)
|
|
116
|
+
|
|
117
|
+
daily_trend.append(daily_trend_item)
|
|
118
|
+
|
|
119
|
+
org_usage_response = cls(
|
|
120
|
+
org_id=org_id,
|
|
121
|
+
period_days=period_days,
|
|
122
|
+
start_date=start_date,
|
|
123
|
+
end_date=end_date,
|
|
124
|
+
summary=summary,
|
|
125
|
+
graph_details=graph_details,
|
|
126
|
+
daily_trend=daily_trend,
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
org_usage_response.additional_properties = d
|
|
130
|
+
return org_usage_response
|
|
131
|
+
|
|
132
|
+
@property
|
|
133
|
+
def additional_keys(self) -> list[str]:
|
|
134
|
+
return list(self.additional_properties.keys())
|
|
135
|
+
|
|
136
|
+
def __getitem__(self, key: str) -> Any:
|
|
137
|
+
return self.additional_properties[key]
|
|
138
|
+
|
|
139
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
140
|
+
self.additional_properties[key] = value
|
|
141
|
+
|
|
142
|
+
def __delitem__(self, key: str) -> None:
|
|
143
|
+
del self.additional_properties[key]
|
|
144
|
+
|
|
145
|
+
def __contains__(self, key: str) -> bool:
|
|
146
|
+
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="OrgUsageResponseDailyTrendItem")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@_attrs_define
|
|
11
|
+
class OrgUsageResponseDailyTrendItem:
|
|
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
|
+
org_usage_response_daily_trend_item = cls()
|
|
26
|
+
|
|
27
|
+
org_usage_response_daily_trend_item.additional_properties = d
|
|
28
|
+
return org_usage_response_daily_trend_item
|
|
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,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="OrgUsageResponseGraphDetailsItem")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@_attrs_define
|
|
11
|
+
class OrgUsageResponseGraphDetailsItem:
|
|
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
|
+
org_usage_response_graph_details_item = cls()
|
|
26
|
+
|
|
27
|
+
org_usage_response_graph_details_item.additional_properties = d
|
|
28
|
+
return org_usage_response_graph_details_item
|
|
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
|