waldur-api-client 7.8.0__py3-none-any.whl → 7.8.2__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 (212) 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_course_accounts/marketplace_course_accounts_count.py +96 -0
  26. waldur_api_client/api/marketplace_course_accounts/marketplace_course_accounts_list.py +96 -0
  27. waldur_api_client/api/marketplace_offering_files/marketplace_offering_files_create.py +44 -7
  28. waldur_api_client/api/marketplace_offering_user_checklist_completions/__init__.py +1 -0
  29. waldur_api_client/api/marketplace_offering_user_checklist_completions/marketplace_offering_user_checklist_completions_count.py +286 -0
  30. waldur_api_client/api/marketplace_offering_user_checklist_completions/marketplace_offering_user_checklist_completions_list.py +289 -0
  31. waldur_api_client/api/marketplace_offering_user_checklist_completions/marketplace_offering_user_checklist_completions_retrieve.py +141 -0
  32. waldur_api_client/api/marketplace_orders/marketplace_orders_update_attachment.py +44 -7
  33. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_create.py +44 -7
  34. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_list_course_accounts_retrieve.py +177 -0
  35. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_refresh_offering_usernames.py +0 -22
  36. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_update_compliance_checklist.py +105 -0
  37. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_update_image.py +44 -7
  38. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_update_thumbnail.py +30 -5
  39. waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_count.py +10 -13
  40. waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_list.py +10 -13
  41. waldur_api_client/api/marketplace_resources/marketplace_resources_count.py +10 -13
  42. waldur_api_client/api/marketplace_resources/marketplace_resources_list.py +10 -13
  43. waldur_api_client/api/marketplace_screenshots/marketplace_screenshots_create.py +44 -7
  44. waldur_api_client/api/marketplace_screenshots/marketplace_screenshots_update.py +44 -7
  45. waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_course_accounts_list.py +98 -0
  46. waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_create.py +44 -7
  47. waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_partial_update.py +44 -7
  48. waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_update.py +44 -7
  49. waldur_api_client/api/override_settings/override_settings.py +30 -5
  50. waldur_api_client/api/payments/payments_create.py +44 -7
  51. waldur_api_client/api/payments/payments_partial_update.py +44 -7
  52. waldur_api_client/api/payments/payments_update.py +44 -7
  53. waldur_api_client/api/projects/projects_create.py +44 -7
  54. waldur_api_client/api/projects/projects_partial_update.py +44 -7
  55. waldur_api_client/api/projects/projects_update.py +44 -7
  56. waldur_api_client/api/proposal_proposals/proposal_proposals_attach_document.py +30 -5
  57. waldur_api_client/api/slurm_jobs/slurm_jobs_create.py +44 -7
  58. waldur_api_client/api/slurm_jobs/slurm_jobs_update.py +44 -7
  59. waldur_api_client/api/support_attachments/support_attachments_create.py +44 -7
  60. waldur_api_client/api/user_group_invitations/user_group_invitations_count.py +15 -0
  61. waldur_api_client/api/user_group_invitations/user_group_invitations_list.py +15 -0
  62. waldur_api_client/api/user_invitations/user_invitations_count.py +15 -0
  63. waldur_api_client/api/user_invitations/user_invitations_list.py +15 -0
  64. waldur_api_client/api/users/users_create.py +44 -7
  65. waldur_api_client/api/users/users_partial_update.py +44 -7
  66. waldur_api_client/api/users/users_update.py +44 -7
  67. waldur_api_client/models/__init__.py +172 -4
  68. waldur_api_client/models/agent_type_enum.py +13 -0
  69. waldur_api_client/models/attachment_request_form.py +70 -0
  70. waldur_api_client/models/attachment_request_multipart.py +83 -0
  71. waldur_api_client/models/booking_offerings_list_field_item.py +1 -0
  72. waldur_api_client/models/booking_offerings_retrieve_field_item.py +1 -0
  73. waldur_api_client/models/booking_resource.py +18 -0
  74. waldur_api_client/models/booking_resources_list_field_item.py +2 -0
  75. waldur_api_client/models/booking_resources_retrieve_field_item.py +2 -0
  76. waldur_api_client/models/call_managing_organisation_request_form.py +103 -0
  77. waldur_api_client/models/call_managing_organisation_request_multipart.py +122 -0
  78. waldur_api_client/models/call_round.py +11 -1
  79. waldur_api_client/models/category_group_request_form.py +103 -0
  80. waldur_api_client/models/category_group_request_multipart.py +122 -0
  81. waldur_api_client/models/checklist_category_request_form.py +103 -0
  82. waldur_api_client/models/checklist_category_request_multipart.py +122 -0
  83. waldur_api_client/models/checklists_admin_checklist_questions_checklist_type.py +11 -0
  84. waldur_api_client/models/checklists_admin_checklist_questions_checklist_type_in_item.py +11 -0
  85. waldur_api_client/models/checklists_admin_count_checklist_type.py +11 -0
  86. waldur_api_client/models/checklists_admin_count_checklist_type_in_item.py +11 -0
  87. waldur_api_client/models/checklists_admin_list_checklist_type.py +11 -0
  88. waldur_api_client/models/checklists_admin_list_checklist_type_in_item.py +11 -0
  89. waldur_api_client/models/constance_settings.py +9 -0
  90. waldur_api_client/models/constance_settings_request.py +9 -0
  91. waldur_api_client/models/constance_settings_request_form.py +1547 -0
  92. waldur_api_client/models/constance_settings_request_multipart.py +2173 -0
  93. waldur_api_client/models/course_account.py +24 -0
  94. waldur_api_client/models/customer.py +9 -0
  95. waldur_api_client/models/customer_request.py +9 -0
  96. waldur_api_client/models/customer_request_form.py +312 -0
  97. waldur_api_client/models/customer_request_multipart.py +394 -0
  98. waldur_api_client/models/customers_list_field_item.py +1 -0
  99. waldur_api_client/models/customers_retrieve_field_item.py +1 -0
  100. waldur_api_client/models/external_link_request_form.py +111 -0
  101. waldur_api_client/models/external_link_request_multipart.py +132 -0
  102. waldur_api_client/models/firecrest_job_request_form.py +104 -0
  103. waldur_api_client/models/firecrest_job_request_multipart.py +127 -0
  104. waldur_api_client/models/group_invitation.py +8 -0
  105. waldur_api_client/models/integration_status.py +21 -4
  106. waldur_api_client/models/invitation.py +8 -0
  107. waldur_api_client/models/managed_rancher_cluster_resources_list_field_item.py +2 -0
  108. waldur_api_client/models/managed_rancher_cluster_resources_retrieve_field_item.py +2 -0
  109. waldur_api_client/models/marketplace_category_request_form.py +153 -0
  110. waldur_api_client/models/marketplace_category_request_multipart.py +187 -0
  111. waldur_api_client/models/marketplace_course_accounts_count_o_item.py +23 -0
  112. waldur_api_client/models/marketplace_course_accounts_list_o_item.py +23 -0
  113. waldur_api_client/models/marketplace_offering_user_checklist_completions_count_o_item.py +11 -0
  114. waldur_api_client/models/marketplace_offering_user_checklist_completions_list_o_item.py +11 -0
  115. waldur_api_client/models/marketplace_orders_list_field_item.py +3 -0
  116. waldur_api_client/models/marketplace_orders_retrieve_field_item.py +3 -0
  117. waldur_api_client/models/marketplace_provider_offerings_list_course_accounts_retrieve_field_item.py +73 -0
  118. waldur_api_client/models/marketplace_provider_offerings_list_customer_service_accounts_retrieve_field_item.py +1 -0
  119. waldur_api_client/models/marketplace_provider_offerings_list_field_item.py +1 -0
  120. waldur_api_client/models/marketplace_provider_offerings_list_project_service_accounts_retrieve_field_item.py +1 -0
  121. waldur_api_client/models/marketplace_provider_offerings_retrieve_field_item.py +1 -0
  122. waldur_api_client/models/marketplace_provider_offerings_stats_retrieve_field_item.py +1 -0
  123. waldur_api_client/models/marketplace_provider_offerings_user_has_resource_access_retrieve_field_item.py +1 -0
  124. waldur_api_client/models/marketplace_provider_resources_details_retrieve_field_item.py +2 -0
  125. waldur_api_client/models/marketplace_provider_resources_list_field_item.py +2 -0
  126. waldur_api_client/models/marketplace_provider_resources_retrieve_field_item.py +2 -0
  127. waldur_api_client/models/marketplace_public_offerings_list_field_item.py +1 -0
  128. waldur_api_client/models/marketplace_public_offerings_retrieve_field_item.py +1 -0
  129. waldur_api_client/models/marketplace_resources_details_retrieve_field_item.py +2 -0
  130. waldur_api_client/models/marketplace_resources_list_field_item.py +2 -0
  131. waldur_api_client/models/marketplace_resources_retrieve_field_item.py +2 -0
  132. waldur_api_client/models/marketplace_service_providers_course_accounts_list_o_item.py +23 -0
  133. waldur_api_client/models/marketplace_service_providers_offerings_list_field_item.py +1 -0
  134. waldur_api_client/models/merged_plugin_options.py +9 -0
  135. waldur_api_client/models/merged_plugin_options_request.py +9 -0
  136. waldur_api_client/models/nested_round.py +9 -0
  137. waldur_api_client/models/nested_round_request.py +9 -0
  138. waldur_api_client/models/notification.py +11 -0
  139. waldur_api_client/models/notification_context_fields.py +47 -0
  140. waldur_api_client/models/offering.py +20 -0
  141. waldur_api_client/models/offering_compliance_checklist_update_request.py +82 -0
  142. waldur_api_client/models/offering_create.py +20 -0
  143. waldur_api_client/models/offering_create_request.py +20 -0
  144. waldur_api_client/models/{provider_offering_details_request.py → offering_create_request_form.py} +77 -5
  145. waldur_api_client/models/offering_create_request_form_limits.py +57 -0
  146. waldur_api_client/models/offering_create_request_multipart.py +599 -0
  147. waldur_api_client/models/offering_create_request_multipart_limits.py +57 -0
  148. waldur_api_client/models/offering_file_request_form.py +78 -0
  149. waldur_api_client/models/offering_file_request_multipart.py +93 -0
  150. waldur_api_client/models/offering_image_request_form.py +62 -0
  151. waldur_api_client/models/offering_image_request_multipart.py +73 -0
  152. waldur_api_client/models/offering_thumbnail_request_form.py +62 -0
  153. waldur_api_client/models/offering_thumbnail_request_multipart.py +73 -0
  154. waldur_api_client/models/offering_user.py +5 -5
  155. waldur_api_client/models/{offering_user_state_enum.py → offering_user_state.py} +1 -1
  156. waldur_api_client/models/order_attachment_request_form.py +84 -0
  157. waldur_api_client/models/order_attachment_request_multipart.py +98 -0
  158. waldur_api_client/models/order_details.py +34 -0
  159. waldur_api_client/models/paid_request_form.py +81 -0
  160. waldur_api_client/models/paid_request_multipart.py +94 -0
  161. waldur_api_client/models/patched_call_managing_organisation_request_form.py +92 -0
  162. waldur_api_client/models/patched_call_managing_organisation_request_multipart.py +109 -0
  163. waldur_api_client/models/patched_category_group_request_form.py +101 -0
  164. waldur_api_client/models/patched_category_group_request_multipart.py +121 -0
  165. waldur_api_client/models/patched_checklist_category_request_form.py +102 -0
  166. waldur_api_client/models/patched_checklist_category_request_multipart.py +122 -0
  167. waldur_api_client/models/patched_customer_request.py +9 -0
  168. waldur_api_client/models/patched_customer_request_form.py +310 -0
  169. waldur_api_client/models/patched_customer_request_multipart.py +393 -0
  170. waldur_api_client/models/patched_external_link_request_form.py +110 -0
  171. waldur_api_client/models/patched_external_link_request_multipart.py +133 -0
  172. waldur_api_client/models/patched_marketplace_category_request_form.py +151 -0
  173. waldur_api_client/models/patched_marketplace_category_request_multipart.py +186 -0
  174. waldur_api_client/models/patched_payment_request_form.py +119 -0
  175. waldur_api_client/models/patched_payment_request_multipart.py +142 -0
  176. waldur_api_client/models/patched_project_request_form.py +279 -0
  177. waldur_api_client/models/patched_project_request_multipart.py +342 -0
  178. waldur_api_client/models/patched_service_provider_request_form.py +101 -0
  179. waldur_api_client/models/patched_service_provider_request_multipart.py +121 -0
  180. waldur_api_client/models/patched_user_request_form.py +241 -0
  181. waldur_api_client/models/patched_user_request_multipart.py +306 -0
  182. waldur_api_client/models/payment_request_form.py +113 -0
  183. waldur_api_client/models/payment_request_multipart.py +134 -0
  184. waldur_api_client/models/project_request_form.py +280 -0
  185. waldur_api_client/models/project_request_multipart.py +341 -0
  186. waldur_api_client/models/project_user.py +9 -0
  187. waldur_api_client/models/proposal.py +8 -0
  188. waldur_api_client/models/proposal_documentation_request_form.py +84 -0
  189. waldur_api_client/models/proposal_documentation_request_multipart.py +98 -0
  190. waldur_api_client/models/proposal_proposals_count_o_item.py +3 -1
  191. waldur_api_client/models/proposal_proposals_list_o_item.py +3 -1
  192. waldur_api_client/models/proposal_review.py +40 -0
  193. waldur_api_client/models/protected_proposal_list.py +8 -0
  194. waldur_api_client/models/protected_proposal_list_request.py +8 -0
  195. waldur_api_client/models/protected_round.py +8 -0
  196. waldur_api_client/models/provider_offering.py +21 -1
  197. waldur_api_client/models/provider_offering_details.py +20 -0
  198. waldur_api_client/models/public_offering_details.py +20 -0
  199. waldur_api_client/models/resource.py +18 -0
  200. waldur_api_client/models/resource_update_limits_request.py +1 -34
  201. waldur_api_client/models/screenshot_request_form.py +87 -0
  202. waldur_api_client/models/screenshot_request_multipart.py +105 -0
  203. waldur_api_client/models/service_provider_request_form.py +112 -0
  204. waldur_api_client/models/service_provider_request_multipart.py +134 -0
  205. waldur_api_client/models/user_checklist_completion.py +265 -0
  206. waldur_api_client/models/user_request_form.py +250 -0
  207. waldur_api_client/models/user_request_multipart.py +316 -0
  208. waldur_api_client/models/visible_invitation_details.py +8 -0
  209. {waldur_api_client-7.8.0.dist-info → waldur_api_client-7.8.2.dist-info}/METADATA +1 -1
  210. {waldur_api_client-7.8.0.dist-info → waldur_api_client-7.8.2.dist-info}/RECORD +212 -127
  211. {waldur_api_client-7.8.0.dist-info → waldur_api_client-7.8.2.dist-info}/WHEEL +1 -1
  212. {waldur_api_client-7.8.0.dist-info → waldur_api_client-7.8.2.dist-info}/licenses/LICENSE +0 -0
