waldur-api-client 7.6.7__py3-none-any.whl → 7.6.9__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 waldur-api-client might be problematic. Click here for more details.
- waldur_api_client/api/backend_resource_requests/__init__.py +1 -0
- waldur_api_client/api/backend_resource_requests/backend_resource_requests_create.py +150 -0
- waldur_api_client/api/backend_resource_requests/backend_resource_requests_list.py +313 -0
- waldur_api_client/api/backend_resource_requests/backend_resource_requests_retrieve.py +142 -0
- waldur_api_client/api/backend_resource_requests/backend_resource_requests_set_done.py +144 -0
- waldur_api_client/api/backend_resource_requests/backend_resource_requests_set_erred.py +166 -0
- waldur_api_client/api/backend_resource_requests/backend_resource_requests_start_processing.py +146 -0
- waldur_api_client/api/backend_resources/__init__.py +1 -0
- waldur_api_client/api/backend_resources/backend_resources_create.py +150 -0
- waldur_api_client/api/backend_resources/backend_resources_destroy.py +89 -0
- waldur_api_client/api/backend_resources/backend_resources_import_resource.py +162 -0
- waldur_api_client/api/backend_resources/backend_resources_list.py +315 -0
- waldur_api_client/api/backend_resources/backend_resources_retrieve.py +142 -0
- waldur_api_client/api/invoices/invoices_list.py +0 -30
- waldur_api_client/api/invoices/invoices_stats_list.py +0 -30
- waldur_api_client/api/marketplace_maintenance_announcement_offerings/__init__.py +1 -0
- waldur_api_client/api/marketplace_maintenance_announcement_offerings/marketplace_maintenance_announcement_offerings_create.py +152 -0
- waldur_api_client/api/marketplace_maintenance_announcement_offerings/marketplace_maintenance_announcement_offerings_destroy.py +89 -0
- waldur_api_client/api/marketplace_maintenance_announcement_offerings/marketplace_maintenance_announcement_offerings_list.py +175 -0
- waldur_api_client/api/marketplace_maintenance_announcement_offerings/marketplace_maintenance_announcement_offerings_partial_update.py +166 -0
- waldur_api_client/api/marketplace_maintenance_announcement_offerings/marketplace_maintenance_announcement_offerings_retrieve.py +144 -0
- waldur_api_client/api/marketplace_maintenance_announcement_offerings/marketplace_maintenance_announcement_offerings_update.py +166 -0
- waldur_api_client/api/marketplace_maintenance_announcement_template_offerings/__init__.py +1 -0
- waldur_api_client/api/marketplace_maintenance_announcement_template_offerings/marketplace_maintenance_announcement_template_offerings_create.py +152 -0
- waldur_api_client/api/marketplace_maintenance_announcement_template_offerings/marketplace_maintenance_announcement_template_offerings_destroy.py +89 -0
- waldur_api_client/api/marketplace_maintenance_announcement_template_offerings/marketplace_maintenance_announcement_template_offerings_list.py +175 -0
- waldur_api_client/api/marketplace_maintenance_announcement_template_offerings/marketplace_maintenance_announcement_template_offerings_partial_update.py +168 -0
- waldur_api_client/api/marketplace_maintenance_announcement_template_offerings/marketplace_maintenance_announcement_template_offerings_retrieve.py +144 -0
- waldur_api_client/api/marketplace_maintenance_announcement_template_offerings/marketplace_maintenance_announcement_template_offerings_update.py +166 -0
- waldur_api_client/api/marketplace_maintenance_announcements/__init__.py +1 -0
- waldur_api_client/api/marketplace_maintenance_announcements/marketplace_maintenance_announcements_create.py +150 -0
- waldur_api_client/api/marketplace_maintenance_announcements/marketplace_maintenance_announcements_destroy.py +89 -0
- waldur_api_client/api/marketplace_maintenance_announcements/marketplace_maintenance_announcements_list.py +175 -0
- waldur_api_client/api/marketplace_maintenance_announcements/marketplace_maintenance_announcements_partial_update.py +164 -0
- waldur_api_client/api/marketplace_maintenance_announcements/marketplace_maintenance_announcements_retrieve.py +142 -0
- waldur_api_client/api/marketplace_maintenance_announcements/marketplace_maintenance_announcements_update.py +164 -0
- waldur_api_client/api/marketplace_maintenance_announcements_template/__init__.py +1 -0
- waldur_api_client/api/marketplace_maintenance_announcements_template/marketplace_maintenance_announcements_template_create.py +152 -0
- waldur_api_client/api/marketplace_maintenance_announcements_template/marketplace_maintenance_announcements_template_destroy.py +89 -0
- waldur_api_client/api/marketplace_maintenance_announcements_template/marketplace_maintenance_announcements_template_list.py +175 -0
- waldur_api_client/api/marketplace_maintenance_announcements_template/marketplace_maintenance_announcements_template_partial_update.py +166 -0
- waldur_api_client/api/marketplace_maintenance_announcements_template/marketplace_maintenance_announcements_template_retrieve.py +144 -0
- waldur_api_client/api/marketplace_maintenance_announcements_template/marketplace_maintenance_announcements_template_update.py +166 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_update_offering_component.py +6 -6
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_customer_projects_list.py +15 -0
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_projects_list.py +15 -0
- waldur_api_client/api/openstack_volume_types/openstack_volume_types_names_retrieve.py +118 -0
- waldur_api_client/api/projects/projects_list.py +15 -0
- waldur_api_client/models/__init__.py +60 -2
- waldur_api_client/models/backend_resource.py +162 -0
- waldur_api_client/models/backend_resource_import_request.py +67 -0
- waldur_api_client/models/backend_resource_req.py +162 -0
- waldur_api_client/models/backend_resource_req_request.py +60 -0
- waldur_api_client/models/backend_resource_req_state_enum.py +11 -0
- waldur_api_client/models/backend_resource_request.py +96 -0
- waldur_api_client/models/backend_resource_request_set_erred_request.py +68 -0
- waldur_api_client/models/backend_resource_requests_list_o_item.py +9 -0
- waldur_api_client/models/backend_resource_requests_list_state_item.py +11 -0
- waldur_api_client/models/{order_details_attributes.py → backend_resource_requests_set_done_response_200.py} +6 -6
- waldur_api_client/models/backend_resource_requests_set_erred_response_200.py +44 -0
- waldur_api_client/models/backend_resource_requests_start_processing_response_200.py +44 -0
- waldur_api_client/models/backend_resources_list_o_item.py +9 -0
- waldur_api_client/models/constance_settings.py +22 -0
- waldur_api_client/models/constance_settings_request.py +22 -0
- waldur_api_client/models/event_types_enum.py +4 -0
- waldur_api_client/models/impact_level_enum.py +11 -0
- waldur_api_client/models/maintenance_announcement.py +225 -0
- waldur_api_client/models/maintenance_announcement_offering.py +112 -0
- waldur_api_client/models/maintenance_announcement_offering_request.py +95 -0
- waldur_api_client/models/maintenance_announcement_offering_template.py +112 -0
- waldur_api_client/models/maintenance_announcement_offering_template_request.py +95 -0
- waldur_api_client/models/maintenance_announcement_request.py +113 -0
- waldur_api_client/models/maintenance_announcement_state_enum.py +12 -0
- waldur_api_client/models/maintenance_announcement_template.py +134 -0
- waldur_api_client/models/maintenance_announcement_template_request.py +95 -0
- waldur_api_client/models/maintenance_type_enum.py +12 -0
- waldur_api_client/models/merged_plugin_options.py +21 -1
- waldur_api_client/models/merged_plugin_options_request.py +21 -1
- waldur_api_client/models/offering_component.py +15 -4
- waldur_api_client/models/order_details.py +4 -14
- waldur_api_client/models/patched_maintenance_announcement_offering_request.py +94 -0
- waldur_api_client/models/patched_maintenance_announcement_offering_template_request.py +94 -0
- waldur_api_client/models/patched_maintenance_announcement_request.py +128 -0
- waldur_api_client/models/patched_maintenance_announcement_template_request.py +94 -0
- waldur_api_client/models/update_offering_component_request.py +274 -0
- waldur_api_client/models/user_agreement.py +9 -11
- waldur_api_client/models/user_agreement_request.py +9 -11
- {waldur_api_client-7.6.7.dist-info → waldur_api_client-7.6.9.dist-info}/METADATA +1 -1
- {waldur_api_client-7.6.7.dist-info → waldur_api_client-7.6.9.dist-info}/RECORD +91 -21
- {waldur_api_client-7.6.7.dist-info → waldur_api_client-7.6.9.dist-info}/LICENSE +0 -0
- {waldur_api_client-7.6.7.dist-info → waldur_api_client-7.6.9.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from collections.abc import Mapping
|
|
3
|
+
from typing import Any, TypeVar, Union, cast
|
|
4
|
+
from uuid import UUID
|
|
5
|
+
|
|
6
|
+
from attrs import define as _attrs_define
|
|
7
|
+
from attrs import field as _attrs_field
|
|
8
|
+
from dateutil.parser import isoparse
|
|
9
|
+
|
|
10
|
+
from ..models.backend_resource_req_state_enum import BackendResourceReqStateEnum
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="BackendResourceReq")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class BackendResourceReq:
|
|
17
|
+
"""
|
|
18
|
+
Attributes:
|
|
19
|
+
url (str):
|
|
20
|
+
created (datetime.datetime):
|
|
21
|
+
modified (datetime.datetime):
|
|
22
|
+
started (Union[None, datetime.datetime]): Time when request processing started
|
|
23
|
+
finished (Union[None, datetime.datetime]): Time when request processing finished
|
|
24
|
+
state (BackendResourceReqStateEnum):
|
|
25
|
+
offering (UUID):
|
|
26
|
+
offering_name (str):
|
|
27
|
+
offering_url (str):
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
url: str
|
|
31
|
+
created: datetime.datetime
|
|
32
|
+
modified: datetime.datetime
|
|
33
|
+
started: Union[None, datetime.datetime]
|
|
34
|
+
finished: Union[None, datetime.datetime]
|
|
35
|
+
state: BackendResourceReqStateEnum
|
|
36
|
+
offering: UUID
|
|
37
|
+
offering_name: str
|
|
38
|
+
offering_url: str
|
|
39
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
40
|
+
|
|
41
|
+
def to_dict(self) -> dict[str, Any]:
|
|
42
|
+
url = self.url
|
|
43
|
+
|
|
44
|
+
created = self.created.isoformat()
|
|
45
|
+
|
|
46
|
+
modified = self.modified.isoformat()
|
|
47
|
+
|
|
48
|
+
started: Union[None, str]
|
|
49
|
+
if isinstance(self.started, datetime.datetime):
|
|
50
|
+
started = self.started.isoformat()
|
|
51
|
+
else:
|
|
52
|
+
started = self.started
|
|
53
|
+
|
|
54
|
+
finished: Union[None, str]
|
|
55
|
+
if isinstance(self.finished, datetime.datetime):
|
|
56
|
+
finished = self.finished.isoformat()
|
|
57
|
+
else:
|
|
58
|
+
finished = self.finished
|
|
59
|
+
|
|
60
|
+
state = self.state.value
|
|
61
|
+
|
|
62
|
+
offering = str(self.offering)
|
|
63
|
+
|
|
64
|
+
offering_name = self.offering_name
|
|
65
|
+
|
|
66
|
+
offering_url = self.offering_url
|
|
67
|
+
|
|
68
|
+
field_dict: dict[str, Any] = {}
|
|
69
|
+
field_dict.update(self.additional_properties)
|
|
70
|
+
field_dict.update(
|
|
71
|
+
{
|
|
72
|
+
"url": url,
|
|
73
|
+
"created": created,
|
|
74
|
+
"modified": modified,
|
|
75
|
+
"started": started,
|
|
76
|
+
"finished": finished,
|
|
77
|
+
"state": state,
|
|
78
|
+
"offering": offering,
|
|
79
|
+
"offering_name": offering_name,
|
|
80
|
+
"offering_url": offering_url,
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
return field_dict
|
|
85
|
+
|
|
86
|
+
@classmethod
|
|
87
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
88
|
+
d = dict(src_dict)
|
|
89
|
+
url = d.pop("url")
|
|
90
|
+
|
|
91
|
+
created = isoparse(d.pop("created"))
|
|
92
|
+
|
|
93
|
+
modified = isoparse(d.pop("modified"))
|
|
94
|
+
|
|
95
|
+
def _parse_started(data: object) -> Union[None, datetime.datetime]:
|
|
96
|
+
if data is None:
|
|
97
|
+
return data
|
|
98
|
+
try:
|
|
99
|
+
if not isinstance(data, str):
|
|
100
|
+
raise TypeError()
|
|
101
|
+
started_type_0 = isoparse(data)
|
|
102
|
+
|
|
103
|
+
return started_type_0
|
|
104
|
+
except: # noqa: E722
|
|
105
|
+
pass
|
|
106
|
+
return cast(Union[None, datetime.datetime], data)
|
|
107
|
+
|
|
108
|
+
started = _parse_started(d.pop("started"))
|
|
109
|
+
|
|
110
|
+
def _parse_finished(data: object) -> Union[None, datetime.datetime]:
|
|
111
|
+
if data is None:
|
|
112
|
+
return data
|
|
113
|
+
try:
|
|
114
|
+
if not isinstance(data, str):
|
|
115
|
+
raise TypeError()
|
|
116
|
+
finished_type_0 = isoparse(data)
|
|
117
|
+
|
|
118
|
+
return finished_type_0
|
|
119
|
+
except: # noqa: E722
|
|
120
|
+
pass
|
|
121
|
+
return cast(Union[None, datetime.datetime], data)
|
|
122
|
+
|
|
123
|
+
finished = _parse_finished(d.pop("finished"))
|
|
124
|
+
|
|
125
|
+
state = BackendResourceReqStateEnum(d.pop("state"))
|
|
126
|
+
|
|
127
|
+
offering = UUID(d.pop("offering"))
|
|
128
|
+
|
|
129
|
+
offering_name = d.pop("offering_name")
|
|
130
|
+
|
|
131
|
+
offering_url = d.pop("offering_url")
|
|
132
|
+
|
|
133
|
+
backend_resource_req = cls(
|
|
134
|
+
url=url,
|
|
135
|
+
created=created,
|
|
136
|
+
modified=modified,
|
|
137
|
+
started=started,
|
|
138
|
+
finished=finished,
|
|
139
|
+
state=state,
|
|
140
|
+
offering=offering,
|
|
141
|
+
offering_name=offering_name,
|
|
142
|
+
offering_url=offering_url,
|
|
143
|
+
)
|
|
144
|
+
|
|
145
|
+
backend_resource_req.additional_properties = d
|
|
146
|
+
return backend_resource_req
|
|
147
|
+
|
|
148
|
+
@property
|
|
149
|
+
def additional_keys(self) -> list[str]:
|
|
150
|
+
return list(self.additional_properties.keys())
|
|
151
|
+
|
|
152
|
+
def __getitem__(self, key: str) -> Any:
|
|
153
|
+
return self.additional_properties[key]
|
|
154
|
+
|
|
155
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
156
|
+
self.additional_properties[key] = value
|
|
157
|
+
|
|
158
|
+
def __delitem__(self, key: str) -> None:
|
|
159
|
+
del self.additional_properties[key]
|
|
160
|
+
|
|
161
|
+
def __contains__(self, key: str) -> bool:
|
|
162
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar
|
|
3
|
+
from uuid import UUID
|
|
4
|
+
|
|
5
|
+
from attrs import define as _attrs_define
|
|
6
|
+
from attrs import field as _attrs_field
|
|
7
|
+
|
|
8
|
+
T = TypeVar("T", bound="BackendResourceReqRequest")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class BackendResourceReqRequest:
|
|
13
|
+
"""
|
|
14
|
+
Attributes:
|
|
15
|
+
offering (UUID):
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
offering: UUID
|
|
19
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
20
|
+
|
|
21
|
+
def to_dict(self) -> dict[str, Any]:
|
|
22
|
+
offering = str(self.offering)
|
|
23
|
+
|
|
24
|
+
field_dict: dict[str, Any] = {}
|
|
25
|
+
field_dict.update(self.additional_properties)
|
|
26
|
+
field_dict.update(
|
|
27
|
+
{
|
|
28
|
+
"offering": offering,
|
|
29
|
+
}
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
return field_dict
|
|
33
|
+
|
|
34
|
+
@classmethod
|
|
35
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
36
|
+
d = dict(src_dict)
|
|
37
|
+
offering = UUID(d.pop("offering"))
|
|
38
|
+
|
|
39
|
+
backend_resource_req_request = cls(
|
|
40
|
+
offering=offering,
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
backend_resource_req_request.additional_properties = d
|
|
44
|
+
return backend_resource_req_request
|
|
45
|
+
|
|
46
|
+
@property
|
|
47
|
+
def additional_keys(self) -> list[str]:
|
|
48
|
+
return list(self.additional_properties.keys())
|
|
49
|
+
|
|
50
|
+
def __getitem__(self, key: str) -> Any:
|
|
51
|
+
return self.additional_properties[key]
|
|
52
|
+
|
|
53
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
54
|
+
self.additional_properties[key] = value
|
|
55
|
+
|
|
56
|
+
def __delitem__(self, key: str) -> None:
|
|
57
|
+
del self.additional_properties[key]
|
|
58
|
+
|
|
59
|
+
def __contains__(self, key: str) -> bool:
|
|
60
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar, Union
|
|
3
|
+
from uuid import UUID
|
|
4
|
+
|
|
5
|
+
from attrs import define as _attrs_define
|
|
6
|
+
from attrs import field as _attrs_field
|
|
7
|
+
|
|
8
|
+
from ..types import UNSET, Unset
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="BackendResourceRequest")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class BackendResourceRequest:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
name (str):
|
|
18
|
+
project (UUID):
|
|
19
|
+
offering (UUID):
|
|
20
|
+
backend_id (Union[Unset, str]):
|
|
21
|
+
backend_metadata (Union[Unset, Any]):
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
name: str
|
|
25
|
+
project: UUID
|
|
26
|
+
offering: UUID
|
|
27
|
+
backend_id: Union[Unset, str] = UNSET
|
|
28
|
+
backend_metadata: Union[Unset, Any] = UNSET
|
|
29
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
30
|
+
|
|
31
|
+
def to_dict(self) -> dict[str, Any]:
|
|
32
|
+
name = self.name
|
|
33
|
+
|
|
34
|
+
project = str(self.project)
|
|
35
|
+
|
|
36
|
+
offering = str(self.offering)
|
|
37
|
+
|
|
38
|
+
backend_id = self.backend_id
|
|
39
|
+
|
|
40
|
+
backend_metadata = self.backend_metadata
|
|
41
|
+
|
|
42
|
+
field_dict: dict[str, Any] = {}
|
|
43
|
+
field_dict.update(self.additional_properties)
|
|
44
|
+
field_dict.update(
|
|
45
|
+
{
|
|
46
|
+
"name": name,
|
|
47
|
+
"project": project,
|
|
48
|
+
"offering": offering,
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
if backend_id is not UNSET:
|
|
52
|
+
field_dict["backend_id"] = backend_id
|
|
53
|
+
if backend_metadata is not UNSET:
|
|
54
|
+
field_dict["backend_metadata"] = backend_metadata
|
|
55
|
+
|
|
56
|
+
return field_dict
|
|
57
|
+
|
|
58
|
+
@classmethod
|
|
59
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
60
|
+
d = dict(src_dict)
|
|
61
|
+
name = d.pop("name")
|
|
62
|
+
|
|
63
|
+
project = UUID(d.pop("project"))
|
|
64
|
+
|
|
65
|
+
offering = UUID(d.pop("offering"))
|
|
66
|
+
|
|
67
|
+
backend_id = d.pop("backend_id", UNSET)
|
|
68
|
+
|
|
69
|
+
backend_metadata = d.pop("backend_metadata", UNSET)
|
|
70
|
+
|
|
71
|
+
backend_resource_request = cls(
|
|
72
|
+
name=name,
|
|
73
|
+
project=project,
|
|
74
|
+
offering=offering,
|
|
75
|
+
backend_id=backend_id,
|
|
76
|
+
backend_metadata=backend_metadata,
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
backend_resource_request.additional_properties = d
|
|
80
|
+
return backend_resource_request
|
|
81
|
+
|
|
82
|
+
@property
|
|
83
|
+
def additional_keys(self) -> list[str]:
|
|
84
|
+
return list(self.additional_properties.keys())
|
|
85
|
+
|
|
86
|
+
def __getitem__(self, key: str) -> Any:
|
|
87
|
+
return self.additional_properties[key]
|
|
88
|
+
|
|
89
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
90
|
+
self.additional_properties[key] = value
|
|
91
|
+
|
|
92
|
+
def __delitem__(self, key: str) -> None:
|
|
93
|
+
del self.additional_properties[key]
|
|
94
|
+
|
|
95
|
+
def __contains__(self, key: str) -> bool:
|
|
96
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,68 @@
|
|
|
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="BackendResourceRequestSetErredRequest")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@_attrs_define
|
|
13
|
+
class BackendResourceRequestSetErredRequest:
|
|
14
|
+
"""
|
|
15
|
+
Attributes:
|
|
16
|
+
error_message (Union[Unset, str]):
|
|
17
|
+
error_traceback (Union[Unset, str]):
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
error_message: Union[Unset, str] = UNSET
|
|
21
|
+
error_traceback: Union[Unset, str] = UNSET
|
|
22
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
23
|
+
|
|
24
|
+
def to_dict(self) -> dict[str, Any]:
|
|
25
|
+
error_message = self.error_message
|
|
26
|
+
|
|
27
|
+
error_traceback = self.error_traceback
|
|
28
|
+
|
|
29
|
+
field_dict: dict[str, Any] = {}
|
|
30
|
+
field_dict.update(self.additional_properties)
|
|
31
|
+
field_dict.update({})
|
|
32
|
+
if error_message is not UNSET:
|
|
33
|
+
field_dict["error_message"] = error_message
|
|
34
|
+
if error_traceback is not UNSET:
|
|
35
|
+
field_dict["error_traceback"] = error_traceback
|
|
36
|
+
|
|
37
|
+
return field_dict
|
|
38
|
+
|
|
39
|
+
@classmethod
|
|
40
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
41
|
+
d = dict(src_dict)
|
|
42
|
+
error_message = d.pop("error_message", UNSET)
|
|
43
|
+
|
|
44
|
+
error_traceback = d.pop("error_traceback", UNSET)
|
|
45
|
+
|
|
46
|
+
backend_resource_request_set_erred_request = cls(
|
|
47
|
+
error_message=error_message,
|
|
48
|
+
error_traceback=error_traceback,
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
backend_resource_request_set_erred_request.additional_properties = d
|
|
52
|
+
return backend_resource_request_set_erred_request
|
|
53
|
+
|
|
54
|
+
@property
|
|
55
|
+
def additional_keys(self) -> list[str]:
|
|
56
|
+
return list(self.additional_properties.keys())
|
|
57
|
+
|
|
58
|
+
def __getitem__(self, key: str) -> Any:
|
|
59
|
+
return self.additional_properties[key]
|
|
60
|
+
|
|
61
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
62
|
+
self.additional_properties[key] = value
|
|
63
|
+
|
|
64
|
+
def __delitem__(self, key: str) -> None:
|
|
65
|
+
del self.additional_properties[key]
|
|
66
|
+
|
|
67
|
+
def __contains__(self, key: str) -> bool:
|
|
68
|
+
return key in self.additional_properties
|
|
@@ -4,12 +4,12 @@ from typing import Any, TypeVar
|
|
|
4
4
|
from attrs import define as _attrs_define
|
|
5
5
|
from attrs import field as _attrs_field
|
|
6
6
|
|
|
7
|
-
T = TypeVar("T", bound="
|
|
7
|
+
T = TypeVar("T", bound="BackendResourceRequestsSetDoneResponse200")
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
@_attrs_define
|
|
11
|
-
class
|
|
12
|
-
"""
|
|
11
|
+
class BackendResourceRequestsSetDoneResponse200:
|
|
12
|
+
""" """
|
|
13
13
|
|
|
14
14
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
15
15
|
|
|
@@ -22,10 +22,10 @@ class OrderDetailsAttributes:
|
|
|
22
22
|
@classmethod
|
|
23
23
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
24
24
|
d = dict(src_dict)
|
|
25
|
-
|
|
25
|
+
backend_resource_requests_set_done_response_200 = cls()
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
return
|
|
27
|
+
backend_resource_requests_set_done_response_200.additional_properties = d
|
|
28
|
+
return backend_resource_requests_set_done_response_200
|
|
29
29
|
|
|
30
30
|
@property
|
|
31
31
|
def additional_keys(self) -> list[str]:
|
|
@@ -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="BackendResourceRequestsSetErredResponse200")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@_attrs_define
|
|
11
|
+
class BackendResourceRequestsSetErredResponse200:
|
|
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
|
+
backend_resource_requests_set_erred_response_200 = cls()
|
|
26
|
+
|
|
27
|
+
backend_resource_requests_set_erred_response_200.additional_properties = d
|
|
28
|
+
return backend_resource_requests_set_erred_response_200
|
|
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="BackendResourceRequestsStartProcessingResponse200")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@_attrs_define
|
|
11
|
+
class BackendResourceRequestsStartProcessingResponse200:
|
|
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
|
+
backend_resource_requests_start_processing_response_200 = cls()
|
|
26
|
+
|
|
27
|
+
backend_resource_requests_start_processing_response_200.additional_properties = d
|
|
28
|
+
return backend_resource_requests_start_processing_response_200
|
|
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
|
|
@@ -143,6 +143,8 @@ class ConstanceSettings:
|
|
|
143
143
|
oidc_user_field (Union[Unset, str]):
|
|
144
144
|
oidc_cache_timeout (Union[Unset, int]):
|
|
145
145
|
deactivate_user_if_no_roles (Union[Unset, bool]):
|
|
146
|
+
maintenance_announcement_notify_before_minutes (Union[Unset, int]):
|
|
147
|
+
maintenance_announcement_notify_system (Union[Unset, list[str]]):
|
|
146
148
|
"""
|
|
147
149
|
|
|
148
150
|
site_name: Union[Unset, str] = UNSET
|
|
@@ -275,6 +277,8 @@ class ConstanceSettings:
|
|
|
275
277
|
oidc_user_field: Union[Unset, str] = UNSET
|
|
276
278
|
oidc_cache_timeout: Union[Unset, int] = UNSET
|
|
277
279
|
deactivate_user_if_no_roles: Union[Unset, bool] = UNSET
|
|
280
|
+
maintenance_announcement_notify_before_minutes: Union[Unset, int] = UNSET
|
|
281
|
+
maintenance_announcement_notify_system: Union[Unset, list[str]] = UNSET
|
|
278
282
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
279
283
|
|
|
280
284
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -590,6 +594,12 @@ class ConstanceSettings:
|
|
|
590
594
|
|
|
591
595
|
deactivate_user_if_no_roles = self.deactivate_user_if_no_roles
|
|
592
596
|
|
|
597
|
+
maintenance_announcement_notify_before_minutes = self.maintenance_announcement_notify_before_minutes
|
|
598
|
+
|
|
599
|
+
maintenance_announcement_notify_system: Union[Unset, list[str]] = UNSET
|
|
600
|
+
if not isinstance(self.maintenance_announcement_notify_system, Unset):
|
|
601
|
+
maintenance_announcement_notify_system = self.maintenance_announcement_notify_system
|
|
602
|
+
|
|
593
603
|
field_dict: dict[str, Any] = {}
|
|
594
604
|
field_dict.update(self.additional_properties)
|
|
595
605
|
field_dict.update({})
|
|
@@ -857,6 +867,12 @@ class ConstanceSettings:
|
|
|
857
867
|
field_dict["OIDC_CACHE_TIMEOUT"] = oidc_cache_timeout
|
|
858
868
|
if deactivate_user_if_no_roles is not UNSET:
|
|
859
869
|
field_dict["DEACTIVATE_USER_IF_NO_ROLES"] = deactivate_user_if_no_roles
|
|
870
|
+
if maintenance_announcement_notify_before_minutes is not UNSET:
|
|
871
|
+
field_dict["MAINTENANCE_ANNOUNCEMENT_NOTIFY_BEFORE_MINUTES"] = (
|
|
872
|
+
maintenance_announcement_notify_before_minutes
|
|
873
|
+
)
|
|
874
|
+
if maintenance_announcement_notify_system is not UNSET:
|
|
875
|
+
field_dict["MAINTENANCE_ANNOUNCEMENT_NOTIFY_SYSTEM"] = maintenance_announcement_notify_system
|
|
860
876
|
|
|
861
877
|
return field_dict
|
|
862
878
|
|
|
@@ -1211,6 +1227,10 @@ class ConstanceSettings:
|
|
|
1211
1227
|
|
|
1212
1228
|
deactivate_user_if_no_roles = d.pop("DEACTIVATE_USER_IF_NO_ROLES", UNSET)
|
|
1213
1229
|
|
|
1230
|
+
maintenance_announcement_notify_before_minutes = d.pop("MAINTENANCE_ANNOUNCEMENT_NOTIFY_BEFORE_MINUTES", UNSET)
|
|
1231
|
+
|
|
1232
|
+
maintenance_announcement_notify_system = cast(list[str], d.pop("MAINTENANCE_ANNOUNCEMENT_NOTIFY_SYSTEM", UNSET))
|
|
1233
|
+
|
|
1214
1234
|
constance_settings = cls(
|
|
1215
1235
|
site_name=site_name,
|
|
1216
1236
|
site_description=site_description,
|
|
@@ -1342,6 +1362,8 @@ class ConstanceSettings:
|
|
|
1342
1362
|
oidc_user_field=oidc_user_field,
|
|
1343
1363
|
oidc_cache_timeout=oidc_cache_timeout,
|
|
1344
1364
|
deactivate_user_if_no_roles=deactivate_user_if_no_roles,
|
|
1365
|
+
maintenance_announcement_notify_before_minutes=maintenance_announcement_notify_before_minutes,
|
|
1366
|
+
maintenance_announcement_notify_system=maintenance_announcement_notify_system,
|
|
1345
1367
|
)
|
|
1346
1368
|
|
|
1347
1369
|
constance_settings.additional_properties = d
|
|
@@ -145,6 +145,8 @@ class ConstanceSettingsRequest:
|
|
|
145
145
|
oidc_user_field (Union[Unset, str]):
|
|
146
146
|
oidc_cache_timeout (Union[Unset, int]):
|
|
147
147
|
deactivate_user_if_no_roles (Union[Unset, bool]):
|
|
148
|
+
maintenance_announcement_notify_before_minutes (Union[Unset, int]):
|
|
149
|
+
maintenance_announcement_notify_system (Union[Unset, list[str]]):
|
|
148
150
|
"""
|
|
149
151
|
|
|
150
152
|
site_name: Union[Unset, str] = UNSET
|
|
@@ -277,6 +279,8 @@ class ConstanceSettingsRequest:
|
|
|
277
279
|
oidc_user_field: Union[Unset, str] = UNSET
|
|
278
280
|
oidc_cache_timeout: Union[Unset, int] = UNSET
|
|
279
281
|
deactivate_user_if_no_roles: Union[Unset, bool] = UNSET
|
|
282
|
+
maintenance_announcement_notify_before_minutes: Union[Unset, int] = UNSET
|
|
283
|
+
maintenance_announcement_notify_system: Union[Unset, list[str]] = UNSET
|
|
280
284
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
281
285
|
|
|
282
286
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -628,6 +632,12 @@ class ConstanceSettingsRequest:
|
|
|
628
632
|
|
|
629
633
|
deactivate_user_if_no_roles = self.deactivate_user_if_no_roles
|
|
630
634
|
|
|
635
|
+
maintenance_announcement_notify_before_minutes = self.maintenance_announcement_notify_before_minutes
|
|
636
|
+
|
|
637
|
+
maintenance_announcement_notify_system: Union[Unset, list[str]] = UNSET
|
|
638
|
+
if not isinstance(self.maintenance_announcement_notify_system, Unset):
|
|
639
|
+
maintenance_announcement_notify_system = self.maintenance_announcement_notify_system
|
|
640
|
+
|
|
631
641
|
field_dict: dict[str, Any] = {}
|
|
632
642
|
field_dict.update(self.additional_properties)
|
|
633
643
|
field_dict.update({})
|
|
@@ -895,6 +905,12 @@ class ConstanceSettingsRequest:
|
|
|
895
905
|
field_dict["OIDC_CACHE_TIMEOUT"] = oidc_cache_timeout
|
|
896
906
|
if deactivate_user_if_no_roles is not UNSET:
|
|
897
907
|
field_dict["DEACTIVATE_USER_IF_NO_ROLES"] = deactivate_user_if_no_roles
|
|
908
|
+
if maintenance_announcement_notify_before_minutes is not UNSET:
|
|
909
|
+
field_dict["MAINTENANCE_ANNOUNCEMENT_NOTIFY_BEFORE_MINUTES"] = (
|
|
910
|
+
maintenance_announcement_notify_before_minutes
|
|
911
|
+
)
|
|
912
|
+
if maintenance_announcement_notify_system is not UNSET:
|
|
913
|
+
field_dict["MAINTENANCE_ANNOUNCEMENT_NOTIFY_SYSTEM"] = maintenance_announcement_notify_system
|
|
898
914
|
|
|
899
915
|
return field_dict
|
|
900
916
|
|
|
@@ -1345,6 +1361,10 @@ class ConstanceSettingsRequest:
|
|
|
1345
1361
|
|
|
1346
1362
|
deactivate_user_if_no_roles = d.pop("DEACTIVATE_USER_IF_NO_ROLES", UNSET)
|
|
1347
1363
|
|
|
1364
|
+
maintenance_announcement_notify_before_minutes = d.pop("MAINTENANCE_ANNOUNCEMENT_NOTIFY_BEFORE_MINUTES", UNSET)
|
|
1365
|
+
|
|
1366
|
+
maintenance_announcement_notify_system = cast(list[str], d.pop("MAINTENANCE_ANNOUNCEMENT_NOTIFY_SYSTEM", UNSET))
|
|
1367
|
+
|
|
1348
1368
|
constance_settings_request = cls(
|
|
1349
1369
|
site_name=site_name,
|
|
1350
1370
|
site_description=site_description,
|
|
@@ -1476,6 +1496,8 @@ class ConstanceSettingsRequest:
|
|
|
1476
1496
|
oidc_user_field=oidc_user_field,
|
|
1477
1497
|
oidc_cache_timeout=oidc_cache_timeout,
|
|
1478
1498
|
deactivate_user_if_no_roles=deactivate_user_if_no_roles,
|
|
1499
|
+
maintenance_announcement_notify_before_minutes=maintenance_announcement_notify_before_minutes,
|
|
1500
|
+
maintenance_announcement_notify_system=maintenance_announcement_notify_system,
|
|
1479
1501
|
)
|
|
1480
1502
|
|
|
1481
1503
|
constance_settings_request.additional_properties = d
|