waldur-api-client 7.7.8__py3-none-any.whl → 7.8.0__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.

Files changed (77) hide show
  1. waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_count.py +15 -0
  2. waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_list.py +15 -0
  3. waldur_api_client/api/{rancher_clusters/rancher_clusters_destroy.py → marketplace_orders/marketplace_orders_delete_attachment.py} +6 -4
  4. waldur_api_client/api/{rancher_clusters/rancher_clusters_create.py → marketplace_orders/marketplace_orders_update_attachment.py} +47 -29
  5. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_component_stats_list.py +45 -0
  6. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_costs_list.py +45 -0
  7. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_count.py +45 -0
  8. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_customers_list.py +45 -0
  9. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_groups_count.py +45 -0
  10. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_groups_list.py +45 -0
  11. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_list.py +45 -0
  12. waldur_api_client/api/marketplace_public_offerings/marketplace_public_offerings_count.py +45 -0
  13. waldur_api_client/api/marketplace_public_offerings/marketplace_public_offerings_list.py +45 -0
  14. waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_offerings_list.py +45 -0
  15. waldur_api_client/models/__init__.py +10 -4
  16. waldur_api_client/models/booking_offerings_list_field_item.py +1 -0
  17. waldur_api_client/models/booking_offerings_retrieve_field_item.py +1 -0
  18. waldur_api_client/models/constance_settings.py +9 -0
  19. waldur_api_client/models/constance_settings_request.py +9 -0
  20. waldur_api_client/models/country_enum.py +211 -0
  21. waldur_api_client/models/course_account.py +14 -15
  22. waldur_api_client/models/course_account_request.py +0 -9
  23. waldur_api_client/models/customer_request.py +9 -0
  24. waldur_api_client/models/deployment_mode_enum.py +9 -0
  25. waldur_api_client/models/identity_provider.py +57 -0
  26. waldur_api_client/models/identity_provider_request.py +57 -0
  27. waldur_api_client/models/issue.py +8 -17
  28. waldur_api_client/models/issue_request.py +8 -17
  29. waldur_api_client/models/issue_type_enum.py +4 -4
  30. waldur_api_client/models/marketplace_offering_users_list_field_item.py +2 -0
  31. waldur_api_client/models/marketplace_offering_users_retrieve_field_item.py +2 -0
  32. waldur_api_client/models/marketplace_orders_list_field_item.py +2 -0
  33. waldur_api_client/models/marketplace_orders_retrieve_field_item.py +2 -0
  34. waldur_api_client/models/marketplace_public_offerings_list_field_item.py +1 -0
  35. waldur_api_client/models/marketplace_public_offerings_retrieve_field_item.py +1 -0
  36. waldur_api_client/models/merged_plugin_options.py +27 -0
  37. waldur_api_client/models/merged_plugin_options_request.py +27 -0
  38. waldur_api_client/models/offering.py +9 -0
  39. waldur_api_client/models/offering_create.py +9 -8
  40. waldur_api_client/models/offering_create_request.py +9 -0
  41. waldur_api_client/models/offering_overview_update_request.py +9 -0
  42. waldur_api_client/models/offering_terms_of_service.py +42 -1
  43. waldur_api_client/models/offering_user.py +18 -0
  44. waldur_api_client/models/open_stack_tenant_create_order_attributes.py +0 -18
  45. waldur_api_client/models/open_stack_tenant_request.py +18 -0
  46. waldur_api_client/models/order_attachment.py +71 -0
  47. waldur_api_client/models/order_attachment_request.py +84 -0
  48. waldur_api_client/models/order_create.py +58 -16
  49. waldur_api_client/models/order_create_request.py +44 -62
  50. waldur_api_client/models/order_details.py +65 -16
  51. waldur_api_client/models/patched_customer_request.py +9 -0
  52. waldur_api_client/models/patched_identity_provider_request.py +58 -0
  53. waldur_api_client/models/patched_project_request.py +9 -0
  54. waldur_api_client/models/patched_protected_call_request.py +9 -0
  55. waldur_api_client/models/patched_protected_round_request.py +2 -2
  56. waldur_api_client/models/patched_service_provider_request.py +9 -0
  57. waldur_api_client/models/patched_user_request.py +9 -0
  58. waldur_api_client/models/project_request.py +9 -0
  59. waldur_api_client/models/protected_call_request.py +9 -0
  60. waldur_api_client/models/protected_round.py +2 -2
  61. waldur_api_client/models/protected_round_request.py +2 -2
  62. waldur_api_client/models/provider_offering_details_request.py +9 -0
  63. waldur_api_client/models/public_offering_details.py +9 -0
  64. waldur_api_client/models/rancher_cluster_request.py +1 -48
  65. waldur_api_client/models/resource_update_limits_request.py +56 -1
  66. waldur_api_client/models/robot_account.py +12 -4
  67. waldur_api_client/models/robot_account_details.py +12 -4
  68. waldur_api_client/models/robot_account_states.py +13 -0
  69. waldur_api_client/models/service_provider_request.py +9 -0
  70. waldur_api_client/models/user_consent_info.py +86 -0
  71. waldur_api_client/models/user_request.py +9 -0
  72. {waldur_api_client-7.7.8.dist-info → waldur_api_client-7.8.0.dist-info}/METADATA +4 -2
  73. {waldur_api_client-7.7.8.dist-info → waldur_api_client-7.8.0.dist-info}/RECORD +75 -72
  74. {waldur_api_client-7.7.8.dist-info → waldur_api_client-7.8.0.dist-info}/WHEEL +1 -1
  75. waldur_api_client/models/marketplace_managed_rancher_create_order_attributes.py +0 -144
  76. waldur_api_client/models/marketplace_rancher_create_order_attributes.py +0 -145
  77. {waldur_api_client-7.7.8.dist-info → waldur_api_client-7.8.0.dist-info/licenses}/LICENSE +0 -0