@@ -8,13 +8,19 @@ from ... import errors
8
8
  from ...client import AuthenticatedClient, Client
9
9
  from ...models.service_provider import ServiceProvider
10
10
  from ...models.service_provider_request import ServiceProviderRequest
11
+ from ...models.service_provider_request_form import ServiceProviderRequestForm
12
+ from ...models.service_provider_request_multipart import ServiceProviderRequestMultipart
11
13
  from ...types import Response
12
14
 
13
15
 
14
16
  def _get_kwargs(
15
17
  uuid: UUID,
16
18
  *,
17
- body: ServiceProviderRequest,
19
+ body: Union[
20
+ ServiceProviderRequest,
21
+ ServiceProviderRequestForm,
22
+ ServiceProviderRequestMultipart,
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-service-providers/{uuid}/",
24
30
  }
25
31
 
26
- _kwargs["json"] = body.to_dict()
32
+ if isinstance(body, ServiceProviderRequest):
33
+ _kwargs["json"] = body.to_dict()
27
34
 
28
- headers["Content-Type"] = "application/json"
35
+ headers["Content-Type"] = "application/json"
36
+ if isinstance(body, ServiceProviderRequestForm):
37
+ _kwargs["data"] = body.to_dict()
38
+
39
+ headers["Content-Type"] = "application/x-www-form-urlencoded"
40
+ if isinstance(body, ServiceProviderRequestMultipart):
41
+ _kwargs["files"] = body.to_multipart()
29
42
 
30
43
  _kwargs["headers"] = headers
31
44
  return _kwargs
@@ -54,12 +67,18 @@ def sync_detailed(
54
67
  uuid: UUID,
55
68
  *,
56
69
  client: AuthenticatedClient,
57
- body: ServiceProviderRequest,
70
+ body: Union[
71
+ ServiceProviderRequest,
72
+ ServiceProviderRequestForm,
73
+ ServiceProviderRequestMultipart,
74
+ ],
58
75
  ) -> Response[ServiceProvider]:
59
76
  """
60
77
  Args:
61
78
  uuid (UUID):
62
79
  body (ServiceProviderRequest):
80
+ body (ServiceProviderRequestForm):
81
+ body (ServiceProviderRequestMultipart):
63
82
 
64
83
  Raises:
65
84
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -85,12 +104,18 @@ def sync(
85
104
  uuid: UUID,
86
105
  *,
87
106
  client: AuthenticatedClient,
88
- body: ServiceProviderRequest,
107
+ body: Union[
108
+ ServiceProviderRequest,
109
+ ServiceProviderRequestForm,
110
+ ServiceProviderRequestMultipart,
111
+ ],
89
112
  ) -> ServiceProvider:
90
113
  """
91
114
  Args:
92
115
  uuid (UUID):
93
116
  body (ServiceProviderRequest):
117
+ body (ServiceProviderRequestForm):
118
+ body (ServiceProviderRequestMultipart):
94
119
 
95
120
  Raises:
96
121
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -111,12 +136,18 @@ async def asyncio_detailed(
111
136
  uuid: UUID,
112
137
  *,
113
138
  client: AuthenticatedClient,
114
- body: ServiceProviderRequest,
139
+ body: Union[
140
+ ServiceProviderRequest,
141
+ ServiceProviderRequestForm,
142
+ ServiceProviderRequestMultipart,
143
+ ],
115
144
  ) -> Response[ServiceProvider]:
116
145
  """
117
146
  Args:
118
147
  uuid (UUID):
119
148
  body (ServiceProviderRequest):
149
+ body (ServiceProviderRequestForm):
150
+ body (ServiceProviderRequestMultipart):
120
151
 
121
152
  Raises:
122
153
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -140,12 +171,18 @@ async def asyncio(
140
171
  uuid: UUID,
141
172
  *,
142
173
  client: AuthenticatedClient,
143
- body: ServiceProviderRequest,
174
+ body: Union[
175
+ ServiceProviderRequest,
176
+ ServiceProviderRequestForm,
177
+ ServiceProviderRequestMultipart,
178
+ ],
144
179
  ) -> ServiceProvider:
145
180
  """
146
181
  Args:
147
182
  uuid (UUID):
148
183
  body (ServiceProviderRequest):
184
+ body (ServiceProviderRequestForm):
185
+ body (ServiceProviderRequestMultipart):
149
186
 
150
187
  Raises:
151
188
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -6,12 +6,18 @@ import httpx
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
8
  from ...models.constance_settings_request import ConstanceSettingsRequest
9
+ from ...models.constance_settings_request_form import ConstanceSettingsRequestForm
10
+ from ...models.constance_settings_request_multipart import ConstanceSettingsRequestMultipart
9
11
  from ...types import Response
10
12
 
11
13
 
12
14
  def _get_kwargs(
13
15
  *,
14
- body: ConstanceSettingsRequest,
16
+ body: Union[
17
+ ConstanceSettingsRequest,
18
+ ConstanceSettingsRequestForm,
19
+ ConstanceSettingsRequestMultipart,
20
+ ],
15
21
  ) -> dict[str, Any]:
16
22
  headers: dict[str, Any] = {}
17
23
 
@@ -20,9 +26,16 @@ def _get_kwargs(
20
26
  "url": "/api/override-settings/",
21
27
  }
22
28
 
23
- _kwargs["json"] = body.to_dict()
29
+ if isinstance(body, ConstanceSettingsRequest):
30
+ _kwargs["json"] = body.to_dict()
24
31
 
25
- headers["Content-Type"] = "application/json"
32
+ headers["Content-Type"] = "application/json"
33
+ if isinstance(body, ConstanceSettingsRequestForm):
34
+ _kwargs["data"] = body.to_dict()
35
+
36
+ headers["Content-Type"] = "application/x-www-form-urlencoded"
37
+ if isinstance(body, ConstanceSettingsRequestMultipart):
38
+ _kwargs["files"] = body.to_multipart()
26
39
 
27
40
  _kwargs["headers"] = headers
28
41
  return _kwargs
@@ -46,11 +59,17 @@ def _build_response(*, client: Union[AuthenticatedClient, Client], response: htt
46
59
  def sync_detailed(
47
60
  *,
48
61
  client: AuthenticatedClient,
49
- body: ConstanceSettingsRequest,
62
+ body: Union[
63
+ ConstanceSettingsRequest,
64
+ ConstanceSettingsRequestForm,
65
+ ConstanceSettingsRequestMultipart,
66
+ ],
50
67
  ) -> Response[Any]:
51
68
  """
52
69
  Args:
53
70
  body (ConstanceSettingsRequest):
71
+ body (ConstanceSettingsRequestForm):
72
+ body (ConstanceSettingsRequestMultipart):
54
73
 
55
74
  Raises:
56
75
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -74,11 +93,17 @@ def sync_detailed(
74
93
  async def asyncio_detailed(
75
94
  *,
76
95
  client: AuthenticatedClient,
77
- body: ConstanceSettingsRequest,
96
+ body: Union[
97
+ ConstanceSettingsRequest,
98
+ ConstanceSettingsRequestForm,
99
+ ConstanceSettingsRequestMultipart,
100
+ ],
78
101
  ) -> Response[Any]:
79
102
  """
80
103
  Args:
81
104
  body (ConstanceSettingsRequest):
105
+ body (ConstanceSettingsRequestForm):
106
+ body (ConstanceSettingsRequestMultipart):
82
107
 
83
108
  Raises:
84
109
  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.payment import Payment
9
9
  from ...models.payment_request import PaymentRequest
10
+ from ...models.payment_request_form import PaymentRequestForm
11
+ from ...models.payment_request_multipart import PaymentRequestMultipart
10
12
  from ...types import Response
11
13
 
12
14
 
13
15
  def _get_kwargs(
14
16
  *,
15
- body: PaymentRequest,
17
+ body: Union[
18
+ PaymentRequest,
19
+ PaymentRequestForm,
20
+ PaymentRequestMultipart,
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/payments/",
22
28
  }
23
29
 
24
- _kwargs["json"] = body.to_dict()
30
+ if isinstance(body, PaymentRequest):
31
+ _kwargs["json"] = body.to_dict()
25
32
 
26
- headers["Content-Type"] = "application/json"
33
+ headers["Content-Type"] = "application/json"
34
+ if isinstance(body, PaymentRequestForm):
35
+ _kwargs["data"] = body.to_dict()
36
+
37
+ headers["Content-Type"] = "application/x-www-form-urlencoded"
38
+ if isinstance(body, PaymentRequestMultipart):
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: PaymentRequest,
65
+ body: Union[
66
+ PaymentRequest,
67
+ PaymentRequestForm,
68
+ PaymentRequestMultipart,
69
+ ],
53
70
  ) -> Response[Payment]:
54
71
  """
55
72
  Args:
56
73
  body (PaymentRequest):
74
+ body (PaymentRequestForm):
75
+ body (PaymentRequestMultipart):
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: PaymentRequest,
99
+ body: Union[
100
+ PaymentRequest,
101
+ PaymentRequestForm,
102
+ PaymentRequestMultipart,
103
+ ],
81
104
  ) -> Payment:
82
105
  """
83
106
  Args:
84
107
  body (PaymentRequest):
108
+ body (PaymentRequestForm):
109
+ body (PaymentRequestMultipart):
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: PaymentRequest,
128
+ body: Union[
129
+ PaymentRequest,
130
+ PaymentRequestForm,
131
+ PaymentRequestMultipart,
132
+ ],
104
133
  ) -> Response[Payment]:
105
134
  """
106
135
  Args:
107
136
  body (PaymentRequest):
137
+ body (PaymentRequestForm):
138
+ body (PaymentRequestMultipart):
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: PaymentRequest,
160
+ body: Union[
161
+ PaymentRequest,
162
+ PaymentRequestForm,
163
+ PaymentRequestMultipart,
164
+ ],
130
165
  ) -> Payment:
131
166
  """
132
167
  Args:
133
168
  body (PaymentRequest):
169
+ body (PaymentRequestForm):
170
+ body (PaymentRequestMultipart):
134
171
 
135
172
  Raises:
136
173
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -7,6 +7,8 @@ import httpx
7
7
  from ... import errors
8
8
  from ...client import AuthenticatedClient, Client
9
9
  from ...models.patched_payment_request import PatchedPaymentRequest
10
+ from ...models.patched_payment_request_form import PatchedPaymentRequestForm
11
+ from ...models.patched_payment_request_multipart import PatchedPaymentRequestMultipart
10
12
  from ...models.payment import Payment
11
13
  from ...types import Response
12
14
 
@@ -14,7 +16,11 @@ from ...types import Response
14
16
  def _get_kwargs(
15
17
  uuid: UUID,
16
18
  *,
17
- body: PatchedPaymentRequest,
19
+ body: Union[
20
+ PatchedPaymentRequest,
21
+ PatchedPaymentRequestForm,
22
+ PatchedPaymentRequestMultipart,
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/payments/{uuid}/",
24
30
  }
25
31
 
26
- _kwargs["json"] = body.to_dict()
32
+ if isinstance(body, PatchedPaymentRequest):
33
+ _kwargs["json"] = body.to_dict()
27
34
 
28
- headers["Content-Type"] = "application/json"
35
+ headers["Content-Type"] = "application/json"
36
+ if isinstance(body, PatchedPaymentRequestForm):
37
+ _kwargs["data"] = body.to_dict()
38
+
39
+ headers["Content-Type"] = "application/x-www-form-urlencoded"
40
+ if isinstance(body, PatchedPaymentRequestMultipart):
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: PatchedPaymentRequest,
68
+ body: Union[
69
+ PatchedPaymentRequest,
70
+ PatchedPaymentRequestForm,
71
+ PatchedPaymentRequestMultipart,
72
+ ],
56
73
  ) -> Response[Payment]:
57
74
  """
58
75
  Args:
59
76
  uuid (UUID):
60
77
  body (PatchedPaymentRequest):
78
+ body (PatchedPaymentRequestForm):
79
+ body (PatchedPaymentRequestMultipart):
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: PatchedPaymentRequest,
105
+ body: Union[
106
+ PatchedPaymentRequest,
107
+ PatchedPaymentRequestForm,
108
+ PatchedPaymentRequestMultipart,
109
+ ],
87
110
  ) -> Payment:
88
111
  """
89
112
  Args:
90
113
  uuid (UUID):
91
114
  body (PatchedPaymentRequest):
115
+ body (PatchedPaymentRequestForm):
116
+ body (PatchedPaymentRequestMultipart):
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: PatchedPaymentRequest,
137
+ body: Union[
138
+ PatchedPaymentRequest,
139
+ PatchedPaymentRequestForm,
140
+ PatchedPaymentRequestMultipart,
141
+ ],
113
142
  ) -> Response[Payment]:
