waldur-api-client 7.8.1__py3-none-any.whl → 7.8.3__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 (234) hide show
  1. waldur_api_client/api/booking_resources/booking_resources_count.py +10 -13
  2. waldur_api_client/api/booking_resources/booking_resources_list.py +10 -13
  3. waldur_api_client/api/call_managing_organisations/call_managing_organisations_create.py +44 -7
  4. waldur_api_client/api/call_managing_organisations/call_managing_organisations_partial_update.py +46 -7
  5. waldur_api_client/api/call_managing_organisations/call_managing_organisations_update.py +44 -7
  6. waldur_api_client/api/checklists_admin/checklists_admin_checklist_questions.py +49 -0
  7. waldur_api_client/api/checklists_admin/checklists_admin_count.py +43 -0
  8. waldur_api_client/api/checklists_admin/checklists_admin_list.py +43 -0
  9. waldur_api_client/api/checklists_admin_categories/checklists_admin_categories_create.py +44 -7
  10. waldur_api_client/api/checklists_admin_categories/checklists_admin_categories_partial_update.py +44 -7
  11. waldur_api_client/api/checklists_admin_categories/checklists_admin_categories_update.py +44 -7
  12. waldur_api_client/api/customers/customers_create.py +44 -7
  13. waldur_api_client/api/customers/customers_partial_update.py +44 -7
  14. waldur_api_client/api/customers/customers_update.py +44 -7
  15. waldur_api_client/api/external_links/external_links_create.py +44 -7
  16. waldur_api_client/api/external_links/external_links_partial_update.py +44 -7
  17. waldur_api_client/api/external_links/external_links_update.py +44 -7
  18. waldur_api_client/api/invoices/invoices_paid.py +44 -7
  19. waldur_api_client/api/marketplace_categories/marketplace_categories_create.py +44 -7
  20. waldur_api_client/api/marketplace_categories/marketplace_categories_partial_update.py +44 -7
  21. waldur_api_client/api/marketplace_categories/marketplace_categories_update.py +44 -7
  22. waldur_api_client/api/marketplace_category_groups/marketplace_category_groups_create.py +44 -7
  23. waldur_api_client/api/marketplace_category_groups/marketplace_category_groups_partial_update.py +44 -7
  24. waldur_api_client/api/marketplace_category_groups/marketplace_category_groups_update.py +44 -7
  25. waldur_api_client/api/marketplace_offering_files/marketplace_offering_files_create.py +44 -7
  26. waldur_api_client/api/marketplace_orders/marketplace_orders_update_attachment.py +44 -7
  27. waldur_api_client/api/marketplace_project_update_requests/marketplace_project_update_requests_count.py +18 -18
  28. waldur_api_client/api/marketplace_project_update_requests/marketplace_project_update_requests_list.py +18 -18
  29. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_create.py +44 -7
  30. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_update_image.py +44 -7
  31. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_update_thumbnail.py +30 -5
  32. waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_count.py +10 -13
  33. waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_list.py +10 -13
  34. waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_move_resource.py +22 -0
  35. waldur_api_client/api/marketplace_resources/marketplace_resources_count.py +10 -13
  36. waldur_api_client/api/marketplace_resources/marketplace_resources_list.py +10 -13
  37. waldur_api_client/api/marketplace_resources/marketplace_resources_move_resource.py +22 -0
  38. waldur_api_client/api/marketplace_screenshots/marketplace_screenshots_create.py +44 -7
  39. waldur_api_client/api/marketplace_screenshots/marketplace_screenshots_update.py +44 -7
  40. waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_create.py +44 -7
  41. waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_partial_update.py +44 -7
  42. waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_update.py +44 -7
  43. waldur_api_client/api/openstack_backups/openstack_backups_restore.py +10 -10
  44. waldur_api_client/api/override_settings/override_settings.py +30 -5
  45. waldur_api_client/api/payments/payments_create.py +44 -7
  46. waldur_api_client/api/payments/payments_partial_update.py +44 -7
  47. waldur_api_client/api/payments/payments_update.py +44 -7
  48. waldur_api_client/api/projects/projects_create.py +44 -7
  49. waldur_api_client/api/projects/projects_partial_update.py +44 -7
  50. waldur_api_client/api/projects/projects_update.py +44 -7
  51. waldur_api_client/api/proposal_proposals/proposal_proposals_attach_document.py +30 -5
  52. waldur_api_client/api/rancher_services/rancher_services_create.py +22 -22
  53. waldur_api_client/api/slurm_jobs/slurm_jobs_create.py +44 -7
  54. waldur_api_client/api/slurm_jobs/slurm_jobs_update.py +44 -7
  55. waldur_api_client/api/support_attachments/support_attachments_create.py +44 -7
  56. waldur_api_client/api/user_group_invitations/user_group_invitations_count.py +15 -0
  57. waldur_api_client/api/user_group_invitations/user_group_invitations_list.py +15 -0
  58. waldur_api_client/api/users/users_create.py +44 -7
  59. waldur_api_client/api/users/users_partial_update.py +44 -7
  60. waldur_api_client/api/users/users_update.py +44 -7
  61. waldur_api_client/models/__init__.py +172 -8
  62. waldur_api_client/models/agent_type_enum.py +13 -0
  63. waldur_api_client/models/attachment_request_form.py +70 -0
  64. waldur_api_client/models/attachment_request_multipart.py +83 -0
  65. waldur_api_client/models/azure_sql_server_create_order_attributes.py +5 -10
  66. waldur_api_client/models/azure_virtual_machine_create_order_attributes.py +7 -12
  67. waldur_api_client/models/booking_offerings_list_field_item.py +1 -0
  68. waldur_api_client/models/booking_offerings_retrieve_field_item.py +1 -0
  69. waldur_api_client/models/booking_resource.py +16 -34
  70. waldur_api_client/models/booking_resources_list_field_item.py +1 -3
  71. waldur_api_client/models/booking_resources_retrieve_field_item.py +1 -3
  72. waldur_api_client/models/call_managing_organisation_request_form.py +103 -0
  73. waldur_api_client/models/call_managing_organisation_request_multipart.py +122 -0
  74. waldur_api_client/models/call_round.py +11 -1
  75. waldur_api_client/models/category_group_request_form.py +103 -0
  76. waldur_api_client/models/category_group_request_multipart.py +122 -0
  77. waldur_api_client/models/checklist_category_request_form.py +103 -0
  78. waldur_api_client/models/checklist_category_request_multipart.py +122 -0
  79. waldur_api_client/models/checklists_admin_checklist_questions_checklist_type.py +11 -0
  80. waldur_api_client/models/checklists_admin_checklist_questions_checklist_type_in_item.py +11 -0
  81. waldur_api_client/models/checklists_admin_count_checklist_type.py +11 -0
  82. waldur_api_client/models/checklists_admin_count_checklist_type_in_item.py +11 -0
  83. waldur_api_client/models/checklists_admin_list_checklist_type.py +11 -0
  84. waldur_api_client/models/checklists_admin_list_checklist_type_in_item.py +11 -0
  85. waldur_api_client/models/constance_settings.py +18 -0
  86. waldur_api_client/models/constance_settings_request.py +18 -0
  87. waldur_api_client/models/constance_settings_request_form.py +1556 -0
  88. waldur_api_client/models/constance_settings_request_multipart.py +2187 -0
  89. waldur_api_client/models/customer.py +9 -0
  90. waldur_api_client/models/customer_request.py +9 -0
  91. waldur_api_client/models/customer_request_form.py +312 -0
  92. waldur_api_client/models/customer_request_multipart.py +394 -0
  93. waldur_api_client/models/customers_list_field_item.py +1 -0
  94. waldur_api_client/models/customers_retrieve_field_item.py +1 -0
  95. waldur_api_client/models/event_groups_enum.py +1 -0
  96. waldur_api_client/models/event_types_enum.py +2 -0
  97. waldur_api_client/models/external_link_request_form.py +111 -0
  98. waldur_api_client/models/external_link_request_multipart.py +132 -0
  99. waldur_api_client/models/firecrest_job_request_form.py +104 -0
  100. waldur_api_client/models/firecrest_job_request_multipart.py +127 -0
  101. waldur_api_client/models/generic_order_attributes.py +1 -2
  102. waldur_api_client/models/integration_status.py +21 -4
  103. waldur_api_client/models/managed_rancher_cluster_resources_list_field_item.py +1 -3
  104. waldur_api_client/models/managed_rancher_cluster_resources_retrieve_field_item.py +1 -3
  105. waldur_api_client/models/marketplace_category_request_form.py +153 -0
  106. waldur_api_client/models/marketplace_category_request_multipart.py +187 -0
  107. waldur_api_client/models/marketplace_orders_list_field_item.py +1 -3
  108. waldur_api_client/models/marketplace_orders_retrieve_field_item.py +1 -3
  109. waldur_api_client/models/marketplace_provider_offerings_list_course_accounts_retrieve_field_item.py +1 -0
  110. waldur_api_client/models/marketplace_provider_offerings_list_customer_service_accounts_retrieve_field_item.py +1 -0
  111. waldur_api_client/models/marketplace_provider_offerings_list_field_item.py +1 -0
  112. waldur_api_client/models/marketplace_provider_offerings_list_project_service_accounts_retrieve_field_item.py +1 -0
  113. waldur_api_client/models/marketplace_provider_offerings_retrieve_field_item.py +1 -0
  114. waldur_api_client/models/marketplace_provider_offerings_stats_retrieve_field_item.py +1 -0
  115. waldur_api_client/models/marketplace_provider_offerings_user_has_resource_access_retrieve_field_item.py +1 -0
  116. waldur_api_client/models/marketplace_provider_resources_details_retrieve_field_item.py +1 -3
  117. waldur_api_client/models/marketplace_provider_resources_list_field_item.py +1 -3
  118. waldur_api_client/models/marketplace_provider_resources_retrieve_field_item.py +1 -3
  119. waldur_api_client/models/marketplace_public_offerings_list_field_item.py +1 -0
  120. waldur_api_client/models/marketplace_public_offerings_retrieve_field_item.py +1 -0
  121. waldur_api_client/models/marketplace_resources_details_retrieve_field_item.py +1 -3
  122. waldur_api_client/models/marketplace_resources_list_field_item.py +1 -3
  123. waldur_api_client/models/marketplace_resources_retrieve_field_item.py +1 -3
  124. waldur_api_client/models/marketplace_robot_accounts_list_field_item.py +2 -1
  125. waldur_api_client/models/marketplace_robot_accounts_retrieve_field_item.py +2 -1
  126. waldur_api_client/models/marketplace_service_providers_offerings_list_field_item.py +1 -0
  127. waldur_api_client/models/merged_plugin_options.py +9 -0
  128. waldur_api_client/models/merged_plugin_options_request.py +9 -0
  129. waldur_api_client/models/move_resource_request.py +65 -0
  130. waldur_api_client/models/nested_round.py +9 -0
  131. waldur_api_client/models/nested_round_request.py +9 -0
  132. waldur_api_client/models/offering.py +20 -0
  133. waldur_api_client/models/offering_create.py +20 -0
  134. waldur_api_client/models/offering_create_request.py +20 -0
  135. waldur_api_client/models/offering_create_request_form.py +479 -0
  136. waldur_api_client/models/offering_create_request_form_limits.py +57 -0
  137. waldur_api_client/models/offering_create_request_multipart.py +599 -0
  138. waldur_api_client/models/offering_create_request_multipart_limits.py +57 -0
  139. waldur_api_client/models/offering_file_request_form.py +78 -0
  140. waldur_api_client/models/offering_file_request_multipart.py +93 -0
  141. waldur_api_client/models/offering_image_request_form.py +62 -0
  142. waldur_api_client/models/offering_image_request_multipart.py +73 -0
  143. waldur_api_client/models/offering_thumbnail_request_form.py +62 -0
  144. waldur_api_client/models/offering_thumbnail_request_multipart.py +73 -0
  145. waldur_api_client/models/offering_user.py +5 -5
  146. waldur_api_client/models/{offering_user_state_enum.py → offering_user_state.py} +1 -1
  147. waldur_api_client/models/open_stack_backup_restoration.py +3 -5
  148. waldur_api_client/models/open_stack_backup_restoration_create_request.py +141 -0
  149. waldur_api_client/models/open_stack_backup_restoration_request.py +22 -30
  150. waldur_api_client/models/{open_stack_nested_security_group_request.py → open_stack_create_floating_ip_request.py} +17 -6
  151. waldur_api_client/models/open_stack_create_port_request.py +104 -0
  152. waldur_api_client/models/open_stack_instance.py +13 -29
  153. waldur_api_client/models/open_stack_instance_create_order_attributes.py +67 -54
  154. waldur_api_client/models/open_stack_instance_floating_i_ps_update_request.py +5 -5
  155. waldur_api_client/models/open_stack_instance_ports_update_request.py +5 -5
  156. waldur_api_client/models/open_stack_instance_request.py +1 -67
  157. waldur_api_client/models/open_stack_nested_port_request.py +0 -9
  158. waldur_api_client/models/open_stack_security_group_hyperlink_request.py +59 -0
  159. waldur_api_client/models/open_stack_server_group_hyperlink_request.py +59 -0
  160. waldur_api_client/models/open_stack_tenant_create_order_attributes.py +9 -14
  161. waldur_api_client/models/open_stack_volume_create_order_attributes.py +8 -13
  162. waldur_api_client/models/openstack_instances_list_field_item.py +0 -7
  163. waldur_api_client/models/openstack_instances_retrieve_field_item.py +0 -7
  164. waldur_api_client/models/order_attachment_request_form.py +84 -0
  165. waldur_api_client/models/order_attachment_request_multipart.py +98 -0
  166. waldur_api_client/models/order_create.py +8 -0
  167. waldur_api_client/models/order_details.py +16 -34
  168. waldur_api_client/models/paid_request_form.py +81 -0
  169. waldur_api_client/models/paid_request_multipart.py +94 -0
  170. waldur_api_client/models/patched_call_managing_organisation_request_form.py +92 -0
  171. waldur_api_client/models/patched_call_managing_organisation_request_multipart.py +109 -0
  172. waldur_api_client/models/patched_category_group_request_form.py +101 -0
  173. waldur_api_client/models/patched_category_group_request_multipart.py +121 -0
  174. waldur_api_client/models/patched_checklist_category_request_form.py +102 -0
  175. waldur_api_client/models/patched_checklist_category_request_multipart.py +122 -0
  176. waldur_api_client/models/patched_customer_request.py +9 -0
  177. waldur_api_client/models/patched_customer_request_form.py +310 -0
  178. waldur_api_client/models/patched_customer_request_multipart.py +393 -0
  179. waldur_api_client/models/patched_external_link_request_form.py +110 -0
  180. waldur_api_client/models/patched_external_link_request_multipart.py +133 -0
  181. waldur_api_client/models/patched_marketplace_category_request_form.py +151 -0
  182. waldur_api_client/models/patched_marketplace_category_request_multipart.py +186 -0
  183. waldur_api_client/models/patched_open_stack_instance_request.py +1 -67
  184. waldur_api_client/models/patched_payment_request_form.py +119 -0
  185. waldur_api_client/models/patched_payment_request_multipart.py +142 -0
  186. waldur_api_client/models/patched_project_request_form.py +279 -0
  187. waldur_api_client/models/patched_project_request_multipart.py +342 -0
  188. waldur_api_client/models/patched_service_provider_request_form.py +101 -0
  189. waldur_api_client/models/patched_service_provider_request_multipart.py +121 -0
  190. waldur_api_client/models/patched_user_request_form.py +241 -0
  191. waldur_api_client/models/patched_user_request_multipart.py +306 -0
  192. waldur_api_client/models/payment_request_form.py +113 -0
  193. waldur_api_client/models/payment_request_multipart.py +134 -0
  194. waldur_api_client/models/{rancher_nested_security_group.py → project_hyperlink_request.py} +5 -5
  195. waldur_api_client/models/project_request_form.py +280 -0
  196. waldur_api_client/models/project_request_multipart.py +341 -0
  197. waldur_api_client/models/project_user.py +9 -0
  198. waldur_api_client/models/proposal.py +8 -0
  199. waldur_api_client/models/proposal_documentation_request_form.py +84 -0
  200. waldur_api_client/models/proposal_documentation_request_multipart.py +98 -0
  201. waldur_api_client/models/proposal_proposals_count_o_item.py +3 -1
  202. waldur_api_client/models/proposal_proposals_list_o_item.py +3 -1
  203. waldur_api_client/models/proposal_review.py +40 -0
  204. waldur_api_client/models/protected_proposal_list.py +8 -0
  205. waldur_api_client/models/protected_proposal_list_request.py +8 -0
  206. waldur_api_client/models/protected_round.py +8 -0
  207. waldur_api_client/models/provider_offering.py +21 -1
  208. waldur_api_client/models/provider_offering_details.py +20 -0
  209. waldur_api_client/models/public_offering_details.py +20 -0
  210. waldur_api_client/models/rancher_clusters_list_field_item.py +0 -1
  211. waldur_api_client/models/rancher_clusters_retrieve_field_item.py +0 -1
  212. waldur_api_client/models/rancher_service_create.py +508 -0
  213. waldur_api_client/models/rancher_service_create_marketplace_offering_plugin_options_type_0.py +44 -0
  214. waldur_api_client/models/rancher_service_create_request.py +185 -0
  215. waldur_api_client/models/rancher_service_request.py +16 -19
  216. waldur_api_client/models/rancher_workload_create.py +59 -0
  217. waldur_api_client/models/rancher_workload_create_request.py +59 -0
  218. waldur_api_client/models/resource.py +16 -34
  219. waldur_api_client/models/robot_account_details.py +22 -13
  220. waldur_api_client/models/screenshot_request_form.py +87 -0
  221. waldur_api_client/models/screenshot_request_multipart.py +105 -0
  222. waldur_api_client/models/service_provider_request_form.py +112 -0
  223. waldur_api_client/models/service_provider_request_multipart.py +134 -0
  224. waldur_api_client/models/slurm_invoices_slurm_package_create_order_attributes.py +4 -9
  225. waldur_api_client/models/user_request_form.py +250 -0
  226. waldur_api_client/models/user_request_multipart.py +316 -0
  227. waldur_api_client/models/v_mware_virtual_machine_create_order_attributes.py +11 -16
  228. waldur_api_client/models/vmware_nested_network.py +0 -25
  229. waldur_api_client/models/vmware_nested_network_request.py +6 -14
  230. {waldur_api_client-7.8.1.dist-info → waldur_api_client-7.8.3.dist-info}/METADATA +1 -1
  231. {waldur_api_client-7.8.1.dist-info → waldur_api_client-7.8.3.dist-info}/RECORD +233 -153
  232. waldur_api_client/models/open_stack_data_volume.py +0 -81
  233. {waldur_api_client-7.8.1.dist-info → waldur_api_client-7.8.3.dist-info}/WHEEL +0 -0
  234. {waldur_api_client-7.8.1.dist-info → waldur_api_client-7.8.3.dist-info}/licenses/LICENSE +0 -0
