waldur-api-client 7.6.7__py3-none-any.whl → 7.6.8__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/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/projects/projects_list.py +15 -0
- waldur_api_client/models/__init__.py +26 -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/event_types_enum.py +4 -0
- waldur_api_client/models/merged_plugin_options.py +20 -0
- waldur_api_client/models/merged_plugin_options_request.py +20 -0
- waldur_api_client/models/order_details.py +4 -14
- 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.8.dist-info}/METADATA +1 -1
- {waldur_api_client-7.6.7.dist-info → waldur_api_client-7.6.8.dist-info}/RECORD +40 -15
- {waldur_api_client-7.6.7.dist-info → waldur_api_client-7.6.8.dist-info}/LICENSE +0 -0
- {waldur_api_client-7.6.7.dist-info → waldur_api_client-7.6.8.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
|
|
@@ -105,11 +105,15 @@ class EventTypesEnum(str, Enum):
|
|
|
105
105
|
OPENSTACK_PORT_PULLED = "openstack_port_pulled"
|
|
106
106
|
OPENSTACK_PORT_UPDATED = "openstack_port_updated"
|
|
107
107
|
OPENSTACK_ROUTER_UPDATED = "openstack_router_updated"
|
|
108
|
+
OPENSTACK_SECURITY_GROUP_ADDED_LOCALLY = "openstack_security_group_added_locally"
|
|
109
|
+
OPENSTACK_SECURITY_GROUP_ADDED_REMOTELY = "openstack_security_group_added_remotely"
|
|
108
110
|
OPENSTACK_SECURITY_GROUP_CLEANED = "openstack_security_group_cleaned"
|
|
109
111
|
OPENSTACK_SECURITY_GROUP_CREATED = "openstack_security_group_created"
|
|
110
112
|
OPENSTACK_SECURITY_GROUP_DELETED = "openstack_security_group_deleted"
|
|
111
113
|
OPENSTACK_SECURITY_GROUP_IMPORTED = "openstack_security_group_imported"
|
|
112
114
|
OPENSTACK_SECURITY_GROUP_PULLED = "openstack_security_group_pulled"
|
|
115
|
+
OPENSTACK_SECURITY_GROUP_REMOVED_LOCALLY = "openstack_security_group_removed_locally"
|
|
116
|
+
OPENSTACK_SECURITY_GROUP_REMOVED_REMOTELY = "openstack_security_group_removed_remotely"
|
|
113
117
|
OPENSTACK_SECURITY_GROUP_RULE_CLEANED = "openstack_security_group_rule_cleaned"
|
|
114
118
|
OPENSTACK_SECURITY_GROUP_RULE_CREATED = "openstack_security_group_rule_created"
|
|
115
119
|
OPENSTACK_SECURITY_GROUP_RULE_DELETED = "openstack_security_group_rule_deleted"
|
|
@@ -31,6 +31,10 @@ class MergedPluginOptions:
|
|
|
31
31
|
the same organization under which the request is done
|
|
32
32
|
supports_downscaling (Union[Unset, bool]): If set to True, it will be possible to downscale resources
|
|
33
33
|
supports_pausing (Union[Unset, bool]): If set to True, it will be possible to pause resources
|
|
34
|
+
minimal_team_count_for_provisioning (Union[Unset, int]): Minimal team count required for provisioning of
|
|
35
|
+
resources
|
|
36
|
+
required_team_role_for_provisioning (Union[Unset, str]): Required user role in a project for provisioning of
|
|
37
|
+
resources
|
|
34
38
|
default_internal_network_mtu (Union[Unset, int]): If set, it will be used as a default MTU for the first network
|
|
35
39
|
in a tenant
|
|
36
40
|
max_instances (Union[Unset, int]): Default limit for number of instances in OpenStack tenant
|
|
@@ -80,6 +84,8 @@ class MergedPluginOptions:
|
|
|
80
84
|
auto_approve_in_service_provider_projects: Union[Unset, bool] = UNSET
|
|
81
85
|
supports_downscaling: Union[Unset, bool] = UNSET
|
|
82
86
|
supports_pausing: Union[Unset, bool] = UNSET
|
|
87
|
+
minimal_team_count_for_provisioning: Union[Unset, int] = UNSET
|
|
88
|
+
required_team_role_for_provisioning: Union[Unset, str] = UNSET
|
|
83
89
|
default_internal_network_mtu: Union[Unset, int] = UNSET
|
|
84
90
|
max_instances: Union[Unset, int] = UNSET
|
|
85
91
|
max_volumes: Union[Unset, int] = UNSET
|
|
@@ -139,6 +145,10 @@ class MergedPluginOptions:
|
|
|
139
145
|
|
|
140
146
|
supports_pausing = self.supports_pausing
|
|
141
147
|
|
|
148
|
+
minimal_team_count_for_provisioning = self.minimal_team_count_for_provisioning
|
|
149
|
+
|
|
150
|
+
required_team_role_for_provisioning = self.required_team_role_for_provisioning
|
|
151
|
+
|
|
142
152
|
default_internal_network_mtu = self.default_internal_network_mtu
|
|
143
153
|
|
|
144
154
|
max_instances = self.max_instances
|
|
@@ -242,6 +252,10 @@ class MergedPluginOptions:
|
|
|
242
252
|
field_dict["supports_downscaling"] = supports_downscaling
|
|
243
253
|
if supports_pausing is not UNSET:
|
|
244
254
|
field_dict["supports_pausing"] = supports_pausing
|
|
255
|
+
if minimal_team_count_for_provisioning is not UNSET:
|
|
256
|
+
field_dict["minimal_team_count_for_provisioning"] = minimal_team_count_for_provisioning
|
|
257
|
+
if required_team_role_for_provisioning is not UNSET:
|
|
258
|
+
field_dict["required_team_role_for_provisioning"] = required_team_role_for_provisioning
|
|
245
259
|
if default_internal_network_mtu is not UNSET:
|
|
246
260
|
field_dict["default_internal_network_mtu"] = default_internal_network_mtu
|
|
247
261
|
if max_instances is not UNSET:
|
|
@@ -351,6 +365,10 @@ class MergedPluginOptions:
|
|
|
351
365
|
|
|
352
366
|
supports_pausing = d.pop("supports_pausing", UNSET)
|
|
353
367
|
|
|
368
|
+
minimal_team_count_for_provisioning = d.pop("minimal_team_count_for_provisioning", UNSET)
|
|
369
|
+
|
|
370
|
+
required_team_role_for_provisioning = d.pop("required_team_role_for_provisioning", UNSET)
|
|
371
|
+
|
|
354
372
|
default_internal_network_mtu = d.pop("default_internal_network_mtu", UNSET)
|
|
355
373
|
|
|
356
374
|
max_instances = d.pop("max_instances", UNSET)
|
|
@@ -464,6 +482,8 @@ class MergedPluginOptions:
|
|
|
464
482
|
auto_approve_in_service_provider_projects=auto_approve_in_service_provider_projects,
|
|
465
483
|
supports_downscaling=supports_downscaling,
|
|
466
484
|
supports_pausing=supports_pausing,
|
|
485
|
+
minimal_team_count_for_provisioning=minimal_team_count_for_provisioning,
|
|
486
|
+
required_team_role_for_provisioning=required_team_role_for_provisioning,
|
|
467
487
|
default_internal_network_mtu=default_internal_network_mtu,
|
|
468
488
|
max_instances=max_instances,
|
|
469
489
|
max_volumes=max_volumes,
|