114
143
  """
115
144
  Args:
116
145
  uuid (UUID):
117
146
  body (PatchedPaymentRequest):
147
+ body (PatchedPaymentRequestForm):
148
+ body (PatchedPaymentRequestMultipart):
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: PatchedPaymentRequest,
172
+ body: Union[
173
+ PatchedPaymentRequest,
174
+ PatchedPaymentRequestForm,
175
+ PatchedPaymentRequestMultipart,
176
+ ],
142
177
  ) -> Payment:
143
178
  """
144
179
  Args:
145
180
  uuid (UUID):
146
181
  body (PatchedPaymentRequest):
182
+ body (PatchedPaymentRequestForm):
183
+ body (PatchedPaymentRequestMultipart):
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.payment import Payment
10
10
  from ...models.payment_request import PaymentRequest
11
+ from ...models.payment_request_form import PaymentRequestForm
12
+ from ...models.payment_request_multipart import PaymentRequestMultipart
11
13
  from ...types import Response
12
14
 
13
15
 
14
16
  def _get_kwargs(
15
17
  uuid: UUID,
16
18
  *,
17
- body: PaymentRequest,
19
+ body: Union[
20
+ PaymentRequest,
21
+ PaymentRequestForm,
22
+ PaymentRequestMultipart,
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/payments/{uuid}/",
24
30
  }
25
31
 
26
- _kwargs["json"] = body.to_dict()
32
+ if isinstance(body, PaymentRequest):
33
+ _kwargs["json"] = body.to_dict()
27
34
 
28
- headers["Content-Type"] = "application/json"
35
+ headers["Content-Type"] = "application/json"
36
+ if isinstance(body, PaymentRequestForm):
37
+ _kwargs["data"] = body.to_dict()
38
+
39
+ headers["Content-Type"] = "application/x-www-form-urlencoded"
40
+ if isinstance(body, PaymentRequestMultipart):
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: PaymentRequest,
68
+ body: Union[
69
+ PaymentRequest,
70
+ PaymentRequestForm,
71
+ PaymentRequestMultipart,
72
+ ],
56
73
  ) -> Response[Payment]:
57
74
  """
58
75
  Args:
59
76
  uuid (UUID):
60
77
  body (PaymentRequest):
78
+ body (PaymentRequestForm):
79
+ body (PaymentRequestMultipart):
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: PaymentRequest,
105
+ body: Union[
106
+ PaymentRequest,
107
+ PaymentRequestForm,
108
+ PaymentRequestMultipart,
109
+ ],
87
110
  ) -> Payment:
88
111
  """
89
112
  Args:
90
113
  uuid (UUID):
91
114
  body (PaymentRequest):
115
+ body (PaymentRequestForm):
116
+ body (PaymentRequestMultipart):
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: PaymentRequest,
137
+ body: Union[
138
+ PaymentRequest,
139
+ PaymentRequestForm,
140
+ PaymentRequestMultipart,
141
+ ],
113
142
  ) -> Response[Payment]:
114
143
  """
115
144
  Args:
116
145
  uuid (UUID):
117
146
  body (PaymentRequest):
147
+ body (PaymentRequestForm):
148
+ body (PaymentRequestMultipart):
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: PaymentRequest,
172
+ body: Union[
173
+ PaymentRequest,
174
+ PaymentRequestForm,
175
+ PaymentRequestMultipart,
176
+ ],
142
177
  ) -> Payment:
143
178
  """
