waldur-api-client 7.8.1__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 (169) 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_provider_offerings/marketplace_provider_offerings_create.py +44 -7
  28. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_update_image.py +44 -7
  29. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_update_thumbnail.py +30 -5
  30. waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_count.py +10 -13
  31. waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_list.py +10 -13
  32. waldur_api_client/api/marketplace_resources/marketplace_resources_count.py +10 -13
  33. waldur_api_client/api/marketplace_resources/marketplace_resources_list.py +10 -13
  34. waldur_api_client/api/marketplace_screenshots/marketplace_screenshots_create.py +44 -7
  35. waldur_api_client/api/marketplace_screenshots/marketplace_screenshots_update.py +44 -7
  36. waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_create.py +44 -7
  37. waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_partial_update.py +44 -7
  38. waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_update.py +44 -7
  39. waldur_api_client/api/override_settings/override_settings.py +30 -5
  40. waldur_api_client/api/payments/payments_create.py +44 -7
  41. waldur_api_client/api/payments/payments_partial_update.py +44 -7
  42. waldur_api_client/api/payments/payments_update.py +44 -7
  43. waldur_api_client/api/projects/projects_create.py +44 -7
  44. waldur_api_client/api/projects/projects_partial_update.py +44 -7
  45. waldur_api_client/api/projects/projects_update.py +44 -7
  46. waldur_api_client/api/proposal_proposals/proposal_proposals_attach_document.py +30 -5
  47. waldur_api_client/api/slurm_jobs/slurm_jobs_create.py +44 -7
  48. waldur_api_client/api/slurm_jobs/slurm_jobs_update.py +44 -7
  49. waldur_api_client/api/support_attachments/support_attachments_create.py +44 -7
  50. waldur_api_client/api/user_group_invitations/user_group_invitations_count.py +15 -0
  51. waldur_api_client/api/user_group_invitations/user_group_invitations_list.py +15 -0
  52. waldur_api_client/api/users/users_create.py +44 -7
  53. waldur_api_client/api/users/users_partial_update.py +44 -7
  54. waldur_api_client/api/users/users_update.py +44 -7
  55. waldur_api_client/models/__init__.py +146 -2
  56. waldur_api_client/models/agent_type_enum.py +13 -0
  57. waldur_api_client/models/attachment_request_form.py +70 -0
  58. waldur_api_client/models/attachment_request_multipart.py +83 -0
  59. waldur_api_client/models/booking_offerings_list_field_item.py +1 -0
  60. waldur_api_client/models/booking_offerings_retrieve_field_item.py +1 -0
  61. waldur_api_client/models/call_managing_organisation_request_form.py +103 -0
  62. waldur_api_client/models/call_managing_organisation_request_multipart.py +122 -0
  63. waldur_api_client/models/call_round.py +11 -1
  64. waldur_api_client/models/category_group_request_form.py +103 -0
  65. waldur_api_client/models/category_group_request_multipart.py +122 -0
  66. waldur_api_client/models/checklist_category_request_form.py +103 -0
  67. waldur_api_client/models/checklist_category_request_multipart.py +122 -0
  68. waldur_api_client/models/checklists_admin_checklist_questions_checklist_type.py +11 -0
  69. waldur_api_client/models/checklists_admin_checklist_questions_checklist_type_in_item.py +11 -0
  70. waldur_api_client/models/checklists_admin_count_checklist_type.py +11 -0
  71. waldur_api_client/models/checklists_admin_count_checklist_type_in_item.py +11 -0
  72. waldur_api_client/models/checklists_admin_list_checklist_type.py +11 -0
  73. waldur_api_client/models/checklists_admin_list_checklist_type_in_item.py +11 -0
  74. waldur_api_client/models/constance_settings.py +9 -0
  75. waldur_api_client/models/constance_settings_request.py +9 -0
  76. waldur_api_client/models/constance_settings_request_form.py +1547 -0
  77. waldur_api_client/models/constance_settings_request_multipart.py +2173 -0
  78. waldur_api_client/models/customer.py +9 -0
  79. waldur_api_client/models/customer_request.py +9 -0
  80. waldur_api_client/models/customer_request_form.py +312 -0
  81. waldur_api_client/models/customer_request_multipart.py +394 -0
  82. waldur_api_client/models/customers_list_field_item.py +1 -0
  83. waldur_api_client/models/customers_retrieve_field_item.py +1 -0
  84. waldur_api_client/models/external_link_request_form.py +111 -0
  85. waldur_api_client/models/external_link_request_multipart.py +132 -0
  86. waldur_api_client/models/firecrest_job_request_form.py +104 -0
  87. waldur_api_client/models/firecrest_job_request_multipart.py +127 -0
  88. waldur_api_client/models/integration_status.py +21 -4
  89. waldur_api_client/models/marketplace_category_request_form.py +153 -0
  90. waldur_api_client/models/marketplace_category_request_multipart.py +187 -0
  91. waldur_api_client/models/marketplace_provider_offerings_list_course_accounts_retrieve_field_item.py +1 -0
  92. waldur_api_client/models/marketplace_provider_offerings_list_customer_service_accounts_retrieve_field_item.py +1 -0
  93. waldur_api_client/models/marketplace_provider_offerings_list_field_item.py +1 -0
  94. waldur_api_client/models/marketplace_provider_offerings_list_project_service_accounts_retrieve_field_item.py +1 -0
  95. waldur_api_client/models/marketplace_provider_offerings_retrieve_field_item.py +1 -0
  96. waldur_api_client/models/marketplace_provider_offerings_stats_retrieve_field_item.py +1 -0
  97. waldur_api_client/models/marketplace_provider_offerings_user_has_resource_access_retrieve_field_item.py +1 -0
  98. waldur_api_client/models/marketplace_public_offerings_list_field_item.py +1 -0
  99. waldur_api_client/models/marketplace_public_offerings_retrieve_field_item.py +1 -0
  100. waldur_api_client/models/marketplace_service_providers_offerings_list_field_item.py +1 -0
  101. waldur_api_client/models/nested_round.py +9 -0
  102. waldur_api_client/models/nested_round_request.py +9 -0
  103. waldur_api_client/models/offering.py +20 -0
  104. waldur_api_client/models/offering_create.py +20 -0
  105. waldur_api_client/models/offering_create_request.py +20 -0
  106. waldur_api_client/models/offering_create_request_form.py +479 -0
  107. waldur_api_client/models/offering_create_request_form_limits.py +57 -0
  108. waldur_api_client/models/offering_create_request_multipart.py +599 -0
  109. waldur_api_client/models/offering_create_request_multipart_limits.py +57 -0
  110. waldur_api_client/models/offering_file_request_form.py +78 -0
  111. waldur_api_client/models/offering_file_request_multipart.py +93 -0
  112. waldur_api_client/models/offering_image_request_form.py +62 -0
  113. waldur_api_client/models/offering_image_request_multipart.py +73 -0
  114. waldur_api_client/models/offering_thumbnail_request_form.py +62 -0
  115. waldur_api_client/models/offering_thumbnail_request_multipart.py +73 -0
  116. waldur_api_client/models/offering_user.py +5 -5
  117. waldur_api_client/models/{offering_user_state_enum.py → offering_user_state.py} +1 -1
  118. waldur_api_client/models/order_attachment_request_form.py +84 -0
  119. waldur_api_client/models/order_attachment_request_multipart.py +98 -0
  120. waldur_api_client/models/paid_request_form.py +81 -0
  121. waldur_api_client/models/paid_request_multipart.py +94 -0
  122. waldur_api_client/models/patched_call_managing_organisation_request_form.py +92 -0
  123. waldur_api_client/models/patched_call_managing_organisation_request_multipart.py +109 -0
  124. waldur_api_client/models/patched_category_group_request_form.py +101 -0
  125. waldur_api_client/models/patched_category_group_request_multipart.py +121 -0
  126. waldur_api_client/models/patched_checklist_category_request_form.py +102 -0
  127. waldur_api_client/models/patched_checklist_category_request_multipart.py +122 -0
  128. waldur_api_client/models/patched_customer_request.py +9 -0
  129. waldur_api_client/models/patched_customer_request_form.py +310 -0
  130. waldur_api_client/models/patched_customer_request_multipart.py +393 -0
  131. waldur_api_client/models/patched_external_link_request_form.py +110 -0
  132. waldur_api_client/models/patched_external_link_request_multipart.py +133 -0
  133. waldur_api_client/models/patched_marketplace_category_request_form.py +151 -0
  134. waldur_api_client/models/patched_marketplace_category_request_multipart.py +186 -0
  135. waldur_api_client/models/patched_payment_request_form.py +119 -0
  136. waldur_api_client/models/patched_payment_request_multipart.py +142 -0
  137. waldur_api_client/models/patched_project_request_form.py +279 -0
  138. waldur_api_client/models/patched_project_request_multipart.py +342 -0
  139. waldur_api_client/models/patched_service_provider_request_form.py +101 -0
  140. waldur_api_client/models/patched_service_provider_request_multipart.py +121 -0
  141. waldur_api_client/models/patched_user_request_form.py +241 -0
  142. waldur_api_client/models/patched_user_request_multipart.py +306 -0
  143. waldur_api_client/models/payment_request_form.py +113 -0
  144. waldur_api_client/models/payment_request_multipart.py +134 -0
  145. waldur_api_client/models/project_request_form.py +280 -0
  146. waldur_api_client/models/project_request_multipart.py +341 -0
  147. waldur_api_client/models/project_user.py +9 -0
  148. waldur_api_client/models/proposal.py +8 -0
  149. waldur_api_client/models/proposal_documentation_request_form.py +84 -0
  150. waldur_api_client/models/proposal_documentation_request_multipart.py +98 -0
  151. waldur_api_client/models/proposal_proposals_count_o_item.py +3 -1
  152. waldur_api_client/models/proposal_proposals_list_o_item.py +3 -1
  153. waldur_api_client/models/proposal_review.py +40 -0
  154. waldur_api_client/models/protected_proposal_list.py +8 -0
  155. waldur_api_client/models/protected_proposal_list_request.py +8 -0
  156. waldur_api_client/models/protected_round.py +8 -0
  157. waldur_api_client/models/provider_offering.py +21 -1
  158. waldur_api_client/models/provider_offering_details.py +20 -0
  159. waldur_api_client/models/public_offering_details.py +20 -0
  160. waldur_api_client/models/screenshot_request_form.py +87 -0
  161. waldur_api_client/models/screenshot_request_multipart.py +105 -0
  162. waldur_api_client/models/service_provider_request_form.py +112 -0
  163. waldur_api_client/models/service_provider_request_multipart.py +134 -0
  164. waldur_api_client/models/user_request_form.py +250 -0
  165. waldur_api_client/models/user_request_multipart.py +316 -0
  166. {waldur_api_client-7.8.1.dist-info → waldur_api_client-7.8.2.dist-info}/METADATA +1 -1
  167. {waldur_api_client-7.8.1.dist-info → waldur_api_client-7.8.2.dist-info}/RECORD +169 -98
  168. {waldur_api_client-7.8.1.dist-info → waldur_api_client-7.8.2.dist-info}/WHEEL +0 -0
  169. {waldur_api_client-7.8.1.dist-info → waldur_api_client-7.8.2.dist-info}/licenses/LICENSE +0 -0
