waldur-api-client 7.8.3__py3-none-any.whl → 7.8.4__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 (118) hide show
  1. waldur_api_client/api/booking_resources/booking_resources_count.py +18 -0
  2. waldur_api_client/api/booking_resources/booking_resources_list.py +18 -0
  3. waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_checklist_template_count.py +125 -0
  4. waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_checklist_template_retrieve.py +126 -0
  5. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_tos_stats_retrieve.py +146 -0
  6. waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_count.py +18 -0
  7. waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_list.py +18 -0
  8. waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_update_options.py +168 -0
  9. waldur_api_client/api/marketplace_resources/marketplace_resources_count.py +18 -0
  10. waldur_api_client/api/marketplace_resources/marketplace_resources_list.py +18 -0
  11. waldur_api_client/api/marketplace_resources/marketplace_resources_renew.py +166 -0
  12. waldur_api_client/api/marketplace_service_providers/service_provider_checklists_summary.py +189 -0
  13. waldur_api_client/api/onboarding/__init__.py +1 -0
  14. waldur_api_client/api/onboarding/onboarding_supported_countries_retrieve.py +74 -0
  15. waldur_api_client/api/onboarding_justifications/__init__.py +1 -0
  16. waldur_api_client/api/onboarding_justifications/onboarding_justifications_attach_document.py +211 -0
  17. waldur_api_client/api/onboarding_justifications/onboarding_justifications_count.py +172 -0
  18. waldur_api_client/api/onboarding_justifications/onboarding_justifications_create.py +150 -0
  19. waldur_api_client/api/onboarding_justifications/onboarding_justifications_create_justification.py +154 -0
  20. waldur_api_client/api/onboarding_justifications/onboarding_justifications_destroy.py +89 -0
  21. waldur_api_client/api/onboarding_justifications/onboarding_justifications_list.py +175 -0
  22. waldur_api_client/api/onboarding_justifications/onboarding_justifications_partial_update.py +164 -0
  23. waldur_api_client/api/onboarding_justifications/onboarding_justifications_retrieve.py +142 -0
  24. waldur_api_client/api/onboarding_justifications/onboarding_justifications_update.py +164 -0
  25. waldur_api_client/api/onboarding_verifications/__init__.py +1 -0
  26. waldur_api_client/api/onboarding_verifications/onboarding_verifications_count.py +172 -0
  27. waldur_api_client/api/onboarding_verifications/onboarding_verifications_create.py +150 -0
  28. waldur_api_client/api/onboarding_verifications/onboarding_verifications_create_customer.py +144 -0
  29. waldur_api_client/api/onboarding_verifications/onboarding_verifications_destroy.py +89 -0
  30. waldur_api_client/api/onboarding_verifications/onboarding_verifications_list.py +175 -0
  31. waldur_api_client/api/onboarding_verifications/onboarding_verifications_partial_update.py +164 -0
  32. waldur_api_client/api/onboarding_verifications/onboarding_verifications_retrieve.py +142 -0
  33. waldur_api_client/api/onboarding_verifications/onboarding_verifications_update.py +164 -0
  34. waldur_api_client/api/onboarding_verifications/onboarding_verifications_validate_company.py +154 -0
  35. waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_count.py +33 -0
  36. waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_create.py +154 -0
  37. waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_destroy.py +91 -0
  38. waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_list.py +33 -0
  39. waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_partial_update.py +164 -0
  40. waldur_api_client/api/openstack_network_rbac_policies/openstack_network_rbac_policies_update.py +164 -0
  41. waldur_api_client/api/openstack_networks/openstack_networks_rbac_policy_create.py +24 -22
  42. waldur_api_client/api/projects/projects_checklist_template_count.py +125 -0
  43. waldur_api_client/api/projects/projects_checklist_template_retrieve.py +126 -0
  44. waldur_api_client/api/proposal_proposals/proposal_proposals_checklist_template_count.py +125 -0
  45. waldur_api_client/api/proposal_proposals/proposal_proposals_checklist_template_retrieve.py +126 -0
  46. waldur_api_client/api/proposal_protected_calls/proposal_protected_calls_offerings_list.py +15 -0
  47. waldur_api_client/models/__init__.py +62 -4
  48. waldur_api_client/models/booking_resource.py +4 -11
  49. waldur_api_client/models/call_round.py +4 -4
  50. waldur_api_client/models/checklist_template.py +99 -0
  51. waldur_api_client/models/checklist_template_checklist.py +44 -0
  52. waldur_api_client/models/constance_settings.py +45 -0
  53. waldur_api_client/models/constance_settings_request.py +45 -0
  54. waldur_api_client/models/constance_settings_request_form.py +45 -0
  55. waldur_api_client/models/constance_settings_request_multipart.py +85 -0
  56. waldur_api_client/models/customer.py +9 -0
  57. waldur_api_client/models/customers_list_field_item.py +1 -0
  58. waldur_api_client/models/customers_retrieve_field_item.py +1 -0
  59. waldur_api_client/models/deprecated_network_rbac_policy.py +137 -0
  60. waldur_api_client/models/deprecated_network_rbac_policy_request.py +78 -0
  61. waldur_api_client/models/event_types_enum.py +1 -0
  62. waldur_api_client/models/marketplace_service_providers_projects_list_field_item.py +1 -0
  63. waldur_api_client/models/merged_plugin_options.py +18 -0
  64. waldur_api_client/models/merged_plugin_options_request.py +18 -0
  65. waldur_api_client/models/nested_round.py +5 -5
  66. waldur_api_client/models/network_rbac_policy_request.py +8 -0
  67. waldur_api_client/models/notification.py +9 -9
  68. waldur_api_client/models/{notification_context_fields.py → notification_context_schema.py} +6 -6
  69. waldur_api_client/models/notification_template_detail_serializers.py +9 -3
  70. waldur_api_client/models/offering_component.py +79 -0
  71. waldur_api_client/models/offering_component_request.py +80 -0
  72. waldur_api_client/models/onboarding_company_validation_request_request.py +88 -0
  73. waldur_api_client/models/onboarding_justification.py +183 -0
  74. waldur_api_client/models/onboarding_justification_create_request.py +68 -0
  75. waldur_api_client/models/onboarding_justification_documentation.py +108 -0
  76. waldur_api_client/models/onboarding_justification_documentation_request.py +84 -0
  77. waldur_api_client/models/onboarding_justification_documentation_request_form.py +84 -0
  78. waldur_api_client/models/onboarding_justification_documentation_request_multipart.py +98 -0
  79. waldur_api_client/models/onboarding_justification_request.py +75 -0
  80. waldur_api_client/models/onboarding_verification.py +250 -0
  81. waldur_api_client/models/onboarding_verification_request.py +128 -0
  82. waldur_api_client/models/onboarding_verification_status_enum.py +12 -0
  83. waldur_api_client/models/open_stack_create_floating_ip_request.py +20 -1
  84. waldur_api_client/models/order_create.py +4 -4
  85. waldur_api_client/models/order_details.py +4 -11
  86. waldur_api_client/models/patched_network_rbac_policy_request.py +85 -0
  87. waldur_api_client/models/patched_onboarding_justification_request.py +77 -0
  88. waldur_api_client/models/patched_onboarding_verification_request.py +128 -0
  89. waldur_api_client/models/patched_project_credit_request.py +13 -0
  90. waldur_api_client/models/patched_project_request.py +1 -2
  91. waldur_api_client/models/patched_project_request_form.py +1 -2
  92. waldur_api_client/models/patched_project_request_multipart.py +1 -2
  93. waldur_api_client/models/project.py +10 -2
  94. waldur_api_client/models/project_credit.py +13 -0
  95. waldur_api_client/models/project_credit_request.py +13 -0
  96. waldur_api_client/models/project_request.py +1 -2
  97. waldur_api_client/models/project_request_form.py +1 -2
  98. waldur_api_client/models/project_request_multipart.py +1 -2
  99. waldur_api_client/models/projects_list_field_item.py +1 -0
  100. waldur_api_client/models/projects_retrieve_field_item.py +1 -0
  101. waldur_api_client/models/protected_round.py +4 -4
  102. waldur_api_client/models/question.py +102 -0
  103. waldur_api_client/models/question_options.py +79 -0
  104. waldur_api_client/models/resource.py +4 -11
  105. waldur_api_client/models/resource_renew_request.py +83 -0
  106. waldur_api_client/models/resource_renew_request_limits.py +44 -0
  107. waldur_api_client/models/{status_enum.py → round_status.py} +1 -1
  108. waldur_api_client/models/service_provider_checklist_summary.py +98 -0
  109. waldur_api_client/models/time_series_to_s_data.py +69 -0
  110. waldur_api_client/models/to_s_consent_dashboard.py +155 -0
  111. waldur_api_client/models/update_offering_component_request.py +79 -0
  112. waldur_api_client/models/validation_decision_enum.py +10 -0
  113. waldur_api_client/models/validation_method_enum.py +8 -0
  114. waldur_api_client/models/version_adoption.py +67 -0
  115. {waldur_api_client-7.8.3.dist-info → waldur_api_client-7.8.4.dist-info}/METADATA +1 -1
  116. {waldur_api_client-7.8.3.dist-info → waldur_api_client-7.8.4.dist-info}/RECORD +118 -54
  117. {waldur_api_client-7.8.3.dist-info → waldur_api_client-7.8.4.dist-info}/WHEEL +0 -0
  118. {waldur_api_client-7.8.3.dist-info → waldur_api_client-7.8.4.dist-info}/licenses/LICENSE +0 -0
