waldur-api-client 7.7.9__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 (70) 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 +15 -0
  6. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_costs_list.py +15 -0
  7. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_count.py +15 -0
  8. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_customers_list.py +15 -0
  9. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_groups_count.py +15 -0
  10. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_groups_list.py +15 -0
  11. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_list.py +15 -0
  12. waldur_api_client/api/marketplace_public_offerings/marketplace_public_offerings_count.py +15 -0
  13. waldur_api_client/api/marketplace_public_offerings/marketplace_public_offerings_list.py +15 -0
  14. waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_offerings_list.py +15 -0
  15. waldur_api_client/models/__init__.py +8 -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/country_enum.py +211 -0
  19. waldur_api_client/models/customer_request.py +9 -0
  20. waldur_api_client/models/deployment_mode_enum.py +9 -0
  21. waldur_api_client/models/identity_provider.py +57 -0
  22. waldur_api_client/models/identity_provider_request.py +57 -0
  23. waldur_api_client/models/issue.py +8 -17
  24. waldur_api_client/models/issue_request.py +8 -17
  25. waldur_api_client/models/issue_type_enum.py +4 -4
  26. waldur_api_client/models/marketplace_offering_users_list_field_item.py +2 -0
  27. waldur_api_client/models/marketplace_offering_users_retrieve_field_item.py +2 -0
  28. waldur_api_client/models/marketplace_orders_list_field_item.py +2 -0
  29. waldur_api_client/models/marketplace_orders_retrieve_field_item.py +2 -0
  30. waldur_api_client/models/marketplace_public_offerings_list_field_item.py +1 -0
  31. waldur_api_client/models/marketplace_public_offerings_retrieve_field_item.py +1 -0
  32. waldur_api_client/models/merged_plugin_options.py +27 -0
  33. waldur_api_client/models/merged_plugin_options_request.py +27 -0
  34. waldur_api_client/models/offering.py +9 -0
  35. waldur_api_client/models/offering_create.py +9 -8
  36. waldur_api_client/models/offering_create_request.py +9 -0
  37. waldur_api_client/models/offering_overview_update_request.py +9 -0
  38. waldur_api_client/models/offering_terms_of_service.py +42 -1
  39. waldur_api_client/models/offering_user.py +18 -0
  40. waldur_api_client/models/open_stack_tenant_create_order_attributes.py +0 -18
  41. waldur_api_client/models/open_stack_tenant_request.py +18 -0
  42. waldur_api_client/models/order_attachment.py +71 -0
  43. waldur_api_client/models/order_attachment_request.py +84 -0
  44. waldur_api_client/models/order_create.py +58 -16
  45. waldur_api_client/models/order_create_request.py +44 -62
  46. waldur_api_client/models/order_details.py +65 -16
  47. waldur_api_client/models/patched_customer_request.py +9 -0
  48. waldur_api_client/models/patched_identity_provider_request.py +58 -0
  49. waldur_api_client/models/patched_project_request.py +9 -0
  50. waldur_api_client/models/patched_protected_call_request.py +9 -0
  51. waldur_api_client/models/patched_protected_round_request.py +2 -2
  52. waldur_api_client/models/patched_service_provider_request.py +9 -0
  53. waldur_api_client/models/patched_user_request.py +9 -0
  54. waldur_api_client/models/project_request.py +9 -0
  55. waldur_api_client/models/protected_call_request.py +9 -0
  56. waldur_api_client/models/protected_round.py +2 -2
  57. waldur_api_client/models/protected_round_request.py +2 -2
  58. waldur_api_client/models/provider_offering_details_request.py +9 -0
  59. waldur_api_client/models/public_offering_details.py +9 -0
  60. waldur_api_client/models/rancher_cluster_request.py +1 -48
  61. waldur_api_client/models/resource_update_limits_request.py +56 -1
  62. waldur_api_client/models/service_provider_request.py +9 -0
  63. waldur_api_client/models/user_consent_info.py +86 -0
  64. waldur_api_client/models/user_request.py +9 -0
  65. {waldur_api_client-7.7.9.dist-info → waldur_api_client-7.8.0.dist-info}/METADATA +4 -2
  66. {waldur_api_client-7.7.9.dist-info → waldur_api_client-7.8.0.dist-info}/RECORD +68 -66
  67. {waldur_api_client-7.7.9.dist-info → waldur_api_client-7.8.0.dist-info}/WHEEL +1 -1
  68. waldur_api_client/models/marketplace_managed_rancher_create_order_attributes.py +0 -144
  69. waldur_api_client/models/marketplace_rancher_create_order_attributes.py +0 -145
  70. {waldur_api_client-7.7.9.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
  )
@@ -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
@@ -50,6 +50,7 @@ def _get_kwargs(
50
50
  start: Union[Unset, str] = UNSET,
51
51
  state: Union[Unset, list[MarketplaceProviderOfferingsCostsListStateItem]] = UNSET,
52
52
  type_: Union[Unset, list[str]] = UNSET,
53
+ user_has_consent: Union[Unset, bool] = UNSET,
53
54
  uuid_list: Union[Unset, str] = UNSET,
54
55
  ) -> dict[str, Any]:
55
56
  params: dict[str, Any] = {}