@@ -8,13 +8,19 @@ from ... import errors
8
8
  from ...client import AuthenticatedClient, Client
9
9
  from ...models.category_group import CategoryGroup
10
10
  from ...models.patched_category_group_request import PatchedCategoryGroupRequest
11
+ from ...models.patched_category_group_request_form import PatchedCategoryGroupRequestForm
12
+ from ...models.patched_category_group_request_multipart import PatchedCategoryGroupRequestMultipart
11
13
  from ...types import Response
12
14
 
13
15
 
14
16
  def _get_kwargs(
15
17
  uuid: UUID,
16
18
  *,
17
- body: PatchedCategoryGroupRequest,
19
+ body: Union[
20
+ PatchedCategoryGroupRequest,
21
+ PatchedCategoryGroupRequestForm,
22
+ PatchedCategoryGroupRequestMultipart,
23
+ ],
18
24
  ) -> dict[str, Any]:
19
25
  headers: dict[str, Any] = {}
20
26
 
@@ -23,9 +29,16 @@ def _get_kwargs(
23
29
  "url": f"/api/marketplace-category-groups/{uuid}/",
24
30
  }
25
31
 
26
- _kwargs["json"] = body.to_dict()
32
+ if isinstance(body, PatchedCategoryGroupRequest):
33
+ _kwargs["json"] = body.to_dict()
27
34
 