@@ -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": "delete",
17
- "url": f"/api/rancher-clusters/{uuid}/",
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
 
@@ -1,24 +1,26 @@
1
1
  from http import HTTPStatus
2
2
  from typing import Any, Union
3
+ from uuid import UUID
3
4
 
4
5
  import httpx
5
6
 
6
7
  from ... import errors
7
8
  from ...client import AuthenticatedClient, Client
8
- from ...models.rancher_cluster import RancherCluster
9
- from ...models.rancher_cluster_request import RancherClusterRequest
9
+ from ...models.order_attachment import OrderAttachment
10
+ from ...models.order_attachment_request import OrderAttachmentRequest
10
11
  from ...types import Response
11
12
 
12
13
 
13
14
  def _get_kwargs(
15
+ uuid: UUID,
14
16
  *,
15
- body: RancherClusterRequest,
17
+ body: OrderAttachmentRequest,
16
18
  ) -> dict[str, Any]:
17
19
  headers: dict[str, Any] = {}
18
20
 
19
21
  _kwargs: dict[str, Any] = {
20
22
  "method": "post",
21
- "url": "/api/rancher-clusters/",
23
+ "url": f"/api/marketplace-orders/{uuid}/update_attachment/",
22
24
  }
23
25
 
24
26
  _kwargs["json"] = body.to_dict()
@@ -29,17 +31,17 @@ def _get_kwargs(
29
31
  return _kwargs
30
32
 
31
33
 
32
- def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> RancherCluster:
33
- if response.status_code == 201:
34
- response_201 = RancherCluster.from_dict(response.json())
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())
35
37
 
36
- return response_201
38
+ return response_200
37
39
  raise errors.UnexpectedStatus(response.status_code, response.content)
38
40
 
39
41
 