@@ -37,6 +37,7 @@ def _get_kwargs(
37
37
  page_size: Union[Unset, int] = UNSET,
38
38
  parent_offering_uuid: Union[Unset, UUID] = UNSET,
39
39
  paused: Union[Unset, bool] = UNSET,
40
+ plan_uuid: Union[Unset, UUID] = UNSET,
40
41
  project_name: Union[Unset, str] = UNSET,
41
42
  project_uuid: Union[Unset, UUID] = UNSET,
42
43
  provider_uuid: Union[Unset, UUID] = UNSET,
@@ -131,6 +132,11 @@ def _get_kwargs(
131
132
 
132
133
  params["paused"] = paused
133
134
 
135
+ json_plan_uuid: Union[Unset, str] = UNSET
136
+ if not isinstance(plan_uuid, Unset):
137
+ json_plan_uuid = str(plan_uuid)
138
+ params["plan_uuid"] = json_plan_uuid
139
+
134
140
  params["project_name"] = project_name
135
141
 
136
142
  json_project_uuid: Union[Unset, str] = UNSET
@@ -226,6 +232,7 @@ def sync_detailed(
226
232
  page_size: Union[Unset, int] = UNSET,
227
233
  parent_offering_uuid: Union[Unset, UUID] = UNSET,
228
234
  paused: Union[Unset, bool] = UNSET,
235
+ plan_uuid: Union[Unset, UUID] = UNSET,
229
236
  project_name: Union[Unset, str] = UNSET,
230
237
  project_uuid: Union[Unset, UUID] = UNSET,
231
238
  provider_uuid: Union[Unset, UUID] = UNSET,
@@ -262,6 +269,7 @@ def sync_detailed(
262
269
  page_size (Union[Unset, int]):
263
270
  parent_offering_uuid (Union[Unset, UUID]):
264
271
  paused (Union[Unset, bool]):
272
+ plan_uuid (Union[Unset, UUID]):
265
273
  project_name (Union[Unset, str]):
266
274
  project_uuid (Union[Unset, UUID]):
267
275
  provider_uuid (Union[Unset, UUID]):
@@ -304,6 +312,7 @@ def sync_detailed(
304
312
  page_size=page_size,
305
313
  parent_offering_uuid=parent_offering_uuid,
306
314
  paused=paused,
315
+ plan_uuid=plan_uuid,
307
316
  project_name=project_name,
308
317
  project_uuid=project_uuid,
309
318
  provider_uuid=provider_uuid,
@@ -348,6 +357,7 @@ def sync(
348
357
  page_size: Union[Unset, int] = UNSET,
349
358
  parent_offering_uuid: Union[Unset, UUID] = UNSET,
350
359
  paused: Union[Unset, bool] = UNSET,
360
+ plan_uuid: Union[Unset, UUID] = UNSET,
351
361
  project_name: Union[Unset, str] = UNSET,
352
362
  project_uuid: Union[Unset, UUID] = UNSET,
353
363
  provider_uuid: Union[Unset, UUID] = UNSET,
@@ -384,6 +394,7 @@ def sync(
384
394
  page_size (Union[Unset, int]):
385
395
  parent_offering_uuid (Union[Unset, UUID]):
386
396
  paused (Union[Unset, bool]):
397
+ plan_uuid (Union[Unset, UUID]):
387
398
  project_name (Union[Unset, str]):
388
399
  project_uuid (Union[Unset, UUID]):
389
400
  provider_uuid (Union[Unset, UUID]):
@@ -427,6 +438,7 @@ def sync(
427
438
  page_size=page_size,
428
439
  parent_offering_uuid=parent_offering_uuid,
429
440
  paused=paused,
441
+ plan_uuid=plan_uuid,
430
442
  project_name=project_name,
431
443
  project_uuid=project_uuid,
432
444
  provider_uuid=provider_uuid,
@@ -465,6 +477,7 @@ async def asyncio_detailed(
465
477
  page_size: Union[Unset, int] = UNSET,
466
478
  parent_offering_uuid: Union[Unset, UUID] = UNSET,
467
479
  paused: Union[Unset, bool] = UNSET,
480
+ plan_uuid: Union[Unset, UUID] = UNSET,
468
481
  project_name: Union[Unset, str] = UNSET,
469
482
  project_uuid: Union[Unset, UUID] = UNSET,
470
483
  provider_uuid: Union[Unset, UUID] = UNSET,
@@ -501,6 +514,7 @@ async def asyncio_detailed(
501
514
  page_size (Union[Unset, int]):
502
515
  parent_offering_uuid (Union[Unset, UUID]):
503
516
  paused (Union[Unset, bool]):
517
+ plan_uuid (Union[Unset, UUID]):
504
518
  project_name (Union[Unset, str]):
505
519
  project_uuid (Union[Unset, UUID]):
506
520
  provider_uuid (Union[Unset, UUID]):
@@ -543,6 +557,7 @@ async def asyncio_detailed(
543
557
  page_size=page_size,
544
558
  parent_offering_uuid=parent_offering_uuid,
545
559
  paused=paused,
560
+ plan_uuid=plan_uuid,
546
561
  project_name=project_name,
547
562
  project_uuid=project_uuid,
548
563
  provider_uuid=provider_uuid,
@@ -585,6 +600,7 @@ async def asyncio(
585
600
  page_size: Union[Unset, int] = UNSET,
586
601
  parent_offering_uuid: Union[Unset, UUID] = UNSET,
587
602
  paused: Union[Unset, bool] = UNSET,
603
+ plan_uuid: Union[Unset, UUID] = UNSET,
588
604
  project_name: Union[Unset, str] = UNSET,
589
605
  project_uuid: Union[Unset, UUID] = UNSET,
590
606
  provider_uuid: Union[Unset, UUID] = UNSET,
@@ -621,6 +637,7 @@ async def asyncio(
621
637
  page_size (Union[Unset, int]):
622
638
  parent_offering_uuid (Union[Unset, UUID]):
623
639
  paused (Union[Unset, bool]):
640
+ plan_uuid (Union[Unset, UUID]):
624
641
  project_name (Union[Unset, str]):
625
642
  project_uuid (Union[Unset, UUID]):
626
643
  provider_uuid (Union[Unset, UUID]):
@@ -665,6 +682,7 @@ async def asyncio(
665
682
  page_size=page_size,
666
683
  parent_offering_uuid=parent_offering_uuid,
667
684
  paused=paused,
685
+ plan_uuid=plan_uuid,
668
686
  project_name=project_name,
669
687
  project_uuid=project_uuid,
670
688
  provider_uuid=provider_uuid,
@@ -40,6 +40,7 @@ def _get_kwargs(
40
40
  page_size: Union[Unset, int] = UNSET,
41
41
  parent_offering_uuid: Union[Unset, UUID] = UNSET,
42
42
  paused: Union[Unset, bool] = UNSET,
43
+ plan_uuid: Union[Unset, UUID] = UNSET,
43
44
  project_name: Union[Unset, str] = UNSET,
44
45
  project_uuid: Union[Unset, UUID] = UNSET,
45
46
  provider_uuid: Union[Unset, UUID] = UNSET,
@@ -143,6 +144,11 @@ def _get_kwargs(
143
144
 
144
145
  params["paused"] = paused
145
146
 
147
+ json_plan_uuid: Union[Unset, str] = UNSET
148
+ if not isinstance(plan_uuid, Unset):
149
+ json_plan_uuid = str(plan_uuid)
150
+ params["plan_uuid"] = json_plan_uuid
151
+
146
152
  params["project_name"] = project_name
147
153
 
148
154
  json_project_uuid: Union[Unset, str] = UNSET
@@ -239,6 +245,7 @@ def sync_detailed(
239
245
  page_size: Union[Unset, int] = UNSET,
240
246
  parent_offering_uuid: Union[Unset, UUID] = UNSET,
241
247
  paused: Union[Unset, bool] = UNSET,
248
+ plan_uuid: Union[Unset, UUID] = UNSET,
242
249
  project_name: Union[Unset, str] = UNSET,
243
250
  project_uuid: Union[Unset, UUID] = UNSET,
244
251
  provider_uuid: Union[Unset, UUID] = UNSET,
@@ -276,6 +283,7 @@ def sync_detailed(
276
283
  page_size (Union[Unset, int]):
277
284
  parent_offering_uuid (Union[Unset, UUID]):
278
285
  paused (Union[Unset, bool]):
286
+ plan_uuid (Union[Unset, UUID]):
279
287
  project_name (Union[Unset, str]):
280
288
  project_uuid (Union[Unset, UUID]):
281
289
  provider_uuid (Union[Unset, UUID]):
@@ -319,6 +327,7 @@ def sync_detailed(
319
327
  page_size=page_size,
320
328
  parent_offering_uuid=parent_offering_uuid,
321
329
  paused=paused,
330
+ plan_uuid=plan_uuid,
322
331
  project_name=project_name,
323
332
  project_uuid=project_uuid,
324
333
  provider_uuid=provider_uuid,
@@ -364,6 +373,7 @@ def sync(
364
373
  page_size: Union[Unset, int] = UNSET,
365
374
  parent_offering_uuid: Union[Unset, UUID] = UNSET,
366
375
  paused: Union[Unset, bool] = UNSET,
376
+ plan_uuid: Union[Unset, UUID] = UNSET,
367
377
  project_name: Union[Unset, str] = UNSET,
368
378
  project_uuid: Union[Unset, UUID] = UNSET,
369
379
  provider_uuid: Union[Unset, UUID] = UNSET,
@@ -401,6 +411,7 @@ def sync(
401
411
  page_size (Union[Unset, int]):
402
412
  parent_offering_uuid (Union[Unset, UUID]):
403
413
  paused (Union[Unset, bool]):
414
+ plan_uuid (Union[Unset, UUID]):
404
415
  project_name (Union[Unset, str]):
405
416
  project_uuid (Union[Unset, UUID]):
406
417
  provider_uuid (Union[Unset, UUID]):
@@ -445,6 +456,7 @@ def sync(
445
456
  page_size=page_size,
446
457
  parent_offering_uuid=parent_offering_uuid,
447
458
  paused=paused,
459
+ plan_uuid=plan_uuid,
448
460
  project_name=project_name,
449
461
  project_uuid=project_uuid,
450
462
  provider_uuid=provider_uuid,
@@ -484,6 +496,7 @@ async def asyncio_detailed(
484
496
  page_size: Union[Unset, int] = UNSET,
485
497
  parent_offering_uuid: Union[Unset, UUID] = UNSET,
486
498
  paused: Union[Unset, bool] = UNSET,
499
+ plan_uuid: Union[Unset, UUID] = UNSET,
487
500
  project_name: Union[Unset, str] = UNSET,
488
501
  project_uuid: Union[Unset, UUID] = UNSET,
489
502
  provider_uuid: Union[Unset, UUID] = UNSET,
@@ -521,6 +534,7 @@ async def asyncio_detailed(
521
534
  page_size (Union[Unset, int]):
522
535
  parent_offering_uuid (Union[Unset, UUID]):
523
536
  paused (Union[Unset, bool]):
537
+ plan_uuid (Union[Unset, UUID]):
524
538
  project_name (Union[Unset, str]):
525
539
  project_uuid (Union[Unset, UUID]):
526
540
  provider_uuid (Union[Unset, UUID]):
@@ -564,6 +578,7 @@ async def asyncio_detailed(
564
578
  page_size=page_size,
565
579
  parent_offering_uuid=parent_offering_uuid,
566
580
  paused=paused,
581
+ plan_uuid=plan_uuid,
567
582
  project_name=project_name,
568
583
  project_uuid=project_uuid,
569
584
  provider_uuid=provider_uuid,
@@ -607,6 +622,7 @@ async def asyncio(
607
622
  page_size: Union[Unset, int] = UNSET,
608
623
  parent_offering_uuid: Union[Unset, UUID] = UNSET,
609
624
  paused: Union[Unset, bool] = UNSET,
625
+ plan_uuid: Union[Unset, UUID] = UNSET,
610
626
  project_name: Union[Unset, str] = UNSET,
611
627
  project_uuid: Union[Unset, UUID] = UNSET,
612
628
  provider_uuid: Union[Unset, UUID] = UNSET,
@@ -644,6 +660,7 @@ async def asyncio(
644
660
  page_size (Union[Unset, int]):
645
661
  parent_offering_uuid (Union[Unset, UUID]):
646
662
  paused (Union[Unset, bool]):
663
+ plan_uuid (Union[Unset, UUID]):
647
664
  project_name (Union[Unset, str]):
648
665
  project_uuid (Union[Unset, UUID]):
649
666
  provider_uuid (Union[Unset, UUID]):
@@ -689,6 +706,7 @@ async def asyncio(
689
706
  page_size=page_size,
690
707
  parent_offering_uuid=parent_offering_uuid,
691
708
  paused=paused,
709
+ plan_uuid=plan_uuid,
692
710
  project_name=project_name,
693
711
  project_uuid=project_uuid,
694
712
  provider_uuid=provider_uuid,
@@ -0,0 +1,125 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...types import Response
9
+
10
+
11
+ def _get_kwargs() -> dict[str, Any]:
12
+ _kwargs: dict[str, Any] = {
13
+ "method": "head",
14
+ "url": "/api/marketplace-offering-users/checklist-template/",
15
+ }
16
+
17
+ return _kwargs
18
+
19
+
20
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> int:
21
+ if response.status_code == HTTPStatus.OK:
22
+ try:
23
+ return int(response.headers["x-result-count"])
24
+ except KeyError:
25
+ raise errors.UnexpectedStatus(
26
+ response.status_code, b"Expected 'X-Result-Count' header for HEAD request, but it was not found."
27
+ )
28
+ except ValueError:
29
+ count_val = response.headers.get("x-result-count")
30
+ msg = f"Expected 'X-Result-Count' header to be an integer, but got '{count_val}'."
31
+ raise errors.UnexpectedStatus(response.status_code, msg.encode())
32
+ raise errors.UnexpectedStatus(response.status_code, response.content)
33
+
34
+
35
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[int]:
36
+ return Response(
37
+ status_code=HTTPStatus(response.status_code),
38
+ content=response.content,
39
+ headers=response.headers,
40
+ parsed=_parse_response(client=client, response=response),
41
+ )
42
+
43
+
44
+ def sync_detailed(
45
+ *,
46
+ client: AuthenticatedClient,
47
+ ) -> Response[int]:
48
+ """Get number of items in the collection matching the request parameters.
49
+
50
+ Raises:
51
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
52
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
53
+
54
+ Returns:
55
+ Response[int]
56
+ """
57
+
58
+ kwargs = _get_kwargs()
59
+
60
+ response = client.get_httpx_client().request(
61
+ **kwargs,
62
+ )
63
+
64
+ return _build_response(client=client, response=response)
65
+
66
+
67
+ def sync(
68
+ *,
69
+ client: AuthenticatedClient,
70
+ ) -> int:
71
+ """Get number of items in the collection matching the request parameters.
72
+
73
+ Raises:
74
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
75
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
76
+
77
+ Returns:
78
+ int
79
+ """
80
+
81
+ return sync_detailed(
82
+ client=client,
83
+ ).parsed
84
+
85
+
86
+ async def asyncio_detailed(
87
+ *,
88
+ client: AuthenticatedClient,
89
+ ) -> Response[int]:
90
+ """Get number of items in the collection matching the request parameters.
91
+
92
+ Raises:
93
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
94
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
95
+
96
+ Returns:
97
+ Response[int]
98
+ """
99
+
100
+ kwargs = _get_kwargs()
101
+
102
+ response = await client.get_async_httpx_client().request(**kwargs)
103
+
104
+ return _build_response(client=client, response=response)
105
+
106
+
107
+ async def asyncio(
108
+ *,
109
+ client: AuthenticatedClient,
110
+ ) -> int:
111
+ """Get number of items in the collection matching the request parameters.
112
+
113
+ Raises:
114
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
115
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
116
+
117
+ Returns:
118
+ int
119
+ """
120
+
121
+ return (
122
+ await asyncio_detailed(
123
+ client=client,
124
+ )
125
+ ).parsed
@@ -0,0 +1,126 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.checklist_template import ChecklistTemplate
9
+ from ...types import Response
10
+
11
+
12
+ def _get_kwargs() -> dict[str, Any]:
13
+ _kwargs: dict[str, Any] = {
14
+ "method": "get",
15
+ "url": "/api/marketplace-offering-users/checklist-template/",
16
+ }
17
+
18
+ return _kwargs
19
+
20
+
21
+ def _parse_response(
22
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
23
+ ) -> Union[Any, ChecklistTemplate]:
24
+ if response.status_code == 200:
25
+ response_200 = ChecklistTemplate.from_dict(response.json())
26
+
27
+ return response_200
28
+ if response.status_code == 400:
29
+ response_400 = response.json()
30
+ return response_400
31
+ raise errors.UnexpectedStatus(response.status_code, response.content)
32
+
33
+
34
+ def _build_response(
35
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
36
+ ) -> Response[Union[Any, ChecklistTemplate]]:
37
+ return Response(
38
+ status_code=HTTPStatus(response.status_code),
39
+ content=response.content,
40
+ headers=response.headers,
41
+ parsed=_parse_response(client=client, response=response),
42
+ )
43
+
44
+
45
+ def sync_detailed(
46
+ *,
47
+ client: AuthenticatedClient,
48
+ ) -> Response[Union[Any, ChecklistTemplate]]:
49
+ """Get checklist template for creating new objects.
50
+
51
+ Raises:
52
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
53
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
54
+
55
+ Returns:
56
+ Response[Union[Any, ChecklistTemplate]]
57
+ """
58
+
59
+ kwargs = _get_kwargs()
60
+
61
+ response = client.get_httpx_client().request(
62
+ **kwargs,
63
+ )
64
+
65
+ return _build_response(client=client, response=response)
66
+
67
+
68
+ def sync(
69
+ *,
70
+ client: AuthenticatedClient,
71
+ ) -> Union[Any, ChecklistTemplate]:
72
+ """Get checklist template for creating new objects.
73
+
74
+ Raises:
75
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
76
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
77
+
78
+ Returns:
79
+ Union[Any, ChecklistTemplate]
80
+ """
81
+
82
+ return sync_detailed(
83
+ client=client,
84
+ ).parsed
85
+
86
+
87
+ async def asyncio_detailed(
88
+ *,
89
+ client: AuthenticatedClient,
90
+ ) -> Response[Union[Any, ChecklistTemplate]]:
91
+ """Get checklist template for creating new objects.
92
+
93
+ Raises:
94
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
95
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
96
+
97
+ Returns:
98
+ Response[Union[Any, ChecklistTemplate]]
99
+ """
100
+
101
+ kwargs = _get_kwargs()
102
+
103
+ response = await client.get_async_httpx_client().request(**kwargs)
104
+
105
+ return _build_response(client=client, response=response)
106
+
107
+
108
+ async def asyncio(
109
+ *,
110
+ client: AuthenticatedClient,
111
+ ) -> Union[Any, ChecklistTemplate]:
112
+ """Get checklist template for creating new objects.
113
+
114
+ Raises:
115
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
116
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
117
+
118
+ Returns:
119
+ Union[Any, ChecklistTemplate]
120
+ """
121
+
122
+ return (
123
+ await asyncio_detailed(
124
+ client=client,
125
+ )
126
+ ).parsed
@@ -0,0 +1,146 @@
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.to_s_consent_dashboard import ToSConsentDashboard
10
+ from ...types import Response
11
+
12
+
13
+ def _get_kwargs(
14
+ uuid: UUID,
15
+ ) -> dict[str, Any]:
16
+ _kwargs: dict[str, Any] = {
17
+ "method": "get",
18
+ "url": f"/api/marketplace-provider-offerings/{uuid}/tos_stats/",
19
+ }
20
+
21
+ return _kwargs
22
+
23
+
24
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> ToSConsentDashboard:
25
+ if response.status_code == 200:
26
+ response_200 = ToSConsentDashboard.from_dict(response.json())
27
+
28
+ return response_200
29
+ raise errors.UnexpectedStatus(response.status_code, response.content)
30
+
31
+
32
+ def _build_response(
33
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
34
+ ) -> Response[ToSConsentDashboard]:
35
+ return Response(
36
+ status_code=HTTPStatus(response.status_code),
37
+ content=response.content,
38
+ headers=response.headers,
39
+ parsed=_parse_response(client=client, response=response),
40
+ )
41
+
42
+
43
+ def sync_detailed(
44
+ uuid: UUID,
45
+ *,
46
+ client: AuthenticatedClient,
47
+ ) -> Response[ToSConsentDashboard]:
48
+ """Return comprehensive ToS consent statistics for this offering.
49
+
50
+ Args:
51
+ uuid (UUID):
52
+
53
+ Raises:
54
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
55
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
56
+
57
+ Returns:
58
+ Response[ToSConsentDashboard]
59
+ """
60
+
61
+ kwargs = _get_kwargs(
62
+ uuid=uuid,
63
+ )
64
+
65
+ response = client.get_httpx_client().request(
66
+ **kwargs,
67
+ )
68
+
69
+ return _build_response(client=client, response=response)
70
+
71
+
72
+ def sync(
73
+ uuid: UUID,
74
+ *,
75
+ client: AuthenticatedClient,
76
+ ) -> ToSConsentDashboard:
77
+ """Return comprehensive ToS consent statistics for this offering.
78
+
79
+ Args:
80
+ uuid (UUID):
81
+
82
+ Raises:
83
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
84
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
85
+
86
+ Returns:
87
+ ToSConsentDashboard
88
+ """
89
+
90
+ return sync_detailed(
91
+ uuid=uuid,
92
+ client=client,
93
+ ).parsed
94
+
95
+
96
+ async def asyncio_detailed(
97
+ uuid: UUID,
98
+ *,
99
+ client: AuthenticatedClient,
100
+ ) -> Response[ToSConsentDashboard]:
101
+ """Return comprehensive ToS consent statistics for this offering.
102
+
103
+ Args:
104
+ uuid (UUID):
105
+
106
+ Raises:
107
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
108
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
109
+
110
+ Returns:
111
+ Response[ToSConsentDashboard]
112
+ """
113
+
114
+ kwargs = _get_kwargs(
115
+ uuid=uuid,
116
+ )
117
+
118
+ response = await client.get_async_httpx_client().request(**kwargs)
119
+
120
+ return _build_response(client=client, response=response)
121
+
122
+
123
+ async def asyncio(
124
+ uuid: UUID,
125
+ *,
126
+ client: AuthenticatedClient,
127
+ ) -> ToSConsentDashboard:
128
+ """Return comprehensive ToS consent statistics for this offering.
129
+
130
+ Args:
131
+ uuid (UUID):
132
+
133
+ Raises:
134
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
135
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
136
+
137
+ Returns:
138
+ ToSConsentDashboard
139
+ """
140
+
141
+ return (
142
+ await asyncio_detailed(
143
+ uuid=uuid,
144
+ client=client,
145
+ )
146
+ ).parsed