28
- headers["Content-Type"] = "application/json"
35
+ headers["Content-Type"] = "application/json"
36
+ if isinstance(body, PatchedCategoryGroupRequestForm):
37
+ _kwargs["data"] = body.to_dict()
38
+
39
+ headers["Content-Type"] = "application/x-www-form-urlencoded"
40
+ if isinstance(body, PatchedCategoryGroupRequestMultipart):
41
+ _kwargs["files"] = body.to_multipart()
29
42
 
30
43
  _kwargs["headers"] = headers
31
44
  return _kwargs
@@ -52,12 +65,18 @@ def sync_detailed(
52
65
  uuid: UUID,
53
66
  *,
54
67
  client: AuthenticatedClient,
55
- body: PatchedCategoryGroupRequest,
68
+ body: Union[
69
+ PatchedCategoryGroupRequest,
70
+ PatchedCategoryGroupRequestForm,
71
+ PatchedCategoryGroupRequestMultipart,
72
+ ],
56
73
  ) -> Response[CategoryGroup]:
57
74
  """
58
75
  Args:
59
76
  uuid (UUID):
60
77
  body (PatchedCategoryGroupRequest):
78
+ body (PatchedCategoryGroupRequestForm):
79
+ body (PatchedCategoryGroupRequestMultipart):
61
80
 
62
81
  Raises:
63
82
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -83,12 +102,18 @@ def sync(
83
102
  uuid: UUID,
84
103
  *,
85
104
  client: AuthenticatedClient,
86
- body: PatchedCategoryGroupRequest,
105
+ body: Union[
106
+ PatchedCategoryGroupRequest,
107
+ PatchedCategoryGroupRequestForm,
108
+ PatchedCategoryGroupRequestMultipart,
109
+ ],
87
110
  ) -> CategoryGroup:
88
111
  """