@@ -7,6 +7,8 @@ import httpx
7
7
  from ... import errors
8
8
  from ...client import AuthenticatedClient, Client
9
9
  from ...models.offering_image_request import OfferingImageRequest
10
+ from ...models.offering_image_request_form import OfferingImageRequestForm
11
+ from ...models.offering_image_request_multipart import OfferingImageRequestMultipart
10
12
  from ...models.provider_offering_details import ProviderOfferingDetails
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: OfferingImageRequest,
19
+ body: Union[
20
+ OfferingImageRequest,
21
+ OfferingImageRequestForm,
22
+ OfferingImageRequestMultipart,
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-provider-offerings/{uuid}/update_image/",
24
30
  }
25
31
 
26
- _kwargs["json"] = body.to_dict()
32
+ if isinstance(body, OfferingImageRequest):
33
+ _kwargs["json"] = body.to_dict()
27
34
 
28
- headers["Content-Type"] = "application/json"
35
+ headers["Content-Type"] = "application/json"
36
+ if isinstance(body, OfferingImageRequestForm):
37
+ _kwargs["data"] = body.to_dict()
38
+
39
+ headers["Content-Type"] = "application/x-www-form-urlencoded"
40
+ if isinstance(body, OfferingImageRequestMultipart):
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: OfferingImageRequest,
70
+ body: Union[
71
+ OfferingImageRequest,
72
+ OfferingImageRequestForm,
73
+ OfferingImageRequestMultipart,
74
+ ],
58
75
  ) -> Response[ProviderOfferingDetails]:
