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,3 +1,4 @@
|
|
|
1
|
+
import datetime
|
|
1
2
|
from http import HTTPStatus
|
|
2
3
|
from typing import Any, Union
|
|
3
4
|
from uuid import UUID
|
|
@@ -7,19 +8,24 @@ import httpx
|
|
|
7
8
|
from ... import errors
|
|
8
9
|
from ...client import AuthenticatedClient, Client
|
|
9
10
|
from ...models.basic_user import BasicUser
|
|
11
|
+
from ...models.projects_other_users_list_o import ProjectsOtherUsersListO
|
|
10
12
|
from ...types import UNSET, Response, Unset
|
|
11
13
|
|
|
12
14
|
|
|
13
15
|
def _get_kwargs(
|
|
14
|
-
|
|
16
|
+
project_uuid: UUID,
|
|
15
17
|
*,
|
|
18
|
+
agreement_date: Union[Unset, datetime.datetime] = UNSET,
|
|
16
19
|
civil_number: Union[Unset, str] = UNSET,
|
|
20
|
+
date_joined: Union[Unset, datetime.datetime] = UNSET,
|
|
17
21
|
description: Union[Unset, str] = UNSET,
|
|
18
22
|
email: Union[Unset, str] = UNSET,
|
|
19
23
|
full_name: Union[Unset, str] = UNSET,
|
|
20
|
-
is_active: Union[Unset,
|
|
24
|
+
is_active: Union[Unset, bool] = UNSET,
|
|
21
25
|
job_title: Union[Unset, str] = UNSET,
|
|
26
|
+
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
22
27
|
native_name: Union[Unset, str] = UNSET,
|
|
28
|
+
o: Union[Unset, ProjectsOtherUsersListO] = UNSET,
|
|
23
29
|
organization: Union[Unset, str] = UNSET,
|
|
24
30
|
page: Union[Unset, int] = UNSET,
|
|
25
31
|
page_size: Union[Unset, int] = UNSET,
|
|
@@ -30,8 +36,18 @@ def _get_kwargs(
|
|
|
30
36
|
) -> dict[str, Any]:
|
|
31
37
|
params: dict[str, Any] = {}
|
|
32
38
|
|
|
39
|
+
json_agreement_date: Union[Unset, str] = UNSET
|
|
40
|
+
if not isinstance(agreement_date, Unset):
|
|
41
|
+
json_agreement_date = agreement_date.isoformat()
|
|
42
|
+
params["agreement_date"] = json_agreement_date
|
|
43
|
+
|
|
33
44
|
params["civil_number"] = civil_number
|
|
34
45
|
|
|
46
|
+
json_date_joined: Union[Unset, str] = UNSET
|
|
47
|
+
if not isinstance(date_joined, Unset):
|
|
48
|
+
json_date_joined = date_joined.isoformat()
|
|
49
|
+
params["date_joined"] = json_date_joined
|
|
50
|
+
|
|
35
51
|
params["description"] = description
|
|
36
52
|
|
|
37
53
|
params["email"] = email
|
|
@@ -42,8 +58,19 @@ def _get_kwargs(
|
|
|
42
58
|
|
|
43
59
|
params["job_title"] = job_title
|
|
44
60
|
|
|
61
|
+
json_modified: Union[Unset, str] = UNSET
|
|
62
|
+
if not isinstance(modified, Unset):
|
|
63
|
+
json_modified = modified.isoformat()
|
|
64
|
+
params["modified"] = json_modified
|
|
65
|
+
|
|
45
66
|
params["native_name"] = native_name
|
|
46
67
|
|
|
68
|
+
json_o: Union[Unset, str] = UNSET
|
|
69
|
+
if not isinstance(o, Unset):
|
|
70
|
+
json_o = o.value
|
|
71
|
+
|
|
72
|
+
params["o"] = json_o
|
|
73
|
+
|
|
47
74
|
params["organization"] = organization
|
|
48
75
|
|
|
49
76
|
params["page"] = page
|
|
@@ -62,7 +89,7 @@ def _get_kwargs(
|
|
|
62
89
|
|
|
63
90
|
_kwargs: dict[str, Any] = {
|
|
64
91
|
"method": "get",
|
|
65
|
-
"url": f"/api/projects/{
|
|
92
|
+
"url": f"/api/projects/{project_uuid}/other_users/",
|
|
66
93
|
"params": params,
|
|
67
94
|
}
|
|
68
95
|
|
|
@@ -94,16 +121,20 @@ def _build_response(
|
|
|
94
121
|
|
|
95
122
|
|
|
96
123
|
def sync_detailed(
|
|
97
|
-
|
|
124
|
+
project_uuid: UUID,
|
|
98
125
|
*,
|
|
99
126
|
client: AuthenticatedClient,
|
|
127
|
+
agreement_date: Union[Unset, datetime.datetime] = UNSET,
|
|
100
128
|
civil_number: Union[Unset, str] = UNSET,
|
|
129
|
+
date_joined: Union[Unset, datetime.datetime] = UNSET,
|
|
101
130
|
description: Union[Unset, str] = UNSET,
|
|
102
131
|
email: Union[Unset, str] = UNSET,
|
|
103
132
|
full_name: Union[Unset, str] = UNSET,
|
|
104
|
-
is_active: Union[Unset,
|
|
133
|
+
is_active: Union[Unset, bool] = UNSET,
|
|
105
134
|
job_title: Union[Unset, str] = UNSET,
|
|
135
|
+
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
106
136
|
native_name: Union[Unset, str] = UNSET,
|
|
137
|
+
o: Union[Unset, ProjectsOtherUsersListO] = UNSET,
|
|
107
138
|
organization: Union[Unset, str] = UNSET,
|
|
108
139
|
page: Union[Unset, int] = UNSET,
|
|
109
140
|
page_size: Union[Unset, int] = UNSET,
|
|
@@ -115,14 +146,18 @@ def sync_detailed(
|
|
|
115
146
|
"""A list of users which can be added to the current project from other projects of the same customer.
|
|
116
147
|
|
|
117
148
|
Args:
|
|
118
|
-
|
|
149
|
+
project_uuid (UUID):
|
|
150
|
+
agreement_date (Union[Unset, datetime.datetime]):
|
|
119
151
|
civil_number (Union[Unset, str]):
|
|
152
|
+
date_joined (Union[Unset, datetime.datetime]):
|
|
120
153
|
description (Union[Unset, str]):
|
|
121
154
|
email (Union[Unset, str]):
|
|
122
155
|
full_name (Union[Unset, str]):
|
|
123
|
-
is_active (Union[Unset,
|
|
156
|
+
is_active (Union[Unset, bool]):
|
|
124
157
|
job_title (Union[Unset, str]):
|
|
158
|
+
modified (Union[Unset, datetime.datetime]):
|
|
125
159
|
native_name (Union[Unset, str]):
|
|
160
|
+
o (Union[Unset, ProjectsOtherUsersListO]):
|
|
126
161
|
organization (Union[Unset, str]):
|
|
127
162
|
page (Union[Unset, int]):
|
|
128
163
|
page_size (Union[Unset, int]):
|
|
@@ -140,14 +175,18 @@ def sync_detailed(
|
|
|
140
175
|
"""
|
|
141
176
|
|
|
142
177
|
kwargs = _get_kwargs(
|
|
143
|
-
|
|
178
|
+
project_uuid=project_uuid,
|
|
179
|
+
agreement_date=agreement_date,
|
|
144
180
|
civil_number=civil_number,
|
|
181
|
+
date_joined=date_joined,
|
|
145
182
|
description=description,
|
|
146
183
|
email=email,
|
|
147
184
|
full_name=full_name,
|
|
148
185
|
is_active=is_active,
|
|
149
186
|
job_title=job_title,
|
|
187
|
+
modified=modified,
|
|
150
188
|
native_name=native_name,
|
|
189
|
+
o=o,
|
|
151
190
|
organization=organization,
|
|
152
191
|
page=page,
|
|
153
192
|
page_size=page_size,
|
|
@@ -165,16 +204,20 @@ def sync_detailed(
|
|
|
165
204
|
|
|
166
205
|
|
|
167
206
|
def sync(
|
|
168
|
-
|
|
207
|
+
project_uuid: UUID,
|
|
169
208
|
*,
|
|
170
209
|
client: AuthenticatedClient,
|
|
210
|
+
agreement_date: Union[Unset, datetime.datetime] = UNSET,
|
|
171
211
|
civil_number: Union[Unset, str] = UNSET,
|
|
212
|
+
date_joined: Union[Unset, datetime.datetime] = UNSET,
|
|
172
213
|
description: Union[Unset, str] = UNSET,
|
|
173
214
|
email: Union[Unset, str] = UNSET,
|
|
174
215
|
full_name: Union[Unset, str] = UNSET,
|
|
175
|
-
is_active: Union[Unset,
|
|
216
|
+
is_active: Union[Unset, bool] = UNSET,
|
|
176
217
|
job_title: Union[Unset, str] = UNSET,
|
|
218
|
+
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
177
219
|
native_name: Union[Unset, str] = UNSET,
|
|
220
|
+
o: Union[Unset, ProjectsOtherUsersListO] = UNSET,
|
|
178
221
|
organization: Union[Unset, str] = UNSET,
|
|
179
222
|
page: Union[Unset, int] = UNSET,
|
|
180
223
|
page_size: Union[Unset, int] = UNSET,
|
|
@@ -186,14 +229,18 @@ def sync(
|
|
|
186
229
|
"""A list of users which can be added to the current project from other projects of the same customer.
|
|
187
230
|
|
|
188
231
|
Args:
|
|
189
|
-
|
|
232
|
+
project_uuid (UUID):
|
|
233
|
+
agreement_date (Union[Unset, datetime.datetime]):
|
|
190
234
|
civil_number (Union[Unset, str]):
|
|
235
|
+
date_joined (Union[Unset, datetime.datetime]):
|
|
191
236
|
description (Union[Unset, str]):
|
|
192
237
|
email (Union[Unset, str]):
|
|
193
238
|
full_name (Union[Unset, str]):
|
|
194
|
-
is_active (Union[Unset,
|
|
239
|
+
is_active (Union[Unset, bool]):
|
|
195
240
|
job_title (Union[Unset, str]):
|
|
241
|
+
modified (Union[Unset, datetime.datetime]):
|
|
196
242
|
native_name (Union[Unset, str]):
|
|
243
|
+
o (Union[Unset, ProjectsOtherUsersListO]):
|
|
197
244
|
organization (Union[Unset, str]):
|
|
198
245
|
page (Union[Unset, int]):
|
|
199
246
|
page_size (Union[Unset, int]):
|
|
@@ -211,15 +258,19 @@ def sync(
|
|
|
211
258
|
"""
|
|
212
259
|
|
|
213
260
|
return sync_detailed(
|
|
214
|
-
|
|
261
|
+
project_uuid=project_uuid,
|
|
215
262
|
client=client,
|
|
263
|
+
agreement_date=agreement_date,
|
|
216
264
|
civil_number=civil_number,
|
|
265
|
+
date_joined=date_joined,
|
|
217
266
|
description=description,
|
|
218
267
|
email=email,
|
|
219
268
|
full_name=full_name,
|
|
220
269
|
is_active=is_active,
|
|
221
270
|
job_title=job_title,
|
|
271
|
+
modified=modified,
|
|
222
272
|
native_name=native_name,
|
|
273
|
+
o=o,
|
|
223
274
|
organization=organization,
|
|
224
275
|
page=page,
|
|
225
276
|
page_size=page_size,
|
|
@@ -231,16 +282,20 @@ def sync(
|
|
|
231
282
|
|
|
232
283
|
|
|
233
284
|
async def asyncio_detailed(
|
|
234
|
-
|
|
285
|
+
project_uuid: UUID,
|
|
235
286
|
*,
|
|
236
287
|
client: AuthenticatedClient,
|
|
288
|
+
agreement_date: Union[Unset, datetime.datetime] = UNSET,
|
|
237
289
|
civil_number: Union[Unset, str] = UNSET,
|
|
290
|
+
date_joined: Union[Unset, datetime.datetime] = UNSET,
|
|
238
291
|
description: Union[Unset, str] = UNSET,
|
|
239
292
|
email: Union[Unset, str] = UNSET,
|
|
240
293
|
full_name: Union[Unset, str] = UNSET,
|
|
241
|
-
is_active: Union[Unset,
|
|
294
|
+
is_active: Union[Unset, bool] = UNSET,
|
|
242
295
|
job_title: Union[Unset, str] = UNSET,
|
|
296
|
+
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
243
297
|
native_name: Union[Unset, str] = UNSET,
|
|
298
|
+
o: Union[Unset, ProjectsOtherUsersListO] = UNSET,
|
|
244
299
|
organization: Union[Unset, str] = UNSET,
|
|
245
300
|
page: Union[Unset, int] = UNSET,
|
|
246
301
|
page_size: Union[Unset, int] = UNSET,
|
|
@@ -252,14 +307,18 @@ async def asyncio_detailed(
|
|
|
252
307
|
"""A list of users which can be added to the current project from other projects of the same customer.
|
|
253
308
|
|
|
254
309
|
Args:
|
|
255
|
-
|
|
310
|
+
project_uuid (UUID):
|
|
311
|
+
agreement_date (Union[Unset, datetime.datetime]):
|
|
256
312
|
civil_number (Union[Unset, str]):
|
|
313
|
+
date_joined (Union[Unset, datetime.datetime]):
|
|
257
314
|
description (Union[Unset, str]):
|
|
258
315
|
email (Union[Unset, str]):
|
|
259
316
|
full_name (Union[Unset, str]):
|
|
260
|
-
is_active (Union[Unset,
|
|
317
|
+
is_active (Union[Unset, bool]):
|
|
261
318
|
job_title (Union[Unset, str]):
|
|
319
|
+
modified (Union[Unset, datetime.datetime]):
|
|
262
320
|
native_name (Union[Unset, str]):
|
|
321
|
+
o (Union[Unset, ProjectsOtherUsersListO]):
|
|
263
322
|
organization (Union[Unset, str]):
|
|
264
323
|
page (Union[Unset, int]):
|
|
265
324
|
page_size (Union[Unset, int]):
|
|
@@ -277,14 +336,18 @@ async def asyncio_detailed(
|
|
|
277
336
|
"""
|
|
278
337
|
|
|
279
338
|
kwargs = _get_kwargs(
|
|
280
|
-
|
|
339
|
+
project_uuid=project_uuid,
|
|
340
|
+
agreement_date=agreement_date,
|
|
281
341
|
civil_number=civil_number,
|
|
342
|
+
date_joined=date_joined,
|
|
282
343
|
description=description,
|
|
283
344
|
email=email,
|
|
284
345
|
full_name=full_name,
|
|
285
346
|
is_active=is_active,
|
|
286
347
|
job_title=job_title,
|
|
348
|
+
modified=modified,
|
|
287
349
|
native_name=native_name,
|
|
350
|
+
o=o,
|
|
288
351
|
organization=organization,
|
|
289
352
|
page=page,
|
|
290
353
|
page_size=page_size,
|
|
@@ -300,16 +363,20 @@ async def asyncio_detailed(
|
|
|
300
363
|
|
|
301
364
|
|
|
302
365
|
async def asyncio(
|
|
303
|
-
|
|
366
|
+
project_uuid: UUID,
|
|
304
367
|
*,
|
|
305
368
|
client: AuthenticatedClient,
|
|
369
|
+
agreement_date: Union[Unset, datetime.datetime] = UNSET,
|
|
306
370
|
civil_number: Union[Unset, str] = UNSET,
|
|
371
|
+
date_joined: Union[Unset, datetime.datetime] = UNSET,
|
|
307
372
|
description: Union[Unset, str] = UNSET,
|
|
308
373
|
email: Union[Unset, str] = UNSET,
|
|
309
374
|
full_name: Union[Unset, str] = UNSET,
|
|
310
|
-
is_active: Union[Unset,
|
|
375
|
+
is_active: Union[Unset, bool] = UNSET,
|
|
311
376
|
job_title: Union[Unset, str] = UNSET,
|
|
377
|
+
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
312
378
|
native_name: Union[Unset, str] = UNSET,
|
|
379
|
+
o: Union[Unset, ProjectsOtherUsersListO] = UNSET,
|
|
313
380
|
organization: Union[Unset, str] = UNSET,
|
|
314
381
|
page: Union[Unset, int] = UNSET,
|
|
315
382
|
page_size: Union[Unset, int] = UNSET,
|
|
@@ -321,14 +388,18 @@ async def asyncio(
|
|
|
321
388
|
"""A list of users which can be added to the current project from other projects of the same customer.
|
|
322
389
|
|
|
323
390
|
Args:
|
|
324
|
-
|
|
391
|
+
project_uuid (UUID):
|
|
392
|
+
agreement_date (Union[Unset, datetime.datetime]):
|
|
325
393
|
civil_number (Union[Unset, str]):
|
|
394
|
+
date_joined (Union[Unset, datetime.datetime]):
|
|
326
395
|
description (Union[Unset, str]):
|
|
327
396
|
email (Union[Unset, str]):
|
|
328
397
|
full_name (Union[Unset, str]):
|
|
329
|
-
is_active (Union[Unset,
|
|
398
|
+
is_active (Union[Unset, bool]):
|
|
330
399
|
job_title (Union[Unset, str]):
|
|
400
|
+
modified (Union[Unset, datetime.datetime]):
|
|
331
401
|
native_name (Union[Unset, str]):
|
|
402
|
+
o (Union[Unset, ProjectsOtherUsersListO]):
|
|
332
403
|
organization (Union[Unset, str]):
|
|
333
404
|
page (Union[Unset, int]):
|
|
334
405
|
page_size (Union[Unset, int]):
|
|
@@ -347,15 +418,19 @@ async def asyncio(
|
|
|
347
418
|
|
|
348
419
|
return (
|
|
349
420
|
await asyncio_detailed(
|
|
350
|
-
|
|
421
|
+
project_uuid=project_uuid,
|
|
351
422
|
client=client,
|
|
423
|
+
agreement_date=agreement_date,
|
|
352
424
|
civil_number=civil_number,
|
|
425
|
+
date_joined=date_joined,
|
|
353
426
|
description=description,
|
|
354
427
|
email=email,
|
|
355
428
|
full_name=full_name,
|
|
356
429
|
is_active=is_active,
|
|
357
430
|
job_title=job_title,
|
|
431
|
+
modified=modified,
|
|
358
432
|
native_name=native_name,
|
|
433
|
+
o=o,
|
|
359
434
|
organization=organization,
|
|
360
435
|
page=page,
|
|
361
436
|
page_size=page_size,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
from http import HTTPStatus
|
|
2
2
|
from typing import Any, Union
|
|
3
|
-
from uuid import UUID
|
|
4
3
|
|
|
5
4
|
import httpx
|
|
6
5
|
|
|
@@ -10,11 +9,11 @@ from ...types import Response
|
|
|
10
9
|
|
|
11
10
|
|
|
12
11
|
def _get_kwargs(
|
|
13
|
-
uuid:
|
|
12
|
+
uuid: str,
|
|
14
13
|
) -> dict[str, Any]:
|
|
15
14
|
_kwargs: dict[str, Any] = {
|
|
16
15
|
"method": "post",
|
|
17
|
-
"url": f"/
|
|
16
|
+
"url": f"/projects/{uuid}/sync_user_roles/",
|
|
18
17
|
}
|
|
19
18
|
|
|
20
19
|
return _kwargs
|
|
@@ -36,14 +35,15 @@ def _build_response(*, client: Union[AuthenticatedClient, Client], response: htt
|
|
|
36
35
|
|
|
37
36
|
|
|
38
37
|
def sync_detailed(
|
|
39
|
-
uuid:
|
|
38
|
+
uuid: str,
|
|
40
39
|
*,
|
|
41
40
|
client: AuthenticatedClient,
|
|
42
41
|
) -> Response[Any]:
|
|
43
|
-
"""Trigger user role sync for this project
|
|
42
|
+
"""Trigger user role sync for this project. Sends a notification to RabbitMQ that this project needs
|
|
43
|
+
user role synchronization.
|
|
44
44
|
|
|
45
45
|
Args:
|
|
46
|
-
uuid (
|
|
46
|
+
uuid (str):
|
|
47
47
|
|
|
48
48
|
Raises:
|
|
49
49
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -65,14 +65,15 @@ def sync_detailed(
|
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
async def asyncio_detailed(
|
|
68
|
-
uuid:
|
|
68
|
+
uuid: str,
|
|
69
69
|
*,
|
|
70
70
|
client: AuthenticatedClient,
|
|
71
71
|
) -> Response[Any]:
|
|
72
|
-
"""Trigger user role sync for this project
|
|
72
|
+
"""Trigger user role sync for this project. Sends a notification to RabbitMQ that this project needs
|
|
73
|
+
user role synchronization.
|
|
73
74
|
|
|
74
75
|
Args:
|
|
75
|
-
uuid (
|
|
76
|
+
uuid (str):
|
|
76
77
|
|
|
77
78
|
Raises:
|
|
78
79
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Contains endpoint functions for accessing the API"""
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...types import UNSET, Response, Unset
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def _get_kwargs(
|
|
12
|
+
*,
|
|
13
|
+
page: Union[Unset, int] = UNSET,
|
|
14
|
+
page_size: Union[Unset, int] = UNSET,
|
|
15
|
+
) -> dict[str, Any]:
|
|
16
|
+
params: dict[str, Any] = {}
|
|
17
|
+
|
|
18
|
+
params["page"] = page
|
|
19
|
+
|
|
20
|
+
params["page_size"] = page_size
|
|
21
|
+
|
|
22
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
23
|
+
|
|
24
|
+
_kwargs: dict[str, Any] = {
|
|
25
|
+
"method": "head",
|
|
26
|
+
"url": "/api/support-issue-statuses/",
|
|
27
|
+
"params": params,
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return _kwargs
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> int:
|
|
34
|
+
if response.status_code == HTTPStatus.OK:
|
|
35
|
+
try:
|
|
36
|
+
return int(response.headers["x-result-count"])
|
|
37
|
+
except KeyError:
|
|
38
|
+
raise errors.UnexpectedStatus(
|
|
39
|
+
response.status_code, b"Expected 'X-Result-Count' header for HEAD request, but it was not found."
|
|
40
|
+
)
|
|
41
|
+
except ValueError:
|
|
42
|
+
count_val = response.headers.get("x-result-count")
|
|
43
|
+
msg = f"Expected 'X-Result-Count' header to be an integer, but got '{count_val}'."
|
|
44
|
+
raise errors.UnexpectedStatus(response.status_code, msg.encode())
|
|
45
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[int]:
|
|
49
|
+
return Response(
|
|
50
|
+
status_code=HTTPStatus(response.status_code),
|
|
51
|
+
content=response.content,
|
|
52
|
+
headers=response.headers,
|
|
53
|
+
parsed=_parse_response(client=client, response=response),
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def sync_detailed(
|
|
58
|
+
*,
|
|
59
|
+
client: AuthenticatedClient,
|
|
60
|
+
page: Union[Unset, int] = UNSET,
|
|
61
|
+
page_size: Union[Unset, int] = UNSET,
|
|
62
|
+
) -> Response[int]:
|
|
63
|
+
"""Get number of items in the collection matching the request parameters.
|
|
64
|
+
|
|
65
|
+
Args:
|
|
66
|
+
page (Union[Unset, int]):
|
|
67
|
+
page_size (Union[Unset, int]):
|
|
68
|
+
|
|
69
|
+
Raises:
|
|
70
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
71
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
72
|
+
|
|
73
|
+
Returns:
|
|
74
|
+
Response[int]
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
kwargs = _get_kwargs(
|
|
78
|
+
page=page,
|
|
79
|
+
page_size=page_size,
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
response = client.get_httpx_client().request(
|
|
83
|
+
**kwargs,
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
return _build_response(client=client, response=response)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def sync(
|
|
90
|
+
*,
|
|
91
|
+
client: AuthenticatedClient,
|
|
92
|
+
page: Union[Unset, int] = UNSET,
|
|
93
|
+
page_size: Union[Unset, int] = UNSET,
|
|
94
|
+
) -> int:
|
|
95
|
+
"""Get number of items in the collection matching the request parameters.
|
|
96
|
+
|
|
97
|
+
Args:
|
|
98
|
+
page (Union[Unset, int]):
|
|
99
|
+
page_size (Union[Unset, int]):
|
|
100
|
+
|
|
101
|
+
Raises:
|
|
102
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
103
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
104
|
+
|
|
105
|
+
Returns:
|
|
106
|
+
int
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
return sync_detailed(
|
|
110
|
+
client=client,
|
|
111
|
+
page=page,
|
|
112
|
+
page_size=page_size,
|
|
113
|
+
).parsed
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
async def asyncio_detailed(
|
|
117
|
+
*,
|
|
118
|
+
client: AuthenticatedClient,
|
|
119
|
+
page: Union[Unset, int] = UNSET,
|
|
120
|
+
page_size: Union[Unset, int] = UNSET,
|
|
121
|
+
) -> Response[int]:
|
|
122
|
+
"""Get number of items in the collection matching the request parameters.
|
|
123
|
+
|
|
124
|
+
Args:
|
|
125
|
+
page (Union[Unset, int]):
|
|
126
|
+
page_size (Union[Unset, int]):
|
|
127
|
+
|
|
128
|
+
Raises:
|
|
129
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
130
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
131
|
+
|
|
132
|
+
Returns:
|
|
133
|
+
Response[int]
|
|
134
|
+
"""
|
|
135
|
+
|
|
136
|
+
kwargs = _get_kwargs(
|
|
137
|
+
page=page,
|
|
138
|
+
page_size=page_size,
|
|
139
|
+
)
|
|
140
|
+
|
|
141
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
142
|
+
|
|
143
|
+
return _build_response(client=client, response=response)
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
async def asyncio(
|
|
147
|
+
*,
|
|
148
|
+
client: AuthenticatedClient,
|
|
149
|
+
page: Union[Unset, int] = UNSET,
|
|
150
|
+
page_size: Union[Unset, int] = UNSET,
|
|
151
|
+
) -> int:
|
|
152
|
+
"""Get number of items in the collection matching the request parameters.
|
|
153
|
+
|
|
154
|
+
Args:
|
|
155
|
+
page (Union[Unset, int]):
|
|
156
|
+
page_size (Union[Unset, int]):
|
|
157
|
+
|
|
158
|
+
Raises:
|
|
159
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
160
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
161
|
+
|
|
162
|
+
Returns:
|
|
163
|
+
int
|
|
164
|
+
"""
|
|
165
|
+
|
|
166
|
+
return (
|
|
167
|
+
await asyncio_detailed(
|
|
168
|
+
client=client,
|
|
169
|
+
page=page,
|
|
170
|
+
page_size=page_size,
|
|
171
|
+
)
|
|
172
|
+
).parsed
|