89
112
  Args:
90
113
  uuid (UUID):
91
114
  body (PatchedCategoryGroupRequest):
115
+ body (PatchedCategoryGroupRequestForm):
116
+ body (PatchedCategoryGroupRequestMultipart):
92
117
 
93
118
  Raises:
94
119
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -109,12 +134,18 @@ async def asyncio_detailed(
109
134
  uuid: UUID,
110
135
  *,
111
136
  client: AuthenticatedClient,
112
- body: PatchedCategoryGroupRequest,
137
+ body: Union[
138
+ PatchedCategoryGroupRequest,
139
+ PatchedCategoryGroupRequestForm,
140
+ PatchedCategoryGroupRequestMultipart,
141
+ ],
113
142
  ) -> Response[CategoryGroup]:
114
143
  """
115
144
  Args:
116
145
  uuid (UUID):
117
146
  body (PatchedCategoryGroupRequest):
147
+ body (PatchedCategoryGroupRequestForm):
148
+ body (PatchedCategoryGroupRequestMultipart):
118
149
 
119
150
  Raises:
120
151
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -138,12 +169,18 @@ async def asyncio(
138
169
  uuid: UUID,
139
170
  *,
140
171
  client: AuthenticatedClient,
141
- body: PatchedCategoryGroupRequest,
172
+ body: Union[
173
+ PatchedCategoryGroupRequest,
174
+ PatchedCategoryGroupRequestForm,
175
+ PatchedCategoryGroupRequestMultipart,
176
+ ],
142
177
  ) -> CategoryGroup:
143
178
  """