59
76
  """Update offering image.
60
77
 
61
78
  Args:
62
79
  uuid (UUID):
63
80
  body (OfferingImageRequest):
81
+ body (OfferingImageRequestForm):
82
+ body (OfferingImageRequestMultipart):
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: OfferingImageRequest,
108
+ body: Union[
109
+ OfferingImageRequest,
110
+ OfferingImageRequestForm,
111
+ OfferingImageRequestMultipart,
112
+ ],
90
113
  ) -> ProviderOfferingDetails:
91
114
  """Update offering image.
92
115
 
93
116
  Args:
94
117
  uuid (UUID):
95
118
  body (OfferingImageRequest):
119
+ body (OfferingImageRequestForm):
120
+ body (OfferingImageRequestMultipart):
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: OfferingImageRequest,
141
+ body: Union[
142
+ OfferingImageRequest,
143
+ OfferingImageRequestForm,
144
+ OfferingImageRequestMultipart,
145
+ ],
117
146
  ) -> Response[ProviderOfferingDetails]:
118
147
  """Update offering image.
119
148
 
120
149
  Args:
121
150
  uuid (UUID):
122
151
  body (OfferingImageRequest):
152
+ body (OfferingImageRequestForm):
153
+ body (OfferingImageRequestMultipart):
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: OfferingImageRequest,
177
+ body: Union[
178
+ OfferingImageRequest,
179
+ OfferingImageRequestForm,
180
+ OfferingImageRequestMultipart,
181
+ ],
147
182
  ) -> ProviderOfferingDetails:
148
183
  """Update offering image.
149
184
 
150
185
  Args:
151
186
  uuid (UUID):
152
187
  body (OfferingImageRequest):
188
+ body (OfferingImageRequestForm):
189
+ body (OfferingImageRequestMultipart):
153
190
 
154
191
  Raises:
155
192
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -7,13 +7,19 @@ import httpx
7
7
  from ... import errors
8
8
  from ...client import AuthenticatedClient, Client
9
9
  from ...models.offering_thumbnail_request import OfferingThumbnailRequest
10
+ from ...models.offering_thumbnail_request_form import OfferingThumbnailRequestForm
11
+ from ...models.offering_thumbnail_request_multipart import OfferingThumbnailRequestMultipart
10
12
  from ...types import Response
11
13
 
12
14
 
13
15
  def _get_kwargs(
14
16
  uuid: UUID,
15
17
  *,
16
- body: OfferingThumbnailRequest,
18
+ body: Union[
19
+ OfferingThumbnailRequest,
20
+ OfferingThumbnailRequestForm,
21
+ OfferingThumbnailRequestMultipart,
22
+ ],
17
23
  ) -> dict[str, Any]:
18
24
  headers: dict[str, Any] = {}
19
25
 
@@ -22,9 +28,16 @@ def _get_kwargs(
22
28
  "url": f"/api/marketplace-provider-offerings/{uuid}/update_thumbnail/",
23
29
  }
24
30
 
25
- _kwargs["json"] = body.to_dict()
31
+ if isinstance(body, OfferingThumbnailRequest):
32
+ _kwargs["json"] = body.to_dict()
26
33
 
27
- headers["Content-Type"] = "application/json"
34
+ headers["Content-Type"] = "application/json"
35
+ if isinstance(body, OfferingThumbnailRequestForm):
36
+ _kwargs["data"] = body.to_dict()
37
+
38
+ headers["Content-Type"] = "application/x-www-form-urlencoded"
39
+ if isinstance(body, OfferingThumbnailRequestMultipart):
40
+ _kwargs["files"] = body.to_multipart()
28
41
 
29
42
  _kwargs["headers"] = headers
30
43
  return _kwargs
