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
|
@@ -0,0 +1,162 @@
|
|
|
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 ...models.issue_status import IssueStatus
|
|
10
|
+
from ...models.issue_status_request import IssueStatusRequest
|
|
11
|
+
from ...types import Response
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_kwargs(
|
|
15
|
+
uuid: UUID,
|
|
16
|
+
*,
|
|
17
|
+
body: IssueStatusRequest,
|
|
18
|
+
) -> dict[str, Any]:
|
|
19
|
+
headers: dict[str, Any] = {}
|
|
20
|
+
|
|
21
|
+
_kwargs: dict[str, Any] = {
|
|
22
|
+
"method": "put",
|
|
23
|
+
"url": f"/api/support-issue-statuses/{uuid}/",
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
_kwargs["json"] = body.to_dict()
|
|
27
|
+
|
|
28
|
+
headers["Content-Type"] = "application/json"
|
|
29
|
+
|
|
30
|
+
_kwargs["headers"] = headers
|
|
31
|
+
return _kwargs
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> IssueStatus:
|
|
35
|
+
if response.status_code == 200:
|
|
36
|
+
response_200 = IssueStatus.from_dict(response.json())
|
|
37
|
+
|
|
38
|
+
return response_200
|
|
39
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[IssueStatus]:
|
|
43
|
+
return Response(
|
|
44
|
+
status_code=HTTPStatus(response.status_code),
|
|
45
|
+
content=response.content,
|
|
46
|
+
headers=response.headers,
|
|
47
|
+
parsed=_parse_response(client=client, response=response),
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def sync_detailed(
|
|
52
|
+
uuid: UUID,
|
|
53
|
+
*,
|
|
54
|
+
client: AuthenticatedClient,
|
|
55
|
+
body: IssueStatusRequest,
|
|
56
|
+
) -> Response[IssueStatus]:
|
|
57
|
+
"""
|
|
58
|
+
Args:
|
|
59
|
+
uuid (UUID):
|
|
60
|
+
body (IssueStatusRequest):
|
|
61
|
+
|
|
62
|
+
Raises:
|
|
63
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
64
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
65
|
+
|
|
66
|
+
Returns:
|
|
67
|
+
Response[IssueStatus]
|
|
68
|
+
"""
|
|
69
|
+
|
|
70
|
+
kwargs = _get_kwargs(
|
|
71
|
+
uuid=uuid,
|
|
72
|
+
body=body,
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
response = client.get_httpx_client().request(
|
|
76
|
+
**kwargs,
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
return _build_response(client=client, response=response)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
def sync(
|
|
83
|
+
uuid: UUID,
|
|
84
|
+
*,
|
|
85
|
+
client: AuthenticatedClient,
|
|
86
|
+
body: IssueStatusRequest,
|
|
87
|
+
) -> IssueStatus:
|
|
88
|
+
"""
|
|
89
|
+
Args:
|
|
90
|
+
uuid (UUID):
|
|
91
|
+
body (IssueStatusRequest):
|
|
92
|
+
|
|
93
|
+
Raises:
|
|
94
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
95
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
96
|
+
|
|
97
|
+
Returns:
|
|
98
|
+
IssueStatus
|
|
99
|
+
"""
|
|
100
|
+
|
|
101
|
+
return sync_detailed(
|
|
102
|
+
uuid=uuid,
|
|
103
|
+
client=client,
|
|
104
|
+
body=body,
|
|
105
|
+
).parsed
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
async def asyncio_detailed(
|
|
109
|
+
uuid: UUID,
|
|
110
|
+
*,
|
|
111
|
+
client: AuthenticatedClient,
|
|
112
|
+
body: IssueStatusRequest,
|
|
113
|
+
) -> Response[IssueStatus]:
|
|
114
|
+
"""
|
|
115
|
+
Args:
|
|
116
|
+
uuid (UUID):
|
|
117
|
+
body (IssueStatusRequest):
|
|
118
|
+
|
|
119
|
+
Raises:
|
|
120
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
121
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
122
|
+
|
|
123
|
+
Returns:
|
|
124
|
+
Response[IssueStatus]
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
kwargs = _get_kwargs(
|
|
128
|
+
uuid=uuid,
|
|
129
|
+
body=body,
|
|
130
|
+
)
|
|
131
|
+
|
|
132
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
133
|
+
|
|
134
|
+
return _build_response(client=client, response=response)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
async def asyncio(
|
|
138
|
+
uuid: UUID,
|
|
139
|
+
*,
|
|
140
|
+
client: AuthenticatedClient,
|
|
141
|
+
body: IssueStatusRequest,
|
|
142
|
+
) -> IssueStatus:
|
|
143
|
+
"""
|
|
144
|
+
Args:
|
|
145
|
+
uuid (UUID):
|
|
146
|
+
body (IssueStatusRequest):
|
|
147
|
+
|
|
148
|
+
Raises:
|
|
149
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
150
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
151
|
+
|
|
152
|
+
Returns:
|
|
153
|
+
IssueStatus
|
|
154
|
+
"""
|
|
155
|
+
|
|
156
|
+
return (
|
|
157
|
+
await asyncio_detailed(
|
|
158
|
+
uuid=uuid,
|
|
159
|
+
client=client,
|
|
160
|
+
body=body,
|
|
161
|
+
)
|
|
162
|
+
).parsed
|
|
@@ -6,7 +6,7 @@ import httpx
|
|
|
6
6
|
|
|
7
7
|
from ... import errors
|
|
8
8
|
from ...client import AuthenticatedClient, Client
|
|
9
|
-
from ...models.
|
|
9
|
+
from ...models.submit_request_response import SubmitRequestResponse
|
|
10
10
|
from ...types import Response
|
|
11
11
|
|
|
12
12
|
|
|
@@ -21,9 +21,9 @@ def _get_kwargs(
|
|
|
21
21
|
return _kwargs
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) ->
|
|
24
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> SubmitRequestResponse:
|
|
25
25
|
if response.status_code == 200:
|
|
26
|
-
response_200 =
|
|
26
|
+
response_200 = SubmitRequestResponse.from_dict(response.json())
|
|
27
27
|
|
|
28
28
|
return response_200
|
|
29
29
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
@@ -31,7 +31,7 @@ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: htt
|
|
|
31
31
|
|
|
32
32
|
def _build_response(
|
|
33
33
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
34
|
-
) -> Response[
|
|
34
|
+
) -> Response[SubmitRequestResponse]:
|
|
35
35
|
return Response(
|
|
36
36
|
status_code=HTTPStatus(response.status_code),
|
|
37
37
|
content=response.content,
|
|
@@ -44,7 +44,7 @@ def sync_detailed(
|
|
|
44
44
|
uuid: UUID,
|
|
45
45
|
*,
|
|
46
46
|
client: AuthenticatedClient,
|
|
47
|
-
) -> Response[
|
|
47
|
+
) -> Response[SubmitRequestResponse]:
|
|
48
48
|
"""
|
|
49
49
|
Args:
|
|
50
50
|
uuid (UUID):
|
|
@@ -54,7 +54,7 @@ def sync_detailed(
|
|
|
54
54
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
55
55
|
|
|
56
56
|
Returns:
|
|
57
|
-
Response[
|
|
57
|
+
Response[SubmitRequestResponse]
|
|
58
58
|
"""
|
|
59
59
|
|
|
60
60
|
kwargs = _get_kwargs(
|
|
@@ -72,7 +72,7 @@ def sync(
|
|
|
72
72
|
uuid: UUID,
|
|
73
73
|
*,
|
|
74
74
|
client: AuthenticatedClient,
|
|
75
|
-
) ->
|
|
75
|
+
) -> SubmitRequestResponse:
|
|
76
76
|
"""
|
|
77
77
|
Args:
|
|
78
78
|
uuid (UUID):
|
|
@@ -82,7 +82,7 @@ def sync(
|
|
|
82
82
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
83
83
|
|
|
84
84
|
Returns:
|
|
85
|
-
|
|
85
|
+
SubmitRequestResponse
|
|
86
86
|
"""
|
|
87
87
|
|
|
88
88
|
return sync_detailed(
|
|
@@ -95,7 +95,7 @@ async def asyncio_detailed(
|
|
|
95
95
|
uuid: UUID,
|
|
96
96
|
*,
|
|
97
97
|
client: AuthenticatedClient,
|
|
98
|
-
) -> Response[
|
|
98
|
+
) -> Response[SubmitRequestResponse]:
|
|
99
99
|
"""
|
|
100
100
|
Args:
|
|
101
101
|
uuid (UUID):
|
|
@@ -105,7 +105,7 @@ async def asyncio_detailed(
|
|
|
105
105
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
106
106
|
|
|
107
107
|
Returns:
|
|
108
|
-
Response[
|
|
108
|
+
Response[SubmitRequestResponse]
|
|
109
109
|
"""
|
|
110
110
|
|
|
111
111
|
kwargs = _get_kwargs(
|
|
@@ -121,7 +121,7 @@ async def asyncio(
|
|
|
121
121
|
uuid: UUID,
|
|
122
122
|
*,
|
|
123
123
|
client: AuthenticatedClient,
|
|
124
|
-
) ->
|
|
124
|
+
) -> SubmitRequestResponse:
|
|
125
125
|
"""
|
|
126
126
|
Args:
|
|
127
127
|
uuid (UUID):
|
|
@@ -131,7 +131,7 @@ async def asyncio(
|
|
|
131
131
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
132
132
|
|
|
133
133
|
Returns:
|
|
134
|
-
|
|
134
|
+
SubmitRequestResponse
|
|
135
135
|
"""
|
|
136
136
|
|
|
137
137
|
return (
|
|
@@ -21,6 +21,8 @@ def _get_kwargs(
|
|
|
21
21
|
page_size: Union[Unset, int] = UNSET,
|
|
22
22
|
role_name: Union[Unset, str] = UNSET,
|
|
23
23
|
role_uuid: Union[Unset, UUID] = UNSET,
|
|
24
|
+
scope_description: Union[Unset, str] = UNSET,
|
|
25
|
+
scope_name: Union[Unset, str] = UNSET,
|
|
24
26
|
scope_type: Union[Unset, str] = UNSET,
|
|
25
27
|
state: Union[Unset, list[UserInvitationsCountStateItem]] = UNSET,
|
|
26
28
|
) -> dict[str, Any]:
|
|
@@ -55,6 +57,10 @@ def _get_kwargs(
|
|
|
55
57
|
json_role_uuid = str(role_uuid)
|
|
56
58
|
params["role_uuid"] = json_role_uuid
|
|
57
59
|
|
|
60
|
+
params["scope_description"] = scope_description
|
|
61
|
+
|
|
62
|
+
params["scope_name"] = scope_name
|
|
63
|
+
|
|
58
64
|
params["scope_type"] = scope_type
|
|
59
65
|
|
|
60
66
|
json_state: Union[Unset, list[str]] = UNSET
|
|
@@ -112,6 +118,8 @@ def sync_detailed(
|
|
|
112
118
|
page_size: Union[Unset, int] = UNSET,
|
|
113
119
|
role_name: Union[Unset, str] = UNSET,
|
|
114
120
|
role_uuid: Union[Unset, UUID] = UNSET,
|
|
121
|
+
scope_description: Union[Unset, str] = UNSET,
|
|
122
|
+
scope_name: Union[Unset, str] = UNSET,
|
|
115
123
|
scope_type: Union[Unset, str] = UNSET,
|
|
116
124
|
state: Union[Unset, list[UserInvitationsCountStateItem]] = UNSET,
|
|
117
125
|
) -> Response[int]:
|
|
@@ -126,6 +134,8 @@ def sync_detailed(
|
|
|
126
134
|
page_size (Union[Unset, int]):
|
|
127
135
|
role_name (Union[Unset, str]):
|
|
128
136
|
role_uuid (Union[Unset, UUID]):
|
|
137
|
+
scope_description (Union[Unset, str]):
|
|
138
|
+
scope_name (Union[Unset, str]):
|
|
129
139
|
scope_type (Union[Unset, str]):
|
|
130
140
|
state (Union[Unset, list[UserInvitationsCountStateItem]]):
|
|
131
141
|
|
|
@@ -146,6 +156,8 @@ def sync_detailed(
|
|
|
146
156
|
page_size=page_size,
|
|
147
157
|
role_name=role_name,
|
|
148
158
|
role_uuid=role_uuid,
|
|
159
|
+
scope_description=scope_description,
|
|
160
|
+
scope_name=scope_name,
|
|
149
161
|
scope_type=scope_type,
|
|
150
162
|
state=state,
|
|
151
163
|
)
|
|
@@ -168,6 +180,8 @@ def sync(
|
|
|
168
180
|
page_size: Union[Unset, int] = UNSET,
|
|
169
181
|
role_name: Union[Unset, str] = UNSET,
|
|
170
182
|
role_uuid: Union[Unset, UUID] = UNSET,
|
|
183
|
+
scope_description: Union[Unset, str] = UNSET,
|
|
184
|
+
scope_name: Union[Unset, str] = UNSET,
|
|
171
185
|
scope_type: Union[Unset, str] = UNSET,
|
|
172
186
|
state: Union[Unset, list[UserInvitationsCountStateItem]] = UNSET,
|
|
173
187
|
) -> int:
|
|
@@ -182,6 +196,8 @@ def sync(
|
|
|
182
196
|
page_size (Union[Unset, int]):
|
|
183
197
|
role_name (Union[Unset, str]):
|
|
184
198
|
role_uuid (Union[Unset, UUID]):
|
|
199
|
+
scope_description (Union[Unset, str]):
|
|
200
|
+
scope_name (Union[Unset, str]):
|
|
185
201
|
scope_type (Union[Unset, str]):
|
|
186
202
|
state (Union[Unset, list[UserInvitationsCountStateItem]]):
|
|
187
203
|
|
|
@@ -203,6 +219,8 @@ def sync(
|
|
|
203
219
|
page_size=page_size,
|
|
204
220
|
role_name=role_name,
|
|
205
221
|
role_uuid=role_uuid,
|
|
222
|
+
scope_description=scope_description,
|
|
223
|
+
scope_name=scope_name,
|
|
206
224
|
scope_type=scope_type,
|
|
207
225
|
state=state,
|
|
208
226
|
).parsed
|
|
@@ -219,6 +237,8 @@ async def asyncio_detailed(
|
|
|
219
237
|
page_size: Union[Unset, int] = UNSET,
|
|
220
238
|
role_name: Union[Unset, str] = UNSET,
|
|
221
239
|
role_uuid: Union[Unset, UUID] = UNSET,
|
|
240
|
+
scope_description: Union[Unset, str] = UNSET,
|
|
241
|
+
scope_name: Union[Unset, str] = UNSET,
|
|
222
242
|
scope_type: Union[Unset, str] = UNSET,
|
|
223
243
|
state: Union[Unset, list[UserInvitationsCountStateItem]] = UNSET,
|
|
224
244
|
) -> Response[int]:
|
|
@@ -233,6 +253,8 @@ async def asyncio_detailed(
|
|
|
233
253
|
page_size (Union[Unset, int]):
|
|
234
254
|
role_name (Union[Unset, str]):
|
|
235
255
|
role_uuid (Union[Unset, UUID]):
|
|
256
|
+
scope_description (Union[Unset, str]):
|
|
257
|
+
scope_name (Union[Unset, str]):
|
|
236
258
|
scope_type (Union[Unset, str]):
|
|
237
259
|
state (Union[Unset, list[UserInvitationsCountStateItem]]):
|
|
238
260
|
|
|
@@ -253,6 +275,8 @@ async def asyncio_detailed(
|
|
|
253
275
|
page_size=page_size,
|
|
254
276
|
role_name=role_name,
|
|
255
277
|
role_uuid=role_uuid,
|
|
278
|
+
scope_description=scope_description,
|
|
279
|
+
scope_name=scope_name,
|
|
256
280
|
scope_type=scope_type,
|
|
257
281
|
state=state,
|
|
258
282
|
)
|
|
@@ -273,6 +297,8 @@ async def asyncio(
|
|
|
273
297
|
page_size: Union[Unset, int] = UNSET,
|
|
274
298
|
role_name: Union[Unset, str] = UNSET,
|
|
275
299
|
role_uuid: Union[Unset, UUID] = UNSET,
|
|
300
|
+
scope_description: Union[Unset, str] = UNSET,
|
|
301
|
+
scope_name: Union[Unset, str] = UNSET,
|
|
276
302
|
scope_type: Union[Unset, str] = UNSET,
|
|
277
303
|
state: Union[Unset, list[UserInvitationsCountStateItem]] = UNSET,
|
|
278
304
|
) -> int:
|
|
@@ -287,6 +313,8 @@ async def asyncio(
|
|
|
287
313
|
page_size (Union[Unset, int]):
|
|
288
314
|
role_name (Union[Unset, str]):
|
|
289
315
|
role_uuid (Union[Unset, UUID]):
|
|
316
|
+
scope_description (Union[Unset, str]):
|
|
317
|
+
scope_name (Union[Unset, str]):
|
|
290
318
|
scope_type (Union[Unset, str]):
|
|
291
319
|
state (Union[Unset, list[UserInvitationsCountStateItem]]):
|
|
292
320
|
|
|
@@ -309,6 +337,8 @@ async def asyncio(
|
|
|
309
337
|
page_size=page_size,
|
|
310
338
|
role_name=role_name,
|
|
311
339
|
role_uuid=role_uuid,
|
|
340
|
+
scope_description=scope_description,
|
|
341
|
+
scope_name=scope_name,
|
|
312
342
|
scope_type=scope_type,
|
|
313
343
|
state=state,
|
|
314
344
|
)
|
|
@@ -22,6 +22,8 @@ def _get_kwargs(
|
|
|
22
22
|
page_size: Union[Unset, int] = UNSET,
|
|
23
23
|
role_name: Union[Unset, str] = UNSET,
|
|
24
24
|
role_uuid: Union[Unset, UUID] = UNSET,
|
|
25
|
+
scope_description: Union[Unset, str] = UNSET,
|
|
26
|
+
scope_name: Union[Unset, str] = UNSET,
|
|
25
27
|
scope_type: Union[Unset, str] = UNSET,
|
|
26
28
|
state: Union[Unset, list[UserInvitationsListStateItem]] = UNSET,
|
|
27
29
|
) -> dict[str, Any]:
|
|
@@ -56,6 +58,10 @@ def _get_kwargs(
|
|
|
56
58
|
json_role_uuid = str(role_uuid)
|
|
57
59
|
params["role_uuid"] = json_role_uuid
|
|
58
60
|
|
|
61
|
+
params["scope_description"] = scope_description
|
|
62
|
+
|
|
63
|
+
params["scope_name"] = scope_name
|
|
64
|
+
|
|
59
65
|
params["scope_type"] = scope_type
|
|
60
66
|
|
|
61
67
|
json_state: Union[Unset, list[str]] = UNSET
|
|
@@ -113,6 +119,8 @@ def sync_detailed(
|
|
|
113
119
|
page_size: Union[Unset, int] = UNSET,
|
|
114
120
|
role_name: Union[Unset, str] = UNSET,
|
|
115
121
|
role_uuid: Union[Unset, UUID] = UNSET,
|
|
122
|
+
scope_description: Union[Unset, str] = UNSET,
|
|
123
|
+
scope_name: Union[Unset, str] = UNSET,
|
|
116
124
|
scope_type: Union[Unset, str] = UNSET,
|
|
117
125
|
state: Union[Unset, list[UserInvitationsListStateItem]] = UNSET,
|
|
118
126
|
) -> Response[list["Invitation"]]:
|
|
@@ -127,6 +135,8 @@ def sync_detailed(
|
|
|
127
135
|
page_size (Union[Unset, int]):
|
|
128
136
|
role_name (Union[Unset, str]):
|
|
129
137
|
role_uuid (Union[Unset, UUID]):
|
|
138
|
+
scope_description (Union[Unset, str]):
|
|
139
|
+
scope_name (Union[Unset, str]):
|
|
130
140
|
scope_type (Union[Unset, str]):
|
|
131
141
|
state (Union[Unset, list[UserInvitationsListStateItem]]):
|
|
132
142
|
|
|
@@ -147,6 +157,8 @@ def sync_detailed(
|
|
|
147
157
|
page_size=page_size,
|
|
148
158
|
role_name=role_name,
|
|
149
159
|
role_uuid=role_uuid,
|
|
160
|
+
scope_description=scope_description,
|
|
161
|
+
scope_name=scope_name,
|
|
150
162
|
scope_type=scope_type,
|
|
151
163
|
state=state,
|
|
152
164
|
)
|
|
@@ -169,6 +181,8 @@ def sync(
|
|
|
169
181
|
page_size: Union[Unset, int] = UNSET,
|
|
170
182
|
role_name: Union[Unset, str] = UNSET,
|
|
171
183
|
role_uuid: Union[Unset, UUID] = UNSET,
|
|
184
|
+
scope_description: Union[Unset, str] = UNSET,
|
|
185
|
+
scope_name: Union[Unset, str] = UNSET,
|
|
172
186
|
scope_type: Union[Unset, str] = UNSET,
|
|
173
187
|
state: Union[Unset, list[UserInvitationsListStateItem]] = UNSET,
|
|
174
188
|
) -> list["Invitation"]:
|
|
@@ -183,6 +197,8 @@ def sync(
|
|
|
183
197
|
page_size (Union[Unset, int]):
|
|
184
198
|
role_name (Union[Unset, str]):
|
|
185
199
|
role_uuid (Union[Unset, UUID]):
|
|
200
|
+
scope_description (Union[Unset, str]):
|
|
201
|
+
scope_name (Union[Unset, str]):
|
|
186
202
|
scope_type (Union[Unset, str]):
|
|
187
203
|
state (Union[Unset, list[UserInvitationsListStateItem]]):
|
|
188
204
|
|
|
@@ -204,6 +220,8 @@ def sync(
|
|
|
204
220
|
page_size=page_size,
|
|
205
221
|
role_name=role_name,
|
|
206
222
|
role_uuid=role_uuid,
|
|
223
|
+
scope_description=scope_description,
|
|
224
|
+
scope_name=scope_name,
|
|
207
225
|
scope_type=scope_type,
|
|
208
226
|
state=state,
|
|
209
227
|
).parsed
|
|
@@ -220,6 +238,8 @@ async def asyncio_detailed(
|
|
|
220
238
|
page_size: Union[Unset, int] = UNSET,
|
|
221
239
|
role_name: Union[Unset, str] = UNSET,
|
|
222
240
|
role_uuid: Union[Unset, UUID] = UNSET,
|
|
241
|
+
scope_description: Union[Unset, str] = UNSET,
|
|
242
|
+
scope_name: Union[Unset, str] = UNSET,
|
|
223
243
|
scope_type: Union[Unset, str] = UNSET,
|
|
224
244
|
state: Union[Unset, list[UserInvitationsListStateItem]] = UNSET,
|
|
225
245
|
) -> Response[list["Invitation"]]:
|
|
@@ -234,6 +254,8 @@ async def asyncio_detailed(
|
|
|
234
254
|
page_size (Union[Unset, int]):
|
|
235
255
|
role_name (Union[Unset, str]):
|
|
236
256
|
role_uuid (Union[Unset, UUID]):
|
|
257
|
+
scope_description (Union[Unset, str]):
|
|
258
|
+
scope_name (Union[Unset, str]):
|
|
237
259
|
scope_type (Union[Unset, str]):
|
|
238
260
|
state (Union[Unset, list[UserInvitationsListStateItem]]):
|
|
239
261
|
|
|
@@ -254,6 +276,8 @@ async def asyncio_detailed(
|
|
|
254
276
|
page_size=page_size,
|
|
255
277
|
role_name=role_name,
|
|
256
278
|
role_uuid=role_uuid,
|
|
279
|
+
scope_description=scope_description,
|
|
280
|
+
scope_name=scope_name,
|
|
257
281
|
scope_type=scope_type,
|
|
258
282
|
state=state,
|
|
259
283
|
)
|
|
@@ -274,6 +298,8 @@ async def asyncio(
|
|
|
274
298
|
page_size: Union[Unset, int] = UNSET,
|
|
275
299
|
role_name: Union[Unset, str] = UNSET,
|
|
276
300
|
role_uuid: Union[Unset, UUID] = UNSET,
|
|
301
|
+
scope_description: Union[Unset, str] = UNSET,
|
|
302
|
+
scope_name: Union[Unset, str] = UNSET,
|
|
277
303
|
scope_type: Union[Unset, str] = UNSET,
|
|
278
304
|
state: Union[Unset, list[UserInvitationsListStateItem]] = UNSET,
|
|
279
305
|
) -> list["Invitation"]:
|
|
@@ -288,6 +314,8 @@ async def asyncio(
|
|
|
288
314
|
page_size (Union[Unset, int]):
|
|
289
315
|
role_name (Union[Unset, str]):
|
|
290
316
|
role_uuid (Union[Unset, UUID]):
|
|
317
|
+
scope_description (Union[Unset, str]):
|
|
318
|
+
scope_name (Union[Unset, str]):
|
|
291
319
|
scope_type (Union[Unset, str]):
|
|
292
320
|
state (Union[Unset, list[UserInvitationsListStateItem]]):
|
|
293
321
|
|
|
@@ -310,6 +338,8 @@ async def asyncio(
|
|
|
310
338
|
page_size=page_size,
|
|
311
339
|
role_name=role_name,
|
|
312
340
|
role_uuid=role_uuid,
|
|
341
|
+
scope_description=scope_description,
|
|
342
|
+
scope_name=scope_name,
|
|
313
343
|
scope_type=scope_type,
|
|
314
344
|
state=state,
|
|
315
345
|
)
|
|
@@ -0,0 +1,146 @@
|
|
|
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 ...models.cancel_request_response import CancelRequestResponse
|
|
10
|
+
from ...types import Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
uuid: UUID,
|
|
15
|
+
) -> dict[str, Any]:
|
|
16
|
+
_kwargs: dict[str, Any] = {
|
|
17
|
+
"method": "post",
|
|
18
|
+
"url": f"/api/user-permission-requests/{uuid}/cancel_request/",
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return _kwargs
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> CancelRequestResponse:
|
|
25
|
+
if response.status_code == 200:
|
|
26
|
+
response_200 = CancelRequestResponse.from_dict(response.json())
|
|
27
|
+
|
|
28
|
+
return response_200
|
|
29
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def _build_response(
|
|
33
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
34
|
+
) -> Response[CancelRequestResponse]:
|
|
35
|
+
return Response(
|
|
36
|
+
status_code=HTTPStatus(response.status_code),
|
|
37
|
+
content=response.content,
|
|
38
|
+
headers=response.headers,
|
|
39
|
+
parsed=_parse_response(client=client, response=response),
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def sync_detailed(
|
|
44
|
+
uuid: UUID,
|
|
45
|
+
*,
|
|
46
|
+
client: AuthenticatedClient,
|
|
47
|
+
) -> Response[CancelRequestResponse]:
|
|
48
|
+
"""Cancel permission request. Users can cancel their own requests, staff can cancel any request.
|
|
49
|
+
|
|
50
|
+
Args:
|
|
51
|
+
uuid (UUID):
|
|
52
|
+
|
|
53
|
+
Raises:
|
|
54
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
55
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
56
|
+
|
|
57
|
+
Returns:
|
|
58
|
+
Response[CancelRequestResponse]
|
|
59
|
+
"""
|
|
60
|
+
|
|
61
|
+
kwargs = _get_kwargs(
|
|
62
|
+
uuid=uuid,
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
response = client.get_httpx_client().request(
|
|
66
|
+
**kwargs,
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
return _build_response(client=client, response=response)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
def sync(
|
|
73
|
+
uuid: UUID,
|
|
74
|
+
*,
|
|
75
|
+
client: AuthenticatedClient,
|
|
76
|
+
) -> CancelRequestResponse:
|
|
77
|
+
"""Cancel permission request. Users can cancel their own requests, staff can cancel any request.
|
|
78
|
+
|
|
79
|
+
Args:
|
|
80
|
+
uuid (UUID):
|
|
81
|
+
|
|
82
|
+
Raises:
|
|
83
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
84
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
85
|
+
|
|
86
|
+
Returns:
|
|
87
|
+
CancelRequestResponse
|
|
88
|
+
"""
|
|
89
|
+
|
|
90
|
+
return sync_detailed(
|
|
91
|
+
uuid=uuid,
|
|
92
|
+
client=client,
|
|
93
|
+
).parsed
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
async def asyncio_detailed(
|
|
97
|
+
uuid: UUID,
|
|
98
|
+
*,
|
|
99
|
+
client: AuthenticatedClient,
|
|
100
|
+
) -> Response[CancelRequestResponse]:
|
|
101
|
+
"""Cancel permission request. Users can cancel their own requests, staff can cancel any request.
|
|
102
|
+
|
|
103
|
+
Args:
|
|
104
|
+
uuid (UUID):
|
|
105
|
+
|
|
106
|
+
Raises:
|
|
107
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
108
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
109
|
+
|
|
110
|
+
Returns:
|
|
111
|
+
Response[CancelRequestResponse]
|
|
112
|
+
"""
|
|
113
|
+
|
|
114
|
+
kwargs = _get_kwargs(
|
|
115
|
+
uuid=uuid,
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
119
|
+
|
|
120
|
+
return _build_response(client=client, response=response)
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
async def asyncio(
|
|
124
|
+
uuid: UUID,
|
|
125
|
+
*,
|
|
126
|
+
client: AuthenticatedClient,
|
|
127
|
+
) -> CancelRequestResponse:
|
|
128
|
+
"""Cancel permission request. Users can cancel their own requests, staff can cancel any request.
|
|
129
|
+
|
|
130
|
+
Args:
|
|
131
|
+
uuid (UUID):
|
|
132
|
+
|
|
133
|
+
Raises:
|
|
134
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
135
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
136
|
+
|
|
137
|
+
Returns:
|
|
138
|
+
CancelRequestResponse
|
|
139
|
+
"""
|
|
140
|
+
|
|
141
|
+
return (
|
|
142
|
+
await asyncio_detailed(
|
|
143
|
+
uuid=uuid,
|
|
144
|
+
client=client,
|
|
145
|
+
)
|
|
146
|
+
).parsed
|