144
179
  Args:
145
180
  uuid (UUID):
146
181
  body (PatchedCategoryGroupRequest):
182
+ body (PatchedCategoryGroupRequestForm):
183
+ body (PatchedCategoryGroupRequestMultipart):
147
184
 
148
185
  Raises:
149
186
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -8,13 +8,19 @@ from ... import errors
8
8
  from ...client import AuthenticatedClient, Client
9
9
  from ...models.category_group import CategoryGroup
10
10
  from ...models.category_group_request import CategoryGroupRequest
11
+ from ...models.category_group_request_form import CategoryGroupRequestForm
12
+ from ...models.category_group_request_multipart import CategoryGroupRequestMultipart
11
13
  from ...types import Response
12
14
 
13
15
 
14
16
  def _get_kwargs(
15
17
  uuid: UUID,
16
18
  *,
17
- body: CategoryGroupRequest,
19
+ body: Union[
20
+ CategoryGroupRequest,
21
+ CategoryGroupRequestForm,
22
+ CategoryGroupRequestMultipart,
23
+ ],
18
24
  ) -> dict[str, Any]:
19
25
  headers: dict[str, Any] = {}
20
26
 
@@ -23,9 +29,16 @@ def _get_kwargs(
23
29
  "url": f"/api/marketplace-category-groups/{uuid}/",
24
30
  }
25
31
 
26
- _kwargs["json"] = body.to_dict()
32
+ if isinstance(body, CategoryGroupRequest):
33
+ _kwargs["json"] = body.to_dict()
27
34
 
28
- headers["Content-Type"] = "application/json"
35
+ headers["Content-Type"] = "application/json"
36
+ if isinstance(body, CategoryGroupRequestForm):
37
+ _kwargs["data"] = body.to_dict()
38
+
39
+ headers["Content-Type"] = "application/x-www-form-urlencoded"
40
+ if isinstance(body, CategoryGroupRequestMultipart):
41
+ _kwargs["files"] = body.to_multipart()
29
42
 
30
43
  _kwargs["headers"] = headers
31
44
  return _kwargs
@@ -52,12 +65,18 @@ def sync_detailed(
52
65
  uuid: UUID,
53
66
  *,
54
67
  client: AuthenticatedClient,
55
- body: CategoryGroupRequest,
68
+ body: Union[
69
+ CategoryGroupRequest,
70
+ CategoryGroupRequestForm,
71
+ CategoryGroupRequestMultipart,
72
+ ],
56
73
  ) -> Response[CategoryGroup]:
57
74
  """
58
75
  Args:
59
76
  uuid (UUID):
60
77
  body (CategoryGroupRequest):
78
+ body (CategoryGroupRequestForm):
79
+ body (CategoryGroupRequestMultipart):
61
80
 
62
81
  Raises:
63
82
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -83,12 +102,18 @@ def sync(
83
102
  uuid: UUID,
84
103
  *,
85
104
  client: AuthenticatedClient,
86
- body: CategoryGroupRequest,
105
+ body: Union[
106
+ CategoryGroupRequest,
107
+ CategoryGroupRequestForm,
108
+ CategoryGroupRequestMultipart,
109
+ ],
87
110
  ) -> CategoryGroup:
88
111
  """
89
112
  Args:
90
113
  uuid (UUID):
91
114
  body (CategoryGroupRequest):
115
+ body (CategoryGroupRequestForm):
116
+ body (CategoryGroupRequestMultipart):
92
117
 
93
118
  Raises:
94
119
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -109,12 +134,18 @@ async def asyncio_detailed(
109
134
  uuid: UUID,
110
135
  *,
111
136
  client: AuthenticatedClient,
112
- body: CategoryGroupRequest,
137
+ body: Union[
138
+ CategoryGroupRequest,
139
+ CategoryGroupRequestForm,
140
+ CategoryGroupRequestMultipart,
141
+ ],
113
142
  ) -> Response[CategoryGroup]:
114
143
  """
115
144
  Args:
116
145
  uuid (UUID):
117
146
  body (CategoryGroupRequest):
147
+ body (CategoryGroupRequestForm):
148
+ body (CategoryGroupRequestMultipart):
118
149
 
119
150
  Raises:
120
151
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -138,12 +169,18 @@ async def asyncio(
138
169
  uuid: UUID,
139
170
  *,
140
171
  client: AuthenticatedClient,
141
- body: CategoryGroupRequest,
172
+ body: Union[
173
+ CategoryGroupRequest,
174
+ CategoryGroupRequestForm,
175
+ CategoryGroupRequestMultipart,
176
+ ],
142
177
  ) -> CategoryGroup:
143
178
  """
144
179
  Args:
145
180
  uuid (UUID):
146
181
  body (CategoryGroupRequest):
182
+ body (CategoryGroupRequestForm):
183
+ body (CategoryGroupRequestMultipart):
147
184
 
148
185
  Raises:
149
186
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -7,12 +7,18 @@ from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
8
  from ...models.offering_file import OfferingFile
9
9
  from ...models.offering_file_request import OfferingFileRequest
10
+ from ...models.offering_file_request_form import OfferingFileRequestForm
11
+ from ...models.offering_file_request_multipart import OfferingFileRequestMultipart
10
12
  from ...types import Response
11
13
 
12
14
 
13
15
  def _get_kwargs(
14
16
  *,
15
- body: OfferingFileRequest,
17
+ body: Union[
18
+ OfferingFileRequest,
19
+ OfferingFileRequestForm,
20
+ OfferingFileRequestMultipart,
21
+ ],
16
22
  ) -> dict[str, Any]:
17
23
  headers: dict[str, Any] = {}
18
24
 
@@ -21,9 +27,16 @@ def _get_kwargs(
21
27
  "url": "/api/marketplace-offering-files/",
22
28
  }
23
29
 