@@ -49,13 +62,19 @@ def sync_detailed(
49
62
  uuid: UUID,
50
63
  *,
51
64
  client: AuthenticatedClient,
52
- body: OfferingThumbnailRequest,
65
+ body: Union[
66
+ OfferingThumbnailRequest,
67
+ OfferingThumbnailRequestForm,
68
+ OfferingThumbnailRequestMultipart,
69
+ ],
53
70
  ) -> Response[Any]:
54
71
  """Update offering thumbnail.
55
72
 
56
73
  Args:
57
74
  uuid (UUID):
58
75
  body (OfferingThumbnailRequest):
76
+ body (OfferingThumbnailRequestForm):
77
+ body (OfferingThumbnailRequestMultipart):
59
78
 
60
79
  Raises:
61
80
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -81,13 +100,19 @@ async def asyncio_detailed(
81
100
  uuid: UUID,
82
101
  *,
83
102
  client: AuthenticatedClient,
84
- body: OfferingThumbnailRequest,
103
+ body: Union[
104
+ OfferingThumbnailRequest,
105
+ OfferingThumbnailRequestForm,
106
+ OfferingThumbnailRequestMultipart,
107
+ ],
85
108
  ) -> Response[Any]:
86
109
  """Update offering thumbnail.
87
110
 
88
111
  Args:
89
112
  uuid (UUID):
90
113
  body (OfferingThumbnailRequest):
114
+ body (OfferingThumbnailRequestForm):
115
+ body (OfferingThumbnailRequestMultipart):
91
116
 
92
117
  Raises:
93
118
  errors.UnexpectedStatus: If the server returns an undocumented status code.
