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
|
@@ -5,41 +5,32 @@ import httpx
|
|
|
5
5
|
|
|
6
6
|
from ... import errors
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
|
-
from ...models.
|
|
9
|
-
from ...models.rancher_cluster_request import RancherClusterRequest
|
|
8
|
+
from ...models.user_checklist_completion import UserChecklistCompletion
|
|
10
9
|
from ...types import Response
|
|
11
10
|
|
|
12
11
|
|
|
13
12
|
def _get_kwargs(
|
|
14
|
-
|
|
15
|
-
body: RancherClusterRequest,
|
|
13
|
+
id: int,
|
|
16
14
|
) -> dict[str, Any]:
|
|
17
|
-
headers: dict[str, Any] = {}
|
|
18
|
-
|
|
19
15
|
_kwargs: dict[str, Any] = {
|
|
20
|
-
"method": "
|
|
21
|
-
"url": "/api/
|
|
16
|
+
"method": "get",
|
|
17
|
+
"url": f"/api/marketplace-offering-user-checklist-completions/{id}/",
|
|
22
18
|
}
|
|
23
19
|
|
|
24
|
-
_kwargs["json"] = body.to_dict()
|
|
25
|
-
|
|
26
|
-
headers["Content-Type"] = "application/json"
|
|
27
|
-
|
|
28
|
-
_kwargs["headers"] = headers
|
|
29
20
|
return _kwargs
|
|
30
21
|
|
|
31
22
|
|
|
32
|
-
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) ->
|
|
33
|
-
if response.status_code ==
|
|
34
|
-
|
|
23
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> UserChecklistCompletion:
|
|
24
|
+
if response.status_code == 200:
|
|
25
|
+
response_200 = UserChecklistCompletion.from_dict(response.json())
|
|
35
26
|
|
|
36
|
-
return
|
|
27
|
+
return response_200
|
|
37
28
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
38
29
|
|
|
39
30
|
|
|
40
31
|
def _build_response(
|
|
41
32
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
42
|
-
) -> Response[
|
|
33
|
+
) -> Response[UserChecklistCompletion]:
|
|
43
34
|
return Response(
|
|
44
35
|
status_code=HTTPStatus(response.status_code),
|
|
45
36
|
content=response.content,
|
|
@@ -49,24 +40,24 @@ def _build_response(
|
|
|
49
40
|
|
|
50
41
|
|
|
51
42
|
def sync_detailed(
|
|
43
|
+
id: int,
|
|
52
44
|
*,
|
|
53
45
|
client: AuthenticatedClient,
|
|
54
|
-
|
|
55
|
-
) -> Response[RancherCluster]:
|
|
46
|
+
) -> Response[UserChecklistCompletion]:
|
|
56
47
|
"""
|
|
57
48
|
Args:
|
|
58
|
-
|
|
49
|
+
id (int):
|
|
59
50
|
|
|
60
51
|
Raises:
|
|
61
52
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
62
53
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
63
54
|
|
|
64
55
|
Returns:
|
|
65
|
-
Response[
|
|
56
|
+
Response[UserChecklistCompletion]
|
|
66
57
|
"""
|
|
67
58
|
|
|
68
59
|
kwargs = _get_kwargs(
|
|
69
|
-
|
|
60
|
+
id=id,
|
|
70
61
|
)
|
|
71
62
|
|
|
72
63
|
response = client.get_httpx_client().request(
|
|
@@ -77,47 +68,47 @@ def sync_detailed(
|
|
|
77
68
|
|
|
78
69
|
|
|
79
70
|
def sync(
|
|
71
|
+
id: int,
|
|
80
72
|
*,
|
|
81
73
|
client: AuthenticatedClient,
|
|
82
|
-
|
|
83
|
-
) -> RancherCluster:
|
|
74
|
+
) -> UserChecklistCompletion:
|
|
84
75
|
"""
|
|
85
76
|
Args:
|
|
86
|
-
|
|
77
|
+
id (int):
|
|
87
78
|
|
|
88
79
|
Raises:
|
|
89
80
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
90
81
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
91
82
|
|
|
92
83
|
Returns:
|
|
93
|
-
|
|
84
|
+
UserChecklistCompletion
|
|
94
85
|
"""
|
|
95
86
|
|
|
96
87
|
return sync_detailed(
|
|
88
|
+
id=id,
|
|
97
89
|
client=client,
|
|
98
|
-
body=body,
|
|
99
90
|
).parsed
|
|
100
91
|
|
|
101
92
|
|
|
102
93
|
async def asyncio_detailed(
|
|
94
|
+
id: int,
|
|
103
95
|
*,
|
|
104
96
|
client: AuthenticatedClient,
|
|
105
|
-
|
|
106
|
-
) -> Response[RancherCluster]:
|
|
97
|
+
) -> Response[UserChecklistCompletion]:
|
|
107
98
|
"""
|
|
108
99
|
Args:
|
|
109
|
-
|
|
100
|
+
id (int):
|
|
110
101
|
|
|
111
102
|
Raises:
|
|
112
103
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
113
104
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
114
105
|
|
|
115
106
|
Returns:
|
|
116
|
-
Response[
|
|
107
|
+
Response[UserChecklistCompletion]
|
|
117
108
|
"""
|
|
118
109
|
|
|
119
110
|
kwargs = _get_kwargs(
|
|
120
|
-
|
|
111
|
+
id=id,
|
|
121
112
|
)
|
|
122
113
|
|
|
123
114
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -126,25 +117,25 @@ async def asyncio_detailed(
|
|
|
126
117
|
|
|
127
118
|
|
|
128
119
|
async def asyncio(
|
|
120
|
+
id: int,
|
|
129
121
|
*,
|
|
130
122
|
client: AuthenticatedClient,
|
|
131
|
-
|
|
132
|
-
) -> RancherCluster:
|
|
123
|
+
) -> UserChecklistCompletion:
|
|
133
124
|
"""
|
|
134
125
|
Args:
|
|
135
|
-
|
|
126
|
+
id (int):
|
|
136
127
|
|
|
137
128
|
Raises:
|
|
138
129
|
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
139
130
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
140
131
|
|
|
141
132
|
Returns:
|
|
142
|
-
|
|
133
|
+
UserChecklistCompletion
|
|
143
134
|
"""
|
|
144
135
|
|
|
145
136
|
return (
|
|
146
137
|
await asyncio_detailed(
|
|
138
|
+
id=id,
|
|
147
139
|
client=client,
|
|
148
|
-
body=body,
|
|
149
140
|
)
|
|
150
141
|
).parsed
|
|
@@ -15,6 +15,7 @@ from ...types import UNSET, Response, Unset
|
|
|
15
15
|
def _get_kwargs(
|
|
16
16
|
*,
|
|
17
17
|
created: Union[Unset, datetime.datetime] = UNSET,
|
|
18
|
+
has_consent: Union[Unset, bool] = UNSET,
|
|
18
19
|
is_restricted: Union[Unset, bool] = UNSET,
|
|
19
20
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
20
21
|
o: Union[Unset, list[MarketplaceOfferingUsersCountOItem]] = UNSET,
|
|
@@ -37,6 +38,8 @@ def _get_kwargs(
|
|
|
37
38
|
json_created = created.isoformat()
|
|
38
39
|
params["created"] = json_created
|
|
39
40
|
|
|
41
|
+
params["has_consent"] = has_consent
|
|
42
|
+
|
|
40
43
|
params["is_restricted"] = is_restricted
|
|
41
44
|
|
|
42
45
|
json_modified: Union[Unset, str] = UNSET
|
|
@@ -141,6 +144,7 @@ def sync_detailed(
|
|
|
141
144
|
*,
|
|
142
145
|
client: AuthenticatedClient,
|
|
143
146
|
created: Union[Unset, datetime.datetime] = UNSET,
|
|
147
|
+
has_consent: Union[Unset, bool] = UNSET,
|
|
144
148
|
is_restricted: Union[Unset, bool] = UNSET,
|
|
145
149
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
146
150
|
o: Union[Unset, list[MarketplaceOfferingUsersCountOItem]] = UNSET,
|
|
@@ -160,6 +164,7 @@ def sync_detailed(
|
|
|
160
164
|
|
|
161
165
|
Args:
|
|
162
166
|
created (Union[Unset, datetime.datetime]):
|
|
167
|
+
has_consent (Union[Unset, bool]):
|
|
163
168
|
is_restricted (Union[Unset, bool]):
|
|
164
169
|
modified (Union[Unset, datetime.datetime]):
|
|
165
170
|
o (Union[Unset, list[MarketplaceOfferingUsersCountOItem]]):
|
|
@@ -185,6 +190,7 @@ def sync_detailed(
|
|
|
185
190
|
|
|
186
191
|
kwargs = _get_kwargs(
|
|
187
192
|
created=created,
|
|
193
|
+
has_consent=has_consent,
|
|
188
194
|
is_restricted=is_restricted,
|
|
189
195
|
modified=modified,
|
|
190
196
|
o=o,
|
|
@@ -212,6 +218,7 @@ def sync(
|
|
|
212
218
|
*,
|
|
213
219
|
client: AuthenticatedClient,
|
|
214
220
|
created: Union[Unset, datetime.datetime] = UNSET,
|
|
221
|
+
has_consent: Union[Unset, bool] = UNSET,
|
|
215
222
|
is_restricted: Union[Unset, bool] = UNSET,
|
|
216
223
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
217
224
|
o: Union[Unset, list[MarketplaceOfferingUsersCountOItem]] = UNSET,
|
|
@@ -231,6 +238,7 @@ def sync(
|
|
|
231
238
|
|
|
232
239
|
Args:
|
|
233
240
|
created (Union[Unset, datetime.datetime]):
|
|
241
|
+
has_consent (Union[Unset, bool]):
|
|
234
242
|
is_restricted (Union[Unset, bool]):
|
|
235
243
|
modified (Union[Unset, datetime.datetime]):
|
|
236
244
|
o (Union[Unset, list[MarketplaceOfferingUsersCountOItem]]):
|
|
@@ -257,6 +265,7 @@ def sync(
|
|
|
257
265
|
return sync_detailed(
|
|
258
266
|
client=client,
|
|
259
267
|
created=created,
|
|
268
|
+
has_consent=has_consent,
|
|
260
269
|
is_restricted=is_restricted,
|
|
261
270
|
modified=modified,
|
|
262
271
|
o=o,
|
|
@@ -278,6 +287,7 @@ async def asyncio_detailed(
|
|
|
278
287
|
*,
|
|
279
288
|
client: AuthenticatedClient,
|
|
280
289
|
created: Union[Unset, datetime.datetime] = UNSET,
|
|
290
|
+
has_consent: Union[Unset, bool] = UNSET,
|
|
281
291
|
is_restricted: Union[Unset, bool] = UNSET,
|
|
282
292
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
283
293
|
o: Union[Unset, list[MarketplaceOfferingUsersCountOItem]] = UNSET,
|
|
@@ -297,6 +307,7 @@ async def asyncio_detailed(
|
|
|
297
307
|
|
|
298
308
|
Args:
|
|
299
309
|
created (Union[Unset, datetime.datetime]):
|
|
310
|
+
has_consent (Union[Unset, bool]):
|
|
300
311
|
is_restricted (Union[Unset, bool]):
|
|
301
312
|
modified (Union[Unset, datetime.datetime]):
|
|
302
313
|
o (Union[Unset, list[MarketplaceOfferingUsersCountOItem]]):
|
|
@@ -322,6 +333,7 @@ async def asyncio_detailed(
|
|
|
322
333
|
|
|
323
334
|
kwargs = _get_kwargs(
|
|
324
335
|
created=created,
|
|
336
|
+
has_consent=has_consent,
|
|
325
337
|
is_restricted=is_restricted,
|
|
326
338
|
modified=modified,
|
|
327
339
|
o=o,
|
|
@@ -347,6 +359,7 @@ async def asyncio(
|
|
|
347
359
|
*,
|
|
348
360
|
client: AuthenticatedClient,
|
|
349
361
|
created: Union[Unset, datetime.datetime] = UNSET,
|
|
362
|
+
has_consent: Union[Unset, bool] = UNSET,
|
|
350
363
|
is_restricted: Union[Unset, bool] = UNSET,
|
|
351
364
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
352
365
|
o: Union[Unset, list[MarketplaceOfferingUsersCountOItem]] = UNSET,
|
|
@@ -366,6 +379,7 @@ async def asyncio(
|
|
|
366
379
|
|
|
367
380
|
Args:
|
|
368
381
|
created (Union[Unset, datetime.datetime]):
|
|
382
|
+
has_consent (Union[Unset, bool]):
|
|
369
383
|
is_restricted (Union[Unset, bool]):
|
|
370
384
|
modified (Union[Unset, datetime.datetime]):
|
|
371
385
|
o (Union[Unset, list[MarketplaceOfferingUsersCountOItem]]):
|
|
@@ -393,6 +407,7 @@ async def asyncio(
|
|
|
393
407
|
await asyncio_detailed(
|
|
394
408
|
client=client,
|
|
395
409
|
created=created,
|
|
410
|
+
has_consent=has_consent,
|
|
396
411
|
is_restricted=is_restricted,
|
|
397
412
|
modified=modified,
|
|
398
413
|
o=o,
|
|
@@ -18,6 +18,7 @@ def _get_kwargs(
|
|
|
18
18
|
*,
|
|
19
19
|
created: Union[Unset, datetime.datetime] = UNSET,
|
|
20
20
|
field: Union[Unset, list[MarketplaceOfferingUsersListFieldItem]] = UNSET,
|
|
21
|
+
has_consent: Union[Unset, bool] = UNSET,
|
|
21
22
|
is_restricted: Union[Unset, bool] = UNSET,
|
|
22
23
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
23
24
|
o: Union[Unset, list[MarketplaceOfferingUsersListOItem]] = UNSET,
|
|
@@ -49,6 +50,8 @@ def _get_kwargs(
|
|
|
49
50
|
|
|
50
51
|
params["field"] = json_field
|
|
51
52
|
|
|
53
|
+
params["has_consent"] = has_consent
|
|
54
|
+
|
|
52
55
|
params["is_restricted"] = is_restricted
|
|
53
56
|
|
|
54
57
|
json_modified: Union[Unset, str] = UNSET
|
|
@@ -154,6 +157,7 @@ def sync_detailed(
|
|
|
154
157
|
client: AuthenticatedClient,
|
|
155
158
|
created: Union[Unset, datetime.datetime] = UNSET,
|
|
156
159
|
field: Union[Unset, list[MarketplaceOfferingUsersListFieldItem]] = UNSET,
|
|
160
|
+
has_consent: Union[Unset, bool] = UNSET,
|
|
157
161
|
is_restricted: Union[Unset, bool] = UNSET,
|
|
158
162
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
159
163
|
o: Union[Unset, list[MarketplaceOfferingUsersListOItem]] = UNSET,
|
|
@@ -174,6 +178,7 @@ def sync_detailed(
|
|
|
174
178
|
Args:
|
|
175
179
|
created (Union[Unset, datetime.datetime]):
|
|
176
180
|
field (Union[Unset, list[MarketplaceOfferingUsersListFieldItem]]):
|
|
181
|
+
has_consent (Union[Unset, bool]):
|
|
177
182
|
is_restricted (Union[Unset, bool]):
|
|
178
183
|
modified (Union[Unset, datetime.datetime]):
|
|
179
184
|
o (Union[Unset, list[MarketplaceOfferingUsersListOItem]]):
|
|
@@ -200,6 +205,7 @@ def sync_detailed(
|
|
|
200
205
|
kwargs = _get_kwargs(
|
|
201
206
|
created=created,
|
|
202
207
|
field=field,
|
|
208
|
+
has_consent=has_consent,
|
|
203
209
|
is_restricted=is_restricted,
|
|
204
210
|
modified=modified,
|
|
205
211
|
o=o,
|
|
@@ -228,6 +234,7 @@ def sync(
|
|
|
228
234
|
client: AuthenticatedClient,
|
|
229
235
|
created: Union[Unset, datetime.datetime] = UNSET,
|
|
230
236
|
field: Union[Unset, list[MarketplaceOfferingUsersListFieldItem]] = UNSET,
|
|
237
|
+
has_consent: Union[Unset, bool] = UNSET,
|
|
231
238
|
is_restricted: Union[Unset, bool] = UNSET,
|
|
232
239
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
233
240
|
o: Union[Unset, list[MarketplaceOfferingUsersListOItem]] = UNSET,
|
|
@@ -248,6 +255,7 @@ def sync(
|
|
|
248
255
|
Args:
|
|
249
256
|
created (Union[Unset, datetime.datetime]):
|
|
250
257
|
field (Union[Unset, list[MarketplaceOfferingUsersListFieldItem]]):
|
|
258
|
+
has_consent (Union[Unset, bool]):
|
|
251
259
|
is_restricted (Union[Unset, bool]):
|
|
252
260
|
modified (Union[Unset, datetime.datetime]):
|
|
253
261
|
o (Union[Unset, list[MarketplaceOfferingUsersListOItem]]):
|
|
@@ -275,6 +283,7 @@ def sync(
|
|
|
275
283
|
client=client,
|
|
276
284
|
created=created,
|
|
277
285
|
field=field,
|
|
286
|
+
has_consent=has_consent,
|
|
278
287
|
is_restricted=is_restricted,
|
|
279
288
|
modified=modified,
|
|
280
289
|
o=o,
|
|
@@ -297,6 +306,7 @@ async def asyncio_detailed(
|
|
|
297
306
|
client: AuthenticatedClient,
|
|
298
307
|
created: Union[Unset, datetime.datetime] = UNSET,
|
|
299
308
|
field: Union[Unset, list[MarketplaceOfferingUsersListFieldItem]] = UNSET,
|
|
309
|
+
has_consent: Union[Unset, bool] = UNSET,
|
|
300
310
|
is_restricted: Union[Unset, bool] = UNSET,
|
|
301
311
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
302
312
|
o: Union[Unset, list[MarketplaceOfferingUsersListOItem]] = UNSET,
|
|
@@ -317,6 +327,7 @@ async def asyncio_detailed(
|
|
|
317
327
|
Args:
|
|
318
328
|
created (Union[Unset, datetime.datetime]):
|
|
319
329
|
field (Union[Unset, list[MarketplaceOfferingUsersListFieldItem]]):
|
|
330
|
+
has_consent (Union[Unset, bool]):
|
|
320
331
|
is_restricted (Union[Unset, bool]):
|
|
321
332
|
modified (Union[Unset, datetime.datetime]):
|
|
322
333
|
o (Union[Unset, list[MarketplaceOfferingUsersListOItem]]):
|
|
@@ -343,6 +354,7 @@ async def asyncio_detailed(
|
|
|
343
354
|
kwargs = _get_kwargs(
|
|
344
355
|
created=created,
|
|
345
356
|
field=field,
|
|
357
|
+
has_consent=has_consent,
|
|
346
358
|
is_restricted=is_restricted,
|
|
347
359
|
modified=modified,
|
|
348
360
|
o=o,
|
|
@@ -369,6 +381,7 @@ async def asyncio(
|
|
|
369
381
|
client: AuthenticatedClient,
|
|
370
382
|
created: Union[Unset, datetime.datetime] = UNSET,
|
|
371
383
|
field: Union[Unset, list[MarketplaceOfferingUsersListFieldItem]] = UNSET,
|
|
384
|
+
has_consent: Union[Unset, bool] = UNSET,
|
|
372
385
|
is_restricted: Union[Unset, bool] = UNSET,
|
|
373
386
|
modified: Union[Unset, datetime.datetime] = UNSET,
|
|
374
387
|
o: Union[Unset, list[MarketplaceOfferingUsersListOItem]] = UNSET,
|
|
@@ -389,6 +402,7 @@ async def asyncio(
|
|
|
389
402
|
Args:
|
|
390
403
|
created (Union[Unset, datetime.datetime]):
|
|
391
404
|
field (Union[Unset, list[MarketplaceOfferingUsersListFieldItem]]):
|
|
405
|
+
has_consent (Union[Unset, bool]):
|
|
392
406
|
is_restricted (Union[Unset, bool]):
|
|
393
407
|
modified (Union[Unset, datetime.datetime]):
|
|
394
408
|
o (Union[Unset, list[MarketplaceOfferingUsersListOItem]]):
|
|
@@ -417,6 +431,7 @@ async def asyncio(
|
|
|
417
431
|
client=client,
|
|
418
432
|
created=created,
|
|
419
433
|
field=field,
|
|
434
|
+
has_consent=has_consent,
|
|
420
435
|
is_restricted=is_restricted,
|
|
421
436
|
modified=modified,
|
|
422
437
|
o=o,
|
|
@@ -13,8 +13,8 @@ def _get_kwargs(
|
|
|
13
13
|
uuid: UUID,
|
|
14
14
|
) -> dict[str, Any]:
|
|
15
15
|
_kwargs: dict[str, Any] = {
|
|
16
|
-
"method": "
|
|
17
|
-
"url": f"/api/
|
|
16
|
+
"method": "post",
|
|
17
|
+
"url": f"/api/marketplace-orders/{uuid}/delete_attachment/",
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
return _kwargs
|
|
@@ -40,7 +40,8 @@ def sync_detailed(
|
|
|
40
40
|
*,
|
|
41
41
|
client: AuthenticatedClient,
|
|
42
42
|
) -> Response[Any]:
|
|
43
|
-
"""
|
|
43
|
+
"""Delete the attachment from a pending order.
|
|
44
|
+
|
|
44
45
|
Args:
|
|
45
46
|
uuid (UUID):
|
|
46
47
|
|
|
@@ -68,7 +69,8 @@ async def asyncio_detailed(
|
|
|
68
69
|
*,
|
|
69
70
|
client: AuthenticatedClient,
|
|
70
71
|
) -> Response[Any]:
|
|
71
|
-
"""
|
|
72
|
+
"""Delete the attachment from a pending order.
|
|
73
|
+
|
|
72
74
|
Args:
|
|
73
75
|
uuid (UUID):
|
|
74
76
|
|
|
@@ -0,0 +1,168 @@
|
|
|
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.order_attachment import OrderAttachment
|
|
10
|
+
from ...models.order_attachment_request import OrderAttachmentRequest
|
|
11
|
+
from ...types import Response
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_kwargs(
|
|
15
|
+
uuid: UUID,
|
|
16
|
+
*,
|
|
17
|
+
body: OrderAttachmentRequest,
|
|
18
|
+
) -> dict[str, Any]:
|
|
19
|
+
headers: dict[str, Any] = {}
|
|
20
|
+
|
|
21
|
+
_kwargs: dict[str, Any] = {
|
|
22
|
+
"method": "post",
|
|
23
|
+
"url": f"/api/marketplace-orders/{uuid}/update_attachment/",
|
|
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) -> OrderAttachment:
|
|
35
|
+
if response.status_code == 200:
|
|
36
|
+
response_200 = OrderAttachment.from_dict(response.json())
|
|
37
|
+
|
|
38
|
+
return response_200
|
|
39
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def _build_response(
|
|
43
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
44
|
+
) -> Response[OrderAttachment]:
|
|
45
|
+
return Response(
|
|
46
|
+
status_code=HTTPStatus(response.status_code),
|
|
47
|
+
content=response.content,
|
|
48
|
+
headers=response.headers,
|
|
49
|
+
parsed=_parse_response(client=client, response=response),
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
def sync_detailed(
|
|
54
|
+
uuid: UUID,
|
|
55
|
+
*,
|
|
56
|
+
client: AuthenticatedClient,
|
|
57
|
+
body: OrderAttachmentRequest,
|
|
58
|
+
) -> Response[OrderAttachment]:
|
|
59
|
+
"""Update the attachment for a pending order.
|
|
60
|
+
|
|
61
|
+
Args:
|
|
62
|
+
uuid (UUID):
|
|
63
|
+
body (OrderAttachmentRequest):
|
|
64
|
+
|
|
65
|
+
Raises:
|
|
66
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
67
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
68
|
+
|
|
69
|
+
Returns:
|
|
70
|
+
Response[OrderAttachment]
|
|
71
|
+
"""
|
|
72
|
+
|
|
73
|
+
kwargs = _get_kwargs(
|
|
74
|
+
uuid=uuid,
|
|
75
|
+
body=body,
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
response = client.get_httpx_client().request(
|
|
79
|
+
**kwargs,
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
return _build_response(client=client, response=response)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def sync(
|
|
86
|
+
uuid: UUID,
|
|
87
|
+
*,
|
|
88
|
+
client: AuthenticatedClient,
|
|
89
|
+
body: OrderAttachmentRequest,
|
|
90
|
+
) -> OrderAttachment:
|
|
91
|
+
"""Update the attachment for a pending order.
|
|
92
|
+
|
|
93
|
+
Args:
|
|
94
|
+
uuid (UUID):
|
|
95
|
+
body (OrderAttachmentRequest):
|
|
96
|
+
|
|
97
|
+
Raises:
|
|
98
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
99
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
100
|
+
|
|
101
|
+
Returns:
|
|
102
|
+
OrderAttachment
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
return sync_detailed(
|
|
106
|
+
uuid=uuid,
|
|
107
|
+
client=client,
|
|
108
|
+
body=body,
|
|
109
|
+
).parsed
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
async def asyncio_detailed(
|
|
113
|
+
uuid: UUID,
|
|
114
|
+
*,
|
|
115
|
+
client: AuthenticatedClient,
|
|
116
|
+
body: OrderAttachmentRequest,
|
|
117
|
+
) -> Response[OrderAttachment]:
|
|
118
|
+
"""Update the attachment for a pending order.
|
|
119
|
+
|
|
120
|
+
Args:
|
|
121
|
+
uuid (UUID):
|
|
122
|
+
body (OrderAttachmentRequest):
|
|
123
|
+
|
|
124
|
+
Raises:
|
|
125
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
126
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
127
|
+
|
|
128
|
+
Returns:
|
|
129
|
+
Response[OrderAttachment]
|
|
130
|
+
"""
|
|
131
|
+
|
|
132
|
+
kwargs = _get_kwargs(
|
|
133
|
+
uuid=uuid,
|
|
134
|
+
body=body,
|
|
135
|
+
)
|
|
136
|
+
|
|
137
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
138
|
+
|
|
139
|
+
return _build_response(client=client, response=response)
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
async def asyncio(
|
|
143
|
+
uuid: UUID,
|
|
144
|
+
*,
|
|
145
|
+
client: AuthenticatedClient,
|
|
146
|
+
body: OrderAttachmentRequest,
|
|
147
|
+
) -> OrderAttachment:
|
|
148
|
+
"""Update the attachment for a pending order.
|
|
149
|
+
|
|
150
|
+
Args:
|
|
151
|
+
uuid (UUID):
|
|
152
|
+
body (OrderAttachmentRequest):
|
|
153
|
+
|
|
154
|
+
Raises:
|
|
155
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
156
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
157
|
+
|
|
158
|
+
Returns:
|
|
159
|
+
OrderAttachment
|
|
160
|
+
"""
|
|
161
|
+
|
|
162
|
+
return (
|
|
163
|
+
await asyncio_detailed(
|
|
164
|
+
uuid=uuid,
|
|
165
|
+
client=client,
|
|
166
|
+
body=body,
|
|
167
|
+
)
|
|
168
|
+
).parsed
|
|
@@ -51,6 +51,7 @@ def _get_kwargs(
|
|
|
51
51
|
start: Union[Unset, str] = UNSET,
|
|
52
52
|
state: Union[Unset, list[MarketplaceProviderOfferingsComponentStatsListStateItem]] = UNSET,
|
|
53
53
|
type_: Union[Unset, list[str]] = UNSET,
|
|
54
|
+
user_has_consent: Union[Unset, bool] = UNSET,
|
|
54
55
|
uuid_list: Union[Unset, str] = UNSET,
|
|
55
56
|
) -> dict[str, Any]:
|
|
56
57
|
params: dict[str, Any] = {}
|
|
@@ -175,6 +176,8 @@ def _get_kwargs(
|
|
|
175
176
|
|
|
176
177
|
params["type"] = json_type_
|
|
177
178
|
|
|
179
|
+
params["user_has_consent"] = user_has_consent
|
|
180
|
+
|
|
178
181
|
params["uuid_list"] = uuid_list
|
|
179
182
|
|
|
180
183
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
@@ -249,6 +252,7 @@ def sync_detailed(
|
|
|
249
252
|
start: Union[Unset, str] = UNSET,
|
|
250
253
|
state: Union[Unset, list[MarketplaceProviderOfferingsComponentStatsListStateItem]] = UNSET,
|
|
251
254
|
type_: Union[Unset, list[str]] = UNSET,
|
|
255
|
+
user_has_consent: Union[Unset, bool] = UNSET,
|
|
252
256
|
uuid_list: Union[Unset, str] = UNSET,
|
|
253
257
|
) -> Response[list["OfferingComponentStat"]]:
|
|
254
258
|
"""Get statistics for offering components.
|
|
@@ -286,6 +290,7 @@ def sync_detailed(
|
|
|
286
290
|
start (Union[Unset, str]):
|
|
287
291
|
state (Union[Unset, list[MarketplaceProviderOfferingsComponentStatsListStateItem]]):
|
|
288
292
|
type_ (Union[Unset, list[str]]):
|
|
293
|
+
user_has_consent (Union[Unset, bool]):
|
|
289
294
|
uuid_list (Union[Unset, str]):
|
|
290
295
|
|
|
291
296
|
Raises:
|
|
@@ -329,6 +334,7 @@ def sync_detailed(
|
|
|
329
334
|
start=start,
|
|
330
335
|
state=state,
|
|
331
336
|
type_=type_,
|
|
337
|
+
user_has_consent=user_has_consent,
|
|
332
338
|
uuid_list=uuid_list,
|
|
333
339
|
)
|
|
334
340
|
|
|
@@ -374,6 +380,7 @@ def sync(
|
|
|
374
380
|
start: Union[Unset, str] = UNSET,
|
|
375
381
|
state: Union[Unset, list[MarketplaceProviderOfferingsComponentStatsListStateItem]] = UNSET,
|
|
376
382
|
type_: Union[Unset, list[str]] = UNSET,
|
|
383
|
+
user_has_consent: Union[Unset, bool] = UNSET,
|
|
377
384
|
uuid_list: Union[Unset, str] = UNSET,
|
|
378
385
|
) -> list["OfferingComponentStat"]:
|
|
379
386
|
"""Get statistics for offering components.
|
|
@@ -411,6 +418,7 @@ def sync(
|
|
|
411
418
|
start (Union[Unset, str]):
|
|
412
419
|
state (Union[Unset, list[MarketplaceProviderOfferingsComponentStatsListStateItem]]):
|
|
413
420
|
type_ (Union[Unset, list[str]]):
|
|
421
|
+
user_has_consent (Union[Unset, bool]):
|
|
414
422
|
uuid_list (Union[Unset, str]):
|
|
415
423
|
|
|
416
424
|
Raises:
|
|
@@ -455,6 +463,7 @@ def sync(
|
|
|
455
463
|
start=start,
|
|
456
464
|
state=state,
|
|
457
465
|
type_=type_,
|
|
466
|
+
user_has_consent=user_has_consent,
|
|
458
467
|
uuid_list=uuid_list,
|
|
459
468
|
).parsed
|
|
460
469
|
|
|
@@ -494,6 +503,7 @@ async def asyncio_detailed(
|
|
|
494
503
|
start: Union[Unset, str] = UNSET,
|
|
495
504
|
state: Union[Unset, list[MarketplaceProviderOfferingsComponentStatsListStateItem]] = UNSET,
|
|
496
505
|
type_: Union[Unset, list[str]] = UNSET,
|
|
506
|
+
user_has_consent: Union[Unset, bool] = UNSET,
|
|
497
507
|
uuid_list: Union[Unset, str] = UNSET,
|
|
498
508
|
) -> Response[list["OfferingComponentStat"]]:
|
|
499
509
|
"""Get statistics for offering components.
|
|
@@ -531,6 +541,7 @@ async def asyncio_detailed(
|
|
|
531
541
|
start (Union[Unset, str]):
|
|
532
542
|
state (Union[Unset, list[MarketplaceProviderOfferingsComponentStatsListStateItem]]):
|
|
533
543
|
type_ (Union[Unset, list[str]]):
|
|
544
|
+
user_has_consent (Union[Unset, bool]):
|
|
534
545
|
uuid_list (Union[Unset, str]):
|
|
535
546
|
|
|
536
547
|
Raises:
|
|
@@ -574,6 +585,7 @@ async def asyncio_detailed(
|
|
|
574
585
|
start=start,
|
|
575
586
|
state=state,
|
|
576
587
|
type_=type_,
|
|
588
|
+
user_has_consent=user_has_consent,
|
|
577
589
|
uuid_list=uuid_list,
|
|
578
590
|
)
|
|
579
591
|
|
|
@@ -617,6 +629,7 @@ async def asyncio(
|
|
|
617
629
|
start: Union[Unset, str] = UNSET,
|
|
618
630
|
state: Union[Unset, list[MarketplaceProviderOfferingsComponentStatsListStateItem]] = UNSET,
|
|
619
631
|
type_: Union[Unset, list[str]] = UNSET,
|
|
632
|
+
user_has_consent: Union[Unset, bool] = UNSET,
|
|
620
633
|
uuid_list: Union[Unset, str] = UNSET,
|
|
621
634
|
) -> list["OfferingComponentStat"]:
|
|
622
635
|
"""Get statistics for offering components.
|
|
@@ -654,6 +667,7 @@ async def asyncio(
|
|
|
654
667
|
start (Union[Unset, str]):
|
|
655
668
|
state (Union[Unset, list[MarketplaceProviderOfferingsComponentStatsListStateItem]]):
|
|
656
669
|
type_ (Union[Unset, list[str]]):
|
|
670
|
+
user_has_consent (Union[Unset, bool]):
|
|
657
671
|
uuid_list (Union[Unset, str]):
|
|
658
672
|
|
|
659
673
|
Raises:
|
|
@@ -699,6 +713,7 @@ async def asyncio(
|
|
|
699
713
|
start=start,
|
|
700
714
|
state=state,
|
|
701
715
|
type_=type_,
|
|
716
|
+
user_has_consent=user_has_consent,
|
|
702
717
|
uuid_list=uuid_list,
|
|
703
718
|
)
|
|
704
719
|
).parsed
|