24
- _kwargs["json"] = body.to_dict()
30
+ if isinstance(body, OfferingFileRequest):
31
+ _kwargs["json"] = body.to_dict()
25
32
 
26
- headers["Content-Type"] = "application/json"
33
+ headers["Content-Type"] = "application/json"
34
+ if isinstance(body, OfferingFileRequestForm):
35
+ _kwargs["data"] = body.to_dict()
36
+
37
+ headers["Content-Type"] = "application/x-www-form-urlencoded"
38
+ if isinstance(body, OfferingFileRequestMultipart):
39
+ _kwargs["files"] = body.to_multipart()
27
40
 
28
41
  _kwargs["headers"] = headers
29
42
  return _kwargs
@@ -49,11 +62,17 @@ def _build_response(*, client: Union[AuthenticatedClient, Client], response: htt
49
62
  def sync_detailed(
50
63
  *,
51
64
  client: AuthenticatedClient,
52
- body: OfferingFileRequest,
65
+ body: Union[
66
+ OfferingFileRequest,
67
+ OfferingFileRequestForm,
68
+ OfferingFileRequestMultipart,
69
+ ],
53
70
  ) -> Response[OfferingFile]:
54
71
  """
55
72
  Args:
56
73
  body (OfferingFileRequest):
74
+ body (OfferingFileRequestForm):
75
+ body (OfferingFileRequestMultipart):
57
76
 
58
77
  Raises:
59
78
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -77,11 +96,17 @@ def sync_detailed(
77
96
  def sync(
78
97
  *,
79
98
  client: AuthenticatedClient,
80
- body: OfferingFileRequest,
99
+ body: Union[
100
+ OfferingFileRequest,
101
+ OfferingFileRequestForm,
102
+ OfferingFileRequestMultipart,
103
+ ],
81
104
  ) -> OfferingFile:
82
105
  """
83
106
  Args:
84
107
  body (OfferingFileRequest):
108
+ body (OfferingFileRequestForm):
109
+ body (OfferingFileRequestMultipart):
85
110
 
86
111
  Raises:
87
112
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -100,11 +125,17 @@ def sync(
100
125
  async def asyncio_detailed(
101
126
  *,
102
127
  client: AuthenticatedClient,
103
- body: OfferingFileRequest,
128
+ body: Union[
129
+ OfferingFileRequest,
130
+ OfferingFileRequestForm,
131
+ OfferingFileRequestMultipart,
132
+ ],
104
133
  ) -> Response[OfferingFile]:
105
134
  """
106
135
  Args:
107
136
  body (OfferingFileRequest):
137
+ body (OfferingFileRequestForm):
138
+ body (OfferingFileRequestMultipart):
108
139
 
109
140
  Raises:
110
141
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -126,11 +157,17 @@ async def asyncio_detailed(
126
157
  async def asyncio(
127
158
  *,
128
159
  client: AuthenticatedClient,
129
- body: OfferingFileRequest,
160
+ body: Union[
161
+ OfferingFileRequest,
162
+ OfferingFileRequestForm,
163
+ OfferingFileRequestMultipart,
164
+ ],
130
165
  ) -> OfferingFile:
131
166
  """
132
167
  Args:
133
168
  body (OfferingFileRequest):
169
+ body (OfferingFileRequestForm):
170
+ body (OfferingFileRequestMultipart):
134
171
 
135
172
  Raises:
136
173
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -8,13 +8,19 @@ from ... import errors
8
8
  from ...client import AuthenticatedClient, Client
9
9
  from ...models.order_attachment import OrderAttachment
10
10
  from ...models.order_attachment_request import OrderAttachmentRequest
11
+ from ...models.order_attachment_request_form import OrderAttachmentRequestForm
12
+ from ...models.order_attachment_request_multipart import OrderAttachmentRequestMultipart
11
13
  from ...types import Response
12
14
 
13
15
 
14
16
  def _get_kwargs(
15
17
  uuid: UUID,
16
18
  *,
17
- body: OrderAttachmentRequest,
19
+ body: Union[
20
+ OrderAttachmentRequest,
21
+ OrderAttachmentRequestForm,
22
+ OrderAttachmentRequestMultipart,
23
+ ],
18
24
  ) -> dict[str, Any]:
19
25
  headers: dict[str, Any] = {}
20
26
 
@@ -23,9 +29,16 @@ def _get_kwargs(
23
29
  "url": f"/api/marketplace-orders/{uuid}/update_attachment/",
24
30
  }
25
31
 
26
- _kwargs["json"] = body.to_dict()
32
+ if isinstance(body, OrderAttachmentRequest):
33
+ _kwargs["json"] = body.to_dict()
27
34
 
28
- headers["Content-Type"] = "application/json"
35
+ headers["Content-Type"] = "application/json"
36
+ if isinstance(body, OrderAttachmentRequestForm):
37
+ _kwargs["data"] = body.to_dict()
38
+
39
+ headers["Content-Type"] = "application/x-www-form-urlencoded"
40
+ if isinstance(body, OrderAttachmentRequestMultipart):
41
+ _kwargs["files"] = body.to_multipart()
29
42
 
30
43
  _kwargs["headers"] = headers
31
44
  return _kwargs
@@ -54,13 +67,19 @@ def sync_detailed(
54
67
  uuid: UUID,
55
68
  *,
56
69
  client: AuthenticatedClient,
57
- body: OrderAttachmentRequest,
70
+ body: Union[
71
+ OrderAttachmentRequest,
72
+ OrderAttachmentRequestForm,
73
+ OrderAttachmentRequestMultipart,
74
+ ],
58
75
  ) -> Response[OrderAttachment]:
59
76
  """Update the attachment for a pending order.
60
77
 
61
78
  Args:
62
79
  uuid (UUID):
63
80
  body (OrderAttachmentRequest):
81
+ body (OrderAttachmentRequestForm):
82
+ body (OrderAttachmentRequestMultipart):
64
83
 
65
84
  Raises:
66
85
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -86,13 +105,19 @@ def sync(
86
105
  uuid: UUID,
87
106
  *,
88
107
  client: AuthenticatedClient,
89
- body: OrderAttachmentRequest,
108
+ body: Union[
109
+ OrderAttachmentRequest,
110
+ OrderAttachmentRequestForm,
111
+ OrderAttachmentRequestMultipart,
112
+ ],
90
113
  ) -> OrderAttachment:
91
114
  """Update the attachment for a pending order.
92
115
 
93
116
  Args:
94
117
  uuid (UUID):
95
118
  body (OrderAttachmentRequest):
119
+ body (OrderAttachmentRequestForm):
120
+ body (OrderAttachmentRequestMultipart):
96
121
 
97
122
  Raises:
98
123
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -113,13 +138,19 @@ async def asyncio_detailed(
113
138
  uuid: UUID,
114
139
  *,
115
140
  client: AuthenticatedClient,
116
- body: OrderAttachmentRequest,
141
+ body: Union[
142
+ OrderAttachmentRequest,
143
+ OrderAttachmentRequestForm,
144
+ OrderAttachmentRequestMultipart,
145
+ ],
117
146
  ) -> Response[OrderAttachment]:
118
147
  """Update the attachment for a pending order.
119
148
 
120
149
  Args:
121
150
  uuid (UUID):
122
151
  body (OrderAttachmentRequest):
152
+ body (OrderAttachmentRequestForm):
153
+ body (OrderAttachmentRequestMultipart):
123
154
 
124
155
  Raises:
125
156
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -143,13 +174,19 @@ async def asyncio(
143
174
  uuid: UUID,
144
175
  *,
145
176
  client: AuthenticatedClient,
146
- body: OrderAttachmentRequest,
177
+ body: Union[
178
+ OrderAttachmentRequest,
179
+ OrderAttachmentRequestForm,
180
+ OrderAttachmentRequestMultipart,
181
+ ],
147
182
  ) -> OrderAttachment:
148
183
  """Update the attachment for a pending order.
149
184
 
150
185
  Args:
151
186
  uuid (UUID):
152
187
  body (OrderAttachmentRequest):
188
+ body (OrderAttachmentRequestForm):
189
+ body (OrderAttachmentRequestMultipart):
153
190
 
154
191
  Raises:
155
192
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -15,11 +15,11 @@ from ...types import UNSET, Response, Unset
15
15
  def _get_kwargs(
16
16
  *,
17
17
  customer_uuid: Union[Unset, UUID] = UNSET,
18
- offering_customer_uuid: Union[Unset, UUID] = UNSET,
19
18
  offering_uuid: Union[Unset, UUID] = UNSET,
20
19
  page: Union[Unset, int] = UNSET,
21
20
  page_size: Union[Unset, int] = UNSET,
22
21
  project_uuid: Union[Unset, UUID] = UNSET,
22
+ provider_uuid: Union[Unset, UUID] = UNSET,
23
23
  state: Union[Unset, list[MarketplaceProjectUpdateRequestsCountStateItem]] = UNSET,
24
24
  ) -> dict[str, Any]:
25
25
  params: dict[str, Any] = {}
@@ -29,11 +29,6 @@ def _get_kwargs(
29
29
  json_customer_uuid = str(customer_uuid)
30
30
  params["customer_uuid"] = json_customer_uuid
31
31
 
32
- json_offering_customer_uuid: Union[Unset, str] = UNSET
33
- if not isinstance(offering_customer_uuid, Unset):
34
- json_offering_customer_uuid = str(offering_customer_uuid)
35
- params["offering_customer_uuid"] = json_offering_customer_uuid
36
-
37
32
  json_offering_uuid: Union[Unset, str] = UNSET
38
33
  if not isinstance(offering_uuid, Unset):
39
34
  json_offering_uuid = str(offering_uuid)
@@ -48,6 +43,11 @@ def _get_kwargs(
48
43
  json_project_uuid = str(project_uuid)
49
44
  params["project_uuid"] = json_project_uuid
50
45
 
46
+ json_provider_uuid: Union[Unset, str] = UNSET
47
+ if not isinstance(provider_uuid, Unset):
48
+ json_provider_uuid = str(provider_uuid)
49
+ params["provider_uuid"] = json_provider_uuid
50
+
51
51
  json_state: Union[Unset, list[str]] = UNSET
52
52
  if not isinstance(state, Unset):
53
53
  json_state = []
@@ -96,22 +96,22 @@ def sync_detailed(
96
96
  *,
97
97
  client: AuthenticatedClient,
98
98
  customer_uuid: Union[Unset, UUID] = UNSET,
99
- offering_customer_uuid: Union[Unset, UUID] = UNSET,
100
99
  offering_uuid: Union[Unset, UUID] = UNSET,
101
100
  page: Union[Unset, int] = UNSET,
102
101
  page_size: Union[Unset, int] = UNSET,
103
102
  project_uuid: Union[Unset, UUID] = UNSET,
103
+ provider_uuid: Union[Unset, UUID] = UNSET,
104
104
  state: Union[Unset, list[MarketplaceProjectUpdateRequestsCountStateItem]] = UNSET,
105
105
  ) -> Response[int]:
106
106
  """Get number of items in the collection matching the request parameters.
107
107
 
108
108
  Args:
109
109
  customer_uuid (Union[Unset, UUID]):
110
- offering_customer_uuid (Union[Unset, UUID]):
111
110
  offering_uuid (Union[Unset, UUID]):
112
111
  page (Union[Unset, int]):
113
112
  page_size (Union[Unset, int]):
114
113
  project_uuid (Union[Unset, UUID]):
114
+ provider_uuid (Union[Unset, UUID]):
115
115
  state (Union[Unset, list[MarketplaceProjectUpdateRequestsCountStateItem]]):
116
116
 
117
117
  Raises:
@@ -124,11 +124,11 @@ def sync_detailed(
124
124
 
125
125
  kwargs = _get_kwargs(
126
126
  customer_uuid=customer_uuid,
127
- offering_customer_uuid=offering_customer_uuid,
128
127
  offering_uuid=offering_uuid,
129
128
  page=page,
130
129
  page_size=page_size,
131
130
  project_uuid=project_uuid,
131
+ provider_uuid=provider_uuid,
132
132
  state=state,
133
133
  )
134
134
 
@@ -143,22 +143,22 @@ def sync(
143
143
  *,
144
144
  client: AuthenticatedClient,
145
145
  customer_uuid: Union[Unset, UUID] = UNSET,
146
- offering_customer_uuid: Union[Unset, UUID] = UNSET,
147
146
  offering_uuid: Union[Unset, UUID] = UNSET,
148
147
  page: Union[Unset, int] = UNSET,
149
148
  page_size: Union[Unset, int] = UNSET,
150
149
  project_uuid: Union[Unset, UUID] = UNSET,
150
+ provider_uuid: Union[Unset, UUID] = UNSET,
151
151
  state: Union[Unset, list[MarketplaceProjectUpdateRequestsCountStateItem]] = UNSET,
152
152
  ) -> int:
153
153
  """Get number of items in the collection matching the request parameters.
154
154
 
155
155
  Args:
156
156
  customer_uuid (Union[Unset, UUID]):
157
- offering_customer_uuid (Union[Unset, UUID]):
158
157
  offering_uuid (Union[Unset, UUID]):
159
158
  page (Union[Unset, int]):
160
159
  page_size (Union[Unset, int]):
161
160
  project_uuid (Union[Unset, UUID]):
161
+ provider_uuid (Union[Unset, UUID]):
162
162
  state (Union[Unset, list[MarketplaceProjectUpdateRequestsCountStateItem]]):
163
163
 
164
164
  Raises:
@@ -172,11 +172,11 @@ def sync(
172
172
  return sync_detailed(
173
173
  client=client,
174
174
  customer_uuid=customer_uuid,
175
- offering_customer_uuid=offering_customer_uuid,
176
175
  offering_uuid=offering_uuid,
177
176
  page=page,
178
177
  page_size=page_size,
179
178
  project_uuid=project_uuid,
179
+ provider_uuid=provider_uuid,
180
180
  state=state,
181
181
  ).parsed
182
182
 
@@ -185,22 +185,22 @@ async def asyncio_detailed(
185
185
  *,
186
186
  client: AuthenticatedClient,
187
187
  customer_uuid: Union[Unset, UUID] = UNSET,
188
- offering_customer_uuid: Union[Unset, UUID] = UNSET,
189
188
  offering_uuid: Union[Unset, UUID] = UNSET,
190
189
  page: Union[Unset, int] = UNSET,
191
190
  page_size: Union[Unset, int] = UNSET,
192
191
  project_uuid: Union[Unset, UUID] = UNSET,
192
+ provider_uuid: Union[Unset, UUID] = UNSET,
193
193
  state: Union[Unset, list[MarketplaceProjectUpdateRequestsCountStateItem]] = UNSET,
194
194
  ) -> Response[int]:
195
195
  """Get number of items in the collection matching the request parameters.
196
196
 
197
197
  Args:
198
198
  customer_uuid (Union[Unset, UUID]):
199
- offering_customer_uuid (Union[Unset, UUID]):
200
199
  offering_uuid (Union[Unset, UUID]):
201
200
  page (Union[Unset, int]):
202
201
  page_size (Union[Unset, int]):
203
202
  project_uuid (Union[Unset, UUID]):
203
+ provider_uuid (Union[Unset, UUID]):
204
204
  state (Union[Unset, list[MarketplaceProjectUpdateRequestsCountStateItem]]):
205
205
 
206
206
  Raises:
@@ -213,11 +213,11 @@ async def asyncio_detailed(
213
213
 
214
214
  kwargs = _get_kwargs(
215
215
  customer_uuid=customer_uuid,
216
- offering_customer_uuid=offering_customer_uuid,
217
216
  offering_uuid=offering_uuid,
218
217
  page=page,
219
218
  page_size=page_size,
220
219
  project_uuid=project_uuid,
220
+ provider_uuid=provider_uuid,
221
221
  state=state,
222
222
  )
223
223
 
@@ -230,22 +230,22 @@ async def asyncio(
230
230
  *,
231
231
  client: AuthenticatedClient,
232
232
  customer_uuid: Union[Unset, UUID] = UNSET,
233
- offering_customer_uuid: Union[Unset, UUID] = UNSET,
234
233
  offering_uuid: Union[Unset, UUID] = UNSET,
235
234
  page: Union[Unset, int] = UNSET,
236
235
  page_size: Union[Unset, int] = UNSET,
237
236
  project_uuid: Union[Unset, UUID] = UNSET,
237
+ provider_uuid: Union[Unset, UUID] = UNSET,
238
238
  state: Union[Unset, list[MarketplaceProjectUpdateRequestsCountStateItem]] = UNSET,
239
239
  ) -> int:
240
240
  """Get number of items in the collection matching the request parameters.
241
241
 
242
242
  Args:
243
243
  customer_uuid (Union[Unset, UUID]):
244
- offering_customer_uuid (Union[Unset, UUID]):
245
244
  offering_uuid (Union[Unset, UUID]):
246
245
  page (Union[Unset, int]):
247
246
  page_size (Union[Unset, int]):
248
247
  project_uuid (Union[Unset, UUID]):
248
+ provider_uuid (Union[Unset, UUID]):
249
249
  state (Union[Unset, list[MarketplaceProjectUpdateRequestsCountStateItem]]):
250
250
 
251
251
  Raises:
@@ -260,11 +260,11 @@ async def asyncio(
260
260
  await asyncio_detailed(
261
261
  client=client,
262
262
  customer_uuid=customer_uuid,
263
- offering_customer_uuid=offering_customer_uuid,
264
263
  offering_uuid=offering_uuid,
265
264
  page=page,
266
265
  page_size=page_size,
267
266
  project_uuid=project_uuid,
267
+ provider_uuid=provider_uuid,
268
268
  state=state,
269
269
  )
270
270
  ).parsed