@@ -176,6 +177,8 @@ def _get_kwargs(
176
177
 
177
178
  params["type"] = json_type_
178
179
 
180
+ params["user_has_consent"] = user_has_consent
181
+
179
182
  params["uuid_list"] = uuid_list
180
183
 
181
184
  params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
@@ -251,6 +254,7 @@ def sync_detailed(
251
254
  start: Union[Unset, str] = UNSET,
252
255
  state: Union[Unset, list[MarketplaceProviderOfferingsCostsListStateItem]] = UNSET,
253
256
  type_: Union[Unset, list[str]] = UNSET,
257
+ user_has_consent: Union[Unset, bool] = UNSET,
254
258
  uuid_list: Union[Unset, str] = UNSET,
255
259
  ) -> Response[list["ProviderOfferingCosts"]]:
256
260
  """Get costs for offering.
@@ -289,6 +293,7 @@ def sync_detailed(
289
293
  start (Union[Unset, str]):
290
294
  state (Union[Unset, list[MarketplaceProviderOfferingsCostsListStateItem]]):
291
295
  type_ (Union[Unset, list[str]]):
296
+ user_has_consent (Union[Unset, bool]):
292
297
  uuid_list (Union[Unset, str]):
293
298
 
294
299
  Raises:
@@ -333,6 +338,7 @@ def sync_detailed(
333
338
  start=start,
334
339
  state=state,
335
340
  type_=type_,
341
+ user_has_consent=user_has_consent,
336
342
  uuid_list=uuid_list,
337
343
  )
338
344
 
@@ -379,6 +385,7 @@ def sync(
379
385
  start: Union[Unset, str] = UNSET,
380
386
  state: Union[Unset, list[MarketplaceProviderOfferingsCostsListStateItem]] = UNSET,
381
387
  type_: Union[Unset, list[str]] = UNSET,
388
+ user_has_consent: Union[Unset, bool] = UNSET,
382
389
  uuid_list: Union[Unset, str] = UNSET,
383
390
  ) -> list["ProviderOfferingCosts"]:
384
391
  """Get costs for offering.
@@ -417,6 +424,7 @@ def sync(
417
424
  start (Union[Unset, str]):
418
425
  state (Union[Unset, list[MarketplaceProviderOfferingsCostsListStateItem]]):
419
426
  type_ (Union[Unset, list[str]]):
427
+ user_has_consent (Union[Unset, bool]):
420
428
  uuid_list (Union[Unset, str]):
421
429
 
422
430
  Raises:
@@ -462,6 +470,7 @@ def sync(
462
470
  start=start,
463
471
  state=state,
464
472
  type_=type_,
473
+ user_has_consent=user_has_consent,
465
474
  uuid_list=uuid_list,
466
475
  ).parsed
467
476
 
@@ -502,6 +511,7 @@ async def asyncio_detailed(
502
511
  start: Union[Unset, str] = UNSET,
503
512
  state: Union[Unset, list[MarketplaceProviderOfferingsCostsListStateItem]] = UNSET,
504
513
  type_: Union[Unset, list[str]] = UNSET,
514
+ user_has_consent: Union[Unset, bool] = UNSET,
505
515
  uuid_list: Union[Unset, str] = UNSET,
506
516
  ) -> Response[list["ProviderOfferingCosts"]]:
507
517
  """Get costs for offering.
@@ -540,6 +550,7 @@ async def asyncio_detailed(
540
550
  start (Union[Unset, str]):
541
551
  state (Union[Unset, list[MarketplaceProviderOfferingsCostsListStateItem]]):
542
552
  type_ (Union[Unset, list[str]]):
553
+ user_has_consent (Union[Unset, bool]):
543
554
  uuid_list (Union[Unset, str]):
544
555
 
545
556
  Raises:
@@ -584,6 +595,7 @@ async def asyncio_detailed(
584
595
  start=start,
585
596
  state=state,
586
597
  type_=type_,
598
+ user_has_consent=user_has_consent,
587
599
  uuid_list=uuid_list,
588
600
  )
589
601
 
@@ -628,6 +640,7 @@ async def asyncio(
628
640
  start: Union[Unset, str] = UNSET,
629
641
  state: Union[Unset, list[MarketplaceProviderOfferingsCostsListStateItem]] = UNSET,
630
642
  type_: Union[Unset, list[str]] = UNSET,
643
+ user_has_consent: Union[Unset, bool] = UNSET,
631
644
  uuid_list: Union[Unset, str] = UNSET,
632
645
  ) -> list["ProviderOfferingCosts"]:
633
646
  """Get costs for offering.
@@ -666,6 +679,7 @@ async def asyncio(
666
679
  start (Union[Unset, str]):
667
680
  state (Union[Unset, list[MarketplaceProviderOfferingsCostsListStateItem]]):
668
681
  type_ (Union[Unset, list[str]]):
682
+ user_has_consent (Union[Unset, bool]):
669
683
  uuid_list (Union[Unset, str]):
670
684
 
671
685
  Raises:
@@ -712,6 +726,7 @@ async def asyncio(
712
726
  start=start,
713
727
  state=state,
714
728
  type_=type_,
729
+ user_has_consent=user_has_consent,
715
730
  uuid_list=uuid_list,
716
731
  )
717
732
  ).parsed