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
|
@@ -6,6 +6,9 @@ import httpx
|
|
|
6
6
|
|
|
7
7
|
from ... import errors
|
|
8
8
|
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.marketplace_service_providers_project_service_accounts_list_state_item import (
|
|
10
|
+
MarketplaceServiceProvidersProjectServiceAccountsListStateItem,
|
|
11
|
+
)
|
|
9
12
|
from ...models.project_service_account import ProjectServiceAccount
|
|
10
13
|
from ...types import UNSET, Response, Unset
|
|
11
14
|
|
|
@@ -18,6 +21,7 @@ def _get_kwargs(
|
|
|
18
21
|
page_size: Union[Unset, int] = UNSET,
|
|
19
22
|
project: Union[Unset, str] = UNSET,
|
|
20
23
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
24
|
+
state: Union[Unset, list[MarketplaceServiceProvidersProjectServiceAccountsListStateItem]] = UNSET,
|
|
21
25
|
username: Union[Unset, str] = UNSET,
|
|
22
26
|
) -> dict[str, Any]:
|
|
23
27
|
params: dict[str, Any] = {}
|
|
@@ -35,6 +39,15 @@ def _get_kwargs(
|
|
|
35
39
|
json_project_uuid = str(project_uuid)
|
|
36
40
|
params["project_uuid"] = json_project_uuid
|
|
37
41
|
|
|
42
|
+
json_state: Union[Unset, list[str]] = UNSET
|
|
43
|
+
if not isinstance(state, Unset):
|
|
44
|
+
json_state = []
|
|
45
|
+
for state_item_data in state:
|
|
46
|
+
state_item = state_item_data.value
|
|
47
|
+
json_state.append(state_item)
|
|
48
|
+
|
|
49
|
+
params["state"] = json_state
|
|
50
|
+
|
|
38
51
|
params["username"] = username
|
|
39
52
|
|
|
40
53
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
@@ -83,6 +96,7 @@ def sync_detailed(
|
|
|
83
96
|
page_size: Union[Unset, int] = UNSET,
|
|
84
97
|
project: Union[Unset, str] = UNSET,
|
|
85
98
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
99
|
+
state: Union[Unset, list[MarketplaceServiceProvidersProjectServiceAccountsListStateItem]] = UNSET,
|
|
86
100
|
username: Union[Unset, str] = UNSET,
|
|
87
101
|
) -> Response[list["ProjectServiceAccount"]]:
|
|
88
102
|
"""Return project service accounts that have access to resources managed by the provider.
|
|
@@ -100,6 +114,8 @@ def sync_detailed(
|
|
|
100
114
|
page_size (Union[Unset, int]):
|
|
101
115
|
project (Union[Unset, str]):
|
|
102
116
|
project_uuid (Union[Unset, UUID]):
|
|
117
|
+
state (Union[Unset,
|
|
118
|
+
list[MarketplaceServiceProvidersProjectServiceAccountsListStateItem]]):
|
|
103
119
|
username (Union[Unset, str]):
|
|
104
120
|
|
|
105
121
|
Raises:
|
|
@@ -117,6 +133,7 @@ def sync_detailed(
|
|
|
117
133
|
page_size=page_size,
|
|
118
134
|
project=project,
|
|
119
135
|
project_uuid=project_uuid,
|
|
136
|
+
state=state,
|
|
120
137
|
username=username,
|
|
121
138
|
)
|
|
122
139
|
|
|
@@ -136,6 +153,7 @@ def sync(
|
|
|
136
153
|
page_size: Union[Unset, int] = UNSET,
|
|
137
154
|
project: Union[Unset, str] = UNSET,
|
|
138
155
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
156
|
+
state: Union[Unset, list[MarketplaceServiceProvidersProjectServiceAccountsListStateItem]] = UNSET,
|
|
139
157
|
username: Union[Unset, str] = UNSET,
|
|
140
158
|
) -> list["ProjectServiceAccount"]:
|
|
141
159
|
"""Return project service accounts that have access to resources managed by the provider.
|
|
@@ -153,6 +171,8 @@ def sync(
|
|
|
153
171
|
page_size (Union[Unset, int]):
|
|
154
172
|
project (Union[Unset, str]):
|
|
155
173
|
project_uuid (Union[Unset, UUID]):
|
|
174
|
+
state (Union[Unset,
|
|
175
|
+
list[MarketplaceServiceProvidersProjectServiceAccountsListStateItem]]):
|
|
156
176
|
username (Union[Unset, str]):
|
|
157
177
|
|
|
158
178
|
Raises:
|
|
@@ -171,6 +191,7 @@ def sync(
|
|
|
171
191
|
page_size=page_size,
|
|
172
192
|
project=project,
|
|
173
193
|
project_uuid=project_uuid,
|
|
194
|
+
state=state,
|
|
174
195
|
username=username,
|
|
175
196
|
).parsed
|
|
176
197
|
|
|
@@ -184,6 +205,7 @@ async def asyncio_detailed(
|
|
|
184
205
|
page_size: Union[Unset, int] = UNSET,
|
|
185
206
|
project: Union[Unset, str] = UNSET,
|
|
186
207
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
208
|
+
state: Union[Unset, list[MarketplaceServiceProvidersProjectServiceAccountsListStateItem]] = UNSET,
|
|
187
209
|
username: Union[Unset, str] = UNSET,
|
|
188
210
|
) -> Response[list["ProjectServiceAccount"]]:
|
|
189
211
|
"""Return project service accounts that have access to resources managed by the provider.
|
|
@@ -201,6 +223,8 @@ async def asyncio_detailed(
|
|
|
201
223
|
page_size (Union[Unset, int]):
|
|
202
224
|
project (Union[Unset, str]):
|
|
203
225
|
project_uuid (Union[Unset, UUID]):
|
|
226
|
+
state (Union[Unset,
|
|
227
|
+
list[MarketplaceServiceProvidersProjectServiceAccountsListStateItem]]):
|
|
204
228
|
username (Union[Unset, str]):
|
|
205
229
|
|
|
206
230
|
Raises:
|
|
@@ -218,6 +242,7 @@ async def asyncio_detailed(
|
|
|
218
242
|
page_size=page_size,
|
|
219
243
|
project=project,
|
|
220
244
|
project_uuid=project_uuid,
|
|
245
|
+
state=state,
|
|
221
246
|
username=username,
|
|
222
247
|
)
|
|
223
248
|
|
|
@@ -235,6 +260,7 @@ async def asyncio(
|
|
|
235
260
|
page_size: Union[Unset, int] = UNSET,
|
|
236
261
|
project: Union[Unset, str] = UNSET,
|
|
237
262
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
263
|
+
state: Union[Unset, list[MarketplaceServiceProvidersProjectServiceAccountsListStateItem]] = UNSET,
|
|
238
264
|
username: Union[Unset, str] = UNSET,
|
|
239
265
|
) -> list["ProjectServiceAccount"]:
|
|
240
266
|
"""Return project service accounts that have access to resources managed by the provider.
|
|
@@ -252,6 +278,8 @@ async def asyncio(
|
|
|
252
278
|
page_size (Union[Unset, int]):
|
|
253
279
|
project (Union[Unset, str]):
|
|
254
280
|
project_uuid (Union[Unset, UUID]):
|
|
281
|
+
state (Union[Unset,
|
|
282
|
+
list[MarketplaceServiceProvidersProjectServiceAccountsListStateItem]]):
|
|
255
283
|
username (Union[Unset, str]):
|
|
256
284
|
|
|
257
285
|
Raises:
|
|
@@ -271,6 +299,7 @@ async def asyncio(
|
|
|
271
299
|
page_size=page_size,
|
|
272
300
|
project=project,
|
|
273
301
|
project_uuid=project_uuid,
|
|
302
|
+
state=state,
|
|
274
303
|
username=username,
|
|
275
304
|
)
|
|
276
305
|
).parsed
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Contains endpoint functions for accessing the API"""
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Union
|
|
3
|
+
from uuid import UUID
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from ... import errors
|
|
8
|
+
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...types import Response
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _get_kwargs(
|
|
13
|
+
uuid: UUID,
|
|
14
|
+
) -> dict[str, Any]:
|
|
15
|
+
_kwargs: dict[str, Any] = {
|
|
16
|
+
"method": "post",
|
|
17
|
+
"url": f"/api/project-permissions-reviews/{uuid}/close/",
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return _kwargs
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Any:
|
|
24
|
+
if response.status_code == 200:
|
|
25
|
+
return None
|
|
26
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
|
|
30
|
+
return Response(
|
|
31
|
+
status_code=HTTPStatus(response.status_code),
|
|
32
|
+
content=response.content,
|
|
33
|
+
headers=response.headers,
|
|
34
|
+
parsed=_parse_response(client=client, response=response),
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def sync_detailed(
|
|
39
|
+
uuid: UUID,
|
|
40
|
+
*,
|
|
41
|
+
client: AuthenticatedClient,
|
|
42
|
+
) -> Response[Any]:
|
|
43
|
+
"""Complete project permission review.
|
|
44
|
+
|
|
45
|
+
Args:
|
|
46
|
+
uuid (UUID):
|
|
47
|
+
|
|
48
|
+
Raises:
|
|
49
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
50
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
51
|
+
|
|
52
|
+
Returns:
|
|
53
|
+
Response[Any]
|
|
54
|
+
"""
|
|
55
|
+
|
|
56
|
+
kwargs = _get_kwargs(
|
|
57
|
+
uuid=uuid,
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
response = client.get_httpx_client().request(
|
|
61
|
+
**kwargs,
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
return _build_response(client=client, response=response)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
async def asyncio_detailed(
|
|
68
|
+
uuid: UUID,
|
|
69
|
+
*,
|
|
70
|
+
client: AuthenticatedClient,
|
|
71
|
+
) -> Response[Any]:
|
|
72
|
+
"""Complete project permission review.
|
|
73
|
+
|
|
74
|
+
Args:
|
|
75
|
+
uuid (UUID):
|
|
76
|
+
|
|
77
|
+
Raises:
|
|
78
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
79
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
80
|
+
|
|
81
|
+
Returns:
|
|
82
|
+
Response[Any]
|
|
83
|
+
"""
|
|
84
|
+
|
|
85
|
+
kwargs = _get_kwargs(
|
|
86
|
+
uuid=uuid,
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
90
|
+
|
|
91
|
+
return _build_response(client=client, response=response)
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from http import HTTPStatus
|
|
3
|
+
from typing import Any, Union
|
|
4
|
+
from uuid import UUID
|
|
5
|
+
|
|
6
|
+
import httpx
|
|
7
|
+
|
|
8
|
+
from ... import errors
|
|
9
|
+
from ...client import AuthenticatedClient, Client
|
|
10
|
+
from ...models.project_permissions_reviews_count_o_item import ProjectPermissionsReviewsCountOItem
|
|
11
|
+
from ...types import UNSET, Response, Unset
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_kwargs(
|
|
15
|
+
*,
|
|
16
|
+
closed: Union[Unset, datetime.datetime] = UNSET,
|
|
17
|
+
is_pending: Union[Unset, bool] = UNSET,
|
|
18
|
+
o: Union[Unset, list[ProjectPermissionsReviewsCountOItem]] = UNSET,
|
|
19
|
+
page: Union[Unset, int] = UNSET,
|
|
20
|
+
page_size: Union[Unset, int] = UNSET,
|
|
21
|
+
project_uuid: Union[Unset, UUID] = UNSET,
|
|
22
|
+
reviewer_uuid: Union[Unset, UUID] = UNSET,
|
|
23
|
+
) -> dict[str, Any]:
|
|
24
|
+
params: dict[str, Any] = {}
|
|
25
|
+
|
|
26
|
+
json_closed: Union[Unset, str] = UNSET
|
|
27
|
+
if not isinstance(closed, Unset):
|
|
28
|
+
json_closed = closed.isoformat()
|
|
29
|
+
params["closed"] = json_closed
|
|
30
|
+
|
|
31
|
+
params["is_pending"] = is_pending
|
|
32
|
+
|
|
33
|
+
json_o: Union[Unset, list[str]] = UNSET
|
|
34
|
+
if not isinstance(o, Unset):
|
|
35
|
+
json_o = []
|
|
36
|
+
for o_item_data in o:
|
|
37
|
+
o_item = o_item_data.value
|
|
38
|
+
json_o.append(o_item)
|
|
39
|
+
|
|
40
|
+
params["o"] = json_o
|
|
41
|
+
|
|
42
|
+
params["page"] = page
|
|
43
|
+
|
|
44
|
+
params["page_size"] = page_size
|
|
45
|
+
|
|
46
|
+
json_project_uuid: Union[Unset, str] = UNSET
|
|
47
|
+
if not isinstance(project_uuid, Unset):
|
|
48
|
+
json_project_uuid = str(project_uuid)
|
|
49
|
+
params["project_uuid"] = json_project_uuid
|
|
50
|
+
|
|
51
|
+
json_reviewer_uuid: Union[Unset, str] = UNSET
|
|
52
|
+
if not isinstance(reviewer_uuid, Unset):
|
|
53
|
+
json_reviewer_uuid = str(reviewer_uuid)
|
|
54
|
+
params["reviewer_uuid"] = json_reviewer_uuid
|
|
55
|
+
|
|
56
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
57
|
+
|
|
58
|
+
_kwargs: dict[str, Any] = {
|
|
59
|
+
"method": "head",
|
|
60
|
+
"url": "/api/project-permissions-reviews/",
|
|
61
|
+
"params": params,
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return _kwargs
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> int:
|
|
68
|
+
if response.status_code == HTTPStatus.OK:
|
|
69
|
+
try:
|
|
70
|
+
return int(response.headers["x-result-count"])
|
|
71
|
+
except KeyError:
|
|
72
|
+
raise errors.UnexpectedStatus(
|
|
73
|
+
response.status_code, b"Expected 'X-Result-Count' header for HEAD request, but it was not found."
|
|
74
|
+
)
|
|
75
|
+
except ValueError:
|
|
76
|
+
count_val = response.headers.get("x-result-count")
|
|
77
|
+
msg = f"Expected 'X-Result-Count' header to be an integer, but got '{count_val}'."
|
|
78
|
+
raise errors.UnexpectedStatus(response.status_code, msg.encode())
|
|
79
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[int]:
|
|
83
|
+
return Response(
|
|
84
|
+
status_code=HTTPStatus(response.status_code),
|
|
85
|
+
content=response.content,
|
|
86
|
+
headers=response.headers,
|
|
87
|
+
parsed=_parse_response(client=client, response=response),
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
def sync_detailed(
|
|
92
|
+
*,
|
|
93
|
+
client: AuthenticatedClient,
|
|
94
|
+
closed: Union[Unset, datetime.datetime] = UNSET,
|
|
95
|
+
is_pending: Union[Unset, bool] = UNSET,
|
|
96
|
+
o: Union[Unset, list[ProjectPermissionsReviewsCountOItem]] = UNSET,
|
|
97
|
+
page: Union[Unset, int] = UNSET,
|
|
98
|
+
page_size: Union[Unset, int] = UNSET,
|
|
99
|
+
project_uuid: Union[Unset, UUID] = UNSET,
|
|
100
|
+
reviewer_uuid: Union[Unset, UUID] = UNSET,
|
|
101
|
+
) -> Response[int]:
|
|
102
|
+
"""Get number of items in the collection matching the request parameters.
|
|
103
|
+
|
|
104
|
+
Args:
|
|
105
|
+
closed (Union[Unset, datetime.datetime]):
|
|
106
|
+
is_pending (Union[Unset, bool]):
|
|
107
|
+
o (Union[Unset, list[ProjectPermissionsReviewsCountOItem]]):
|
|
108
|
+
page (Union[Unset, int]):
|
|
109
|
+
page_size (Union[Unset, int]):
|
|
110
|
+
project_uuid (Union[Unset, UUID]):
|
|
111
|
+
reviewer_uuid (Union[Unset, UUID]):
|
|
112
|
+
|
|
113
|
+
Raises:
|
|
114
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
115
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
116
|
+
|
|
117
|
+
Returns:
|
|
118
|
+
Response[int]
|
|
119
|
+
"""
|
|
120
|
+
|
|
121
|
+
kwargs = _get_kwargs(
|
|
122
|
+
closed=closed,
|
|
123
|
+
is_pending=is_pending,
|
|
124
|
+
o=o,
|
|
125
|
+
page=page,
|
|
126
|
+
page_size=page_size,
|
|
127
|
+
project_uuid=project_uuid,
|
|
128
|
+
reviewer_uuid=reviewer_uuid,
|
|
129
|
+
)
|
|
130
|
+
|
|
131
|
+
response = client.get_httpx_client().request(
|
|
132
|
+
**kwargs,
|
|
133
|
+
)
|
|
134
|
+
|
|
135
|
+
return _build_response(client=client, response=response)
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
def sync(
|
|
139
|
+
*,
|
|
140
|
+
client: AuthenticatedClient,
|
|
141
|
+
closed: Union[Unset, datetime.datetime] = UNSET,
|
|
142
|
+
is_pending: Union[Unset, bool] = UNSET,
|
|
143
|
+
o: Union[Unset, list[ProjectPermissionsReviewsCountOItem]] = UNSET,
|
|
144
|
+
page: Union[Unset, int] = UNSET,
|
|
145
|
+
page_size: Union[Unset, int] = UNSET,
|
|
146
|
+
project_uuid: Union[Unset, UUID] = UNSET,
|
|
147
|
+
reviewer_uuid: Union[Unset, UUID] = UNSET,
|
|
148
|
+
) -> int:
|
|
149
|
+
"""Get number of items in the collection matching the request parameters.
|
|
150
|
+
|
|
151
|
+
Args:
|
|
152
|
+
closed (Union[Unset, datetime.datetime]):
|
|
153
|
+
is_pending (Union[Unset, bool]):
|
|
154
|
+
o (Union[Unset, list[ProjectPermissionsReviewsCountOItem]]):
|
|
155
|
+
page (Union[Unset, int]):
|
|
156
|
+
page_size (Union[Unset, int]):
|
|
157
|
+
project_uuid (Union[Unset, UUID]):
|
|
158
|
+
reviewer_uuid (Union[Unset, UUID]):
|
|
159
|
+
|
|
160
|
+
Raises:
|
|
161
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
162
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
163
|
+
|
|
164
|
+
Returns:
|
|
165
|
+
int
|
|
166
|
+
"""
|
|
167
|
+
|
|
168
|
+
return sync_detailed(
|
|
169
|
+
client=client,
|
|
170
|
+
closed=closed,
|
|
171
|
+
is_pending=is_pending,
|
|
172
|
+
o=o,
|
|
173
|
+
page=page,
|
|
174
|
+
page_size=page_size,
|
|
175
|
+
project_uuid=project_uuid,
|
|
176
|
+
reviewer_uuid=reviewer_uuid,
|
|
177
|
+
).parsed
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
async def asyncio_detailed(
|
|
181
|
+
*,
|
|
182
|
+
client: AuthenticatedClient,
|
|
183
|
+
closed: Union[Unset, datetime.datetime] = UNSET,
|
|
184
|
+
is_pending: Union[Unset, bool] = UNSET,
|
|
185
|
+
o: Union[Unset, list[ProjectPermissionsReviewsCountOItem]] = UNSET,
|
|
186
|
+
page: Union[Unset, int] = UNSET,
|
|
187
|
+
page_size: Union[Unset, int] = UNSET,
|
|
188
|
+
project_uuid: Union[Unset, UUID] = UNSET,
|
|
189
|
+
reviewer_uuid: Union[Unset, UUID] = UNSET,
|
|
190
|
+
) -> Response[int]:
|
|
191
|
+
"""Get number of items in the collection matching the request parameters.
|
|
192
|
+
|
|
193
|
+
Args:
|
|
194
|
+
closed (Union[Unset, datetime.datetime]):
|
|
195
|
+
is_pending (Union[Unset, bool]):
|
|
196
|
+
o (Union[Unset, list[ProjectPermissionsReviewsCountOItem]]):
|
|
197
|
+
page (Union[Unset, int]):
|
|
198
|
+
page_size (Union[Unset, int]):
|
|
199
|
+
project_uuid (Union[Unset, UUID]):
|
|
200
|
+
reviewer_uuid (Union[Unset, UUID]):
|
|
201
|
+
|
|
202
|
+
Raises:
|
|
203
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
204
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
205
|
+
|
|
206
|
+
Returns:
|
|
207
|
+
Response[int]
|
|
208
|
+
"""
|
|
209
|
+
|
|
210
|
+
kwargs = _get_kwargs(
|
|
211
|
+
closed=closed,
|
|
212
|
+
is_pending=is_pending,
|
|
213
|
+
o=o,
|
|
214
|
+
page=page,
|
|
215
|
+
page_size=page_size,
|
|
216
|
+
project_uuid=project_uuid,
|
|
217
|
+
reviewer_uuid=reviewer_uuid,
|
|
218
|
+
)
|
|
219
|
+
|
|
220
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
221
|
+
|
|
222
|
+
return _build_response(client=client, response=response)
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
async def asyncio(
|
|
226
|
+
*,
|
|
227
|
+
client: AuthenticatedClient,
|
|
228
|
+
closed: Union[Unset, datetime.datetime] = UNSET,
|
|
229
|
+
is_pending: Union[Unset, bool] = UNSET,
|
|
230
|
+
o: Union[Unset, list[ProjectPermissionsReviewsCountOItem]] = UNSET,
|
|
231
|
+
page: Union[Unset, int] = UNSET,
|
|
232
|
+
page_size: Union[Unset, int] = UNSET,
|
|
233
|
+
project_uuid: Union[Unset, UUID] = UNSET,
|
|
234
|
+
reviewer_uuid: Union[Unset, UUID] = UNSET,
|
|
235
|
+
) -> int:
|
|
236
|
+
"""Get number of items in the collection matching the request parameters.
|
|
237
|
+
|
|
238
|
+
Args:
|
|
239
|
+
closed (Union[Unset, datetime.datetime]):
|
|
240
|
+
is_pending (Union[Unset, bool]):
|
|
241
|
+
o (Union[Unset, list[ProjectPermissionsReviewsCountOItem]]):
|
|
242
|
+
page (Union[Unset, int]):
|
|
243
|
+
page_size (Union[Unset, int]):
|
|
244
|
+
project_uuid (Union[Unset, UUID]):
|
|
245
|
+
reviewer_uuid (Union[Unset, UUID]):
|
|
246
|
+
|
|
247
|
+
Raises:
|
|
248
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
249
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
250
|
+
|
|
251
|
+
Returns:
|
|
252
|
+
int
|
|
253
|
+
"""
|
|
254
|
+
|
|
255
|
+
return (
|
|
256
|
+
await asyncio_detailed(
|
|
257
|
+
client=client,
|
|
258
|
+
closed=closed,
|
|
259
|
+
is_pending=is_pending,
|
|
260
|
+
o=o,
|
|
261
|
+
page=page,
|
|
262
|
+
page_size=page_size,
|
|
263
|
+
project_uuid=project_uuid,
|
|
264
|
+
reviewer_uuid=reviewer_uuid,
|
|
265
|
+
)
|
|
266
|
+
).parsed
|