waldur-api-client 7.8.4__py3-none-any.whl → 7.8.5__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 (257) hide show
  1. waldur_api_client/api/backend_resources/backend_resources_import_resource.py +3 -3
  2. waldur_api_client/api/booking_resources/booking_resources_count.py +90 -0
  3. waldur_api_client/api/booking_resources/booking_resources_list.py +90 -0
  4. waldur_api_client/api/call_managing_organisations/call_managing_organisations_add_user.py +17 -10
  5. waldur_api_client/api/customers/customers_add_user.py +17 -10
  6. waldur_api_client/api/marketplace_component_usages/marketplace_component_usages_count.py +30 -0
  7. waldur_api_client/api/marketplace_component_usages/marketplace_component_usages_list.py +30 -0
  8. waldur_api_client/api/marketplace_customer_component_usage_policies/__init__.py +1 -0
  9. waldur_api_client/api/marketplace_customer_component_usage_policies/marketplace_customer_component_usage_policies_actions_count.py +125 -0
  10. waldur_api_client/api/marketplace_customer_component_usage_policies/marketplace_customer_component_usage_policies_actions_retrieve.py +119 -0
  11. waldur_api_client/api/marketplace_customer_component_usage_policies/marketplace_customer_component_usage_policies_count.py +239 -0
  12. waldur_api_client/api/marketplace_customer_component_usage_policies/marketplace_customer_component_usage_policies_create.py +152 -0
  13. waldur_api_client/api/marketplace_customer_component_usage_policies/marketplace_customer_component_usage_policies_destroy.py +89 -0
  14. waldur_api_client/api/marketplace_customer_component_usage_policies/marketplace_customer_component_usage_policies_list.py +242 -0
  15. waldur_api_client/api/marketplace_customer_component_usage_policies/marketplace_customer_component_usage_policies_partial_update.py +166 -0
  16. waldur_api_client/api/marketplace_customer_component_usage_policies/marketplace_customer_component_usage_policies_retrieve.py +144 -0
  17. waldur_api_client/api/marketplace_customer_component_usage_policies/marketplace_customer_component_usage_policies_update.py +166 -0
  18. waldur_api_client/api/marketplace_orders/marketplace_orders_set_backend_id.py +105 -0
  19. waldur_api_client/api/marketplace_plans/marketplace_plans_update_discounts.py +123 -0
  20. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_add_partition.py +168 -0
  21. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_add_software_catalog.py +168 -0
  22. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_add_user.py +19 -10
  23. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_component_stats_list.py +15 -0
  24. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_costs_list.py +15 -0
  25. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_count.py +15 -0
  26. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_create_offering_component.py +1 -1
  27. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_customers_list.py +15 -0
  28. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_groups_count.py +15 -0
  29. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_groups_list.py +15 -0
  30. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_list.py +15 -0
  31. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_remove_partition.py +107 -0
  32. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_remove_software_catalog.py +107 -0
  33. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_update_partition_partial_update.py +168 -0
  34. waldur_api_client/api/marketplace_provider_offerings/marketplace_provider_offerings_update_software_catalog_partial_update.py +168 -0
  35. waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_count.py +90 -0
  36. waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_list.py +90 -0
  37. waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_set_downscaled.py +107 -0
  38. waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_set_paused.py +107 -0
  39. waldur_api_client/api/marketplace_provider_resources/marketplace_provider_resources_set_restrict_member_access.py +107 -0
  40. waldur_api_client/api/marketplace_public_offerings/marketplace_public_offerings_count.py +15 -0
  41. waldur_api_client/api/marketplace_public_offerings/marketplace_public_offerings_list.py +15 -0
  42. waldur_api_client/api/marketplace_resources/marketplace_resources_count.py +90 -0
  43. waldur_api_client/api/marketplace_resources/marketplace_resources_list.py +90 -0
  44. waldur_api_client/api/marketplace_resources/marketplace_resources_set_downscaled.py +107 -0
  45. waldur_api_client/api/marketplace_resources/marketplace_resources_set_paused.py +107 -0
  46. waldur_api_client/api/marketplace_resources/marketplace_resources_set_restrict_member_access.py +107 -0
  47. waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_add_user.py +17 -10
  48. waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_customer_projects_list.py +15 -0
  49. waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_offerings_list.py +15 -0
  50. waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_projects_list.py +14 -24
  51. waldur_api_client/api/marketplace_service_providers/marketplace_service_providers_set_offerings_username.py +8 -67
  52. waldur_api_client/api/marketplace_site_agent_identities/__init__.py +1 -0
  53. waldur_api_client/api/marketplace_site_agent_identities/marketplace_site_agent_identities_count.py +240 -0
  54. waldur_api_client/api/marketplace_site_agent_identities/marketplace_site_agent_identities_create.py +148 -0
  55. waldur_api_client/api/marketplace_site_agent_identities/marketplace_site_agent_identities_destroy.py +89 -0
  56. waldur_api_client/api/marketplace_site_agent_identities/marketplace_site_agent_identities_list.py +241 -0
  57. waldur_api_client/api/marketplace_site_agent_identities/marketplace_site_agent_identities_register_event_subscription.py +176 -0
  58. waldur_api_client/api/marketplace_site_agent_identities/marketplace_site_agent_identities_register_service.py +170 -0
  59. waldur_api_client/api/marketplace_site_agent_identities/marketplace_site_agent_identities_retrieve.py +140 -0
  60. waldur_api_client/api/marketplace_site_agent_identities/marketplace_site_agent_identities_update.py +162 -0
  61. waldur_api_client/api/marketplace_site_agent_processors/__init__.py +1 -0
  62. waldur_api_client/api/marketplace_site_agent_processors/marketplace_site_agent_processors_count.py +240 -0
  63. waldur_api_client/api/marketplace_site_agent_processors/marketplace_site_agent_processors_list.py +241 -0
  64. waldur_api_client/api/marketplace_site_agent_processors/marketplace_site_agent_processors_retrieve.py +142 -0
  65. waldur_api_client/api/marketplace_site_agent_services/__init__.py +1 -0
  66. waldur_api_client/api/marketplace_site_agent_services/marketplace_site_agent_services_count.py +229 -0
  67. waldur_api_client/api/marketplace_site_agent_services/marketplace_site_agent_services_list.py +230 -0
  68. waldur_api_client/api/marketplace_site_agent_services/marketplace_site_agent_services_register_processor.py +172 -0
  69. waldur_api_client/api/marketplace_site_agent_services/marketplace_site_agent_services_retrieve.py +140 -0
  70. waldur_api_client/api/marketplace_site_agent_services/marketplace_site_agent_services_set_statistics.py +166 -0
  71. waldur_api_client/api/marketplace_software_catalogs/__init__.py +1 -0
  72. waldur_api_client/api/marketplace_software_catalogs/marketplace_software_catalogs_count.py +225 -0
  73. waldur_api_client/api/marketplace_software_catalogs/marketplace_software_catalogs_create.py +150 -0
  74. waldur_api_client/api/marketplace_software_catalogs/marketplace_software_catalogs_destroy.py +89 -0
  75. waldur_api_client/api/marketplace_software_catalogs/marketplace_software_catalogs_list.py +226 -0
  76. waldur_api_client/api/marketplace_software_catalogs/marketplace_software_catalogs_partial_update.py +164 -0
  77. waldur_api_client/api/marketplace_software_catalogs/marketplace_software_catalogs_retrieve.py +142 -0
  78. waldur_api_client/api/marketplace_software_catalogs/marketplace_software_catalogs_update.py +164 -0
  79. waldur_api_client/api/marketplace_software_packages/__init__.py +1 -0
  80. waldur_api_client/api/marketplace_software_packages/marketplace_software_packages_count.py +352 -0
  81. waldur_api_client/api/marketplace_software_packages/marketplace_software_packages_create.py +150 -0
  82. waldur_api_client/api/marketplace_software_packages/marketplace_software_packages_destroy.py +89 -0
  83. waldur_api_client/api/marketplace_software_packages/marketplace_software_packages_list.py +353 -0
  84. waldur_api_client/api/marketplace_software_packages/marketplace_software_packages_partial_update.py +164 -0
  85. waldur_api_client/api/marketplace_software_packages/marketplace_software_packages_retrieve.py +142 -0
  86. waldur_api_client/api/marketplace_software_packages/marketplace_software_packages_update.py +164 -0
  87. waldur_api_client/api/marketplace_software_targets/__init__.py +1 -0
  88. waldur_api_client/api/marketplace_software_targets/marketplace_software_targets_count.py +313 -0
  89. waldur_api_client/api/marketplace_software_targets/marketplace_software_targets_create.py +117 -0
  90. waldur_api_client/api/marketplace_software_targets/marketplace_software_targets_destroy.py +89 -0
  91. waldur_api_client/api/marketplace_software_targets/marketplace_software_targets_list.py +314 -0
  92. waldur_api_client/api/marketplace_software_targets/marketplace_software_targets_partial_update.py +142 -0
  93. waldur_api_client/api/marketplace_software_targets/marketplace_software_targets_retrieve.py +142 -0
  94. waldur_api_client/api/marketplace_software_targets/marketplace_software_targets_update.py +142 -0
  95. waldur_api_client/api/marketplace_software_versions/__init__.py +1 -0
  96. waldur_api_client/api/marketplace_software_versions/marketplace_software_versions_count.py +310 -0
  97. waldur_api_client/api/marketplace_software_versions/marketplace_software_versions_create.py +117 -0
  98. waldur_api_client/api/marketplace_software_versions/marketplace_software_versions_destroy.py +89 -0
  99. waldur_api_client/api/marketplace_software_versions/marketplace_software_versions_list.py +311 -0
  100. waldur_api_client/api/marketplace_software_versions/marketplace_software_versions_partial_update.py +142 -0
  101. waldur_api_client/api/marketplace_software_versions/marketplace_software_versions_retrieve.py +142 -0
  102. waldur_api_client/api/marketplace_software_versions/marketplace_software_versions_update.py +142 -0
  103. waldur_api_client/api/onboarding_justifications/onboarding_justifications_approve.py +168 -0
  104. waldur_api_client/api/onboarding_justifications/onboarding_justifications_reject.py +168 -0
  105. waldur_api_client/api/projects/projects_add_user.py +17 -10
  106. waldur_api_client/api/projects/projects_count.py +30 -0
  107. waldur_api_client/api/projects/projects_list.py +30 -0
  108. waldur_api_client/api/projects/projects_move_project.py +19 -10
  109. waldur_api_client/api/projects/projects_recover.py +166 -0
  110. waldur_api_client/api/proposal_proposals/proposal_proposals_add_user.py +17 -10
  111. waldur_api_client/api/proposal_protected_calls/proposal_protected_calls_add_user.py +17 -10
  112. waldur_api_client/api/remote_waldur_api/remote_waldur_api_pull_resource_robot_accounts.py +88 -0
  113. waldur_api_client/models/__init__.py +152 -4
  114. waldur_api_client/models/agent_event_subscription_create_request.py +71 -0
  115. waldur_api_client/models/agent_identity.py +211 -0
  116. waldur_api_client/models/agent_identity_request.py +157 -0
  117. waldur_api_client/models/agent_processor.py +170 -0
  118. waldur_api_client/models/agent_processor_create_request.py +89 -0
  119. waldur_api_client/models/agent_service.py +172 -0
  120. waldur_api_client/models/agent_service_create_request.py +81 -0
  121. waldur_api_client/models/agent_service_state.py +10 -0
  122. waldur_api_client/models/agent_service_statistics_request.py +59 -0
  123. waldur_api_client/models/base_provider_plan.py +21 -0
  124. waldur_api_client/models/base_public_plan.py +21 -0
  125. waldur_api_client/models/booking_offerings_list_field_item.py +2 -0
  126. waldur_api_client/models/booking_offerings_retrieve_field_item.py +2 -0
  127. waldur_api_client/models/booking_resource.py +33 -0
  128. waldur_api_client/models/booking_resource_renewal_date_type_0.py +53 -0
  129. waldur_api_client/models/booking_resources_list_field_item.py +1 -0
  130. waldur_api_client/models/booking_resources_retrieve_field_item.py +1 -0
  131. waldur_api_client/models/call_managing_organisations_add_user_response_400.py +65 -0
  132. waldur_api_client/models/constance_settings.py +81 -45
  133. waldur_api_client/models/constance_settings_request.py +81 -45
  134. waldur_api_client/models/constance_settings_request_form.py +81 -45
  135. waldur_api_client/models/constance_settings_request_multipart.py +134 -71
  136. waldur_api_client/models/customer_component_usage_policy.py +175 -0
  137. waldur_api_client/models/customer_component_usage_policy_request.py +102 -0
  138. waldur_api_client/models/customers_add_user_response_400.py +65 -0
  139. waldur_api_client/models/discount_config_request.py +91 -0
  140. waldur_api_client/models/discounts_update_request.py +65 -0
  141. waldur_api_client/models/discounts_update_request_discounts.py +57 -0
  142. waldur_api_client/models/issue.py +0 -25
  143. waldur_api_client/models/managed_rancher_cluster_resources_list_field_item.py +1 -0
  144. waldur_api_client/models/managed_rancher_cluster_resources_retrieve_field_item.py +1 -0
  145. waldur_api_client/models/marketplace_orders_count_state_item.py +1 -0
  146. waldur_api_client/models/marketplace_orders_list_field_item.py +2 -0
  147. waldur_api_client/models/marketplace_orders_list_state_item.py +1 -0
  148. waldur_api_client/models/marketplace_orders_retrieve_field_item.py +2 -0
  149. waldur_api_client/models/marketplace_provider_offerings_add_user_response_400.py +65 -0
  150. waldur_api_client/models/marketplace_provider_offerings_list_course_accounts_retrieve_field_item.py +2 -0
  151. waldur_api_client/models/marketplace_provider_offerings_list_customer_service_accounts_retrieve_field_item.py +2 -0
  152. waldur_api_client/models/marketplace_provider_offerings_list_field_item.py +2 -0
  153. waldur_api_client/models/marketplace_provider_offerings_list_project_service_accounts_retrieve_field_item.py +2 -0
  154. waldur_api_client/models/marketplace_provider_offerings_retrieve_field_item.py +2 -0
  155. waldur_api_client/models/marketplace_provider_offerings_stats_retrieve_field_item.py +2 -0
  156. waldur_api_client/models/marketplace_provider_offerings_user_has_resource_access_retrieve_field_item.py +2 -0
  157. waldur_api_client/models/marketplace_provider_resources_details_retrieve_field_item.py +1 -0
  158. waldur_api_client/models/marketplace_provider_resources_list_field_item.py +1 -0
  159. waldur_api_client/models/marketplace_provider_resources_retrieve_field_item.py +1 -0
  160. waldur_api_client/models/marketplace_public_offerings_list_field_item.py +2 -0
  161. waldur_api_client/models/marketplace_public_offerings_retrieve_field_item.py +2 -0
  162. waldur_api_client/models/marketplace_resources_details_retrieve_field_item.py +1 -0
  163. waldur_api_client/models/marketplace_resources_list_field_item.py +1 -0
  164. waldur_api_client/models/marketplace_resources_retrieve_field_item.py +1 -0
  165. waldur_api_client/models/marketplace_service_providers_add_user_response_400.py +65 -0
  166. waldur_api_client/models/marketplace_site_agent_services_count_state_item.py +10 -0
  167. waldur_api_client/models/marketplace_site_agent_services_list_state_item.py +10 -0
  168. waldur_api_client/models/marketplace_software_catalogs_count_o_item.py +15 -0
  169. waldur_api_client/models/marketplace_software_catalogs_list_o_item.py +15 -0
  170. waldur_api_client/models/marketplace_software_packages_count_o_item.py +17 -0
  171. waldur_api_client/models/marketplace_software_packages_list_o_item.py +17 -0
  172. waldur_api_client/models/marketplace_software_targets_count_o_item.py +15 -0
  173. waldur_api_client/models/marketplace_software_targets_list_o_item.py +15 -0
  174. waldur_api_client/models/marketplace_software_versions_count_o_item.py +15 -0
  175. waldur_api_client/models/marketplace_software_versions_list_o_item.py +15 -0
  176. waldur_api_client/models/merged_plugin_options.py +47 -8
  177. waldur_api_client/models/merged_plugin_options_request.py +47 -8
  178. waldur_api_client/models/nested_agent_processor.py +154 -0
  179. waldur_api_client/models/nested_agent_service.py +134 -0
  180. waldur_api_client/models/nested_agent_service_request.py +90 -0
  181. waldur_api_client/models/nested_customer_usage_policy_component.py +103 -0
  182. waldur_api_client/models/nested_customer_usage_policy_component_request.py +87 -0
  183. waldur_api_client/models/nested_partition.py +412 -0
  184. waldur_api_client/models/nested_partition_request.py +397 -0
  185. waldur_api_client/models/nested_plan_component.py +155 -0
  186. waldur_api_client/models/nested_plan_component_request.py +128 -0
  187. waldur_api_client/models/nested_software_catalog.py +134 -0
  188. waldur_api_client/models/nested_software_catalog_catalog.py +86 -0
  189. waldur_api_client/models/nested_software_catalog_partition.py +86 -0
  190. waldur_api_client/models/nested_software_catalog_request.py +68 -0
  191. waldur_api_client/models/nested_software_target.py +84 -0
  192. waldur_api_client/models/nested_software_target_request.py +75 -0
  193. waldur_api_client/models/nested_software_version.py +124 -0
  194. waldur_api_client/models/nested_software_version_request.py +93 -0
  195. waldur_api_client/models/observable_object_type_enum.py +14 -0
  196. waldur_api_client/models/offering.py +42 -0
  197. waldur_api_client/models/offering_create.py +36 -0
  198. waldur_api_client/models/offering_partition.py +440 -0
  199. waldur_api_client/models/offering_partition_request.py +406 -0
  200. waldur_api_client/models/offering_software_catalog.py +176 -0
  201. waldur_api_client/models/offering_software_catalog_request.py +118 -0
  202. waldur_api_client/models/onboarding_justification.py +35 -6
  203. waldur_api_client/models/onboarding_justification_create_request.py +8 -5
  204. waldur_api_client/models/onboarding_justification_request.py +20 -6
  205. waldur_api_client/models/onboarding_justification_review_request.py +59 -0
  206. waldur_api_client/models/order_backend_id_request.py +59 -0
  207. waldur_api_client/models/order_details.py +39 -0
  208. waldur_api_client/models/order_state.py +1 -0
  209. waldur_api_client/models/patched_customer_component_usage_policy_request.py +104 -0
  210. waldur_api_client/models/patched_offering_partition_request.py +412 -0
  211. waldur_api_client/models/patched_offering_software_catalog_update_request.py +131 -0
  212. waldur_api_client/models/patched_onboarding_justification_request.py +16 -5
  213. waldur_api_client/models/patched_project_request.py +9 -0
  214. waldur_api_client/models/patched_project_request_form.py +9 -0
  215. waldur_api_client/models/patched_project_request_multipart.py +12 -0
  216. waldur_api_client/models/patched_software_catalog_request.py +86 -0
  217. waldur_api_client/models/patched_software_package_request.py +86 -0
  218. waldur_api_client/models/plan_component.py +40 -0
  219. waldur_api_client/models/project.py +27 -0
  220. waldur_api_client/models/project_recovery_request.py +70 -0
  221. waldur_api_client/models/project_request.py +9 -0
  222. waldur_api_client/models/project_request_form.py +9 -0
  223. waldur_api_client/models/project_request_multipart.py +12 -0
  224. waldur_api_client/models/project_user.py +21 -4
  225. waldur_api_client/models/projects_add_user_response_400.py +65 -0
  226. waldur_api_client/models/projects_list_field_item.py +3 -0
  227. waldur_api_client/models/projects_move_project_response_400.py +65 -0
  228. waldur_api_client/models/projects_retrieve_field_item.py +3 -0
  229. waldur_api_client/models/proposal_proposals_add_user_response_400.py +65 -0
  230. waldur_api_client/models/proposal_protected_calls_add_user_response_400.py +65 -0
  231. waldur_api_client/models/provider_offering_details.py +42 -0
  232. waldur_api_client/models/provider_plan_details.py +18 -0
  233. waldur_api_client/models/public_offering_details.py +42 -0
  234. waldur_api_client/models/remote_resource_order_remote_state_enum.py +1 -0
  235. waldur_api_client/models/{set_offerings_username.py → remove_partition_request.py} +11 -19
  236. waldur_api_client/models/remove_software_catalog_request.py +60 -0
  237. waldur_api_client/models/resource.py +33 -0
  238. waldur_api_client/models/resource_downscaled_request.py +59 -0
  239. waldur_api_client/models/resource_paused_request.py +59 -0
  240. waldur_api_client/models/resource_renewal_date_type_0.py +53 -0
  241. waldur_api_client/models/resource_restrict_member_access_request.py +59 -0
  242. waldur_api_client/models/software_catalog.py +130 -0
  243. waldur_api_client/models/software_catalog_request.py +87 -0
  244. waldur_api_client/models/software_catalog_uuid.py +60 -0
  245. waldur_api_client/models/software_package.py +168 -0
  246. waldur_api_client/models/software_package_request.py +87 -0
  247. waldur_api_client/models/software_target.py +110 -0
  248. waldur_api_client/models/software_version.py +135 -0
  249. waldur_api_client/models/user.py +20 -0
  250. waldur_api_client/models/users_list_field_item.py +1 -0
  251. waldur_api_client/models/users_me_retrieve_field_item.py +1 -0
  252. waldur_api_client/models/users_retrieve_field_item.py +1 -0
  253. {waldur_api_client-7.8.4.dist-info → waldur_api_client-7.8.5.dist-info}/METADATA +1 -1
  254. {waldur_api_client-7.8.4.dist-info → waldur_api_client-7.8.5.dist-info}/RECORD +256 -103
  255. waldur_api_client/models/marketplace_service_providers_projects_list_field_item.py +0 -37
  256. {waldur_api_client-7.8.4.dist-info → waldur_api_client-7.8.5.dist-info}/WHEEL +0 -0
  257. {waldur_api_client-7.8.4.dist-info → waldur_api_client-7.8.5.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,164 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Union
3
+ from uuid import UUID
4
+
5
+ import httpx
6
+
7
+ from ... import errors
8
+ from ...client import AuthenticatedClient, Client
9
+ from ...models.software_catalog import SoftwareCatalog
10
+ from ...models.software_catalog_request import SoftwareCatalogRequest
11
+ from ...types import Response
12
+
13
+
14
+ def _get_kwargs(
15
+ uuid: UUID,
16
+ *,
17
+ body: SoftwareCatalogRequest,
18
+ ) -> dict[str, Any]:
19
+ headers: dict[str, Any] = {}
20
+
21
+ _kwargs: dict[str, Any] = {
22
+ "method": "put",
23
+ "url": f"/api/marketplace-software-catalogs/{uuid}/",
24
+ }
25
+
26
+ _kwargs["json"] = body.to_dict()
27
+
28
+ headers["Content-Type"] = "application/json"
29
+
30
+ _kwargs["headers"] = headers
31
+ return _kwargs
32
+
33
+
34
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> SoftwareCatalog:
35
+ if response.status_code == 200:
36
+ response_200 = SoftwareCatalog.from_dict(response.json())
37
+
38
+ return response_200
39
+ raise errors.UnexpectedStatus(response.status_code, response.content)
40
+
41
+
42
+ def _build_response(
43
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
44
+ ) -> Response[SoftwareCatalog]:
45
+ return Response(
46
+ status_code=HTTPStatus(response.status_code),
47
+ content=response.content,
48
+ headers=response.headers,
49
+ parsed=_parse_response(client=client, response=response),
50
+ )
51
+
52
+
53
+ def sync_detailed(
54
+ uuid: UUID,
55
+ *,
56
+ client: AuthenticatedClient,
57
+ body: SoftwareCatalogRequest,
58
+ ) -> Response[SoftwareCatalog]:
59
+ """
60
+ Args:
61
+ uuid (UUID):
62
+ body (SoftwareCatalogRequest):
63
+
64
+ Raises:
65
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
66
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
67
+
68
+ Returns:
69
+ Response[SoftwareCatalog]
70
+ """
71
+
72
+ kwargs = _get_kwargs(
73
+ uuid=uuid,
74
+ body=body,
75
+ )
76
+
77
+ response = client.get_httpx_client().request(
78
+ **kwargs,
79
+ )
80
+
81
+ return _build_response(client=client, response=response)
82
+
83
+
84
+ def sync(
85
+ uuid: UUID,
86
+ *,
87
+ client: AuthenticatedClient,
88
+ body: SoftwareCatalogRequest,
89
+ ) -> SoftwareCatalog:
90
+ """
91
+ Args:
92
+ uuid (UUID):
93
+ body (SoftwareCatalogRequest):
94
+
95
+ Raises:
96
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
97
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
98
+
99
+ Returns:
100
+ SoftwareCatalog
101
+ """
102
+
103
+ return sync_detailed(
104
+ uuid=uuid,
105
+ client=client,
106
+ body=body,
107
+ ).parsed
108
+
109
+
110
+ async def asyncio_detailed(
111
+ uuid: UUID,
112
+ *,
113
+ client: AuthenticatedClient,
114
+ body: SoftwareCatalogRequest,
115
+ ) -> Response[SoftwareCatalog]:
116
+ """
117
+ Args:
118
+ uuid (UUID):
119
+ body (SoftwareCatalogRequest):
120
+
121
+ Raises:
122
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
123
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
124
+
125
+ Returns:
126
+ Response[SoftwareCatalog]
127
+ """
128
+
129
+ kwargs = _get_kwargs(
130
+ uuid=uuid,
131
+ body=body,
132
+ )
133
+
134
+ response = await client.get_async_httpx_client().request(**kwargs)
135
+
136
+ return _build_response(client=client, response=response)
137
+
138
+
139
+ async def asyncio(
140
+ uuid: UUID,
141
+ *,
142
+ client: AuthenticatedClient,
143
+ body: SoftwareCatalogRequest,
144
+ ) -> SoftwareCatalog:
145
+ """
146
+ Args:
147
+ uuid (UUID):
148
+ body (SoftwareCatalogRequest):
149
+
150
+ Raises:
151
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
152
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
153
+
154
+ Returns:
155
+ SoftwareCatalog
156
+ """
157
+
158
+ return (
159
+ await asyncio_detailed(
160
+ uuid=uuid,
161
+ client=client,
162
+ body=body,
163
+ )
164
+ ).parsed
@@ -0,0 +1 @@
1
+ """Contains endpoint functions for accessing the API"""
@@ -0,0 +1,352 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Union
3
+ from uuid import UUID
4
+
5
+ import httpx
6
+
7
+ from ... import errors
8
+ from ...client import AuthenticatedClient, Client
9
+ from ...models.marketplace_software_packages_count_o_item import MarketplaceSoftwarePackagesCountOItem
10
+ from ...types import UNSET, Response, Unset
11
+
12
+
13
+ def _get_kwargs(
14
+ *,
15
+ catalog_name: Union[Unset, str] = UNSET,
16
+ catalog_uuid: Union[Unset, UUID] = UNSET,
17
+ catalog_version: Union[Unset, str] = UNSET,
18
+ cpu_family: Union[Unset, str] = UNSET,
19
+ cpu_microarchitecture: Union[Unset, str] = UNSET,
20
+ description: Union[Unset, str] = UNSET,
21
+ has_version: Union[Unset, str] = UNSET,
22
+ name: Union[Unset, str] = UNSET,
23
+ o: Union[Unset, list[MarketplaceSoftwarePackagesCountOItem]] = UNSET,
24
+ offering_uuid: Union[Unset, UUID] = UNSET,
25
+ page: Union[Unset, int] = UNSET,
26
+ page_size: Union[Unset, int] = UNSET,
27
+ query: Union[Unset, str] = UNSET,
28
+ ) -> dict[str, Any]:
29
+ params: dict[str, Any] = {}
30
+
31
+ params["catalog_name"] = catalog_name
32
+
33
+ json_catalog_uuid: Union[Unset, str] = UNSET
34
+ if not isinstance(catalog_uuid, Unset):
35
+ json_catalog_uuid = str(catalog_uuid)
36
+ params["catalog_uuid"] = json_catalog_uuid
37
+
38
+ params["catalog_version"] = catalog_version
39
+
40
+ params["cpu_family"] = cpu_family
41
+
42
+ params["cpu_microarchitecture"] = cpu_microarchitecture
43
+
44
+ params["description"] = description
45
+
46
+ params["has_version"] = has_version
47
+
48
+ params["name"] = name
49
+
50
+ json_o: Union[Unset, list[str]] = UNSET
51
+ if not isinstance(o, Unset):
52
+ json_o = []
53
+ for o_item_data in o:
54
+ o_item = o_item_data.value
55
+ json_o.append(o_item)
56
+
57
+ params["o"] = json_o
58
+
59
+ json_offering_uuid: Union[Unset, str] = UNSET
60
+ if not isinstance(offering_uuid, Unset):
61
+ json_offering_uuid = str(offering_uuid)
62
+ params["offering_uuid"] = json_offering_uuid
63
+
64
+ params["page"] = page
65
+
66
+ params["page_size"] = page_size
67
+
68
+ params["query"] = query
69
+
70
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
71
+
72
+ _kwargs: dict[str, Any] = {
73
+ "method": "head",
74
+ "url": "/api/marketplace-software-packages/",
75
+ "params": params,
76
+ }
77
+
78
+ return _kwargs
79
+
80
+
81
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> int:
82
+ if response.status_code == HTTPStatus.OK:
83
+ try:
84
+ return int(response.headers["x-result-count"])
85
+ except KeyError:
86
+ raise errors.UnexpectedStatus(
87
+ response.status_code, b"Expected 'X-Result-Count' header for HEAD request, but it was not found."
88
+ )
89
+ except ValueError:
90
+ count_val = response.headers.get("x-result-count")
91
+ msg = f"Expected 'X-Result-Count' header to be an integer, but got '{count_val}'."
92
+ raise errors.UnexpectedStatus(response.status_code, msg.encode())
93
+ raise errors.UnexpectedStatus(response.status_code, response.content)
94
+
95
+
96
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[int]:
97
+ return Response(
98
+ status_code=HTTPStatus(response.status_code),
99
+ content=response.content,
100
+ headers=response.headers,
101
+ parsed=_parse_response(client=client, response=response),
102
+ )
103
+
104
+
105
+ def sync_detailed(
106
+ *,
107
+ client: AuthenticatedClient,
108
+ catalog_name: Union[Unset, str] = UNSET,
109
+ catalog_uuid: Union[Unset, UUID] = UNSET,
110
+ catalog_version: Union[Unset, str] = UNSET,
111
+ cpu_family: Union[Unset, str] = UNSET,
112
+ cpu_microarchitecture: Union[Unset, str] = UNSET,
113
+ description: Union[Unset, str] = UNSET,
114
+ has_version: Union[Unset, str] = UNSET,
115
+ name: Union[Unset, str] = UNSET,
116
+ o: Union[Unset, list[MarketplaceSoftwarePackagesCountOItem]] = UNSET,
117
+ offering_uuid: Union[Unset, UUID] = UNSET,
118
+ page: Union[Unset, int] = UNSET,
119
+ page_size: Union[Unset, int] = UNSET,
120
+ query: Union[Unset, str] = UNSET,
121
+ ) -> Response[int]:
122
+ """Get number of items in the collection matching the request parameters.
123
+
124
+ Args:
125
+ catalog_name (Union[Unset, str]):
126
+ catalog_uuid (Union[Unset, UUID]):
127
+ catalog_version (Union[Unset, str]):
128
+ cpu_family (Union[Unset, str]):
129
+ cpu_microarchitecture (Union[Unset, str]):
130
+ description (Union[Unset, str]):
131
+ has_version (Union[Unset, str]):
132
+ name (Union[Unset, str]):
133
+ o (Union[Unset, list[MarketplaceSoftwarePackagesCountOItem]]):
134
+ offering_uuid (Union[Unset, UUID]):
135
+ page (Union[Unset, int]):
136
+ page_size (Union[Unset, int]):
137
+ query (Union[Unset, str]):
138
+
139
+ Raises:
140
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
141
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
142
+
143
+ Returns:
144
+ Response[int]
145
+ """
146
+
147
+ kwargs = _get_kwargs(
148
+ catalog_name=catalog_name,
149
+ catalog_uuid=catalog_uuid,
150
+ catalog_version=catalog_version,
151
+ cpu_family=cpu_family,
152
+ cpu_microarchitecture=cpu_microarchitecture,
153
+ description=description,
154
+ has_version=has_version,
155
+ name=name,
156
+ o=o,
157
+ offering_uuid=offering_uuid,
158
+ page=page,
159
+ page_size=page_size,
160
+ query=query,
161
+ )
162
+
163
+ response = client.get_httpx_client().request(
164
+ **kwargs,
165
+ )
166
+
167
+ return _build_response(client=client, response=response)
168
+
169
+
170
+ def sync(
171
+ *,
172
+ client: AuthenticatedClient,
173
+ catalog_name: Union[Unset, str] = UNSET,
174
+ catalog_uuid: Union[Unset, UUID] = UNSET,
175
+ catalog_version: Union[Unset, str] = UNSET,
176
+ cpu_family: Union[Unset, str] = UNSET,
177
+ cpu_microarchitecture: Union[Unset, str] = UNSET,
178
+ description: Union[Unset, str] = UNSET,
179
+ has_version: Union[Unset, str] = UNSET,
180
+ name: Union[Unset, str] = UNSET,
181
+ o: Union[Unset, list[MarketplaceSoftwarePackagesCountOItem]] = UNSET,
182
+ offering_uuid: Union[Unset, UUID] = UNSET,
183
+ page: Union[Unset, int] = UNSET,
184
+ page_size: Union[Unset, int] = UNSET,
185
+ query: Union[Unset, str] = UNSET,
186
+ ) -> int:
187
+ """Get number of items in the collection matching the request parameters.
188
+
189
+ Args:
190
+ catalog_name (Union[Unset, str]):
191
+ catalog_uuid (Union[Unset, UUID]):
192
+ catalog_version (Union[Unset, str]):
193
+ cpu_family (Union[Unset, str]):
194
+ cpu_microarchitecture (Union[Unset, str]):
195
+ description (Union[Unset, str]):
196
+ has_version (Union[Unset, str]):
197
+ name (Union[Unset, str]):
198
+ o (Union[Unset, list[MarketplaceSoftwarePackagesCountOItem]]):
199
+ offering_uuid (Union[Unset, UUID]):
200
+ page (Union[Unset, int]):
201
+ page_size (Union[Unset, int]):
202
+ query (Union[Unset, str]):
203
+
204
+ Raises:
205
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
206
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
207
+
208
+ Returns:
209
+ int
210
+ """
211
+
212
+ return sync_detailed(
213
+ client=client,
214
+ catalog_name=catalog_name,
215
+ catalog_uuid=catalog_uuid,
216
+ catalog_version=catalog_version,
217
+ cpu_family=cpu_family,
218
+ cpu_microarchitecture=cpu_microarchitecture,
219
+ description=description,
220
+ has_version=has_version,
221
+ name=name,
222
+ o=o,
223
+ offering_uuid=offering_uuid,
224
+ page=page,
225
+ page_size=page_size,
226
+ query=query,
227
+ ).parsed
228
+
229
+
230
+ async def asyncio_detailed(
231
+ *,
232
+ client: AuthenticatedClient,
233
+ catalog_name: Union[Unset, str] = UNSET,
234
+ catalog_uuid: Union[Unset, UUID] = UNSET,
235
+ catalog_version: Union[Unset, str] = UNSET,
236
+ cpu_family: Union[Unset, str] = UNSET,
237
+ cpu_microarchitecture: Union[Unset, str] = UNSET,
238
+ description: Union[Unset, str] = UNSET,
239
+ has_version: Union[Unset, str] = UNSET,
240
+ name: Union[Unset, str] = UNSET,
241
+ o: Union[Unset, list[MarketplaceSoftwarePackagesCountOItem]] = UNSET,
242
+ offering_uuid: Union[Unset, UUID] = UNSET,
243
+ page: Union[Unset, int] = UNSET,
244
+ page_size: Union[Unset, int] = UNSET,
245
+ query: Union[Unset, str] = UNSET,
246
+ ) -> Response[int]:
247
+ """Get number of items in the collection matching the request parameters.
248
+
249
+ Args:
250
+ catalog_name (Union[Unset, str]):
251
+ catalog_uuid (Union[Unset, UUID]):
252
+ catalog_version (Union[Unset, str]):
253
+ cpu_family (Union[Unset, str]):
254
+ cpu_microarchitecture (Union[Unset, str]):
255
+ description (Union[Unset, str]):
256
+ has_version (Union[Unset, str]):
257
+ name (Union[Unset, str]):
258
+ o (Union[Unset, list[MarketplaceSoftwarePackagesCountOItem]]):
259
+ offering_uuid (Union[Unset, UUID]):
260
+ page (Union[Unset, int]):
261
+ page_size (Union[Unset, int]):
262
+ query (Union[Unset, str]):
263
+
264
+ Raises:
265
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
266
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
267
+
268
+ Returns:
269
+ Response[int]
270
+ """
271
+
272
+ kwargs = _get_kwargs(
273
+ catalog_name=catalog_name,
274
+ catalog_uuid=catalog_uuid,
275
+ catalog_version=catalog_version,
276
+ cpu_family=cpu_family,
277
+ cpu_microarchitecture=cpu_microarchitecture,
278
+ description=description,
279
+ has_version=has_version,
280
+ name=name,
281
+ o=o,
282
+ offering_uuid=offering_uuid,
283
+ page=page,
284
+ page_size=page_size,
285
+ query=query,
286
+ )
287
+
288
+ response = await client.get_async_httpx_client().request(**kwargs)
289
+
290
+ return _build_response(client=client, response=response)
291
+
292
+
293
+ async def asyncio(
294
+ *,
295
+ client: AuthenticatedClient,
296
+ catalog_name: Union[Unset, str] = UNSET,
297
+ catalog_uuid: Union[Unset, UUID] = UNSET,
298
+ catalog_version: Union[Unset, str] = UNSET,
299
+ cpu_family: Union[Unset, str] = UNSET,
300
+ cpu_microarchitecture: Union[Unset, str] = UNSET,
301
+ description: Union[Unset, str] = UNSET,
302
+ has_version: Union[Unset, str] = UNSET,
303
+ name: Union[Unset, str] = UNSET,
304
+ o: Union[Unset, list[MarketplaceSoftwarePackagesCountOItem]] = UNSET,
305
+ offering_uuid: Union[Unset, UUID] = UNSET,
306
+ page: Union[Unset, int] = UNSET,
307
+ page_size: Union[Unset, int] = UNSET,
308
+ query: Union[Unset, str] = UNSET,
309
+ ) -> int:
310
+ """Get number of items in the collection matching the request parameters.
311
+
312
+ Args:
313
+ catalog_name (Union[Unset, str]):
314
+ catalog_uuid (Union[Unset, UUID]):
315
+ catalog_version (Union[Unset, str]):
316
+ cpu_family (Union[Unset, str]):
317
+ cpu_microarchitecture (Union[Unset, str]):
318
+ description (Union[Unset, str]):
319
+ has_version (Union[Unset, str]):
320
+ name (Union[Unset, str]):
321
+ o (Union[Unset, list[MarketplaceSoftwarePackagesCountOItem]]):
322
+ offering_uuid (Union[Unset, UUID]):
323
+ page (Union[Unset, int]):
324
+ page_size (Union[Unset, int]):
325
+ query (Union[Unset, str]):
326
+
327
+ Raises:
328
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
329
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
330
+
331
+ Returns:
332
+ int
333
+ """
334
+
335
+ return (
336
+ await asyncio_detailed(
337
+ client=client,
338
+ catalog_name=catalog_name,
339
+ catalog_uuid=catalog_uuid,
340
+ catalog_version=catalog_version,
341
+ cpu_family=cpu_family,
342
+ cpu_microarchitecture=cpu_microarchitecture,
343
+ description=description,
344
+ has_version=has_version,
345
+ name=name,
346
+ o=o,
347
+ offering_uuid=offering_uuid,
348
+ page=page,
349
+ page_size=page_size,
350
+ query=query,
351
+ )
352
+ ).parsed
@@ -0,0 +1,150 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.software_package import SoftwarePackage
9
+ from ...models.software_package_request import SoftwarePackageRequest
10
+ from ...types import Response
11
+
12
+
13
+ def _get_kwargs(
14
+ *,
15
+ body: SoftwarePackageRequest,
16
+ ) -> dict[str, Any]:
17
+ headers: dict[str, Any] = {}
18
+
19
+ _kwargs: dict[str, Any] = {
20
+ "method": "post",
21
+ "url": "/api/marketplace-software-packages/",
22
+ }
23
+
24
+ _kwargs["json"] = body.to_dict()
25
+
26
+ headers["Content-Type"] = "application/json"
27
+
28
+ _kwargs["headers"] = headers
29
+ return _kwargs
30
+
31
+
32
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> SoftwarePackage:
33
+ if response.status_code == 201:
34
+ response_201 = SoftwarePackage.from_dict(response.json())
35
+
36
+ return response_201
37
+ raise errors.UnexpectedStatus(response.status_code, response.content)
38
+
39
+
40
+ def _build_response(
41
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
42
+ ) -> Response[SoftwarePackage]:
43
+ return Response(
44
+ status_code=HTTPStatus(response.status_code),
45
+ content=response.content,
46
+ headers=response.headers,
47
+ parsed=_parse_response(client=client, response=response),
48
+ )
49
+
50
+
51
+ def sync_detailed(
52
+ *,
53
+ client: AuthenticatedClient,
54
+ body: SoftwarePackageRequest,
55
+ ) -> Response[SoftwarePackage]:
56
+ """
57
+ Args:
58
+ body (SoftwarePackageRequest):
59
+
60
+ Raises:
61
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
62
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
63
+
64
+ Returns:
65
+ Response[SoftwarePackage]
66
+ """
67
+
68
+ kwargs = _get_kwargs(
69
+ body=body,
70
+ )
71
+
72
+ response = client.get_httpx_client().request(
73
+ **kwargs,
74
+ )
75
+
76
+ return _build_response(client=client, response=response)
77
+
78
+
79
+ def sync(
80
+ *,
81
+ client: AuthenticatedClient,
82
+ body: SoftwarePackageRequest,
83
+ ) -> SoftwarePackage:
84
+ """
85
+ Args:
86
+ body (SoftwarePackageRequest):
87
+
88
+ Raises:
89
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
90
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
91
+
92
+ Returns:
93
+ SoftwarePackage
94
+ """
95
+
96
+ return sync_detailed(
97
+ client=client,
98
+ body=body,
99
+ ).parsed
100
+
101
+
102
+ async def asyncio_detailed(
103
+ *,
104
+ client: AuthenticatedClient,
105
+ body: SoftwarePackageRequest,
106
+ ) -> Response[SoftwarePackage]:
107
+ """
108
+ Args:
109
+ body (SoftwarePackageRequest):
110
+
111
+ Raises:
112
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
113
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
114
+
115
+ Returns:
116
+ Response[SoftwarePackage]
117
+ """
118
+
119
+ kwargs = _get_kwargs(
120
+ body=body,
121
+ )
122
+
123
+ response = await client.get_async_httpx_client().request(**kwargs)
124
+
125
+ return _build_response(client=client, response=response)
126
+
127
+
128
+ async def asyncio(
129
+ *,
130
+ client: AuthenticatedClient,
131
+ body: SoftwarePackageRequest,
132
+ ) -> SoftwarePackage:
133
+ """
134
+ Args:
135
+ body (SoftwarePackageRequest):
136
+
137
+ Raises:
138
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
139
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
140
+
141
+ Returns:
142
+ SoftwarePackage
143
+ """
144
+
145
+ return (
146
+ await asyncio_detailed(
147
+ client=client,
148
+ body=body,
149
+ )
150
+ ).parsed