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
|
@@ -7,6 +7,9 @@ import httpx
|
|
|
7
7
|
from ... import errors
|
|
8
8
|
from ...client import AuthenticatedClient, Client
|
|
9
9
|
from ...models.customer_service_account import CustomerServiceAccount
|
|
10
|
+
from ...models.marketplace_customer_service_accounts_list_state_item import (
|
|
11
|
+
MarketplaceCustomerServiceAccountsListStateItem,
|
|
12
|
+
)
|
|
10
13
|
from ...types import UNSET, Response, Unset
|
|
11
14
|
|
|
12
15
|
|
|
@@ -17,6 +20,7 @@ def _get_kwargs(
|
|
|
17
20
|
email: Union[Unset, str] = UNSET,
|
|
18
21
|
page: Union[Unset, int] = UNSET,
|
|
19
22
|
page_size: Union[Unset, int] = UNSET,
|
|
23
|
+
state: Union[Unset, list[MarketplaceCustomerServiceAccountsListStateItem]] = UNSET,
|
|
20
24
|
username: Union[Unset, str] = UNSET,
|
|
21
25
|
) -> dict[str, Any]:
|
|
22
26
|
params: dict[str, Any] = {}
|
|
@@ -34,6 +38,15 @@ def _get_kwargs(
|
|
|
34
38
|
|
|
35
39
|
params["page_size"] = page_size
|
|
36
40
|
|
|
41
|
+
json_state: Union[Unset, list[str]] = UNSET
|
|
42
|
+
if not isinstance(state, Unset):
|
|
43
|
+
json_state = []
|
|
44
|
+
for state_item_data in state:
|
|
45
|
+
state_item = state_item_data.value
|
|
46
|
+
json_state.append(state_item)
|
|
47
|
+
|
|
48
|
+
params["state"] = json_state
|
|
49
|
+
|
|
37
50
|
params["username"] = username
|
|
38
51
|
|
|
39
52
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
@@ -81,6 +94,7 @@ def sync_detailed(
|
|
|
81
94
|
email: Union[Unset, str] = UNSET,
|
|
82
95
|
page: Union[Unset, int] = UNSET,
|
|
83
96
|
page_size: Union[Unset, int] = UNSET,
|
|
97
|
+
state: Union[Unset, list[MarketplaceCustomerServiceAccountsListStateItem]] = UNSET,
|
|
84
98
|
username: Union[Unset, str] = UNSET,
|
|
85
99
|
) -> Response[list["CustomerServiceAccount"]]:
|
|
86
100
|
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
@@ -91,6 +105,7 @@ def sync_detailed(
|
|
|
91
105
|
email (Union[Unset, str]):
|
|
92
106
|
page (Union[Unset, int]):
|
|
93
107
|
page_size (Union[Unset, int]):
|
|
108
|
+
state (Union[Unset, list[MarketplaceCustomerServiceAccountsListStateItem]]):
|
|
94
109
|
username (Union[Unset, str]):
|
|
95
110
|
|
|
96
111
|
Raises:
|
|
@@ -107,6 +122,7 @@ def sync_detailed(
|
|
|
107
122
|
email=email,
|
|
108
123
|
page=page,
|
|
109
124
|
page_size=page_size,
|
|
125
|
+
state=state,
|
|
110
126
|
username=username,
|
|
111
127
|
)
|
|
112
128
|
|
|
@@ -125,6 +141,7 @@ def sync(
|
|
|
125
141
|
email: Union[Unset, str] = UNSET,
|
|
126
142
|
page: Union[Unset, int] = UNSET,
|
|
127
143
|
page_size: Union[Unset, int] = UNSET,
|
|
144
|
+
state: Union[Unset, list[MarketplaceCustomerServiceAccountsListStateItem]] = UNSET,
|
|
128
145
|
username: Union[Unset, str] = UNSET,
|
|
129
146
|
) -> list["CustomerServiceAccount"]:
|
|
130
147
|
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
@@ -135,6 +152,7 @@ def sync(
|
|
|
135
152
|
email (Union[Unset, str]):
|
|
136
153
|
page (Union[Unset, int]):
|
|
137
154
|
page_size (Union[Unset, int]):
|
|
155
|
+
state (Union[Unset, list[MarketplaceCustomerServiceAccountsListStateItem]]):
|
|
138
156
|
username (Union[Unset, str]):
|
|
139
157
|
|
|
140
158
|
Raises:
|
|
@@ -152,6 +170,7 @@ def sync(
|
|
|
152
170
|
email=email,
|
|
153
171
|
page=page,
|
|
154
172
|
page_size=page_size,
|
|
173
|
+
state=state,
|
|
155
174
|
username=username,
|
|
156
175
|
).parsed
|
|
157
176
|
|
|
@@ -164,6 +183,7 @@ async def asyncio_detailed(
|
|
|
164
183
|
email: Union[Unset, str] = UNSET,
|
|
165
184
|
page: Union[Unset, int] = UNSET,
|
|
166
185
|
page_size: Union[Unset, int] = UNSET,
|
|
186
|
+
state: Union[Unset, list[MarketplaceCustomerServiceAccountsListStateItem]] = UNSET,
|
|
167
187
|
username: Union[Unset, str] = UNSET,
|
|
168
188
|
) -> Response[list["CustomerServiceAccount"]]:
|
|
169
189
|
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
@@ -174,6 +194,7 @@ async def asyncio_detailed(
|
|
|
174
194
|
email (Union[Unset, str]):
|
|
175
195
|
page (Union[Unset, int]):
|
|
176
196
|
page_size (Union[Unset, int]):
|
|
197
|
+
state (Union[Unset, list[MarketplaceCustomerServiceAccountsListStateItem]]):
|
|
177
198
|
username (Union[Unset, str]):
|
|
178
199
|
|
|
179
200
|
Raises:
|
|
@@ -190,6 +211,7 @@ async def asyncio_detailed(
|
|
|
190
211
|
email=email,
|
|
191
212
|
page=page,
|
|
192
213
|
page_size=page_size,
|
|
214
|
+
state=state,
|
|
193
215
|
username=username,
|
|
194
216
|
)
|
|
195
217
|
|
|
@@ -206,6 +228,7 @@ async def asyncio(
|
|
|
206
228
|
email: Union[Unset, str] = UNSET,
|
|
207
229
|
page: Union[Unset, int] = UNSET,
|
|
208
230
|
page_size: Union[Unset, int] = UNSET,
|
|
231
|
+
state: Union[Unset, list[MarketplaceCustomerServiceAccountsListStateItem]] = UNSET,
|
|
209
232
|
username: Union[Unset, str] = UNSET,
|
|
210
233
|
) -> list["CustomerServiceAccount"]:
|
|
211
234
|
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
@@ -216,6 +239,7 @@ async def asyncio(
|
|
|
216
239
|
email (Union[Unset, str]):
|
|
217
240
|
page (Union[Unset, int]):
|
|
218
241
|
page_size (Union[Unset, int]):
|
|
242
|
+
state (Union[Unset, list[MarketplaceCustomerServiceAccountsListStateItem]]):
|
|
219
243
|
username (Union[Unset, str]):
|
|
220
244
|
|
|
221
245
|
Raises:
|
|
@@ -234,6 +258,7 @@ async def asyncio(
|
|
|
234
258
|
email=email,
|
|
235
259
|
page=page,
|
|
236
260
|
page_size=page_size,
|
|
261
|
+
state=state,
|
|
237
262
|
username=username,
|
|
238
263
|
)
|
|
239
264
|
).parsed
|
|
@@ -6,6 +6,9 @@ import httpx
|
|
|
6
6
|
|
|
7
7
|
from ... import errors
|
|
8
8
|
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.marketplace_project_service_accounts_count_state_item import (
|
|
10
|
+
MarketplaceProjectServiceAccountsCountStateItem,
|
|
11
|
+
)
|
|
9
12
|
from ...types import UNSET, Response, Unset
|
|
10
13
|
|
|
11
14
|
|
|
@@ -16,6 +19,7 @@ def _get_kwargs(
|
|
|
16
19
|
page_size: Union[Unset, int] = UNSET,
|
|
17
20
|
project: Union[Unset, str] = UNSET,
|
|
18
21
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
22
|
+
state: Union[Unset, list[MarketplaceProjectServiceAccountsCountStateItem]] = UNSET,
|
|
19
23
|
username: Union[Unset, str] = UNSET,
|
|
20
24
|
) -> dict[str, Any]:
|
|
21
25
|
params: dict[str, Any] = {}
|
|
@@ -33,6 +37,15 @@ def _get_kwargs(
|
|
|
33
37
|
json_project_uuid = str(project_uuid)
|
|
34
38
|
params["project_uuid"] = json_project_uuid
|
|
35
39
|
|
|
40
|
+
json_state: Union[Unset, list[str]] = UNSET
|
|
41
|
+
if not isinstance(state, Unset):
|
|
42
|
+
json_state = []
|
|
43
|
+
for state_item_data in state:
|
|
44
|
+
state_item = state_item_data.value
|
|
45
|
+
json_state.append(state_item)
|
|
46
|
+
|
|
47
|
+
params["state"] = json_state
|
|
48
|
+
|
|
36
49
|
params["username"] = username
|
|
37
50
|
|
|
38
51
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
@@ -78,6 +91,7 @@ def sync_detailed(
|
|
|
78
91
|
page_size: Union[Unset, int] = UNSET,
|
|
79
92
|
project: Union[Unset, str] = UNSET,
|
|
80
93
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
94
|
+
state: Union[Unset, list[MarketplaceProjectServiceAccountsCountStateItem]] = UNSET,
|
|
81
95
|
username: Union[Unset, str] = UNSET,
|
|
82
96
|
) -> Response[int]:
|
|
83
97
|
"""Get number of items in the collection matching the request parameters.
|
|
@@ -88,6 +102,7 @@ def sync_detailed(
|
|
|
88
102
|
page_size (Union[Unset, int]):
|
|
89
103
|
project (Union[Unset, str]):
|
|
90
104
|
project_uuid (Union[Unset, UUID]):
|
|
105
|
+
state (Union[Unset, list[MarketplaceProjectServiceAccountsCountStateItem]]):
|
|
91
106
|
username (Union[Unset, str]):
|
|
92
107
|
|
|
93
108
|
Raises:
|
|
@@ -104,6 +119,7 @@ def sync_detailed(
|
|
|
104
119
|
page_size=page_size,
|
|
105
120
|
project=project,
|
|
106
121
|
project_uuid=project_uuid,
|
|
122
|
+
state=state,
|
|
107
123
|
username=username,
|
|
108
124
|
)
|
|
109
125
|
|
|
@@ -122,6 +138,7 @@ def sync(
|
|
|
122
138
|
page_size: Union[Unset, int] = UNSET,
|
|
123
139
|
project: Union[Unset, str] = UNSET,
|
|
124
140
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
141
|
+
state: Union[Unset, list[MarketplaceProjectServiceAccountsCountStateItem]] = UNSET,
|
|
125
142
|
username: Union[Unset, str] = UNSET,
|
|
126
143
|
) -> int:
|
|
127
144
|
"""Get number of items in the collection matching the request parameters.
|
|
@@ -132,6 +149,7 @@ def sync(
|
|
|
132
149
|
page_size (Union[Unset, int]):
|
|
133
150
|
project (Union[Unset, str]):
|
|
134
151
|
project_uuid (Union[Unset, UUID]):
|
|
152
|
+
state (Union[Unset, list[MarketplaceProjectServiceAccountsCountStateItem]]):
|
|
135
153
|
username (Union[Unset, str]):
|
|
136
154
|
|
|
137
155
|
Raises:
|
|
@@ -149,6 +167,7 @@ def sync(
|
|
|
149
167
|
page_size=page_size,
|
|
150
168
|
project=project,
|
|
151
169
|
project_uuid=project_uuid,
|
|
170
|
+
state=state,
|
|
152
171
|
username=username,
|
|
153
172
|
).parsed
|
|
154
173
|
|
|
@@ -161,6 +180,7 @@ async def asyncio_detailed(
|
|
|
161
180
|
page_size: Union[Unset, int] = UNSET,
|
|
162
181
|
project: Union[Unset, str] = UNSET,
|
|
163
182
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
183
|
+
state: Union[Unset, list[MarketplaceProjectServiceAccountsCountStateItem]] = UNSET,
|
|
164
184
|
username: Union[Unset, str] = UNSET,
|
|
165
185
|
) -> Response[int]:
|
|
166
186
|
"""Get number of items in the collection matching the request parameters.
|
|
@@ -171,6 +191,7 @@ async def asyncio_detailed(
|
|
|
171
191
|
page_size (Union[Unset, int]):
|
|
172
192
|
project (Union[Unset, str]):
|
|
173
193
|
project_uuid (Union[Unset, UUID]):
|
|
194
|
+
state (Union[Unset, list[MarketplaceProjectServiceAccountsCountStateItem]]):
|
|
174
195
|
username (Union[Unset, str]):
|
|
175
196
|
|
|
176
197
|
Raises:
|
|
@@ -187,6 +208,7 @@ async def asyncio_detailed(
|
|
|
187
208
|
page_size=page_size,
|
|
188
209
|
project=project,
|
|
189
210
|
project_uuid=project_uuid,
|
|
211
|
+
state=state,
|
|
190
212
|
username=username,
|
|
191
213
|
)
|
|
192
214
|
|
|
@@ -203,6 +225,7 @@ async def asyncio(
|
|
|
203
225
|
page_size: Union[Unset, int] = UNSET,
|
|
204
226
|
project: Union[Unset, str] = UNSET,
|
|
205
227
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
228
|
+
state: Union[Unset, list[MarketplaceProjectServiceAccountsCountStateItem]] = UNSET,
|
|
206
229
|
username: Union[Unset, str] = UNSET,
|
|
207
230
|
) -> int:
|
|
208
231
|
"""Get number of items in the collection matching the request parameters.
|
|
@@ -213,6 +236,7 @@ async def asyncio(
|
|
|
213
236
|
page_size (Union[Unset, int]):
|
|
214
237
|
project (Union[Unset, str]):
|
|
215
238
|
project_uuid (Union[Unset, UUID]):
|
|
239
|
+
state (Union[Unset, list[MarketplaceProjectServiceAccountsCountStateItem]]):
|
|
216
240
|
username (Union[Unset, str]):
|
|
217
241
|
|
|
218
242
|
Raises:
|
|
@@ -231,6 +255,7 @@ async def asyncio(
|
|
|
231
255
|
page_size=page_size,
|
|
232
256
|
project=project,
|
|
233
257
|
project_uuid=project_uuid,
|
|
258
|
+
state=state,
|
|
234
259
|
username=username,
|
|
235
260
|
)
|
|
236
261
|
).parsed
|
|
@@ -6,6 +6,9 @@ import httpx
|
|
|
6
6
|
|
|
7
7
|
from ... import errors
|
|
8
8
|
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.marketplace_project_service_accounts_list_state_item import (
|
|
10
|
+
MarketplaceProjectServiceAccountsListStateItem,
|
|
11
|
+
)
|
|
9
12
|
from ...models.project_service_account import ProjectServiceAccount
|
|
10
13
|
from ...types import UNSET, Response, Unset
|
|
11
14
|
|
|
@@ -17,6 +20,7 @@ def _get_kwargs(
|
|
|
17
20
|
page_size: Union[Unset, int] = UNSET,
|
|
18
21
|
project: Union[Unset, str] = UNSET,
|
|
19
22
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
23
|
+
state: Union[Unset, list[MarketplaceProjectServiceAccountsListStateItem]] = UNSET,
|
|
20
24
|
username: Union[Unset, str] = UNSET,
|
|
21
25
|
) -> dict[str, Any]:
|
|
22
26
|
params: dict[str, Any] = {}
|
|
@@ -34,6 +38,15 @@ def _get_kwargs(
|
|
|
34
38
|
json_project_uuid = str(project_uuid)
|
|
35
39
|
params["project_uuid"] = json_project_uuid
|
|
36
40
|
|
|
41
|
+
json_state: Union[Unset, list[str]] = UNSET
|
|
42
|
+
if not isinstance(state, Unset):
|
|
43
|
+
json_state = []
|
|
44
|
+
for state_item_data in state:
|
|
45
|
+
state_item = state_item_data.value
|
|
46
|
+
json_state.append(state_item)
|
|
47
|
+
|
|
48
|
+
params["state"] = json_state
|
|
49
|
+
|
|
37
50
|
params["username"] = username
|
|
38
51
|
|
|
39
52
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
@@ -81,6 +94,7 @@ def sync_detailed(
|
|
|
81
94
|
page_size: Union[Unset, int] = UNSET,
|
|
82
95
|
project: Union[Unset, str] = UNSET,
|
|
83
96
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
97
|
+
state: Union[Unset, list[MarketplaceProjectServiceAccountsListStateItem]] = UNSET,
|
|
84
98
|
username: Union[Unset, str] = UNSET,
|
|
85
99
|
) -> Response[list["ProjectServiceAccount"]]:
|
|
86
100
|
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
@@ -91,6 +105,7 @@ def sync_detailed(
|
|
|
91
105
|
page_size (Union[Unset, int]):
|
|
92
106
|
project (Union[Unset, str]):
|
|
93
107
|
project_uuid (Union[Unset, UUID]):
|
|
108
|
+
state (Union[Unset, list[MarketplaceProjectServiceAccountsListStateItem]]):
|
|
94
109
|
username (Union[Unset, str]):
|
|
95
110
|
|
|
96
111
|
Raises:
|
|
@@ -107,6 +122,7 @@ def sync_detailed(
|
|
|
107
122
|
page_size=page_size,
|
|
108
123
|
project=project,
|
|
109
124
|
project_uuid=project_uuid,
|
|
125
|
+
state=state,
|
|
110
126
|
username=username,
|
|
111
127
|
)
|
|
112
128
|
|
|
@@ -125,6 +141,7 @@ def sync(
|
|
|
125
141
|
page_size: Union[Unset, int] = UNSET,
|
|
126
142
|
project: Union[Unset, str] = UNSET,
|
|
127
143
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
144
|
+
state: Union[Unset, list[MarketplaceProjectServiceAccountsListStateItem]] = UNSET,
|
|
128
145
|
username: Union[Unset, str] = UNSET,
|
|
129
146
|
) -> list["ProjectServiceAccount"]:
|
|
130
147
|
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
@@ -135,6 +152,7 @@ def sync(
|
|
|
135
152
|
page_size (Union[Unset, int]):
|
|
136
153
|
project (Union[Unset, str]):
|
|
137
154
|
project_uuid (Union[Unset, UUID]):
|
|
155
|
+
state (Union[Unset, list[MarketplaceProjectServiceAccountsListStateItem]]):
|
|
138
156
|
username (Union[Unset, str]):
|
|
139
157
|
|
|
140
158
|
Raises:
|
|
@@ -152,6 +170,7 @@ def sync(
|
|
|
152
170
|
page_size=page_size,
|
|
153
171
|
project=project,
|
|
154
172
|
project_uuid=project_uuid,
|
|
173
|
+
state=state,
|
|
155
174
|
username=username,
|
|
156
175
|
).parsed
|
|
157
176
|
|
|
@@ -164,6 +183,7 @@ async def asyncio_detailed(
|
|
|
164
183
|
page_size: Union[Unset, int] = UNSET,
|
|
165
184
|
project: Union[Unset, str] = UNSET,
|
|
166
185
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
186
|
+
state: Union[Unset, list[MarketplaceProjectServiceAccountsListStateItem]] = UNSET,
|
|
167
187
|
username: Union[Unset, str] = UNSET,
|
|
168
188
|
) -> Response[list["ProjectServiceAccount"]]:
|
|
169
189
|
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
@@ -174,6 +194,7 @@ async def asyncio_detailed(
|
|
|
174
194
|
page_size (Union[Unset, int]):
|
|
175
195
|
project (Union[Unset, str]):
|
|
176
196
|
project_uuid (Union[Unset, UUID]):
|
|
197
|
+
state (Union[Unset, list[MarketplaceProjectServiceAccountsListStateItem]]):
|
|
177
198
|
username (Union[Unset, str]):
|
|
178
199
|
|
|
179
200
|
Raises:
|
|
@@ -190,6 +211,7 @@ async def asyncio_detailed(
|
|
|
190
211
|
page_size=page_size,
|
|
191
212
|
project=project,
|
|
192
213
|
project_uuid=project_uuid,
|
|
214
|
+
state=state,
|
|
193
215
|
username=username,
|
|
194
216
|
)
|
|
195
217
|
|
|
@@ -206,6 +228,7 @@ async def asyncio(
|
|
|
206
228
|
page_size: Union[Unset, int] = UNSET,
|
|
207
229
|
project: Union[Unset, str] = UNSET,
|
|
208
230
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
231
|
+
state: Union[Unset, list[MarketplaceProjectServiceAccountsListStateItem]] = UNSET,
|
|
209
232
|
username: Union[Unset, str] = UNSET,
|
|
210
233
|
) -> list["ProjectServiceAccount"]:
|
|
211
234
|
"""Mixin to optimize HEAD requests for DRF views bypassing serializer processing
|
|
@@ -216,6 +239,7 @@ async def asyncio(
|
|
|
216
239
|
page_size (Union[Unset, int]):
|
|
217
240
|
project (Union[Unset, str]):
|
|
218
241
|
project_uuid (Union[Unset, UUID]):
|
|
242
|
+
state (Union[Unset, list[MarketplaceProjectServiceAccountsListStateItem]]):
|
|
219
243
|
username (Union[Unset, str]):
|
|
220
244
|
|
|
221
245
|
Raises:
|
|
@@ -234,6 +258,7 @@ async def asyncio(
|
|
|
234
258
|
page_size=page_size,
|
|
235
259
|
project=project,
|
|
236
260
|
project_uuid=project_uuid,
|
|
261
|
+
state=state,
|
|
237
262
|
username=username,
|
|
238
263
|
)
|
|
239
264
|
).parsed
|
|
@@ -0,0 +1,284 @@
|
|
|
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.course_account import CourseAccount
|
|
10
|
+
from ...models.marketplace_service_providers_course_accounts_list_state_item import (
|
|
11
|
+
MarketplaceServiceProvidersCourseAccountsListStateItem,
|
|
12
|
+
)
|
|
13
|
+
from ...types import UNSET, Response, Unset
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def _get_kwargs(
|
|
17
|
+
service_provider_uuid: UUID,
|
|
18
|
+
*,
|
|
19
|
+
email: Union[Unset, str] = UNSET,
|
|
20
|
+
page: Union[Unset, int] = UNSET,
|
|
21
|
+
page_size: Union[Unset, int] = UNSET,
|
|
22
|
+
project_uuid: Union[Unset, UUID] = UNSET,
|
|
23
|
+
state: Union[Unset, list[MarketplaceServiceProvidersCourseAccountsListStateItem]] = UNSET,
|
|
24
|
+
username: Union[Unset, str] = UNSET,
|
|
25
|
+
) -> dict[str, Any]:
|
|
26
|
+
params: dict[str, Any] = {}
|
|
27
|
+
|
|
28
|
+
params["email"] = email
|
|
29
|
+
|
|
30
|
+
params["page"] = page
|
|
31
|
+
|
|
32
|
+
params["page_size"] = page_size
|
|
33
|
+
|
|
34
|
+
json_project_uuid: Union[Unset, str] = UNSET
|
|
35
|
+
if not isinstance(project_uuid, Unset):
|
|
36
|
+
json_project_uuid = str(project_uuid)
|
|
37
|
+
params["project_uuid"] = json_project_uuid
|
|
38
|
+
|
|
39
|
+
json_state: Union[Unset, list[str]] = UNSET
|
|
40
|
+
if not isinstance(state, Unset):
|
|
41
|
+
json_state = []
|
|
42
|
+
for state_item_data in state:
|
|
43
|
+
state_item = state_item_data.value
|
|
44
|
+
json_state.append(state_item)
|
|
45
|
+
|
|
46
|
+
params["state"] = json_state
|
|
47
|
+
|
|
48
|
+
params["username"] = username
|
|
49
|
+
|
|
50
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
51
|
+
|
|
52
|
+
_kwargs: dict[str, Any] = {
|
|
53
|
+
"method": "get",
|
|
54
|
+
"url": f"/api/marketplace-service-providers/{service_provider_uuid}/course_accounts/",
|
|
55
|
+
"params": params,
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return _kwargs
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> list["CourseAccount"]:
|
|
62
|
+
if response.status_code == 200:
|
|
63
|
+
response_200 = []
|
|
64
|
+
_response_200 = response.json()
|
|
65
|
+
for response_200_item_data in _response_200:
|
|
66
|
+
response_200_item = CourseAccount.from_dict(response_200_item_data)
|
|
67
|
+
|
|
68
|
+
response_200.append(response_200_item)
|
|
69
|
+
|
|
70
|
+
return response_200
|
|
71
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
def _build_response(
|
|
75
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
76
|
+
) -> Response[list["CourseAccount"]]:
|
|
77
|
+
return Response(
|
|
78
|
+
status_code=HTTPStatus(response.status_code),
|
|
79
|
+
content=response.content,
|
|
80
|
+
headers=response.headers,
|
|
81
|
+
parsed=_parse_response(client=client, response=response),
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def sync_detailed(
|
|
86
|
+
service_provider_uuid: UUID,
|
|
87
|
+
*,
|
|
88
|
+
client: AuthenticatedClient,
|
|
89
|
+
email: Union[Unset, str] = UNSET,
|
|
90
|
+
page: Union[Unset, int] = UNSET,
|
|
91
|
+
page_size: Union[Unset, int] = UNSET,
|
|
92
|
+
project_uuid: Union[Unset, UUID] = UNSET,
|
|
93
|
+
state: Union[Unset, list[MarketplaceServiceProvidersCourseAccountsListStateItem]] = UNSET,
|
|
94
|
+
username: Union[Unset, str] = UNSET,
|
|
95
|
+
) -> Response[list["CourseAccount"]]:
|
|
96
|
+
"""Return course project accounts that have access to resources managed by the provider.
|
|
97
|
+
|
|
98
|
+
Checks for:
|
|
99
|
+
- Projects with active service provider's resources
|
|
100
|
+
- Course accounts with non-blank users
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
Args:
|
|
105
|
+
service_provider_uuid (UUID):
|
|
106
|
+
email (Union[Unset, str]):
|
|
107
|
+
page (Union[Unset, int]):
|
|
108
|
+
page_size (Union[Unset, int]):
|
|
109
|
+
project_uuid (Union[Unset, UUID]):
|
|
110
|
+
state (Union[Unset, list[MarketplaceServiceProvidersCourseAccountsListStateItem]]):
|
|
111
|
+
username (Union[Unset, str]):
|
|
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[list['CourseAccount']]
|
|
119
|
+
"""
|
|
120
|
+
|
|
121
|
+
kwargs = _get_kwargs(
|
|
122
|
+
service_provider_uuid=service_provider_uuid,
|
|
123
|
+
email=email,
|
|
124
|
+
page=page,
|
|
125
|
+
page_size=page_size,
|
|
126
|
+
project_uuid=project_uuid,
|
|
127
|
+
state=state,
|
|
128
|
+
username=username,
|
|
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
|
+
service_provider_uuid: UUID,
|
|
140
|
+
*,
|
|
141
|
+
client: AuthenticatedClient,
|
|
142
|
+
email: Union[Unset, str] = UNSET,
|
|
143
|
+
page: Union[Unset, int] = UNSET,
|
|
144
|
+
page_size: Union[Unset, int] = UNSET,
|
|
145
|
+
project_uuid: Union[Unset, UUID] = UNSET,
|
|
146
|
+
state: Union[Unset, list[MarketplaceServiceProvidersCourseAccountsListStateItem]] = UNSET,
|
|
147
|
+
username: Union[Unset, str] = UNSET,
|
|
148
|
+
) -> list["CourseAccount"]:
|
|
149
|
+
"""Return course project accounts that have access to resources managed by the provider.
|
|
150
|
+
|
|
151
|
+
Checks for:
|
|
152
|
+
- Projects with active service provider's resources
|
|
153
|
+
- Course accounts with non-blank users
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
Args:
|
|
158
|
+
service_provider_uuid (UUID):
|
|
159
|
+
email (Union[Unset, str]):
|
|
160
|
+
page (Union[Unset, int]):
|
|
161
|
+
page_size (Union[Unset, int]):
|
|
162
|
+
project_uuid (Union[Unset, UUID]):
|
|
163
|
+
state (Union[Unset, list[MarketplaceServiceProvidersCourseAccountsListStateItem]]):
|
|
164
|
+
username (Union[Unset, str]):
|
|
165
|
+
|
|
166
|
+
Raises:
|
|
167
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
168
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
169
|
+
|
|
170
|
+
Returns:
|
|
171
|
+
list['CourseAccount']
|
|
172
|
+
"""
|
|
173
|
+
|
|
174
|
+
return sync_detailed(
|
|
175
|
+
service_provider_uuid=service_provider_uuid,
|
|
176
|
+
client=client,
|
|
177
|
+
email=email,
|
|
178
|
+
page=page,
|
|
179
|
+
page_size=page_size,
|
|
180
|
+
project_uuid=project_uuid,
|
|
181
|
+
state=state,
|
|
182
|
+
username=username,
|
|
183
|
+
).parsed
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
async def asyncio_detailed(
|
|
187
|
+
service_provider_uuid: UUID,
|
|
188
|
+
*,
|
|
189
|
+
client: AuthenticatedClient,
|
|
190
|
+
email: Union[Unset, str] = UNSET,
|
|
191
|
+
page: Union[Unset, int] = UNSET,
|
|
192
|
+
page_size: Union[Unset, int] = UNSET,
|
|
193
|
+
project_uuid: Union[Unset, UUID] = UNSET,
|
|
194
|
+
state: Union[Unset, list[MarketplaceServiceProvidersCourseAccountsListStateItem]] = UNSET,
|
|
195
|
+
username: Union[Unset, str] = UNSET,
|
|
196
|
+
) -> Response[list["CourseAccount"]]:
|
|
197
|
+
"""Return course project accounts that have access to resources managed by the provider.
|
|
198
|
+
|
|
199
|
+
Checks for:
|
|
200
|
+
- Projects with active service provider's resources
|
|
201
|
+
- Course accounts with non-blank users
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
Args:
|
|
206
|
+
service_provider_uuid (UUID):
|
|
207
|
+
email (Union[Unset, str]):
|
|
208
|
+
page (Union[Unset, int]):
|
|
209
|
+
page_size (Union[Unset, int]):
|
|
210
|
+
project_uuid (Union[Unset, UUID]):
|
|
211
|
+
state (Union[Unset, list[MarketplaceServiceProvidersCourseAccountsListStateItem]]):
|
|
212
|
+
username (Union[Unset, str]):
|
|
213
|
+
|
|
214
|
+
Raises:
|
|
215
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
216
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
217
|
+
|
|
218
|
+
Returns:
|
|
219
|
+
Response[list['CourseAccount']]
|
|
220
|
+
"""
|
|
221
|
+
|
|
222
|
+
kwargs = _get_kwargs(
|
|
223
|
+
service_provider_uuid=service_provider_uuid,
|
|
224
|
+
email=email,
|
|
225
|
+
page=page,
|
|
226
|
+
page_size=page_size,
|
|
227
|
+
project_uuid=project_uuid,
|
|
228
|
+
state=state,
|
|
229
|
+
username=username,
|
|
230
|
+
)
|
|
231
|
+
|
|
232
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
233
|
+
|
|
234
|
+
return _build_response(client=client, response=response)
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
async def asyncio(
|
|
238
|
+
service_provider_uuid: UUID,
|
|
239
|
+
*,
|
|
240
|
+
client: AuthenticatedClient,
|
|
241
|
+
email: Union[Unset, str] = UNSET,
|
|
242
|
+
page: Union[Unset, int] = UNSET,
|
|
243
|
+
page_size: Union[Unset, int] = UNSET,
|
|
244
|
+
project_uuid: Union[Unset, UUID] = UNSET,
|
|
245
|
+
state: Union[Unset, list[MarketplaceServiceProvidersCourseAccountsListStateItem]] = UNSET,
|
|
246
|
+
username: Union[Unset, str] = UNSET,
|
|
247
|
+
) -> list["CourseAccount"]:
|
|
248
|
+
"""Return course project accounts that have access to resources managed by the provider.
|
|
249
|
+
|
|
250
|
+
Checks for:
|
|
251
|
+
- Projects with active service provider's resources
|
|
252
|
+
- Course accounts with non-blank users
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
Args:
|
|
257
|
+
service_provider_uuid (UUID):
|
|
258
|
+
email (Union[Unset, str]):
|
|
259
|
+
page (Union[Unset, int]):
|
|
260
|
+
page_size (Union[Unset, int]):
|
|
261
|
+
project_uuid (Union[Unset, UUID]):
|
|
262
|
+
state (Union[Unset, list[MarketplaceServiceProvidersCourseAccountsListStateItem]]):
|
|
263
|
+
username (Union[Unset, str]):
|
|
264
|
+
|
|
265
|
+
Raises:
|
|
266
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
267
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
268
|
+
|
|
269
|
+
Returns:
|
|
270
|
+
list['CourseAccount']
|
|
271
|
+
"""
|
|
272
|
+
|
|
273
|
+
return (
|
|
274
|
+
await asyncio_detailed(
|
|
275
|
+
service_provider_uuid=service_provider_uuid,
|
|
276
|
+
client=client,
|
|
277
|
+
email=email,
|
|
278
|
+
page=page,
|
|
279
|
+
page_size=page_size,
|
|
280
|
+
project_uuid=project_uuid,
|
|
281
|
+
state=state,
|
|
282
|
+
username=username,
|
|
283
|
+
)
|
|
284
|
+
).parsed
|