waldur-api-client 7.7.9__py3-none-any.whl → 7.8.1__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/marketplace_course_accounts/marketplace_course_accounts_count.py +96 -0
- waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_list.py +96 -0
- waldur_api_client/api/marketplace_offering_user_checklist_completions/__init__.py +1 -0
- waldur_api_client/api/marketplace_offering_user_checklist_completions/marketplace_offering_user_checklist_completions_count.py +286 -0
- waldur_api_client/api/marketplace_offering_user_checklist_completions/marketplace_offering_user_checklist_completions_list.py +289 -0
- waldur_api_client/api/{rancher_clusters/rancher_clusters_create.py → marketplace_offering_user_checklist_completions/marketplace_offering_user_checklist_completions_retrieve.py} +29 -38
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_count.py +15 -0
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_list.py +15 -0
- waldur_api_client/api/{rancher_clusters/rancher_clusters_destroy.py → marketplace_orders/marketplace_orders_delete_attachment.py} +6 -4
- waldur_api_client/api/marketplace_orders/marketplace_orders_update_attachment.py +168 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_component_stats_list.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_costs_list.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_count.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_customers_list.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_groups_count.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_groups_list.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_list.py +15 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_list_course_accounts_retrieve.py +177 -0
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_refresh_offering_usernames.py +0 -22
- waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_update_compliance_checklist.py +105 -0
- waldur_api_client/api/marketplace_public_offerings/marketplace_public_offerings_count.py +15 -0
- waldur_api_client/api/marketplace_public_offerings/marketplace_public_offerings_list.py +15 -0
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_course_accounts_list.py +98 -0
- waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_offerings_list.py +15 -0
- waldur_api_client/api/user_invitations/user_invitations_count.py +15 -0
- waldur_api_client/api/user_invitations/user_invitations_list.py +15 -0
- waldur_api_client/models/__init__.py +34 -6
- waldur_api_client/models/booking_offerings_list_field_item.py +1 -0
- waldur_api_client/models/booking_offerings_retrieve_field_item.py +1 -0
- waldur_api_client/models/booking_resource.py +18 -0
- waldur_api_client/models/booking_resources_list_field_item.py +2 -0
- waldur_api_client/models/booking_resources_retrieve_field_item.py +2 -0
- waldur_api_client/models/country_enum.py +211 -0
- waldur_api_client/models/course_account.py +24 -0
- waldur_api_client/models/customer_request.py +9 -0
- waldur_api_client/models/deployment_mode_enum.py +9 -0
- waldur_api_client/models/group_invitation.py +8 -0
- waldur_api_client/models/identity_provider.py +57 -0
- waldur_api_client/models/identity_provider_request.py +57 -0
- waldur_api_client/models/invitation.py +8 -0
- waldur_api_client/models/issue.py +8 -17
- waldur_api_client/models/issue_request.py +8 -17
- waldur_api_client/models/issue_type_enum.py +4 -4
- waldur_api_client/models/managed_rancher_cluster_resources_list_field_item.py +2 -0
- waldur_api_client/models/managed_rancher_cluster_resources_retrieve_field_item.py +2 -0
- waldur_api_client/models/marketplace_course_accounts_count_o_item.py +23 -0
- waldur_api_client/models/marketplace_course_accounts_list_o_item.py +23 -0
- waldur_api_client/models/marketplace_offering_user_checklist_completions_count_o_item.py +11 -0
- waldur_api_client/models/marketplace_offering_user_checklist_completions_list_o_item.py +11 -0
- waldur_api_client/models/marketplace_offering_users_list_field_item.py +2 -0
- waldur_api_client/models/marketplace_offering_users_retrieve_field_item.py +2 -0
- waldur_api_client/models/marketplace_orders_list_field_item.py +5 -0
- waldur_api_client/models/marketplace_orders_retrieve_field_item.py +5 -0
- waldur_api_client/models/marketplace_provider_offerings_list_course_accounts_retrieve_field_item.py +72 -0
- waldur_api_client/models/marketplace_provider_resources_details_retrieve_field_item.py +2 -0
- waldur_api_client/models/marketplace_provider_resources_list_field_item.py +2 -0
- waldur_api_client/models/marketplace_provider_resources_retrieve_field_item.py +2 -0
- waldur_api_client/models/marketplace_public_offerings_list_field_item.py +1 -0
- waldur_api_client/models/marketplace_public_offerings_retrieve_field_item.py +1 -0
- waldur_api_client/models/marketplace_resources_details_retrieve_field_item.py +2 -0
- waldur_api_client/models/marketplace_resources_list_field_item.py +2 -0
- waldur_api_client/models/marketplace_resources_retrieve_field_item.py +2 -0
- waldur_api_client/models/marketplace_service_providers_course_accounts_list_o_item.py +23 -0
- waldur_api_client/models/merged_plugin_options.py +36 -0
- waldur_api_client/models/merged_plugin_options_request.py +36 -0
- waldur_api_client/models/notification.py +11 -0
- waldur_api_client/models/notification_context_fields.py +47 -0
- waldur_api_client/models/offering.py +9 -0
- waldur_api_client/models/offering_compliance_checklist_update_request.py +82 -0
- waldur_api_client/models/offering_create.py +9 -8
- waldur_api_client/models/offering_create_request.py +9 -0
- waldur_api_client/models/offering_overview_update_request.py +9 -0
- waldur_api_client/models/offering_terms_of_service.py +42 -1
- waldur_api_client/models/offering_user.py +18 -0
- waldur_api_client/models/open_stack_tenant_create_order_attributes.py +0 -18
- waldur_api_client/models/open_stack_tenant_request.py +18 -0
- waldur_api_client/models/order_attachment.py +71 -0
- waldur_api_client/models/order_attachment_request.py +84 -0
- waldur_api_client/models/order_create.py +58 -16
- waldur_api_client/models/order_create_request.py +44 -62
- waldur_api_client/models/order_details.py +99 -16
- waldur_api_client/models/patched_customer_request.py +9 -0
- waldur_api_client/models/patched_identity_provider_request.py +58 -0
- waldur_api_client/models/patched_project_request.py +9 -0
- waldur_api_client/models/patched_protected_call_request.py +9 -0
- waldur_api_client/models/patched_protected_round_request.py +2 -2
- waldur_api_client/models/patched_service_provider_request.py +9 -0
- waldur_api_client/models/patched_user_request.py +9 -0
- waldur_api_client/models/project_request.py +9 -0
- waldur_api_client/models/protected_call_request.py +9 -0
- waldur_api_client/models/protected_round.py +2 -2
- waldur_api_client/models/protected_round_request.py +2 -2
- waldur_api_client/models/public_offering_details.py +9 -0
- waldur_api_client/models/rancher_cluster_request.py +1 -48
- waldur_api_client/models/resource.py +18 -0
- waldur_api_client/models/resource_update_limits_request.py +23 -1
- waldur_api_client/models/service_provider_request.py +9 -0
- waldur_api_client/models/user_checklist_completion.py +265 -0
- waldur_api_client/models/user_consent_info.py +86 -0
- waldur_api_client/models/user_request.py +9 -0
- waldur_api_client/models/visible_invitation_details.py +8 -0
- {waldur_api_client-7.7.9.dist-info → waldur_api_client-7.8.1.dist-info}/METADATA +4 -2
- {waldur_api_client-7.7.9.dist-info → waldur_api_client-7.8.1.dist-info}/RECORD +105 -89
- {waldur_api_client-7.7.9.dist-info → waldur_api_client-7.8.1.dist-info}/WHEEL +1 -1
- waldur_api_client/models/marketplace_managed_rancher_create_order_attributes.py +0 -144
- waldur_api_client/models/marketplace_rancher_create_order_attributes.py +0 -145
- waldur_api_client/models/provider_offering_details_request.py +0 -398
- {waldur_api_client-7.7.9.dist-info → waldur_api_client-7.8.1.dist-info/licenses}/LICENSE +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import datetime
|
|
1
2
|
from http import HTTPStatus
|
|
2
3
|
from typing import Any, Union
|
|
3
4
|
from uuid import UUID
|
|
@@ -6,6 +7,7 @@ import httpx
|
|
|
6
7
|
|
|
7
8
|
from ... import errors
|
|
8
9
|
from ...client import AuthenticatedClient, Client
|
|
10
|
+
from ...models.marketplace_course_accounts_count_o_item import MarketplaceCourseAccountsCountOItem
|
|
9
11
|
from ...models.marketplace_course_accounts_count_state_item import MarketplaceCourseAccountsCountStateItem
|
|
10
12
|
from ...types import UNSET, Response, Unset
|
|
11
13
|
|
|
@@ -13,8 +15,13 @@ from ...types import UNSET, Response, Unset
|
|
|
13
15
|
def _get_kwargs(
|
|
14
16
|
*,
|
|
15
17
|
email: Union[Unset, str] = UNSET,
|
|
18
|
+
o: Union[Unset, list[MarketplaceCourseAccountsCountOItem]] = UNSET,
|
|
16
19
|
page: Union[Unset, int] = UNSET,
|
|
17
20
|
page_size: Union[Unset, int] = UNSET,
|
|
21
|
+
project_end_date_after: Union[Unset, datetime.date] = UNSET,
|
|
22
|
+
project_end_date_before: Union[Unset, datetime.date] = UNSET,
|
|
23
|
+
project_start_date_after: Union[Unset, datetime.date] = UNSET,
|
|
24
|
+
project_start_date_before: Union[Unset, datetime.date] = UNSET,
|
|
18
25
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
19
26
|
state: Union[Unset, list[MarketplaceCourseAccountsCountStateItem]] = UNSET,
|
|
20
27
|
username: Union[Unset, str] = UNSET,
|
|
@@ -23,10 +30,39 @@ def _get_kwargs(
|
|
|
23
30
|
|
|
24
31
|
params["email"] = email
|
|
25
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
|
+
|
|
26
42
|
params["page"] = page
|
|
27
43
|
|
|
28
44
|
params["page_size"] = page_size
|
|
29
45
|
|
|
46
|
+
json_project_end_date_after: Union[Unset, str] = UNSET
|
|
47
|
+
if not isinstance(project_end_date_after, Unset):
|
|
48
|
+
json_project_end_date_after = project_end_date_after.isoformat()
|
|
49
|
+
params["project_end_date_after"] = json_project_end_date_after
|
|
50
|
+
|
|
51
|
+
json_project_end_date_before: Union[Unset, str] = UNSET
|
|
52
|
+
if not isinstance(project_end_date_before, Unset):
|
|
53
|
+
json_project_end_date_before = project_end_date_before.isoformat()
|
|
54
|
+
params["project_end_date_before"] = json_project_end_date_before
|
|
55
|
+
|
|
56
|
+
json_project_start_date_after: Union[Unset, str] = UNSET
|
|
57
|
+
if not isinstance(project_start_date_after, Unset):
|
|
58
|
+
json_project_start_date_after = project_start_date_after.isoformat()
|
|
59
|
+
params["project_start_date_after"] = json_project_start_date_after
|
|
60
|
+
|
|
61
|
+
json_project_start_date_before: Union[Unset, str] = UNSET
|
|
62
|
+
if not isinstance(project_start_date_before, Unset):
|
|
63
|
+
json_project_start_date_before = project_start_date_before.isoformat()
|
|
64
|
+
params["project_start_date_before"] = json_project_start_date_before
|
|
65
|
+
|
|
30
66
|
json_project_uuid: Union[Unset, str] = UNSET
|
|
31
67
|
if not isinstance(project_uuid, Unset):
|
|
32
68
|
json_project_uuid = str(project_uuid)
|
|
@@ -82,8 +118,13 @@ def sync_detailed(
|
|
|
82
118
|
*,
|
|
83
119
|
client: AuthenticatedClient,
|
|
84
120
|
email: Union[Unset, str] = UNSET,
|
|
121
|
+
o: Union[Unset, list[MarketplaceCourseAccountsCountOItem]] = UNSET,
|
|
85
122
|
page: Union[Unset, int] = UNSET,
|
|
86
123
|
page_size: Union[Unset, int] = UNSET,
|
|
124
|
+
project_end_date_after: Union[Unset, datetime.date] = UNSET,
|
|
125
|
+
project_end_date_before: Union[Unset, datetime.date] = UNSET,
|
|
126
|
+
project_start_date_after: Union[Unset, datetime.date] = UNSET,
|
|
127
|
+
project_start_date_before: Union[Unset, datetime.date] = UNSET,
|
|
87
128
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
88
129
|
state: Union[Unset, list[MarketplaceCourseAccountsCountStateItem]] = UNSET,
|
|
89
130
|
username: Union[Unset, str] = UNSET,
|
|
@@ -92,8 +133,13 @@ def sync_detailed(
|
|
|
92
133
|
|
|
93
134
|
Args:
|
|
94
135
|
email (Union[Unset, str]):
|
|
136
|
+
o (Union[Unset, list[MarketplaceCourseAccountsCountOItem]]):
|
|
95
137
|
page (Union[Unset, int]):
|
|
96
138
|
page_size (Union[Unset, int]):
|
|
139
|
+
project_end_date_after (Union[Unset, datetime.date]):
|
|
140
|
+
project_end_date_before (Union[Unset, datetime.date]):
|
|
141
|
+
project_start_date_after (Union[Unset, datetime.date]):
|
|
142
|
+
project_start_date_before (Union[Unset, datetime.date]):
|
|
97
143
|
project_uuid (Union[Unset, UUID]):
|
|
98
144
|
state (Union[Unset, list[MarketplaceCourseAccountsCountStateItem]]):
|
|
99
145
|
username (Union[Unset, str]):
|
|
@@ -108,8 +154,13 @@ def sync_detailed(
|
|
|
108
154
|
|
|
109
155
|
kwargs = _get_kwargs(
|
|
110
156
|
email=email,
|
|
157
|
+
o=o,
|
|
111
158
|
page=page,
|
|
112
159
|
page_size=page_size,
|
|
160
|
+
project_end_date_after=project_end_date_after,
|
|
161
|
+
project_end_date_before=project_end_date_before,
|
|
162
|
+
project_start_date_after=project_start_date_after,
|
|
163
|
+
project_start_date_before=project_start_date_before,
|
|
113
164
|
project_uuid=project_uuid,
|
|
114
165
|
state=state,
|
|
115
166
|
username=username,
|
|
@@ -126,8 +177,13 @@ def sync(
|
|
|
126
177
|
*,
|
|
127
178
|
client: AuthenticatedClient,
|
|
128
179
|
email: Union[Unset, str] = UNSET,
|
|
180
|
+
o: Union[Unset, list[MarketplaceCourseAccountsCountOItem]] = UNSET,
|
|
129
181
|
page: Union[Unset, int] = UNSET,
|
|
130
182
|
page_size: Union[Unset, int] = UNSET,
|
|
183
|
+
project_end_date_after: Union[Unset, datetime.date] = UNSET,
|
|
184
|
+
project_end_date_before: Union[Unset, datetime.date] = UNSET,
|
|
185
|
+
project_start_date_after: Union[Unset, datetime.date] = UNSET,
|
|
186
|
+
project_start_date_before: Union[Unset, datetime.date] = UNSET,
|
|
131
187
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
132
188
|
state: Union[Unset, list[MarketplaceCourseAccountsCountStateItem]] = UNSET,
|
|
133
189
|
username: Union[Unset, str] = UNSET,
|
|
@@ -136,8 +192,13 @@ def sync(
|
|
|
136
192
|
|
|
137
193
|
Args:
|
|
138
194
|
email (Union[Unset, str]):
|
|
195
|
+
o (Union[Unset, list[MarketplaceCourseAccountsCountOItem]]):
|
|
139
196
|
page (Union[Unset, int]):
|
|
140
197
|
page_size (Union[Unset, int]):
|
|
198
|
+
project_end_date_after (Union[Unset, datetime.date]):
|
|
199
|
+
project_end_date_before (Union[Unset, datetime.date]):
|
|
200
|
+
project_start_date_after (Union[Unset, datetime.date]):
|
|
201
|
+
project_start_date_before (Union[Unset, datetime.date]):
|
|
141
202
|
project_uuid (Union[Unset, UUID]):
|
|
142
203
|
state (Union[Unset, list[MarketplaceCourseAccountsCountStateItem]]):
|
|
143
204
|
username (Union[Unset, str]):
|
|
@@ -153,8 +214,13 @@ def sync(
|
|
|
153
214
|
return sync_detailed(
|
|
154
215
|
client=client,
|
|
155
216
|
email=email,
|
|
217
|
+
o=o,
|
|
156
218
|
page=page,
|
|
157
219
|
page_size=page_size,
|
|
220
|
+
project_end_date_after=project_end_date_after,
|
|
221
|
+
project_end_date_before=project_end_date_before,
|
|
222
|
+
project_start_date_after=project_start_date_after,
|
|
223
|
+
project_start_date_before=project_start_date_before,
|
|
158
224
|
project_uuid=project_uuid,
|
|
159
225
|
state=state,
|
|
160
226
|
username=username,
|
|
@@ -165,8 +231,13 @@ async def asyncio_detailed(
|
|
|
165
231
|
*,
|
|
166
232
|
client: AuthenticatedClient,
|
|
167
233
|
email: Union[Unset, str] = UNSET,
|
|
234
|
+
o: Union[Unset, list[MarketplaceCourseAccountsCountOItem]] = UNSET,
|
|
168
235
|
page: Union[Unset, int] = UNSET,
|
|
169
236
|
page_size: Union[Unset, int] = UNSET,
|
|
237
|
+
project_end_date_after: Union[Unset, datetime.date] = UNSET,
|
|
238
|
+
project_end_date_before: Union[Unset, datetime.date] = UNSET,
|
|
239
|
+
project_start_date_after: Union[Unset, datetime.date] = UNSET,
|
|
240
|
+
project_start_date_before: Union[Unset, datetime.date] = UNSET,
|
|
170
241
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
171
242
|
state: Union[Unset, list[MarketplaceCourseAccountsCountStateItem]] = UNSET,
|
|
172
243
|
username: Union[Unset, str] = UNSET,
|
|
@@ -175,8 +246,13 @@ async def asyncio_detailed(
|
|
|
175
246
|
|
|
176
247
|
Args:
|
|
177
248
|
email (Union[Unset, str]):
|
|
249
|
+
o (Union[Unset, list[MarketplaceCourseAccountsCountOItem]]):
|
|
178
250
|
page (Union[Unset, int]):
|
|
179
251
|
page_size (Union[Unset, int]):
|
|
252
|
+
project_end_date_after (Union[Unset, datetime.date]):
|
|
253
|
+
project_end_date_before (Union[Unset, datetime.date]):
|
|
254
|
+
project_start_date_after (Union[Unset, datetime.date]):
|
|
255
|
+
project_start_date_before (Union[Unset, datetime.date]):
|
|
180
256
|
project_uuid (Union[Unset, UUID]):
|
|
181
257
|
state (Union[Unset, list[MarketplaceCourseAccountsCountStateItem]]):
|
|
182
258
|
username (Union[Unset, str]):
|
|
@@ -191,8 +267,13 @@ async def asyncio_detailed(
|
|
|
191
267
|
|
|
192
268
|
kwargs = _get_kwargs(
|
|
193
269
|
email=email,
|
|
270
|
+
o=o,
|
|
194
271
|
page=page,
|
|
195
272
|
page_size=page_size,
|
|
273
|
+
project_end_date_after=project_end_date_after,
|
|
274
|
+
project_end_date_before=project_end_date_before,
|
|
275
|
+
project_start_date_after=project_start_date_after,
|
|
276
|
+
project_start_date_before=project_start_date_before,
|
|
196
277
|
project_uuid=project_uuid,
|
|
197
278
|
state=state,
|
|
198
279
|
username=username,
|
|
@@ -207,8 +288,13 @@ async def asyncio(
|
|
|
207
288
|
*,
|
|
208
289
|
client: AuthenticatedClient,
|
|
209
290
|
email: Union[Unset, str] = UNSET,
|
|
291
|
+
o: Union[Unset, list[MarketplaceCourseAccountsCountOItem]] = UNSET,
|
|
210
292
|
page: Union[Unset, int] = UNSET,
|
|
211
293
|
page_size: Union[Unset, int] = UNSET,
|
|
294
|
+
project_end_date_after: Union[Unset, datetime.date] = UNSET,
|
|
295
|
+
project_end_date_before: Union[Unset, datetime.date] = UNSET,
|
|
296
|
+
project_start_date_after: Union[Unset, datetime.date] = UNSET,
|
|
297
|
+
project_start_date_before: Union[Unset, datetime.date] = UNSET,
|
|
212
298
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
213
299
|
state: Union[Unset, list[MarketplaceCourseAccountsCountStateItem]] = UNSET,
|
|
214
300
|
username: Union[Unset, str] = UNSET,
|
|
@@ -217,8 +303,13 @@ async def asyncio(
|
|
|
217
303
|
|
|
218
304
|
Args:
|
|
219
305
|
email (Union[Unset, str]):
|
|
306
|
+
o (Union[Unset, list[MarketplaceCourseAccountsCountOItem]]):
|
|
220
307
|
page (Union[Unset, int]):
|
|
221
308
|
page_size (Union[Unset, int]):
|
|
309
|
+
project_end_date_after (Union[Unset, datetime.date]):
|
|
310
|
+
project_end_date_before (Union[Unset, datetime.date]):
|
|
311
|
+
project_start_date_after (Union[Unset, datetime.date]):
|
|
312
|
+
project_start_date_before (Union[Unset, datetime.date]):
|
|
222
313
|
project_uuid (Union[Unset, UUID]):
|
|
223
314
|
state (Union[Unset, list[MarketplaceCourseAccountsCountStateItem]]):
|
|
224
315
|
username (Union[Unset, str]):
|
|
@@ -235,8 +326,13 @@ async def asyncio(
|
|
|
235
326
|
await asyncio_detailed(
|
|
236
327
|
client=client,
|
|
237
328
|
email=email,
|
|
329
|
+
o=o,
|
|
238
330
|
page=page,
|
|
239
331
|
page_size=page_size,
|
|
332
|
+
project_end_date_after=project_end_date_after,
|
|
333
|
+
project_end_date_before=project_end_date_before,
|
|
334
|
+
project_start_date_after=project_start_date_after,
|
|
335
|
+
project_start_date_before=project_start_date_before,
|
|
240
336
|
project_uuid=project_uuid,
|
|
241
337
|
state=state,
|
|
242
338
|
username=username,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import datetime
|
|
1
2
|
from http import HTTPStatus
|
|
2
3
|
from typing import Any, Union
|
|
3
4
|
from uuid import UUID
|
|
@@ -7,6 +8,7 @@ import httpx
|
|
|
7
8
|
from ... import errors
|
|
8
9
|
from ...client import AuthenticatedClient, Client
|
|
9
10
|
from ...models.course_account import CourseAccount
|
|
11
|
+
from ...models.marketplace_course_accounts_list_o_item import MarketplaceCourseAccountsListOItem
|
|
10
12
|
from ...models.marketplace_course_accounts_list_state_item import MarketplaceCourseAccountsListStateItem
|
|
11
13
|
from ...types import UNSET, Response, Unset
|
|
12
14
|
|
|
@@ -14,8 +16,13 @@ from ...types import UNSET, Response, Unset
|
|
|
14
16
|
def _get_kwargs(
|
|
15
17
|
*,
|
|
16
18
|
email: Union[Unset, str] = UNSET,
|
|
19
|
+
o: Union[Unset, list[MarketplaceCourseAccountsListOItem]] = UNSET,
|
|
17
20
|
page: Union[Unset, int] = UNSET,
|
|
18
21
|
page_size: Union[Unset, int] = UNSET,
|
|
22
|
+
project_end_date_after: Union[Unset, datetime.date] = UNSET,
|
|
23
|
+
project_end_date_before: Union[Unset, datetime.date] = UNSET,
|
|
24
|
+
project_start_date_after: Union[Unset, datetime.date] = UNSET,
|
|
25
|
+
project_start_date_before: Union[Unset, datetime.date] = UNSET,
|
|
19
26
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
20
27
|
state: Union[Unset, list[MarketplaceCourseAccountsListStateItem]] = UNSET,
|
|
21
28
|
username: Union[Unset, str] = UNSET,
|
|
@@ -24,10 +31,39 @@ def _get_kwargs(
|
|
|
24
31
|
|
|
25
32
|
params["email"] = email
|
|
26
33
|
|
|
34
|
+
json_o: Union[Unset, list[str]] = UNSET
|
|
35
|
+
if not isinstance(o, Unset):
|
|
36
|
+
json_o = []
|
|
37
|
+
for o_item_data in o:
|
|
38
|
+
o_item = o_item_data.value
|
|
39
|
+
json_o.append(o_item)
|
|
40
|
+
|
|
41
|
+
params["o"] = json_o
|
|
42
|
+
|
|
27
43
|
params["page"] = page
|
|
28
44
|
|
|
29
45
|
params["page_size"] = page_size
|
|
30
46
|
|
|
47
|
+
json_project_end_date_after: Union[Unset, str] = UNSET
|
|
48
|
+
if not isinstance(project_end_date_after, Unset):
|
|
49
|
+
json_project_end_date_after = project_end_date_after.isoformat()
|
|
50
|
+
params["project_end_date_after"] = json_project_end_date_after
|
|
51
|
+
|
|
52
|
+
json_project_end_date_before: Union[Unset, str] = UNSET
|
|
53
|
+
if not isinstance(project_end_date_before, Unset):
|
|
54
|
+
json_project_end_date_before = project_end_date_before.isoformat()
|
|
55
|
+
params["project_end_date_before"] = json_project_end_date_before
|
|
56
|
+
|
|
57
|
+
json_project_start_date_after: Union[Unset, str] = UNSET
|
|
58
|
+
if not isinstance(project_start_date_after, Unset):
|
|
59
|
+
json_project_start_date_after = project_start_date_after.isoformat()
|
|
60
|
+
params["project_start_date_after"] = json_project_start_date_after
|
|
61
|
+
|
|
62
|
+
json_project_start_date_before: Union[Unset, str] = UNSET
|
|
63
|
+
if not isinstance(project_start_date_before, Unset):
|
|
64
|
+
json_project_start_date_before = project_start_date_before.isoformat()
|
|
65
|
+
params["project_start_date_before"] = json_project_start_date_before
|
|
66
|
+
|
|
31
67
|
json_project_uuid: Union[Unset, str] = UNSET
|
|
32
68
|
if not isinstance(project_uuid, Unset):
|
|
33
69
|
json_project_uuid = str(project_uuid)
|
|
@@ -83,8 +119,13 @@ def sync_detailed(
|
|
|
83
119
|
*,
|
|
84
120
|
client: AuthenticatedClient,
|
|
85
121
|
email: Union[Unset, str] = UNSET,
|
|
122
|
+
o: Union[Unset, list[MarketplaceCourseAccountsListOItem]] = UNSET,
|
|
86
123
|
page: Union[Unset, int] = UNSET,
|
|
87
124
|
page_size: Union[Unset, int] = UNSET,
|
|
125
|
+
project_end_date_after: Union[Unset, datetime.date] = UNSET,
|
|
126
|
+
project_end_date_before: Union[Unset, datetime.date] = UNSET,
|
|
127
|
+
project_start_date_after: Union[Unset, datetime.date] = UNSET,
|
|
128
|
+
project_start_date_before: Union[Unset, datetime.date] = UNSET,
|
|
88
129
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
89
130
|
state: Union[Unset, list[MarketplaceCourseAccountsListStateItem]] = UNSET,
|
|
90
131
|
username: Union[Unset, str] = UNSET,
|
|
@@ -93,8 +134,13 @@ def sync_detailed(
|
|
|
93
134
|
|
|
94
135
|
Args:
|
|
95
136
|
email (Union[Unset, str]):
|
|
137
|
+
o (Union[Unset, list[MarketplaceCourseAccountsListOItem]]):
|
|
96
138
|
page (Union[Unset, int]):
|
|
97
139
|
page_size (Union[Unset, int]):
|
|
140
|
+
project_end_date_after (Union[Unset, datetime.date]):
|
|
141
|
+
project_end_date_before (Union[Unset, datetime.date]):
|
|
142
|
+
project_start_date_after (Union[Unset, datetime.date]):
|
|
143
|
+
project_start_date_before (Union[Unset, datetime.date]):
|
|
98
144
|
project_uuid (Union[Unset, UUID]):
|
|
99
145
|
state (Union[Unset, list[MarketplaceCourseAccountsListStateItem]]):
|
|
100
146
|
username (Union[Unset, str]):
|
|
@@ -109,8 +155,13 @@ def sync_detailed(
|
|
|
109
155
|
|
|
110
156
|
kwargs = _get_kwargs(
|
|
111
157
|
email=email,
|
|
158
|
+
o=o,
|
|
112
159
|
page=page,
|
|
113
160
|
page_size=page_size,
|
|
161
|
+
project_end_date_after=project_end_date_after,
|
|
162
|
+
project_end_date_before=project_end_date_before,
|
|
163
|
+
project_start_date_after=project_start_date_after,
|
|
164
|
+
project_start_date_before=project_start_date_before,
|
|
114
165
|
project_uuid=project_uuid,
|
|
115
166
|
state=state,
|
|
116
167
|
username=username,
|
|
@@ -127,8 +178,13 @@ def sync(
|
|
|
127
178
|
*,
|
|
128
179
|
client: AuthenticatedClient,
|
|
129
180
|
email: Union[Unset, str] = UNSET,
|
|
181
|
+
o: Union[Unset, list[MarketplaceCourseAccountsListOItem]] = UNSET,
|
|
130
182
|
page: Union[Unset, int] = UNSET,
|
|
131
183
|
page_size: Union[Unset, int] = UNSET,
|
|
184
|
+
project_end_date_after: Union[Unset, datetime.date] = UNSET,
|
|
185
|
+
project_end_date_before: Union[Unset, datetime.date] = UNSET,
|
|
186
|
+
project_start_date_after: Union[Unset, datetime.date] = UNSET,
|
|
187
|
+
project_start_date_before: Union[Unset, datetime.date] = UNSET,
|
|
132
188
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
133
189
|
state: Union[Unset, list[MarketplaceCourseAccountsListStateItem]] = UNSET,
|
|
134
190
|
username: Union[Unset, str] = UNSET,
|
|
@@ -137,8 +193,13 @@ def sync(
|
|
|
137
193
|
|
|
138
194
|
Args:
|
|
139
195
|
email (Union[Unset, str]):
|
|
196
|
+
o (Union[Unset, list[MarketplaceCourseAccountsListOItem]]):
|
|
140
197
|
page (Union[Unset, int]):
|
|
141
198
|
page_size (Union[Unset, int]):
|
|
199
|
+
project_end_date_after (Union[Unset, datetime.date]):
|
|
200
|
+
project_end_date_before (Union[Unset, datetime.date]):
|
|
201
|
+
project_start_date_after (Union[Unset, datetime.date]):
|
|
202
|
+
project_start_date_before (Union[Unset, datetime.date]):
|
|
142
203
|
project_uuid (Union[Unset, UUID]):
|
|
143
204
|
state (Union[Unset, list[MarketplaceCourseAccountsListStateItem]]):
|
|
144
205
|
username (Union[Unset, str]):
|
|
@@ -154,8 +215,13 @@ def sync(
|
|
|
154
215
|
return sync_detailed(
|
|
155
216
|
client=client,
|
|
156
217
|
email=email,
|
|
218
|
+
o=o,
|
|
157
219
|
page=page,
|
|
158
220
|
page_size=page_size,
|
|
221
|
+
project_end_date_after=project_end_date_after,
|
|
222
|
+
project_end_date_before=project_end_date_before,
|
|
223
|
+
project_start_date_after=project_start_date_after,
|
|
224
|
+
project_start_date_before=project_start_date_before,
|
|
159
225
|
project_uuid=project_uuid,
|
|
160
226
|
state=state,
|
|
161
227
|
username=username,
|
|
@@ -166,8 +232,13 @@ async def asyncio_detailed(
|
|
|
166
232
|
*,
|
|
167
233
|
client: AuthenticatedClient,
|
|
168
234
|
email: Union[Unset, str] = UNSET,
|
|
235
|
+
o: Union[Unset, list[MarketplaceCourseAccountsListOItem]] = UNSET,
|
|
169
236
|
page: Union[Unset, int] = UNSET,
|
|
170
237
|
page_size: Union[Unset, int] = UNSET,
|
|
238
|
+
project_end_date_after: Union[Unset, datetime.date] = UNSET,
|
|
239
|
+
project_end_date_before: Union[Unset, datetime.date] = UNSET,
|
|
240
|
+
project_start_date_after: Union[Unset, datetime.date] = UNSET,
|
|
241
|
+
project_start_date_before: Union[Unset, datetime.date] = UNSET,
|
|
171
242
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
172
243
|
state: Union[Unset, list[MarketplaceCourseAccountsListStateItem]] = UNSET,
|
|
173
244
|
username: Union[Unset, str] = UNSET,
|
|
@@ -176,8 +247,13 @@ async def asyncio_detailed(
|
|
|
176
247
|
|
|
177
248
|
Args:
|
|
178
249
|
email (Union[Unset, str]):
|
|
250
|
+
o (Union[Unset, list[MarketplaceCourseAccountsListOItem]]):
|
|
179
251
|
page (Union[Unset, int]):
|
|
180
252
|
page_size (Union[Unset, int]):
|
|
253
|
+
project_end_date_after (Union[Unset, datetime.date]):
|
|
254
|
+
project_end_date_before (Union[Unset, datetime.date]):
|
|
255
|
+
project_start_date_after (Union[Unset, datetime.date]):
|
|
256
|
+
project_start_date_before (Union[Unset, datetime.date]):
|
|
181
257
|
project_uuid (Union[Unset, UUID]):
|
|
182
258
|
state (Union[Unset, list[MarketplaceCourseAccountsListStateItem]]):
|
|
183
259
|
username (Union[Unset, str]):
|
|
@@ -192,8 +268,13 @@ async def asyncio_detailed(
|
|
|
192
268
|
|
|
193
269
|
kwargs = _get_kwargs(
|
|
194
270
|
email=email,
|
|
271
|
+
o=o,
|
|
195
272
|
page=page,
|
|
196
273
|
page_size=page_size,
|
|
274
|
+
project_end_date_after=project_end_date_after,
|
|
275
|
+
project_end_date_before=project_end_date_before,
|
|
276
|
+
project_start_date_after=project_start_date_after,
|
|
277
|
+
project_start_date_before=project_start_date_before,
|
|
197
278
|
project_uuid=project_uuid,
|
|
198
279
|
state=state,
|
|
199
280
|
username=username,
|
|
@@ -208,8 +289,13 @@ async def asyncio(
|
|
|
208
289
|
*,
|
|
209
290
|
client: AuthenticatedClient,
|
|
210
291
|
email: Union[Unset, str] = UNSET,
|
|
292
|
+
o: Union[Unset, list[MarketplaceCourseAccountsListOItem]] = UNSET,
|
|
211
293
|
page: Union[Unset, int] = UNSET,
|
|
212
294
|
page_size: Union[Unset, int] = UNSET,
|
|
295
|
+
project_end_date_after: Union[Unset, datetime.date] = UNSET,
|
|
296
|
+
project_end_date_before: Union[Unset, datetime.date] = UNSET,
|
|
297
|
+
project_start_date_after: Union[Unset, datetime.date] = UNSET,
|
|
298
|
+
project_start_date_before: Union[Unset, datetime.date] = UNSET,
|
|
213
299
|
project_uuid: Union[Unset, UUID] = UNSET,
|
|
214
300
|
state: Union[Unset, list[MarketplaceCourseAccountsListStateItem]] = UNSET,
|
|
215
301
|
username: Union[Unset, str] = UNSET,
|
|
@@ -218,8 +304,13 @@ async def asyncio(
|
|
|
218
304
|
|
|
219
305
|
Args:
|
|
220
306
|
email (Union[Unset, str]):
|
|
307
|
+
o (Union[Unset, list[MarketplaceCourseAccountsListOItem]]):
|
|
221
308
|
page (Union[Unset, int]):
|
|
222
309
|
page_size (Union[Unset, int]):
|
|
310
|
+
project_end_date_after (Union[Unset, datetime.date]):
|
|
311
|
+
project_end_date_before (Union[Unset, datetime.date]):
|
|
312
|
+
project_start_date_after (Union[Unset, datetime.date]):
|
|
313
|
+
project_start_date_before (Union[Unset, datetime.date]):
|
|
223
314
|
project_uuid (Union[Unset, UUID]):
|
|
224
315
|
state (Union[Unset, list[MarketplaceCourseAccountsListStateItem]]):
|
|
225
316
|
username (Union[Unset, str]):
|
|
@@ -236,8 +327,13 @@ async def asyncio(
|
|
|
236
327
|
await asyncio_detailed(
|
|
237
328
|
client=client,
|
|
238
329
|
email=email,
|
|
330
|
+
o=o,
|
|
239
331
|
page=page,
|
|
240
332
|
page_size=page_size,
|
|
333
|
+
project_end_date_after=project_end_date_after,
|
|
334
|
+
project_end_date_before=project_end_date_before,
|
|
335
|
+
project_start_date_after=project_start_date_after,
|
|
336
|
+
project_start_date_before=project_start_date_before,
|
|
241
337
|
project_uuid=project_uuid,
|
|
242
338
|
state=state,
|
|
243
339
|
username=username,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Contains endpoint functions for accessing the API"""
|