40
42
  def _build_response(
41
43
  *, client: Union[AuthenticatedClient, Client], response: httpx.Response
42
- ) -> Response[RancherCluster]:
44
+ ) -> Response[OrderAttachment]:
43
45
  return Response(
44
46
  status_code=HTTPStatus(response.status_code),
45
47
  content=response.content,
@@ -49,23 +51,27 @@ def _build_response(
49
51
 
50
52
 
51
53
  def sync_detailed(
54
+ uuid: UUID,
52
55
  *,
53
56
  client: AuthenticatedClient,
54
- body: RancherClusterRequest,
55
- ) -> Response[RancherCluster]:
56
- """
57
+ body: OrderAttachmentRequest,
58
+ ) -> Response[OrderAttachment]:
59
+ """Update the attachment for a pending order.
60
+
57
61
  Args:
58
- body (RancherClusterRequest):
62
+ uuid (UUID):
63
+ body (OrderAttachmentRequest):
59
64
 
60
65
  Raises:
61
66
  errors.UnexpectedStatus: If the server returns an undocumented status code.
62
67
  httpx.TimeoutException: If the request takes longer than Client.timeout.
63
68
 
64
69
  Returns:
65
- Response[RancherCluster]
70
+ Response[OrderAttachment]
66
71
  """
67
72
 
68
73
  kwargs = _get_kwargs(
74
+ uuid=uuid,
69
75
  body=body,
70
76
  )
71
77
 
@@ -77,46 +83,54 @@ def sync_detailed(
77
83
 
78
84
 
79
85
  def sync(
86
+ uuid: UUID,
80
87
  *,
81
88
  client: AuthenticatedClient,
82
- body: RancherClusterRequest,
83
- ) -> RancherCluster:
84
- """
89
+ body: OrderAttachmentRequest,
90
+ ) -> OrderAttachment:
91
+ """Update the attachment for a pending order.
92
+
85
93
  Args:
86
- body (RancherClusterRequest):
94
+ uuid (UUID):
95
+ body (OrderAttachmentRequest):
87
96
 
88
97
  Raises:
89
98
  errors.UnexpectedStatus: If the server returns an undocumented status code.
90
99
  httpx.TimeoutException: If the request takes longer than Client.timeout.
91
100
 
92
101
  Returns:
93
- RancherCluster
102
+ OrderAttachment
94
103
  """
95
104
 
96
105
  return sync_detailed(
106
+ uuid=uuid,
97
107
  client=client,
98
108
  body=body,
99
109
  ).parsed
100
110
 
101
111
 
102
112
  async def asyncio_detailed(
113
+ uuid: UUID,
103
114
  *,
104
115
  client: AuthenticatedClient,
105
- body: RancherClusterRequest,
106
- ) -> Response[RancherCluster]:
107
- """
116
+ body: OrderAttachmentRequest,
117
+ ) -> Response[OrderAttachment]:
118
+ """Update the attachment for a pending order.
119
+
108
120
  Args:
109
- body (RancherClusterRequest):
121
+ uuid (UUID):
122
+ body (OrderAttachmentRequest):
110
123
 
111
124
  Raises:
112
125
  errors.UnexpectedStatus: If the server returns an undocumented status code.
113
126
  httpx.TimeoutException: If the request takes longer than Client.timeout.
114
127
 
115
128
  Returns:
116
- Response[RancherCluster]
129
+ Response[OrderAttachment]
117
130
  """
118
131
 
119
132
  kwargs = _get_kwargs(
133
+ uuid=uuid,
120
134
  body=body,
121
135
  )
122
136
 
@@ -126,24 +140,28 @@ async def asyncio_detailed(
126
140
 
127
141
 
128
142
  async def asyncio(
143
+ uuid: UUID,
129
144
  *,
130
145
  client: AuthenticatedClient,
131
- body: RancherClusterRequest,
132
- ) -> RancherCluster:
133
- """
146
+ body: OrderAttachmentRequest,
147
+ ) -> OrderAttachment:
148
+ """Update the attachment for a pending order.
149
+
134
150
  Args:
135
- body (RancherClusterRequest):
151
+ uuid (UUID):
152
+ body (OrderAttachmentRequest):
136
153
 
137
154
  Raises:
138
155
  errors.UnexpectedStatus: If the server returns an undocumented status code.
139
156
  httpx.TimeoutException: If the request takes longer than Client.timeout.
140
157
 
141
158
  Returns:
142
- RancherCluster
159
+ OrderAttachment
143
160
  """
144
161
 