144
179
  Args:
145
180
  uuid (UUID):
146
181
  body (PaymentRequest):
182
+ body (PaymentRequestForm):
183
+ body (PaymentRequestMultipart):
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.project import Project
9
9
  from ...models.project_request import ProjectRequest
10
+ from ...models.project_request_form import ProjectRequestForm
11
+ from ...models.project_request_multipart import ProjectRequestMultipart
10
12
  from ...types import Response
11
13
 
12
14
 
13
15
  def _get_kwargs(
14
16
  *,
15
- body: ProjectRequest,
17
+ body: Union[
18
+ ProjectRequest,
19
+ ProjectRequestForm,
20
+ ProjectRequestMultipart,
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/projects/",
22
28
  }
23
29
 
24
- _kwargs["json"] = body.to_dict()
30
+ if isinstance(body, ProjectRequest):
31
+ _kwargs["json"] = body.to_dict()
25
32
 
26
- headers["Content-Type"] = "application/json"
33
+ headers["Content-Type"] = "application/json"
34
+ if isinstance(body, ProjectRequestForm):
35
+ _kwargs["data"] = body.to_dict()
36
+
37
+ headers["Content-Type"] = "application/x-www-form-urlencoded"
38
+ if isinstance(body, ProjectRequestMultipart):
39
+ _kwargs["files"] = body.to_multipart()
27
40
 
28
41
  _kwargs["headers"] = headers
29
42
  return _kwargs
@@ -49,13 +62,19 @@ def _build_response(*, client: Union[AuthenticatedClient, Client], response: htt
49
62
  def sync_detailed(
50
63
  *,
51
64
  client: AuthenticatedClient,
52
- body: ProjectRequest,
65
+ body: Union[
66
+ ProjectRequest,
67
+ ProjectRequestForm,
68
+ ProjectRequestMultipart,
69
+ ],
53
70
  ) -> Response[Project]:
54
71
  """A new project can be created by users with staff privilege (is_staff=True) or customer owners.
55
72
  Project resource quota is optional.
56
73
 
57
74
  Args:
58
75
  body (ProjectRequest):
76
+ body (ProjectRequestForm):
77
+ body (ProjectRequestMultipart):
59
78
 
60
79
  Raises:
61
80
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -79,13 +98,19 @@ def sync_detailed(
79
98
  def sync(
80
99
  *,
81
100
  client: AuthenticatedClient,
82
- body: ProjectRequest,
101
+ body: Union[
102
+ ProjectRequest,
103
+ ProjectRequestForm,
104
+ ProjectRequestMultipart,
105
+ ],
83
106
  ) -> Project:
84
107
  """A new project can be created by users with staff privilege (is_staff=True) or customer owners.
85
108
  Project resource quota is optional.
86
109
 
87
110
  Args:
88
111
  body (ProjectRequest):
112
+ body (ProjectRequestForm):
113
+ body (ProjectRequestMultipart):
89
114
 
90
115
  Raises:
91
116
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -104,13 +129,19 @@ def sync(
104
129
  async def asyncio_detailed(
105
130
  *,
106
131
  client: AuthenticatedClient,
107
- body: ProjectRequest,
132
+ body: Union[
133
+ ProjectRequest,
134
+ ProjectRequestForm,
135
+ ProjectRequestMultipart,
136
+ ],
108
137
  ) -> Response[Project]:
109
138
  """A new project can be created by users with staff privilege (is_staff=True) or customer owners.
110
139
  Project resource quota is optional.
111
140
 
112
141
  Args:
113
142
  body (ProjectRequest):
143
+ body (ProjectRequestForm):
144
+ body (ProjectRequestMultipart):
114
145
 
115
146
  Raises:
116
147
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -132,13 +163,19 @@ async def asyncio_detailed(
132
163
  async def asyncio(
133
164
  *,
134
165
  client: AuthenticatedClient,
135
- body: ProjectRequest,
166
+ body: Union[
167
+ ProjectRequest,
168
+ ProjectRequestForm,
169
+ ProjectRequestMultipart,
170
+ ],
136
171
  ) -> Project:
137
172
  """A new project can be created by users with staff privilege (is_staff=True) or customer owners.
138
173
  Project resource quota is optional.
139
174
 
140
175
  Args:
141
176
  body (ProjectRequest):
177
+ body (ProjectRequestForm):
178
+ body (ProjectRequestMultipart):
142
179
 
143
180
  Raises:
144
181
  errors.UnexpectedStatus: If the server returns an undocumented status code.