waldur-api-client 7.7.7__py3-none-any.whl → 7.7.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/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_provider_offerings/marketplace_provider_offerings_component_stats_list.py +30 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_costs_list.py +30 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_count.py +30 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_customers_list.py +30 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_groups_count.py +30 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_groups_list.py +30 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_list.py +30 -0
- waldur_api_client/api/marketplace_public_offerings/marketplace_public_offerings_count.py +30 -0
- waldur_api_client/api/marketplace_public_offerings/marketplace_public_offerings_list.py +30 -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_offerings_list.py +30 -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 -2
- waldur_api_client/models/cancel_request_response.py +75 -0
- waldur_api_client/models/constance_settings.py +18 -0
- waldur_api_client/models/constance_settings_request.py +18 -0
- waldur_api_client/models/course_account.py +187 -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 +80 -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 +16 -16
- waldur_api_client/models/robot_account_details.py +16 -16
- 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.9.dist-info}/METADATA +1 -1
- {waldur_api_client-7.7.7.dist-info → waldur_api_client-7.7.9.dist-info}/RECORD +140 -78
- {waldur_api_client-7.7.7.dist-info → waldur_api_client-7.7.9.dist-info}/LICENSE +0 -0
- {waldur_api_client-7.7.7.dist-info → waldur_api_client-7.7.9.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,
|
|
@@ -33,10 +33,10 @@ class RobotAccount:
|
|
|
33
33
|
description (Union[Unset, str]):
|
|
34
34
|
error_message (Union[Unset, str]):
|
|
35
35
|
error_traceback (Union[Unset, str]):
|
|
36
|
+
state (Union[Unset, RobotAccountStates]):
|
|
36
37
|
users (Union[Unset, list[str]]): Users who have access to this robot account.
|
|
37
38
|
keys (Union[Unset, Any]):
|
|
38
39
|
responsible_user (Union[None, Unset, str]):
|
|
39
|
-
state (Union[Unset, RobotAccountStates]):
|
|
40
40
|
"""
|
|
41
41
|
|
|
42
42
|
url: str
|
|
@@ -51,10 +51,10 @@ class RobotAccount:
|
|
|
51
51
|
description: Union[Unset, str] = UNSET
|
|
52
52
|
error_message: Union[Unset, str] = UNSET
|
|
53
53
|
error_traceback: Union[Unset, str] = UNSET
|
|
54
|
+
state: Union[Unset, RobotAccountStates] = UNSET
|
|
54
55
|
users: Union[Unset, list[str]] = UNSET
|
|
55
56
|
keys: Union[Unset, Any] = UNSET
|
|
56
57
|
responsible_user: Union[None, Unset, str] = UNSET
|
|
57
|
-
state: Union[Unset, RobotAccountStates] = UNSET
|
|
58
58
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
59
59
|
|
|
60
60
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -85,6 +85,10 @@ class RobotAccount:
|
|
|
85
85
|
|
|
86
86
|
error_traceback = self.error_traceback
|
|
87
87
|
|
|
88
|
+
state: Union[Unset, int] = UNSET
|
|
89
|
+
if not isinstance(self.state, Unset):
|
|
90
|
+
state = self.state.value
|
|
91
|
+
|
|
88
92
|
users: Union[Unset, list[str]] = UNSET
|
|
89
93
|
if not isinstance(self.users, Unset):
|
|
90
94
|
users = self.users
|
|
@@ -97,10 +101,6 @@ class RobotAccount:
|
|
|
97
101
|
else:
|
|
98
102
|
responsible_user = self.responsible_user
|
|
99
103
|
|
|
100
|
-
state: Union[Unset, int] = UNSET
|
|
101
|
-
if not isinstance(self.state, Unset):
|
|
102
|
-
state = self.state.value
|
|
103
|
-
|
|
104
104
|
field_dict: dict[str, Any] = {}
|
|
105
105
|
field_dict.update(self.additional_properties)
|
|
106
106
|
field_dict.update(
|
|
@@ -123,14 +123,14 @@ class RobotAccount:
|
|
|
123
123
|
field_dict["error_message"] = error_message
|
|
124
124
|
if error_traceback is not UNSET:
|
|
125
125
|
field_dict["error_traceback"] = error_traceback
|
|
126
|
+
if state is not UNSET:
|
|
127
|
+
field_dict["state"] = state
|
|
126
128
|
if users is not UNSET:
|
|
127
129
|
field_dict["users"] = users
|
|
128
130
|
if keys is not UNSET:
|
|
129
131
|
field_dict["keys"] = keys
|
|
130
132
|
if responsible_user is not UNSET:
|
|
131
133
|
field_dict["responsible_user"] = responsible_user
|
|
132
|
-
if state is not UNSET:
|
|
133
|
-
field_dict["state"] = state
|
|
134
134
|
|
|
135
135
|
return field_dict
|
|
136
136
|
|
|
@@ -168,6 +168,13 @@ class RobotAccount:
|
|
|
168
168
|
|
|
169
169
|
error_traceback = d.pop("error_traceback", UNSET)
|
|
170
170
|
|
|
171
|
+
_state = d.pop("state", UNSET)
|
|
172
|
+
state: Union[Unset, RobotAccountStates]
|
|
173
|
+
if isinstance(_state, Unset):
|
|
174
|
+
state = UNSET
|
|
175
|
+
else:
|
|
176
|
+
state = RobotAccountStates(_state)
|
|
177
|
+
|
|
171
178
|
users = cast(list[str], d.pop("users", UNSET))
|
|
172
179
|
|
|
173
180
|
keys = d.pop("keys", UNSET)
|
|
@@ -181,13 +188,6 @@ class RobotAccount:
|
|
|
181
188
|
|
|
182
189
|
responsible_user = _parse_responsible_user(d.pop("responsible_user", UNSET))
|
|
183
190
|
|
|
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
191
|
robot_account = cls(
|
|
192
192
|
url=url,
|
|
193
193
|
uuid=uuid,
|
|
@@ -201,10 +201,10 @@ class RobotAccount:
|
|
|
201
201
|
description=description,
|
|
202
202
|
error_message=error_message,
|
|
203
203
|
error_traceback=error_traceback,
|
|
204
|
+
state=state,
|
|
204
205
|
users=users,
|
|
205
206
|
keys=keys,
|
|
206
207
|
responsible_user=responsible_user,
|
|
207
|
-
state=state,
|
|
208
208
|
)
|
|
209
209
|
|
|
210
210
|
robot_account.additional_properties = d
|
|
@@ -32,6 +32,7 @@ class RobotAccountDetails:
|
|
|
32
32
|
description (Union[Unset, str]):
|
|
33
33
|
error_message (Union[Unset, str]):
|
|
34
34
|
error_traceback (Union[Unset, str]):
|
|
35
|
+
state (Union[Unset, RobotAccountStates]):
|
|
35
36
|
resource (Union[Unset, str]):
|
|
36
37
|
type_ (Union[Unset, str]): Type of the robot account.
|
|
37
38
|
users (Union[Unset, list['BasicUser']]):
|
|
@@ -39,7 +40,6 @@ class RobotAccountDetails:
|
|
|
39
40
|
backend_id (Union[Unset, str]):
|
|
40
41
|
fingerprints (Union[Unset, list['Fingerprint']]):
|
|
41
42
|
responsible_user (Union['BasicUser', None, Unset]):
|
|
42
|
-
state (Union[Unset, RobotAccountStates]):
|
|
43
43
|
user_keys (Union[Unset, list['SshKey']]):
|
|
44
44
|
resource_name (Union[Unset, str]):
|
|
45
45
|
resource_uuid (Union[Unset, UUID]):
|
|
@@ -59,6 +59,7 @@ class RobotAccountDetails:
|
|
|
59
59
|
description: Union[Unset, str] = UNSET
|
|
60
60
|
error_message: Union[Unset, str] = UNSET
|
|
61
61
|
error_traceback: Union[Unset, str] = UNSET
|
|
62
|
+
state: Union[Unset, RobotAccountStates] = UNSET
|
|
62
63
|
resource: Union[Unset, str] = UNSET
|
|
63
64
|
type_: Union[Unset, str] = UNSET
|
|
64
65
|
users: Union[Unset, list["BasicUser"]] = UNSET
|
|
@@ -66,7 +67,6 @@ class RobotAccountDetails:
|
|
|
66
67
|
backend_id: Union[Unset, str] = UNSET
|
|
67
68
|
fingerprints: Union[Unset, list["Fingerprint"]] = UNSET
|
|
68
69
|
responsible_user: Union["BasicUser", None, Unset] = UNSET
|
|
69
|
-
state: Union[Unset, RobotAccountStates] = UNSET
|
|
70
70
|
user_keys: Union[Unset, list["SshKey"]] = UNSET
|
|
71
71
|
resource_name: Union[Unset, str] = UNSET
|
|
72
72
|
resource_uuid: Union[Unset, UUID] = UNSET
|
|
@@ -103,6 +103,10 @@ class RobotAccountDetails:
|
|
|
103
103
|
|
|
104
104
|
error_traceback = self.error_traceback
|
|
105
105
|
|
|
106
|
+
state: Union[Unset, int] = UNSET
|
|
107
|
+
if not isinstance(self.state, Unset):
|
|
108
|
+
state = self.state.value
|
|
109
|
+
|
|
106
110
|
resource = self.resource
|
|
107
111
|
|
|
108
112
|
type_ = self.type_
|
|
@@ -133,10 +137,6 @@ class RobotAccountDetails:
|
|
|
133
137
|
else:
|
|
134
138
|
responsible_user = self.responsible_user
|
|
135
139
|
|
|
136
|
-
state: Union[Unset, int] = UNSET
|
|
137
|
-
if not isinstance(self.state, Unset):
|
|
138
|
-
state = self.state.value
|
|
139
|
-
|
|
140
140
|
user_keys: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
141
141
|
if not isinstance(self.user_keys, Unset):
|
|
142
142
|
user_keys = []
|
|
@@ -189,6 +189,8 @@ class RobotAccountDetails:
|
|
|
189
189
|
field_dict["error_message"] = error_message
|
|
190
190
|
if error_traceback is not UNSET:
|
|
191
191
|
field_dict["error_traceback"] = error_traceback
|
|
192
|
+
if state is not UNSET:
|
|
193
|
+
field_dict["state"] = state
|
|
192
194
|
if resource is not UNSET:
|
|
193
195
|
field_dict["resource"] = resource
|
|
194
196
|
if type_ is not UNSET:
|
|
@@ -203,8 +205,6 @@ class RobotAccountDetails:
|
|
|
203
205
|
field_dict["fingerprints"] = fingerprints
|
|
204
206
|
if responsible_user is not UNSET:
|
|
205
207
|
field_dict["responsible_user"] = responsible_user
|
|
206
|
-
if state is not UNSET:
|
|
207
|
-
field_dict["state"] = state
|
|
208
208
|
if user_keys is not UNSET:
|
|
209
209
|
field_dict["user_keys"] = user_keys
|
|
210
210
|
if resource_name is not UNSET:
|
|
@@ -265,6 +265,13 @@ class RobotAccountDetails:
|
|
|
265
265
|
|
|
266
266
|
error_traceback = d.pop("error_traceback", UNSET)
|
|
267
267
|
|
|
268
|
+
_state = d.pop("state", UNSET)
|
|
269
|
+
state: Union[Unset, RobotAccountStates]
|
|
270
|
+
if isinstance(_state, Unset):
|
|
271
|
+
state = UNSET
|
|
272
|
+
else:
|
|
273
|
+
state = RobotAccountStates(_state)
|
|
274
|
+
|
|
268
275
|
resource = d.pop("resource", UNSET)
|
|
269
276
|
|
|
270
277
|
type_ = d.pop("type", UNSET)
|
|
@@ -304,13 +311,6 @@ class RobotAccountDetails:
|
|
|
304
311
|
|
|
305
312
|
responsible_user = _parse_responsible_user(d.pop("responsible_user", UNSET))
|
|
306
313
|
|
|
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
314
|
user_keys = []
|
|
315
315
|
_user_keys = d.pop("user_keys", UNSET)
|
|
316
316
|
for user_keys_item_data in _user_keys or []:
|
|
@@ -368,6 +368,7 @@ class RobotAccountDetails:
|
|
|
368
368
|
description=description,
|
|
369
369
|
error_message=error_message,
|
|
370
370
|
error_traceback=error_traceback,
|
|
371
|
+
state=state,
|
|
371
372
|
resource=resource,
|
|
372
373
|
type_=type_,
|
|
373
374
|
users=users,
|
|
@@ -375,7 +376,6 @@ class RobotAccountDetails:
|
|
|
375
376
|
backend_id=backend_id,
|
|
376
377
|
fingerprints=fingerprints,
|
|
377
378
|
responsible_user=responsible_user,
|
|
378
|
-
state=state,
|
|
379
379
|
user_keys=user_keys,
|
|
380
380
|
resource_name=resource_name,
|
|
381
381
|
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,
|