145
162
  return (
146
163
  await asyncio_detailed(
164
+ uuid=uuid,
147
165
  client=client,
148
166
  body=body,
149
167
  )
@@ -31,6 +31,8 @@ def _get_kwargs(
31
31
  customer_uuid: Union[Unset, UUID] = UNSET,
32
32
  description: Union[Unset, str] = UNSET,
33
33
  end: Union[Unset, str] = UNSET,
34
+ has_active_terms_of_service: Union[Unset, bool] = UNSET,
35
+ has_terms_of_service: Union[Unset, bool] = UNSET,
34
36
  keyword: Union[Unset, str] = UNSET,
35
37
  modified: Union[Unset, datetime.datetime] = UNSET,
36
38
  name: Union[Unset, str] = UNSET,
@@ -49,6 +51,7 @@ def _get_kwargs(
49
51
  start: Union[Unset, str] = UNSET,
50
52
  state: Union[Unset, list[MarketplaceProviderOfferingsComponentStatsListStateItem]] = UNSET,
51
53
  type_: Union[Unset, list[str]] = UNSET,
54
+ user_has_consent: Union[Unset, bool] = UNSET,
52
55
  uuid_list: Union[Unset, str] = UNSET,
53
56
  ) -> dict[str, Any]:
54
57
  params: dict[str, Any] = {}
@@ -90,6 +93,10 @@ def _get_kwargs(
90
93
 
91
94
  params["end"] = end
92
95
 
96
+ params["has_active_terms_of_service"] = has_active_terms_of_service
97
+
98
+ params["has_terms_of_service"] = has_terms_of_service
99
+
93
100
  params["keyword"] = keyword
94
101
 
95
102
  json_modified: Union[Unset, str] = UNSET
@@ -169,6 +176,8 @@ def _get_kwargs(
169
176
 
170
177
  params["type"] = json_type_
171
178
 
179
+ params["user_has_consent"] = user_has_consent
180
+
172
181
  params["uuid_list"] = uuid_list
173
182
 
174
183
  params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
@@ -223,6 +232,8 @@ def sync_detailed(
223
232
  customer_uuid: Union[Unset, UUID] = UNSET,
224
233
  description: Union[Unset, str] = UNSET,
225
234
  end: Union[Unset, str] = UNSET,
235
+ has_active_terms_of_service: Union[Unset, bool] = UNSET,
236
+ has_terms_of_service: Union[Unset, bool] = UNSET,
226
237
  keyword: Union[Unset, str] = UNSET,
227
238
  modified: Union[Unset, datetime.datetime] = UNSET,
228
239
  name: Union[Unset, str] = UNSET,
@@ -241,6 +252,7 @@ def sync_detailed(
241
252
  start: Union[Unset, str] = UNSET,
242
253
  state: Union[Unset, list[MarketplaceProviderOfferingsComponentStatsListStateItem]] = UNSET,
243
254
  type_: Union[Unset, list[str]] = UNSET,
255
+ user_has_consent: Union[Unset, bool] = UNSET,
244
256
  uuid_list: Union[Unset, str] = UNSET,
245
257
  ) -> Response[list["OfferingComponentStat"]]:
246
258
  """Get statistics for offering components.
@@ -258,6 +270,8 @@ def sync_detailed(
258
270
  customer_uuid (Union[Unset, UUID]):
259
271
  description (Union[Unset, str]):
260
272
  end (Union[Unset, str]):
273
+ has_active_terms_of_service (Union[Unset, bool]):
274
+ has_terms_of_service (Union[Unset, bool]):
261
275
  keyword (Union[Unset, str]):
262
276
  modified (Union[Unset, datetime.datetime]):
263
277
  name (Union[Unset, str]):
@@ -276,6 +290,7 @@ def sync_detailed(
276
290
  start (Union[Unset, str]):
277
291
  state (Union[Unset, list[MarketplaceProviderOfferingsComponentStatsListStateItem]]):
278
292
  type_ (Union[Unset, list[str]]):
293
+ user_has_consent (Union[Unset, bool]):
279
294
  uuid_list (Union[Unset, str]):
280
295
 
281
296
  Raises:
@@ -299,6 +314,8 @@ def sync_detailed(
299
314
  customer_uuid=customer_uuid,
300
315
  description=description,
301
316
  end=end,
317
+ has_active_terms_of_service=has_active_terms_of_service,
318
+ has_terms_of_service=has_terms_of_service,
302
319
  keyword=keyword,
303
320
  modified=modified,
304
321
  name=name,
@@ -317,6 +334,7 @@ def sync_detailed(
317
334
  start=start,
318
335
  state=state,
319
336
  type_=type_,
337
+ user_has_consent=user_has_consent,
320
338
  uuid_list=uuid_list,
321
339
  )
322
340
 
@@ -342,6 +360,8 @@ def sync(
342
360
  customer_uuid: Union[Unset, UUID] = UNSET,
343
361
  description: Union[Unset, str] = UNSET,
344
362
  end: Union[Unset, str] = UNSET,
363
+ has_active_terms_of_service: Union[Unset, bool] = UNSET,
364
+ has_terms_of_service: Union[Unset, bool] = UNSET,
345
365
  keyword: Union[Unset, str] = UNSET,
346
366
  modified: Union[Unset, datetime.datetime] = UNSET,
347
367
  name: Union[Unset, str] = UNSET,
@@ -360,6 +380,7 @@ def sync(
360
380
  start: Union[Unset, str] = UNSET,
361
381
  state: Union[Unset, list[MarketplaceProviderOfferingsComponentStatsListStateItem]] = UNSET,
362
382
  type_: Union[Unset, list[str]] = UNSET,
383
+ user_has_consent: Union[Unset, bool] = UNSET,
363
384
  uuid_list: Union[Unset, str] = UNSET,
364
385
  ) -> list["OfferingComponentStat"]:
365
386
  """Get statistics for offering components.
@@ -377,6 +398,8 @@ def sync(
377
398
  customer_uuid (Union[Unset, UUID]):
378
399
  description (Union[Unset, str]):
379
400
  end (Union[Unset, str]):
401
+ has_active_terms_of_service (Union[Unset, bool]):
402
+ has_terms_of_service (Union[Unset, bool]):
380
403
  keyword (Union[Unset, str]):
381
404
  modified (Union[Unset, datetime.datetime]):
382
405
  name (Union[Unset, str]):
@@ -395,6 +418,7 @@ def sync(
395
418
  start (Union[Unset, str]):
396
419
  state (Union[Unset, list[MarketplaceProviderOfferingsComponentStatsListStateItem]]):
397
420
  type_ (Union[Unset, list[str]]):
421
+ user_has_consent (Union[Unset, bool]):
398
422
  uuid_list (Union[Unset, str]):
399
423
 
400
424
  Raises:
@@ -419,6 +443,8 @@ def sync(
419
443
  customer_uuid=customer_uuid,
420
444
  description=description,
421
445
  end=end,
446
+ has_active_terms_of_service=has_active_terms_of_service,
447
+ has_terms_of_service=has_terms_of_service,
422
448
  keyword=keyword,
423
449
  modified=modified,
424
450
  name=name,
@@ -437,6 +463,7 @@ def sync(
437
463
  start=start,
438
464
  state=state,
439
465
  type_=type_,
466
+ user_has_consent=user_has_consent,
440
467
  uuid_list=uuid_list,
441
468
  ).parsed
442
469
 
@@ -456,6 +483,8 @@ async def asyncio_detailed(
456
483
  customer_uuid: Union[Unset, UUID] = UNSET,
457
484
  description: Union[Unset, str] = UNSET,
458
485
  end: Union[Unset, str] = UNSET,
486
+ has_active_terms_of_service: Union[Unset, bool] = UNSET,
487
+ has_terms_of_service: Union[Unset, bool] = UNSET,
459
488
  keyword: Union[Unset, str] = UNSET,
460
489
  modified: Union[Unset, datetime.datetime] = UNSET,
461
490
  name: Union[Unset, str] = UNSET,
@@ -474,6 +503,7 @@ async def asyncio_detailed(
474
503
  start: Union[Unset, str] = UNSET,
475
504
  state: Union[Unset, list[MarketplaceProviderOfferingsComponentStatsListStateItem]] = UNSET,
476
505
  type_: Union[Unset, list[str]] = UNSET,
506
+ user_has_consent: Union[Unset, bool] = UNSET,
477
507
  uuid_list: Union[Unset, str] = UNSET,
478
508
  ) -> Response[list["OfferingComponentStat"]]:
479
509
  """Get statistics for offering components.
@@ -491,6 +521,8 @@ async def asyncio_detailed(
491
521
  customer_uuid (Union[Unset, UUID]):
492
522
  description (Union[Unset, str]):
493
523
  end (Union[Unset, str]):
524
+ has_active_terms_of_service (Union[Unset, bool]):
525
+ has_terms_of_service (Union[Unset, bool]):
494
526
  keyword (Union[Unset, str]):
495
527
  modified (Union[Unset, datetime.datetime]):
496
528
  name (Union[Unset, str]):
@@ -509,6 +541,7 @@ async def asyncio_detailed(
509
541
  start (Union[Unset, str]):
510
542
  state (Union[Unset, list[MarketplaceProviderOfferingsComponentStatsListStateItem]]):
511
543
  type_ (Union[Unset, list[str]]):
544
+ user_has_consent (Union[Unset, bool]):
512
545
  uuid_list (Union[Unset, str]):
513
546
 
514
547
  Raises:
@@ -532,6 +565,8 @@ async def asyncio_detailed(
532
565
  customer_uuid=customer_uuid,
533
566
  description=description,
534
567
  end=end,
568
+ has_active_terms_of_service=has_active_terms_of_service,
569
+ has_terms_of_service=has_terms_of_service,
535
570
  keyword=keyword,
536
571
  modified=modified,
537
572
  name=name,
@@ -550,6 +585,7 @@ async def asyncio_detailed(
550
585
  start=start,
551
586
  state=state,
552
587
  type_=type_,
588
+ user_has_consent=user_has_consent,
553
589
  uuid_list=uuid_list,
554
590
  )
555
591
 
@@ -573,6 +609,8 @@ async def asyncio(
573
609
  customer_uuid: Union[Unset, UUID] = UNSET,
574
610
  description: Union[Unset, str] = UNSET,
575
611
  end: Union[Unset, str] = UNSET,
612
+ has_active_terms_of_service: Union[Unset, bool] = UNSET,
613
+ has_terms_of_service: Union[Unset, bool] = UNSET,
576
614
  keyword: Union[Unset, str] = UNSET,
577
615
  modified: Union[Unset, datetime.datetime] = UNSET,
578
616
  name: Union[Unset, str] = UNSET,
@@ -591,6 +629,7 @@ async def asyncio(
591
629
  start: Union[Unset, str] = UNSET,
592
630
  state: Union[Unset, list[MarketplaceProviderOfferingsComponentStatsListStateItem]] = UNSET,
593
631
  type_: Union[Unset, list[str]] = UNSET,
632
+ user_has_consent: Union[Unset, bool] = UNSET,
594
633
  uuid_list: Union[Unset, str] = UNSET,
595
634
  ) -> list["OfferingComponentStat"]:
596
635
  """Get statistics for offering components.
@@ -608,6 +647,8 @@ async def asyncio(
608
647
  customer_uuid (Union[Unset, UUID]):
609
648
  description (Union[Unset, str]):
610
649
  end (Union[Unset, str]):
650
+ has_active_terms_of_service (Union[Unset, bool]):
651
+ has_terms_of_service (Union[Unset, bool]):
611
652
  keyword (Union[Unset, str]):
612
653
  modified (Union[Unset, datetime.datetime]):
613
654
  name (Union[Unset, str]):
@@ -626,6 +667,7 @@ async def asyncio(
626
667
  start (Union[Unset, str]):
627
668
  state (Union[Unset, list[MarketplaceProviderOfferingsComponentStatsListStateItem]]):
628
669
  type_ (Union[Unset, list[str]]):
670
+ user_has_consent (Union[Unset, bool]):
629
671
  uuid_list (Union[Unset, str]):
630
672
 
631
673
  Raises:
@@ -651,6 +693,8 @@ async def asyncio(
651
693
  customer_uuid=customer_uuid,
652
694
  description=description,
653
695
  end=end,
696
+ has_active_terms_of_service=has_active_terms_of_service,
697
+ has_terms_of_service=has_terms_of_service,
654
698
  keyword=keyword,
655
699
  modified=modified,
656
700
  name=name,
@@ -669,6 +713,7 @@ async def asyncio(
669
713
  start=start,
670
714
  state=state,
671
715
  type_=type_,
716
+ user_has_consent=user_has_consent,
672
717
  uuid_list=uuid_list,
673
718
  )
674
719
  ).parsed