waldur-api-client 7.7.7__py3-none-any.whl → 7.7.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/customer_permissions_reviews/customer_permissions_reviews_count.py +19 -0
- waldur_api_client/api/customer_permissions_reviews/customer_permissions_reviews_list.py +19 -0
- waldur_api_client/api/customers/customers_users_list.py +141 -53
- waldur_api_client/api/invoices/invoices_items_retrieve.py +20 -0
- waldur_api_client/api/managed_rancher_cluster_resources/__init__.py +1 -0
- waldur_api_client/api/managed_rancher_cluster_resources/managed_rancher_cluster_resources_add_node.py +162 -0
- waldur_api_client/api/managed_rancher_cluster_resources/managed_rancher_cluster_resources_count.py +172 -0
- waldur_api_client/api/managed_rancher_cluster_resources/managed_rancher_cluster_resources_list.py +196 -0
- waldur_api_client/api/managed_rancher_cluster_resources/managed_rancher_cluster_resources_retrieve.py +171 -0
- waldur_api_client/api/marketplace_course_accounts/__init__.py +1 -0
- waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_count.py +244 -0
- waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_create.py +148 -0
- waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_create_bulk.py +152 -0
- waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_destroy.py +89 -0
- waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_list.py +245 -0
- waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_retrieve.py +140 -0
- waldur_api_client/api/marketplace_customer_service_accounts/marketplace_customer_service_accounts_count.py +25 -0
- waldur_api_client/api/marketplace_customer_service_accounts/marketplace_customer_service_accounts_list.py +25 -0
- waldur_api_client/api/marketplace_project_service_accounts/marketplace_project_service_accounts_count.py +25 -0
- waldur_api_client/api/marketplace_project_service_accounts/marketplace_project_service_accounts_list.py +25 -0
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_course_accounts_list.py +284 -0
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_project_service_accounts_list.py +29 -0
- waldur_api_client/api/project_permissions_reviews/__init__.py +1 -0
- waldur_api_client/api/project_permissions_reviews/project_permissions_reviews_close.py +91 -0
- waldur_api_client/api/project_permissions_reviews/project_permissions_reviews_count.py +266 -0
- waldur_api_client/api/project_permissions_reviews/project_permissions_reviews_list.py +269 -0
- waldur_api_client/api/project_permissions_reviews/project_permissions_reviews_retrieve.py +142 -0
- waldur_api_client/api/projects/projects_other_users_list.py +98 -23
- waldur_api_client/api/projects/projects_sync_user_roles.py +10 -9
- waldur_api_client/api/support_issue_statuses/__init__.py +1 -0
- waldur_api_client/api/support_issue_statuses/support_issue_statuses_count.py +172 -0
- waldur_api_client/api/support_issue_statuses/support_issue_statuses_create.py +148 -0
- waldur_api_client/api/support_issue_statuses/support_issue_statuses_destroy.py +89 -0
- waldur_api_client/api/support_issue_statuses/support_issue_statuses_list.py +173 -0
- waldur_api_client/api/support_issue_statuses/support_issue_statuses_partial_update.py +162 -0
- waldur_api_client/api/support_issue_statuses/support_issue_statuses_retrieve.py +140 -0
- waldur_api_client/api/support_issue_statuses/support_issue_statuses_update.py +162 -0
- waldur_api_client/api/user_group_invitations/user_group_invitations_submit_request.py +12 -12
- waldur_api_client/api/user_invitations/user_invitations_count.py +30 -0
- waldur_api_client/api/user_invitations/user_invitations_list.py +30 -0
- waldur_api_client/api/user_permission_requests/user_permission_requests_cancel_request.py +146 -0
- waldur_api_client/models/__init__.py +76 -4
- waldur_api_client/models/cancel_request_response.py +75 -0
- waldur_api_client/models/constance_settings.py +9 -0
- waldur_api_client/models/constance_settings_request.py +9 -0
- waldur_api_client/models/course_account.py +188 -0
- waldur_api_client/models/course_account_create_nested.py +68 -0
- waldur_api_client/models/course_account_create_nested_request.py +68 -0
- waldur_api_client/models/course_account_request.py +89 -0
- waldur_api_client/models/course_accounts_bulk_create.py +82 -0
- waldur_api_client/models/course_accounts_bulk_create_request.py +82 -0
- waldur_api_client/models/customer.py +9 -0
- waldur_api_client/models/customer_permission_review.py +16 -16
- waldur_api_client/models/customer_request.py +9 -0
- waldur_api_client/models/customer_service_account.py +9 -0
- waldur_api_client/models/customers_list_field_item.py +1 -0
- waldur_api_client/models/customers_retrieve_field_item.py +1 -0
- waldur_api_client/models/customers_users_list_o.py +9 -0
- waldur_api_client/models/customers_users_list_organization_role_item_type_0.py +10 -0
- waldur_api_client/models/customers_users_list_project_role_item_type_0.py +10 -0
- waldur_api_client/models/dependency_logic_operator_enum.py +9 -0
- waldur_api_client/models/event_subscription.py +1 -1
- waldur_api_client/models/event_types_enum.py +4 -0
- waldur_api_client/models/group_invitation.py +9 -0
- waldur_api_client/models/invitation.py +9 -0
- waldur_api_client/models/invoices_items_retrieve_o.py +15 -0
- waldur_api_client/models/issue_status.py +103 -0
- waldur_api_client/models/issue_status_request.py +78 -0
- waldur_api_client/models/issue_status_type_enum.py +9 -0
- waldur_api_client/models/kind_enum.py +10 -0
- waldur_api_client/models/managed_rancher_cluster_resources_list_field_item.py +82 -0
- waldur_api_client/models/managed_rancher_cluster_resources_retrieve_field_item.py +82 -0
- waldur_api_client/models/managed_rancher_create_node_request.py +186 -0
- waldur_api_client/models/marketplace_course_accounts_count_state_item.py +10 -0
- waldur_api_client/models/marketplace_course_accounts_list_state_item.py +10 -0
- waldur_api_client/models/marketplace_customer_service_accounts_count_state_item.py +10 -0
- waldur_api_client/models/marketplace_customer_service_accounts_list_state_item.py +10 -0
- waldur_api_client/models/marketplace_project_service_accounts_count_state_item.py +10 -0
- waldur_api_client/models/marketplace_project_service_accounts_list_state_item.py +10 -0
- waldur_api_client/models/marketplace_service_providers_course_accounts_list_state_item.py +10 -0
- waldur_api_client/models/marketplace_service_providers_project_service_accounts_list_state_item.py +10 -0
- waldur_api_client/models/marketplace_service_providers_projects_list_field_item.py +1 -0
- waldur_api_client/models/nested_security_group_rule.py +223 -0
- waldur_api_client/models/{open_stack_nested_security_group_rules_item.py → nested_security_group_rule_request.py} +67 -76
- waldur_api_client/models/open_stack_backup_restoration_request.py +0 -22
- waldur_api_client/models/open_stack_fixed_ip.py +13 -3
- waldur_api_client/models/open_stack_fixed_ip_request.py +7 -2
- waldur_api_client/models/open_stack_instance_create_order_attributes.py +20 -20
- waldur_api_client/models/open_stack_nested_security_group.py +16 -16
- waldur_api_client/models/open_stack_port_ip_update_request.py +6 -2
- waldur_api_client/models/open_stack_static_route.py +13 -4
- waldur_api_client/models/open_stack_static_route_request.py +7 -3
- waldur_api_client/models/open_stack_sub_net.py +15 -2
- waldur_api_client/models/open_stack_sub_net_allocation_pool.py +27 -8
- waldur_api_client/models/open_stack_sub_net_allocation_pool_request.py +14 -5
- waldur_api_client/models/open_stack_sub_net_request.py +15 -2
- waldur_api_client/models/patched_customer_request.py +9 -0
- waldur_api_client/models/patched_issue_status_request.py +76 -0
- waldur_api_client/models/patched_open_stack_sub_net_request.py +15 -2
- waldur_api_client/models/patched_project_request.py +17 -0
- waldur_api_client/models/patched_question_admin_request.py +17 -0
- waldur_api_client/models/patched_rancher_service_request.py +1 -1
- waldur_api_client/models/permission_request.py +16 -0
- waldur_api_client/models/project.py +17 -0
- waldur_api_client/models/project_permission_review.py +166 -0
- waldur_api_client/models/project_permissions_reviews_count_o_item.py +11 -0
- waldur_api_client/models/project_permissions_reviews_list_o_item.py +11 -0
- waldur_api_client/models/project_request.py +17 -0
- waldur_api_client/models/project_service_account.py +9 -0
- waldur_api_client/models/projects_list_field_item.py +1 -0
- waldur_api_client/models/projects_other_users_list_o.py +9 -0
- waldur_api_client/models/projects_retrieve_field_item.py +1 -0
- waldur_api_client/models/proposal.py +8 -0
- waldur_api_client/models/proposal_review.py +8 -0
- waldur_api_client/models/question_admin.py +17 -0
- waldur_api_client/models/question_admin_request.py +17 -0
- waldur_api_client/models/rancher_nested_public_ip.py +25 -7
- waldur_api_client/models/rancher_service.py +1 -1
- waldur_api_client/models/rancher_service_request.py +1 -1
- waldur_api_client/models/rmq_connection.py +8 -3
- waldur_api_client/models/rmq_subscription.py +7 -3
- waldur_api_client/models/robot_account.py +9 -17
- waldur_api_client/models/robot_account_details.py +9 -17
- waldur_api_client/models/service_account_state.py +10 -0
- waldur_api_client/models/submit_request_response.py +75 -0
- waldur_api_client/models/visible_invitation_details.py +9 -0
- {waldur_api_client-7.7.7.dist-info → waldur_api_client-7.7.8.dist-info}/METADATA +1 -1
- {waldur_api_client-7.7.7.dist-info → waldur_api_client-7.7.8.dist-info}/RECORD +130 -69
- waldur_api_client/models/robot_account_states.py +0 -13
- {waldur_api_client-7.7.7.dist-info → waldur_api_client-7.7.8.dist-info}/LICENSE +0 -0
- {waldur_api_client-7.7.7.dist-info → waldur_api_client-7.7.8.dist-info}/WHEEL +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import datetime
|
|
2
2
|
from collections.abc import Mapping
|
|
3
|
-
from typing import Any, TypeVar
|
|
3
|
+
from typing import Any, TypeVar, cast
|
|
4
4
|
from uuid import UUID
|
|
5
5
|
|
|
6
6
|
from attrs import define as _attrs_define
|
|
@@ -16,7 +16,7 @@ class RmqSubscription:
|
|
|
16
16
|
Attributes:
|
|
17
17
|
created (datetime.datetime):
|
|
18
18
|
uuid (UUID):
|
|
19
|
-
source_ip (str):
|
|
19
|
+
source_ip (str): An IPv4 or IPv6 address.
|
|
20
20
|
"""
|
|
21
21
|
|
|
22
22
|
created: datetime.datetime
|
|
@@ -29,6 +29,7 @@ class RmqSubscription:
|
|
|
29
29
|
|
|
30
30
|
uuid = str(self.uuid)
|
|
31
31
|
|
|
32
|
+
source_ip: str
|
|
32
33
|
source_ip = self.source_ip
|
|
33
34
|
|
|
34
35
|
field_dict: dict[str, Any] = {}
|
|
@@ -50,7 +51,10 @@ class RmqSubscription:
|
|
|
50
51
|
|
|
51
52
|
uuid = UUID(d.pop("uuid"))
|
|
52
53
|
|
|
53
|
-
|
|
54
|
+
def _parse_source_ip(data: object) -> str:
|
|
55
|
+
return cast(str, data)
|
|
56
|
+
|
|
57
|
+
source_ip = _parse_source_ip(d.pop("source_ip"))
|
|
54
58
|
|
|
55
59
|
rmq_subscription = cls(
|
|
56
60
|
created=created,
|
|
@@ -7,7 +7,6 @@ from attrs import define as _attrs_define
|
|
|
7
7
|
from attrs import field as _attrs_field
|
|
8
8
|
from dateutil.parser import isoparse
|
|
9
9
|
|
|
10
|
-
from ..models.robot_account_states import RobotAccountStates
|
|
11
10
|
from ..types import UNSET, Unset
|
|
12
11
|
|
|
13
12
|
if TYPE_CHECKING:
|
|
@@ -33,10 +32,10 @@ class RobotAccount:
|
|
|
33
32
|
description (Union[Unset, str]):
|
|
34
33
|
error_message (Union[Unset, str]):
|
|
35
34
|
error_traceback (Union[Unset, str]):
|
|
35
|
+
state (Union[Unset, str]):
|
|
36
36
|
users (Union[Unset, list[str]]): Users who have access to this robot account.
|
|
37
37
|
keys (Union[Unset, Any]):
|
|
38
38
|
responsible_user (Union[None, Unset, str]):
|
|
39
|
-
state (Union[Unset, RobotAccountStates]):
|
|
40
39
|
"""
|
|
41
40
|
|
|
42
41
|
url: str
|
|
@@ -51,10 +50,10 @@ class RobotAccount:
|
|
|
51
50
|
description: Union[Unset, str] = UNSET
|
|
52
51
|
error_message: Union[Unset, str] = UNSET
|
|
53
52
|
error_traceback: Union[Unset, str] = UNSET
|
|
53
|
+
state: Union[Unset, str] = UNSET
|
|
54
54
|
users: Union[Unset, list[str]] = UNSET
|
|
55
55
|
keys: Union[Unset, Any] = UNSET
|
|
56
56
|
responsible_user: Union[None, Unset, str] = UNSET
|
|
57
|
-
state: Union[Unset, RobotAccountStates] = UNSET
|
|
58
57
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
59
58
|
|
|
60
59
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -85,6 +84,8 @@ class RobotAccount:
|
|
|
85
84
|
|
|
86
85
|
error_traceback = self.error_traceback
|
|
87
86
|
|
|
87
|
+
state = self.state
|
|
88
|
+
|
|
88
89
|
users: Union[Unset, list[str]] = UNSET
|
|
89
90
|
if not isinstance(self.users, Unset):
|
|
90
91
|
users = self.users
|
|
@@ -97,10 +98,6 @@ class RobotAccount:
|
|
|
97
98
|
else:
|
|
98
99
|
responsible_user = self.responsible_user
|
|
99
100
|
|
|
100
|
-
state: Union[Unset, int] = UNSET
|
|
101
|
-
if not isinstance(self.state, Unset):
|
|
102
|
-
state = self.state.value
|
|
103
|
-
|
|
104
101
|
field_dict: dict[str, Any] = {}
|
|
105
102
|
field_dict.update(self.additional_properties)
|
|
106
103
|
field_dict.update(
|
|
@@ -123,14 +120,14 @@ class RobotAccount:
|
|
|
123
120
|
field_dict["error_message"] = error_message
|
|
124
121
|
if error_traceback is not UNSET:
|
|
125
122
|
field_dict["error_traceback"] = error_traceback
|
|
123
|
+
if state is not UNSET:
|
|
124
|
+
field_dict["state"] = state
|
|
126
125
|
if users is not UNSET:
|
|
127
126
|
field_dict["users"] = users
|
|
128
127
|
if keys is not UNSET:
|
|
129
128
|
field_dict["keys"] = keys
|
|
130
129
|
if responsible_user is not UNSET:
|
|
131
130
|
field_dict["responsible_user"] = responsible_user
|
|
132
|
-
if state is not UNSET:
|
|
133
|
-
field_dict["state"] = state
|
|
134
131
|
|
|
135
132
|
return field_dict
|
|
136
133
|
|
|
@@ -168,6 +165,8 @@ class RobotAccount:
|
|
|
168
165
|
|
|
169
166
|
error_traceback = d.pop("error_traceback", UNSET)
|
|
170
167
|
|
|
168
|
+
state = d.pop("state", UNSET)
|
|
169
|
+
|
|
171
170
|
users = cast(list[str], d.pop("users", UNSET))
|
|
172
171
|
|
|
173
172
|
keys = d.pop("keys", UNSET)
|
|
@@ -181,13 +180,6 @@ class RobotAccount:
|
|
|
181
180
|
|
|
182
181
|
responsible_user = _parse_responsible_user(d.pop("responsible_user", UNSET))
|
|
183
182
|
|
|
184
|
-
_state = d.pop("state", UNSET)
|
|
185
|
-
state: Union[Unset, RobotAccountStates]
|
|
186
|
-
if isinstance(_state, Unset):
|
|
187
|
-
state = UNSET
|
|
188
|
-
else:
|
|
189
|
-
state = RobotAccountStates(_state)
|
|
190
|
-
|
|
191
183
|
robot_account = cls(
|
|
192
184
|
url=url,
|
|
193
185
|
uuid=uuid,
|
|
@@ -201,10 +193,10 @@ class RobotAccount:
|
|
|
201
193
|
description=description,
|
|
202
194
|
error_message=error_message,
|
|
203
195
|
error_traceback=error_traceback,
|
|
196
|
+
state=state,
|
|
204
197
|
users=users,
|
|
205
198
|
keys=keys,
|
|
206
199
|
responsible_user=responsible_user,
|
|
207
|
-
state=state,
|
|
208
200
|
)
|
|
209
201
|
|
|
210
202
|
robot_account.additional_properties = d
|
|
@@ -7,7 +7,6 @@ from attrs import define as _attrs_define
|
|
|
7
7
|
from attrs import field as _attrs_field
|
|
8
8
|
from dateutil.parser import isoparse
|
|
9
9
|
|
|
10
|
-
from ..models.robot_account_states import RobotAccountStates
|
|
11
10
|
from ..types import UNSET, Unset
|
|
12
11
|
|
|
13
12
|
if TYPE_CHECKING:
|
|
@@ -32,6 +31,7 @@ class RobotAccountDetails:
|
|
|
32
31
|
description (Union[Unset, str]):
|
|
33
32
|
error_message (Union[Unset, str]):
|
|
34
33
|
error_traceback (Union[Unset, str]):
|
|
34
|
+
state (Union[Unset, str]):
|
|
35
35
|
resource (Union[Unset, str]):
|
|
36
36
|
type_ (Union[Unset, str]): Type of the robot account.
|
|
37
37
|
users (Union[Unset, list['BasicUser']]):
|
|
@@ -39,7 +39,6 @@ class RobotAccountDetails:
|
|
|
39
39
|
backend_id (Union[Unset, str]):
|
|
40
40
|
fingerprints (Union[Unset, list['Fingerprint']]):
|
|
41
41
|
responsible_user (Union['BasicUser', None, Unset]):
|
|
42
|
-
state (Union[Unset, RobotAccountStates]):
|
|
43
42
|
user_keys (Union[Unset, list['SshKey']]):
|
|
44
43
|
resource_name (Union[Unset, str]):
|
|
45
44
|
resource_uuid (Union[Unset, UUID]):
|
|
@@ -59,6 +58,7 @@ class RobotAccountDetails:
|
|
|
59
58
|
description: Union[Unset, str] = UNSET
|
|
60
59
|
error_message: Union[Unset, str] = UNSET
|
|
61
60
|
error_traceback: Union[Unset, str] = UNSET
|
|
61
|
+
state: Union[Unset, str] = UNSET
|
|
62
62
|
resource: Union[Unset, str] = UNSET
|
|
63
63
|
type_: Union[Unset, str] = UNSET
|
|
64
64
|
users: Union[Unset, list["BasicUser"]] = UNSET
|
|
@@ -66,7 +66,6 @@ class RobotAccountDetails:
|
|
|
66
66
|
backend_id: Union[Unset, str] = UNSET
|
|
67
67
|
fingerprints: Union[Unset, list["Fingerprint"]] = UNSET
|
|
68
68
|
responsible_user: Union["BasicUser", None, Unset] = UNSET
|
|
69
|
-
state: Union[Unset, RobotAccountStates] = UNSET
|
|
70
69
|
user_keys: Union[Unset, list["SshKey"]] = UNSET
|
|
71
70
|
resource_name: Union[Unset, str] = UNSET
|
|
72
71
|
resource_uuid: Union[Unset, UUID] = UNSET
|
|
@@ -103,6 +102,8 @@ class RobotAccountDetails:
|
|
|
103
102
|
|
|
104
103
|
error_traceback = self.error_traceback
|
|
105
104
|
|
|
105
|
+
state = self.state
|
|
106
|
+
|
|
106
107
|
resource = self.resource
|
|
107
108
|
|
|
108
109
|
type_ = self.type_
|
|
@@ -133,10 +134,6 @@ class RobotAccountDetails:
|
|
|
133
134
|
else:
|
|
134
135
|
responsible_user = self.responsible_user
|
|
135
136
|
|
|
136
|
-
state: Union[Unset, int] = UNSET
|
|
137
|
-
if not isinstance(self.state, Unset):
|
|
138
|
-
state = self.state.value
|
|
139
|
-
|
|
140
137
|
user_keys: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
141
138
|
if not isinstance(self.user_keys, Unset):
|
|
142
139
|
user_keys = []
|
|
@@ -189,6 +186,8 @@ class RobotAccountDetails:
|
|
|
189
186
|
field_dict["error_message"] = error_message
|
|
190
187
|
if error_traceback is not UNSET:
|
|
191
188
|
field_dict["error_traceback"] = error_traceback
|
|
189
|
+
if state is not UNSET:
|
|
190
|
+
field_dict["state"] = state
|
|
192
191
|
if resource is not UNSET:
|
|
193
192
|
field_dict["resource"] = resource
|
|
194
193
|
if type_ is not UNSET:
|
|
@@ -203,8 +202,6 @@ class RobotAccountDetails:
|
|
|
203
202
|
field_dict["fingerprints"] = fingerprints
|
|
204
203
|
if responsible_user is not UNSET:
|
|
205
204
|
field_dict["responsible_user"] = responsible_user
|
|
206
|
-
if state is not UNSET:
|
|
207
|
-
field_dict["state"] = state
|
|
208
205
|
if user_keys is not UNSET:
|
|
209
206
|
field_dict["user_keys"] = user_keys
|
|
210
207
|
if resource_name is not UNSET:
|
|
@@ -265,6 +262,8 @@ class RobotAccountDetails:
|
|
|
265
262
|
|
|
266
263
|
error_traceback = d.pop("error_traceback", UNSET)
|
|
267
264
|
|
|
265
|
+
state = d.pop("state", UNSET)
|
|
266
|
+
|
|
268
267
|
resource = d.pop("resource", UNSET)
|
|
269
268
|
|
|
270
269
|
type_ = d.pop("type", UNSET)
|
|
@@ -304,13 +303,6 @@ class RobotAccountDetails:
|
|
|
304
303
|
|
|
305
304
|
responsible_user = _parse_responsible_user(d.pop("responsible_user", UNSET))
|
|
306
305
|
|
|
307
|
-
_state = d.pop("state", UNSET)
|
|
308
|
-
state: Union[Unset, RobotAccountStates]
|
|
309
|
-
if isinstance(_state, Unset):
|
|
310
|
-
state = UNSET
|
|
311
|
-
else:
|
|
312
|
-
state = RobotAccountStates(_state)
|
|
313
|
-
|
|
314
306
|
user_keys = []
|
|
315
307
|
_user_keys = d.pop("user_keys", UNSET)
|
|
316
308
|
for user_keys_item_data in _user_keys or []:
|
|
@@ -368,6 +360,7 @@ class RobotAccountDetails:
|
|
|
368
360
|
description=description,
|
|
369
361
|
error_message=error_message,
|
|
370
362
|
error_traceback=error_traceback,
|
|
363
|
+
state=state,
|
|
371
364
|
resource=resource,
|
|
372
365
|
type_=type_,
|
|
373
366
|
users=users,
|
|
@@ -375,7 +368,6 @@ class RobotAccountDetails:
|
|
|
375
368
|
backend_id=backend_id,
|
|
376
369
|
fingerprints=fingerprints,
|
|
377
370
|
responsible_user=responsible_user,
|
|
378
|
-
state=state,
|
|
379
371
|
user_keys=user_keys,
|
|
380
372
|
resource_name=resource_name,
|
|
381
373
|
resource_uuid=resource_uuid,
|
|
@@ -0,0 +1,75 @@
|
|
|
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="SubmitRequestResponse")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@_attrs_define
|
|
11
|
+
class SubmitRequestResponse:
|
|
12
|
+
"""
|
|
13
|
+
Attributes:
|
|
14
|
+
uuid (str): UUID of the created permission request
|
|
15
|
+
scope_name (str): Name of the invitation scope
|
|
16
|
+
scope_uuid (str): UUID of the invitation scope
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
uuid: str
|
|
20
|
+
scope_name: str
|
|
21
|
+
scope_uuid: str
|
|
22
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
23
|
+
|
|
24
|
+
def to_dict(self) -> dict[str, Any]:
|
|
25
|
+
uuid = self.uuid
|
|
26
|
+
|
|
27
|
+
scope_name = self.scope_name
|
|
28
|
+
|
|
29
|
+
scope_uuid = self.scope_uuid
|
|
30
|
+
|
|
31
|
+
field_dict: dict[str, Any] = {}
|
|
32
|
+
field_dict.update(self.additional_properties)
|
|
33
|
+
field_dict.update(
|
|
34
|
+
{
|
|
35
|
+
"uuid": uuid,
|
|
36
|
+
"scope_name": scope_name,
|
|
37
|
+
"scope_uuid": scope_uuid,
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
return field_dict
|
|
42
|
+
|
|
43
|
+
@classmethod
|
|
44
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
45
|
+
d = dict(src_dict)
|
|
46
|
+
uuid = d.pop("uuid")
|
|
47
|
+
|
|
48
|
+
scope_name = d.pop("scope_name")
|
|
49
|
+
|
|
50
|
+
scope_uuid = d.pop("scope_uuid")
|
|
51
|
+
|
|
52
|
+
submit_request_response = cls(
|
|
53
|
+
uuid=uuid,
|
|
54
|
+
scope_name=scope_name,
|
|
55
|
+
scope_uuid=scope_uuid,
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
submit_request_response.additional_properties = d
|
|
59
|
+
return submit_request_response
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
def additional_keys(self) -> list[str]:
|
|
63
|
+
return list(self.additional_properties.keys())
|
|
64
|
+
|
|
65
|
+
def __getitem__(self, key: str) -> Any:
|
|
66
|
+
return self.additional_properties[key]
|
|
67
|
+
|
|
68
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
69
|
+
self.additional_properties[key] = value
|
|
70
|
+
|
|
71
|
+
def __delitem__(self, key: str) -> None:
|
|
72
|
+
del self.additional_properties[key]
|
|
73
|
+
|
|
74
|
+
def __contains__(self, key: str) -> bool:
|
|
75
|
+
return key in self.additional_properties
|
|
@@ -17,6 +17,8 @@ class VisibleInvitationDetails:
|
|
|
17
17
|
Attributes:
|
|
18
18
|
scope_uuid (UUID):
|
|
19
19
|
scope_name (str):
|
|
20
|
+
scope_description (str): Get the description field from the scope if it exists.
|
|
21
|
+
Returns empty string if scope doesn't have a description field.
|
|
20
22
|
scope_type (Union[None, str]):
|
|
21
23
|
customer_uuid (UUID):
|
|
22
24
|
customer_name (str):
|
|
@@ -33,6 +35,7 @@ class VisibleInvitationDetails:
|
|
|
33
35
|
|
|
34
36
|
scope_uuid: UUID
|
|
35
37
|
scope_name: str
|
|
38
|
+
scope_description: str
|
|
36
39
|
scope_type: Union[None, str]
|
|
37
40
|
customer_uuid: UUID
|
|
38
41
|
customer_name: str
|
|
@@ -51,6 +54,8 @@ class VisibleInvitationDetails:
|
|
|
51
54
|
|
|
52
55
|
scope_name = self.scope_name
|
|
53
56
|
|
|
57
|
+
scope_description = self.scope_description
|
|
58
|
+
|
|
54
59
|
scope_type: Union[None, str]
|
|
55
60
|
scope_type = self.scope_type
|
|
56
61
|
|
|
@@ -80,6 +85,7 @@ class VisibleInvitationDetails:
|
|
|
80
85
|
{
|
|
81
86
|
"scope_uuid": scope_uuid,
|
|
82
87
|
"scope_name": scope_name,
|
|
88
|
+
"scope_description": scope_description,
|
|
83
89
|
"scope_type": scope_type,
|
|
84
90
|
"customer_uuid": customer_uuid,
|
|
85
91
|
"customer_name": customer_name,
|
|
@@ -103,6 +109,8 @@ class VisibleInvitationDetails:
|
|
|
103
109
|
|
|
104
110
|
scope_name = d.pop("scope_name")
|
|
105
111
|
|
|
112
|
+
scope_description = d.pop("scope_description")
|
|
113
|
+
|
|
106
114
|
def _parse_scope_type(data: object) -> Union[None, str]:
|
|
107
115
|
if data is None:
|
|
108
116
|
return data
|
|
@@ -133,6 +141,7 @@ class VisibleInvitationDetails:
|
|
|
133
141
|
visible_invitation_details = cls(
|
|
134
142
|
scope_uuid=scope_uuid,
|
|
135
143
|
scope_name=scope_name,
|
|
144
|
+
scope_description=scope_description,
|
|
136
145
|
scope_type=scope_type,
|
|
137
146
|
customer_uuid=customer_uuid,
|
|
138
147
|
customer_name=customer_name,
|