@@ -27,7 +27,7 @@ def _get_kwargs(
27
27
  name_exact: Union[Unset, str] = UNSET,
28
28
  o: Union[Unset, list[MarketplaceProviderResourcesCountOItem]] = UNSET,
29
29
  offering: Union[Unset, str] = UNSET,
30
- offering_billable: Union[Unset, UUID] = UNSET,
30
+ offering_billable: Union[Unset, bool] = UNSET,
31
31
  offering_shared: Union[Unset, bool] = UNSET,
32
32
  offering_slug: Union[Unset, list[str]] = UNSET,
33
33
  offering_type: Union[Unset, str] = UNSET,
@@ -93,10 +93,7 @@ def _get_kwargs(
93
93
 
94
94
  params["offering"] = offering
95
95
 
96
- json_offering_billable: Union[Unset, str] = UNSET
97
- if not isinstance(offering_billable, Unset):
98
- json_offering_billable = str(offering_billable)
99
- params["offering_billable"] = json_offering_billable
96
+ params["offering_billable"] = offering_billable
100
97
 
101
98
  params["offering_shared"] = offering_shared
102
99
 
@@ -213,7 +210,7 @@ def sync_detailed(
213
210
  name_exact: Union[Unset, str] = UNSET,
214
211
  o: Union[Unset, list[MarketplaceProviderResourcesCountOItem]] = UNSET,
215
212
  offering: Union[Unset, str] = UNSET,
216
- offering_billable: Union[Unset, UUID] = UNSET,
213
+ offering_billable: Union[Unset, bool] = UNSET,
217
214
  offering_shared: Union[Unset, bool] = UNSET,
218
215
  offering_slug: Union[Unset, list[str]] = UNSET,
219
216
  offering_type: Union[Unset, str] = UNSET,
@@ -248,7 +245,7 @@ def sync_detailed(
248
245
  name_exact (Union[Unset, str]):
249
246
  o (Union[Unset, list[MarketplaceProviderResourcesCountOItem]]):
250
247
  offering (Union[Unset, str]):
251
- offering_billable (Union[Unset, UUID]):
248
+ offering_billable (Union[Unset, bool]):
252
249
  offering_shared (Union[Unset, bool]):
253
250
  offering_slug (Union[Unset, list[str]]):
254
251
  offering_type (Union[Unset, str]):
@@ -332,7 +329,7 @@ def sync(
332
329
  name_exact: Union[Unset, str] = UNSET,
333
330
  o: Union[Unset, list[MarketplaceProviderResourcesCountOItem]] = UNSET,
334
331
  offering: Union[Unset, str] = UNSET,
335
- offering_billable: Union[Unset, UUID] = UNSET,
332
+ offering_billable: Union[Unset, bool] = UNSET,
336
333
  offering_shared: Union[Unset, bool] = UNSET,
337
334
  offering_slug: Union[Unset, list[str]] = UNSET,
338
335
  offering_type: Union[Unset, str] = UNSET,
@@ -367,7 +364,7 @@ def sync(
367
364
  name_exact (Union[Unset, str]):
368
365
  o (Union[Unset, list[MarketplaceProviderResourcesCountOItem]]):
369
366
  offering (Union[Unset, str]):
370
- offering_billable (Union[Unset, UUID]):
367
+ offering_billable (Union[Unset, bool]):
371
368
  offering_shared (Union[Unset, bool]):
372
369
  offering_slug (Union[Unset, list[str]]):
373
370
  offering_type (Union[Unset, str]):
@@ -446,7 +443,7 @@ async def asyncio_detailed(
446
443
  name_exact: Union[Unset, str] = UNSET,
447
444
  o: Union[Unset, list[MarketplaceProviderResourcesCountOItem]] = UNSET,
448
445
  offering: Union[Unset, str] = UNSET,
449
- offering_billable: Union[Unset, UUID] = UNSET,
446
+ offering_billable: Union[Unset, bool] = UNSET,
450
447
  offering_shared: Union[Unset, bool] = UNSET,
451
448
  offering_slug: Union[Unset, list[str]] = UNSET,
452
449
  offering_type: Union[Unset, str] = UNSET,
@@ -481,7 +478,7 @@ async def asyncio_detailed(
481
478
  name_exact (Union[Unset, str]):
482
479
  o (Union[Unset, list[MarketplaceProviderResourcesCountOItem]]):
483
480
  offering (Union[Unset, str]):
484
- offering_billable (Union[Unset, UUID]):
481
+ offering_billable (Union[Unset, bool]):
485
482
  offering_shared (Union[Unset, bool]):
486
483
  offering_slug (Union[Unset, list[str]]):
487
484
  offering_type (Union[Unset, str]):
@@ -563,7 +560,7 @@ async def asyncio(
563
560
  name_exact: Union[Unset, str] = UNSET,
564
561
  o: Union[Unset, list[MarketplaceProviderResourcesCountOItem]] = UNSET,
565
562
  offering: Union[Unset, str] = UNSET,
566
- offering_billable: Union[Unset, UUID] = UNSET,
563
+ offering_billable: Union[Unset, bool] = UNSET,
567
564
  offering_shared: Union[Unset, bool] = UNSET,
568
565
  offering_slug: Union[Unset, list[str]] = UNSET,
569
566
  offering_type: Union[Unset, str] = UNSET,
@@ -598,7 +595,7 @@ async def asyncio(
598
595
  name_exact (Union[Unset, str]):
599
596
  o (Union[Unset, list[MarketplaceProviderResourcesCountOItem]]):
600
597
  offering (Union[Unset, str]):
601
- offering_billable (Union[Unset, UUID]):
598
+ offering_billable (Union[Unset, bool]):
602
599
  offering_shared (Union[Unset, bool]):
603
600
  offering_slug (Union[Unset, list[str]]):
604
601
  offering_type (Union[Unset, str]):
@@ -30,7 +30,7 @@ def _get_kwargs(
30
30
  name_exact: Union[Unset, str] = UNSET,
31
31
  o: Union[Unset, list[MarketplaceProviderResourcesListOItem]] = UNSET,
32
32
  offering: Union[Unset, str] = UNSET,
33
- offering_billable: Union[Unset, UUID] = UNSET,
33
+ offering_billable: Union[Unset, bool] = UNSET,
34
34
  offering_shared: Union[Unset, bool] = UNSET,
35
35
  offering_slug: Union[Unset, list[str]] = UNSET,
36
36
  offering_type: Union[Unset, str] = UNSET,
@@ -105,10 +105,7 @@ def _get_kwargs(
105
105
 
106
106
  params["offering"] = offering
107
107
 
108
- json_offering_billable: Union[Unset, str] = UNSET
109
- if not isinstance(offering_billable, Unset):
110
- json_offering_billable = str(offering_billable)
111
- params["offering_billable"] = json_offering_billable
108
+ params["offering_billable"] = offering_billable
112
109
 
113
110
  params["offering_shared"] = offering_shared
114
111
 
@@ -226,7 +223,7 @@ def sync_detailed(
226
223
  name_exact: Union[Unset, str] = UNSET,
227
224
  o: Union[Unset, list[MarketplaceProviderResourcesListOItem]] = UNSET,
228
225
  offering: Union[Unset, str] = UNSET,
229
- offering_billable: Union[Unset, UUID] = UNSET,
226
+ offering_billable: Union[Unset, bool] = UNSET,
230
227
  offering_shared: Union[Unset, bool] = UNSET,
231
228
  offering_slug: Union[Unset, list[str]] = UNSET,
232
229
  offering_type: Union[Unset, str] = UNSET,
@@ -262,7 +259,7 @@ def sync_detailed(
262
259
  name_exact (Union[Unset, str]):
263
260
  o (Union[Unset, list[MarketplaceProviderResourcesListOItem]]):
264
261
  offering (Union[Unset, str]):
265
- offering_billable (Union[Unset, UUID]):
262
+ offering_billable (Union[Unset, bool]):
266
263
  offering_shared (Union[Unset, bool]):
267
264
  offering_slug (Union[Unset, list[str]]):
268
265
  offering_type (Union[Unset, str]):
@@ -348,7 +345,7 @@ def sync(
348
345
  name_exact: Union[Unset, str] = UNSET,
349
346
  o: Union[Unset, list[MarketplaceProviderResourcesListOItem]] = UNSET,
350
347
  offering: Union[Unset, str] = UNSET,
351
- offering_billable: Union[Unset, UUID] = UNSET,
348
+ offering_billable: Union[Unset, bool] = UNSET,
352
349
  offering_shared: Union[Unset, bool] = UNSET,
353
350
  offering_slug: Union[Unset, list[str]] = UNSET,
354
351
  offering_type: Union[Unset, str] = UNSET,
@@ -384,7 +381,7 @@ def sync(
384
381
  name_exact (Union[Unset, str]):
385
382
  o (Union[Unset, list[MarketplaceProviderResourcesListOItem]]):
386
383
  offering (Union[Unset, str]):
387
- offering_billable (Union[Unset, UUID]):
384
+ offering_billable (Union[Unset, bool]):
388
385
  offering_shared (Union[Unset, bool]):
389
386
  offering_slug (Union[Unset, list[str]]):
390
387
  offering_type (Union[Unset, str]):
@@ -465,7 +462,7 @@ async def asyncio_detailed(
465
462
  name_exact: Union[Unset, str] = UNSET,
466
463
  o: Union[Unset, list[MarketplaceProviderResourcesListOItem]] = UNSET,
467
464
  offering: Union[Unset, str] = UNSET,
468
- offering_billable: Union[Unset, UUID] = UNSET,
465
+ offering_billable: Union[Unset, bool] = UNSET,
469
466
  offering_shared: Union[Unset, bool] = UNSET,
470
467
  offering_slug: Union[Unset, list[str]] = UNSET,
471
468
  offering_type: Union[Unset, str] = UNSET,
@@ -501,7 +498,7 @@ async def asyncio_detailed(
501
498
  name_exact (Union[Unset, str]):
502
499
  o (Union[Unset, list[MarketplaceProviderResourcesListOItem]]):
503
500
  offering (Union[Unset, str]):
504
- offering_billable (Union[Unset, UUID]):
501
+ offering_billable (Union[Unset, bool]):
505
502
  offering_shared (Union[Unset, bool]):
506
503
  offering_slug (Union[Unset, list[str]]):
507
504
  offering_type (Union[Unset, str]):
@@ -585,7 +582,7 @@ async def asyncio(
585
582
  name_exact: Union[Unset, str] = UNSET,
586
583
  o: Union[Unset, list[MarketplaceProviderResourcesListOItem]] = UNSET,
587
584
  offering: Union[Unset, str] = UNSET,
588
- offering_billable: Union[Unset, UUID] = UNSET,
585
+ offering_billable: Union[Unset, bool] = UNSET,
589
586
  offering_shared: Union[Unset, bool] = UNSET,
590
587
  offering_slug: Union[Unset, list[str]] = UNSET,
591
588
  offering_type: Union[Unset, str] = UNSET,
@@ -621,7 +618,7 @@ async def asyncio(
621
618
  name_exact (Union[Unset, str]):
622
619
  o (Union[Unset, list[MarketplaceProviderResourcesListOItem]]):
623
620
  offering (Union[Unset, str]):
624
- offering_billable (Union[Unset, UUID]):
621
+ offering_billable (Union[Unset, bool]):
625
622
  offering_shared (Union[Unset, bool]):
626
623
  offering_slug (Union[Unset, list[str]]):
627
624
  offering_type (Union[Unset, str]):
@@ -27,7 +27,7 @@ def _get_kwargs(
27
27
  name_exact: Union[Unset, str] = UNSET,
28
28
  o: Union[Unset, list[MarketplaceResourcesCountOItem]] = UNSET,
29
29
  offering: Union[Unset, str] = UNSET,
30
- offering_billable: Union[Unset, UUID] = UNSET,
30
+ offering_billable: Union[Unset, bool] = UNSET,
31
31
  offering_shared: Union[Unset, bool] = UNSET,
32
32
  offering_slug: Union[Unset, list[str]] = UNSET,
33
33
  offering_type: Union[Unset, str] = UNSET,
@@ -93,10 +93,7 @@ def _get_kwargs(
93
93
 
94
94
  params["offering"] = offering
95
95
 
96
- json_offering_billable: Union[Unset, str] = UNSET
97
- if not isinstance(offering_billable, Unset):
98
- json_offering_billable = str(offering_billable)
99
- params["offering_billable"] = json_offering_billable
96
+ params["offering_billable"] = offering_billable
100
97
 
101
98
  params["offering_shared"] = offering_shared
102
99
 
@@ -213,7 +210,7 @@ def sync_detailed(
213
210
  name_exact: Union[Unset, str] = UNSET,
214
211
  o: Union[Unset, list[MarketplaceResourcesCountOItem]] = UNSET,
215
212
  offering: Union[Unset, str] = UNSET,
216
- offering_billable: Union[Unset, UUID] = UNSET,
213
+ offering_billable: Union[Unset, bool] = UNSET,
217
214
  offering_shared: Union[Unset, bool] = UNSET,
218
215
  offering_slug: Union[Unset, list[str]] = UNSET,
219
216
  offering_type: Union[Unset, str] = UNSET,
@@ -248,7 +245,7 @@ def sync_detailed(
248
245
  name_exact (Union[Unset, str]):
249
246
  o (Union[Unset, list[MarketplaceResourcesCountOItem]]):
250
247
  offering (Union[Unset, str]):
251
- offering_billable (Union[Unset, UUID]):
248
+ offering_billable (Union[Unset, bool]):
252
249
  offering_shared (Union[Unset, bool]):
253
250
  offering_slug (Union[Unset, list[str]]):
254
251
  offering_type (Union[Unset, str]):
@@ -332,7 +329,7 @@ def sync(
332
329
  name_exact: Union[Unset, str] = UNSET,
333
330
  o: Union[Unset, list[MarketplaceResourcesCountOItem]] = UNSET,
334
331
  offering: Union[Unset, str] = UNSET,
335
- offering_billable: Union[Unset, UUID] = UNSET,
332
+ offering_billable: Union[Unset, bool] = UNSET,
336
333
  offering_shared: Union[Unset, bool] = UNSET,
337
334
  offering_slug: Union[Unset, list[str]] = UNSET,
338
335
  offering_type: Union[Unset, str] = UNSET,
@@ -367,7 +364,7 @@ def sync(
367
364
  name_exact (Union[Unset, str]):
368
365
  o (Union[Unset, list[MarketplaceResourcesCountOItem]]):
369
366
  offering (Union[Unset, str]):
370
- offering_billable (Union[Unset, UUID]):
367
+ offering_billable (Union[Unset, bool]):
371
368
  offering_shared (Union[Unset, bool]):
372
369
  offering_slug (Union[Unset, list[str]]):
373
370
  offering_type (Union[Unset, str]):
@@ -446,7 +443,7 @@ async def asyncio_detailed(
446
443
  name_exact: Union[Unset, str] = UNSET,
447
444
  o: Union[Unset, list[MarketplaceResourcesCountOItem]] = UNSET,
448
445
  offering: Union[Unset, str] = UNSET,
449
- offering_billable: Union[Unset, UUID] = UNSET,
446
+ offering_billable: Union[Unset, bool] = UNSET,
450
447
  offering_shared: Union[Unset, bool] = UNSET,
451
448
  offering_slug: Union[Unset, list[str]] = UNSET,
452
449
  offering_type: Union[Unset, str] = UNSET,
@@ -481,7 +478,7 @@ async def asyncio_detailed(
481
478
  name_exact (Union[Unset, str]):
482
479
  o (Union[Unset, list[MarketplaceResourcesCountOItem]]):
483
480
  offering (Union[Unset, str]):
484
- offering_billable (Union[Unset, UUID]):
481
+ offering_billable (Union[Unset, bool]):
485
482
  offering_shared (Union[Unset, bool]):
486
483
  offering_slug (Union[Unset, list[str]]):
487
484
  offering_type (Union[Unset, str]):
@@ -563,7 +560,7 @@ async def asyncio(
563
560
  name_exact: Union[Unset, str] = UNSET,
564
561
  o: Union[Unset, list[MarketplaceResourcesCountOItem]] = UNSET,
565
562
  offering: Union[Unset, str] = UNSET,
566
- offering_billable: Union[Unset, UUID] = UNSET,
563
+ offering_billable: Union[Unset, bool] = UNSET,
567
564
  offering_shared: Union[Unset, bool] = UNSET,
568
565
  offering_slug: Union[Unset, list[str]] = UNSET,
569
566
  offering_type: Union[Unset, str] = UNSET,
@@ -598,7 +595,7 @@ async def asyncio(
598
595
  name_exact (Union[Unset, str]):
599
596
  o (Union[Unset, list[MarketplaceResourcesCountOItem]]):
600
597
  offering (Union[Unset, str]):
601
- offering_billable (Union[Unset, UUID]):
598
+ offering_billable (Union[Unset, bool]):
602
599
  offering_shared (Union[Unset, bool]):
603
600
  offering_slug (Union[Unset, list[str]]):
604
601
  offering_type (Union[Unset, str]):
@@ -30,7 +30,7 @@ def _get_kwargs(
30
30
  name_exact: Union[Unset, str] = UNSET,
31
31
  o: Union[Unset, list[MarketplaceResourcesListOItem]] = UNSET,
32
32
  offering: Union[Unset, str] = UNSET,
33
- offering_billable: Union[Unset, UUID] = UNSET,
33
+ offering_billable: Union[Unset, bool] = UNSET,
34
34
  offering_shared: Union[Unset, bool] = UNSET,
35
35
  offering_slug: Union[Unset, list[str]] = UNSET,
36
36
  offering_type: Union[Unset, str] = UNSET,
@@ -105,10 +105,7 @@ def _get_kwargs(
105
105
 
106
106
  params["offering"] = offering
107
107
 
108
- json_offering_billable: Union[Unset, str] = UNSET
109
- if not isinstance(offering_billable, Unset):
110
- json_offering_billable = str(offering_billable)
111
- params["offering_billable"] = json_offering_billable
108
+ params["offering_billable"] = offering_billable
112
109
 
113
110
  params["offering_shared"] = offering_shared
114
111
 
@@ -226,7 +223,7 @@ def sync_detailed(
226
223
  name_exact: Union[Unset, str] = UNSET,
227
224
  o: Union[Unset, list[MarketplaceResourcesListOItem]] = UNSET,
228
225
  offering: Union[Unset, str] = UNSET,
229
- offering_billable: Union[Unset, UUID] = UNSET,
226
+ offering_billable: Union[Unset, bool] = UNSET,
230
227
  offering_shared: Union[Unset, bool] = UNSET,
231
228
  offering_slug: Union[Unset, list[str]] = UNSET,
232
229
  offering_type: Union[Unset, str] = UNSET,
@@ -262,7 +259,7 @@ def sync_detailed(
262
259
  name_exact (Union[Unset, str]):
263
260
  o (Union[Unset, list[MarketplaceResourcesListOItem]]):
264
261
  offering (Union[Unset, str]):
265
- offering_billable (Union[Unset, UUID]):
262
+ offering_billable (Union[Unset, bool]):
266
263
  offering_shared (Union[Unset, bool]):
267
264
  offering_slug (Union[Unset, list[str]]):
268
265
  offering_type (Union[Unset, str]):
@@ -348,7 +345,7 @@ def sync(
348
345
  name_exact: Union[Unset, str] = UNSET,
349
346
  o: Union[Unset, list[MarketplaceResourcesListOItem]] = UNSET,
350
347
  offering: Union[Unset, str] = UNSET,
351
- offering_billable: Union[Unset, UUID] = UNSET,
348
+ offering_billable: Union[Unset, bool] = UNSET,
352
349
  offering_shared: Union[Unset, bool] = UNSET,
353
350
  offering_slug: Union[Unset, list[str]] = UNSET,
354
351
  offering_type: Union[Unset, str] = UNSET,
@@ -384,7 +381,7 @@ def sync(
384
381
  name_exact (Union[Unset, str]):
385
382
  o (Union[Unset, list[MarketplaceResourcesListOItem]]):
386
383
  offering (Union[Unset, str]):
387
- offering_billable (Union[Unset, UUID]):
384
+ offering_billable (Union[Unset, bool]):
388
385
  offering_shared (Union[Unset, bool]):
389
386
  offering_slug (Union[Unset, list[str]]):
390
387
  offering_type (Union[Unset, str]):
@@ -465,7 +462,7 @@ async def asyncio_detailed(
465
462
  name_exact: Union[Unset, str] = UNSET,
466
463
  o: Union[Unset, list[MarketplaceResourcesListOItem]] = UNSET,
467
464
  offering: Union[Unset, str] = UNSET,
468
- offering_billable: Union[Unset, UUID] = UNSET,
465
+ offering_billable: Union[Unset, bool] = UNSET,
469
466
  offering_shared: Union[Unset, bool] = UNSET,
470
467
  offering_slug: Union[Unset, list[str]] = UNSET,
471
468
  offering_type: Union[Unset, str] = UNSET,
@@ -501,7 +498,7 @@ async def asyncio_detailed(
501
498
  name_exact (Union[Unset, str]):
502
499
  o (Union[Unset, list[MarketplaceResourcesListOItem]]):
503
500
  offering (Union[Unset, str]):
504
- offering_billable (Union[Unset, UUID]):
501
+ offering_billable (Union[Unset, bool]):
505
502
  offering_shared (Union[Unset, bool]):
506
503
  offering_slug (Union[Unset, list[str]]):
507
504
  offering_type (Union[Unset, str]):
@@ -585,7 +582,7 @@ async def asyncio(
585
582
  name_exact: Union[Unset, str] = UNSET,
586
583
  o: Union[Unset, list[MarketplaceResourcesListOItem]] = UNSET,
587
584
  offering: Union[Unset, str] = UNSET,
588
- offering_billable: Union[Unset, UUID] = UNSET,
585
+ offering_billable: Union[Unset, bool] = UNSET,
589
586
  offering_shared: Union[Unset, bool] = UNSET,
590
587
  offering_slug: Union[Unset, list[str]] = UNSET,
591
588
  offering_type: Union[Unset, str] = UNSET,
@@ -621,7 +618,7 @@ async def asyncio(
621
618
  name_exact (Union[Unset, str]):
622
619
  o (Union[Unset, list[MarketplaceResourcesListOItem]]):
623
620
  offering (Union[Unset, str]):
624
- offering_billable (Union[Unset, UUID]):
621
+ offering_billable (Union[Unset, bool]):
625
622
  offering_shared (Union[Unset, bool]):
626
623
  offering_slug (Union[Unset, list[str]]):
627
624
  offering_type (Union[Unset, str]):
@@ -7,12 +7,18 @@ from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
8
  from ...models.screenshot import Screenshot
9
9
  from ...models.screenshot_request import ScreenshotRequest
10
+ from ...models.screenshot_request_form import ScreenshotRequestForm
11
+ from ...models.screenshot_request_multipart import ScreenshotRequestMultipart
10
12
  from ...types import Response
11
13
 
12
14
 
13
15
  def _get_kwargs(
14
16
  *,
15
- body: ScreenshotRequest,
17
+ body: Union[
18
+ ScreenshotRequest,
19
+ ScreenshotRequestForm,
20
+ ScreenshotRequestMultipart,
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-screenshots/",
22
28
  }
23
29
 
24
- _kwargs["json"] = body.to_dict()
30
+ if isinstance(body, ScreenshotRequest):
31
+ _kwargs["json"] = body.to_dict()
25
32
 
26
- headers["Content-Type"] = "application/json"
33
+ headers["Content-Type"] = "application/json"
34
+ if isinstance(body, ScreenshotRequestForm):
35
+ _kwargs["data"] = body.to_dict()
36
+
37
+ headers["Content-Type"] = "application/x-www-form-urlencoded"
38
+ if isinstance(body, ScreenshotRequestMultipart):
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: ScreenshotRequest,
65
+ body: Union[
66
+ ScreenshotRequest,
67
+ ScreenshotRequestForm,
68
+ ScreenshotRequestMultipart,
69
+ ],
53
70
  ) -> Response[Screenshot]:
54
71
  """
55
72
  Args:
56
73
  body (ScreenshotRequest):
74
+ body (ScreenshotRequestForm):
75
+ body (ScreenshotRequestMultipart):
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: ScreenshotRequest,
99
+ body: Union[
100
+ ScreenshotRequest,
101
+ ScreenshotRequestForm,
102
+ ScreenshotRequestMultipart,
103
+ ],
81
104
  ) -> Screenshot:
82
105
  """
83
106
  Args:
84
107
  body (ScreenshotRequest):
108
+ body (ScreenshotRequestForm):
109
+ body (ScreenshotRequestMultipart):
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: ScreenshotRequest,
128
+ body: Union[
129
+ ScreenshotRequest,
130
+ ScreenshotRequestForm,
131
+ ScreenshotRequestMultipart,
132
+ ],
104
133
  ) -> Response[Screenshot]:
105
134
  """
106
135
  Args:
107
136
  body (ScreenshotRequest):
137
+ body (ScreenshotRequestForm):
138
+ body (ScreenshotRequestMultipart):
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: ScreenshotRequest,
160
+ body: Union[
161
+ ScreenshotRequest,
162
+ ScreenshotRequestForm,
163
+ ScreenshotRequestMultipart,
164
+ ],
130
165
  ) -> Screenshot:
131
166
  """
132
167
  Args:
133
168
  body (ScreenshotRequest):
169
+ body (ScreenshotRequestForm):
170
+ body (ScreenshotRequestMultipart):
134
171
 
135
172
  Raises:
136
173
  errors.UnexpectedStatus: If the server returns an undocumented status code.