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,240 @@
1
+ import datetime
2
+ from http import HTTPStatus
3
+ from typing import Any, Union
4
+ from uuid import UUID
5
+
6
+ import httpx
7
+
8
+ from ... import errors
9
+ from ...client import AuthenticatedClient, Client
10
+ from ...types import UNSET, Response, Unset
11
+
12
+
13
+ def _get_kwargs(
14
+ *,
15
+ last_restarted: Union[Unset, datetime.datetime] = UNSET,
16
+ name: Union[Unset, str] = UNSET,
17
+ offering_uuid: Union[Unset, UUID] = UNSET,
18
+ page: Union[Unset, int] = UNSET,
19
+ page_size: Union[Unset, int] = UNSET,
20
+ version: Union[Unset, str] = UNSET,
21
+ ) -> dict[str, Any]:
22
+ params: dict[str, Any] = {}
23
+
24
+ json_last_restarted: Union[Unset, str] = UNSET
25
+ if not isinstance(last_restarted, Unset):
26
+ json_last_restarted = last_restarted.isoformat()
27
+ params["last_restarted"] = json_last_restarted
28
+
29
+ params["name"] = name
30
+
31
+ json_offering_uuid: Union[Unset, str] = UNSET
32
+ if not isinstance(offering_uuid, Unset):
33
+ json_offering_uuid = str(offering_uuid)
34
+ params["offering_uuid"] = json_offering_uuid
35
+
36
+ params["page"] = page
37
+
38
+ params["page_size"] = page_size
39
+
40
+ params["version"] = version
41
+
42
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
43
+
44
+ _kwargs: dict[str, Any] = {
45
+ "method": "head",
46
+ "url": "/api/marketplace-site-agent-identities/",
47
+ "params": params,
48
+ }
49
+
50
+ return _kwargs
51
+
52
+
53
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> int:
54
+ if response.status_code == HTTPStatus.OK:
55
+ try:
56
+ return int(response.headers["x-result-count"])
57
+ except KeyError:
58
+ raise errors.UnexpectedStatus(
59
+ response.status_code, b"Expected 'X-Result-Count' header for HEAD request, but it was not found."
60
+ )
61
+ except ValueError:
62
+ count_val = response.headers.get("x-result-count")
63
+ msg = f"Expected 'X-Result-Count' header to be an integer, but got '{count_val}'."
64
+ raise errors.UnexpectedStatus(response.status_code, msg.encode())
65
+ raise errors.UnexpectedStatus(response.status_code, response.content)
66
+
67
+
68
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[int]:
69
+ return Response(
70
+ status_code=HTTPStatus(response.status_code),
71
+ content=response.content,
72
+ headers=response.headers,
73
+ parsed=_parse_response(client=client, response=response),
74
+ )
75
+
76
+
77
+ def sync_detailed(
78
+ *,
79
+ client: AuthenticatedClient,
80
+ last_restarted: Union[Unset, datetime.datetime] = UNSET,
81
+ name: Union[Unset, str] = UNSET,
82
+ offering_uuid: Union[Unset, UUID] = UNSET,
83
+ page: Union[Unset, int] = UNSET,
84
+ page_size: Union[Unset, int] = UNSET,
85
+ version: Union[Unset, str] = UNSET,
86
+ ) -> Response[int]:
87
+ """Get number of items in the collection matching the request parameters.
88
+
89
+ Args:
90
+ last_restarted (Union[Unset, datetime.datetime]):
91
+ name (Union[Unset, str]):
92
+ offering_uuid (Union[Unset, UUID]):
93
+ page (Union[Unset, int]):
94
+ page_size (Union[Unset, int]):
95
+ version (Union[Unset, str]):
96
+
97
+ Raises:
98
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
99
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
100
+
101
+ Returns:
102
+ Response[int]
103
+ """
104
+
105
+ kwargs = _get_kwargs(
106
+ last_restarted=last_restarted,
107
+ name=name,
108
+ offering_uuid=offering_uuid,
109
+ page=page,
110
+ page_size=page_size,
111
+ version=version,
112
+ )
113
+
114
+ response = client.get_httpx_client().request(
115
+ **kwargs,
116
+ )
117
+
118
+ return _build_response(client=client, response=response)
119
+
120
+
121
+ def sync(
122
+ *,
123
+ client: AuthenticatedClient,
124
+ last_restarted: Union[Unset, datetime.datetime] = UNSET,
125
+ name: Union[Unset, str] = UNSET,
126
+ offering_uuid: Union[Unset, UUID] = UNSET,
127
+ page: Union[Unset, int] = UNSET,
128
+ page_size: Union[Unset, int] = UNSET,
129
+ version: Union[Unset, str] = UNSET,
130
+ ) -> int:
131
+ """Get number of items in the collection matching the request parameters.
132
+
133
+ Args:
134
+ last_restarted (Union[Unset, datetime.datetime]):
135
+ name (Union[Unset, str]):
136
+ offering_uuid (Union[Unset, UUID]):
137
+ page (Union[Unset, int]):
138
+ page_size (Union[Unset, int]):
139
+ version (Union[Unset, str]):
140
+
141
+ Raises:
142
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
143
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
144
+
145
+ Returns:
146
+ int
147
+ """
148
+
149
+ return sync_detailed(
150
+ client=client,
151
+ last_restarted=last_restarted,
152
+ name=name,
153
+ offering_uuid=offering_uuid,
154
+ page=page,
155
+ page_size=page_size,
156
+ version=version,
157
+ ).parsed
158
+
159
+
160
+ async def asyncio_detailed(
161
+ *,
162
+ client: AuthenticatedClient,
163
+ last_restarted: Union[Unset, datetime.datetime] = UNSET,
164
+ name: Union[Unset, str] = UNSET,
165
+ offering_uuid: Union[Unset, UUID] = UNSET,
166
+ page: Union[Unset, int] = UNSET,
167
+ page_size: Union[Unset, int] = UNSET,
168
+ version: Union[Unset, str] = UNSET,
169
+ ) -> Response[int]:
170
+ """Get number of items in the collection matching the request parameters.
171
+
172
+ Args:
173
+ last_restarted (Union[Unset, datetime.datetime]):
174
+ name (Union[Unset, str]):
175
+ offering_uuid (Union[Unset, UUID]):
176
+ page (Union[Unset, int]):
177
+ page_size (Union[Unset, int]):
178
+ version (Union[Unset, str]):
179
+
180
+ Raises:
181
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
182
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
183
+
184
+ Returns:
185
+ Response[int]
186
+ """
187
+
188
+ kwargs = _get_kwargs(
189
+ last_restarted=last_restarted,
190
+ name=name,
191
+ offering_uuid=offering_uuid,
192
+ page=page,
193
+ page_size=page_size,
194
+ version=version,
195
+ )
196
+
197
+ response = await client.get_async_httpx_client().request(**kwargs)
198
+
199
+ return _build_response(client=client, response=response)
200
+
201
+
202
+ async def asyncio(
203
+ *,
204
+ client: AuthenticatedClient,
205
+ last_restarted: Union[Unset, datetime.datetime] = UNSET,
206
+ name: Union[Unset, str] = UNSET,
207
+ offering_uuid: Union[Unset, UUID] = UNSET,
208
+ page: Union[Unset, int] = UNSET,
209
+ page_size: Union[Unset, int] = UNSET,
210
+ version: Union[Unset, str] = UNSET,
211
+ ) -> int:
212
+ """Get number of items in the collection matching the request parameters.
213
+
214
+ Args:
215
+ last_restarted (Union[Unset, datetime.datetime]):
216
+ name (Union[Unset, str]):
217
+ offering_uuid (Union[Unset, UUID]):
218
+ page (Union[Unset, int]):
219
+ page_size (Union[Unset, int]):
220
+ version (Union[Unset, str]):
221
+
222
+ Raises:
223
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
224
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
225
+
226
+ Returns:
227
+ int
228
+ """
229
+
230
+ return (
231
+ await asyncio_detailed(
232
+ client=client,
233
+ last_restarted=last_restarted,
234
+ name=name,
235
+ offering_uuid=offering_uuid,
236
+ page=page,
237
+ page_size=page_size,
238
+ version=version,
239
+ )
240
+ ).parsed
@@ -0,0 +1,148 @@
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.agent_identity import AgentIdentity
9
+ from ...models.agent_identity_request import AgentIdentityRequest
10
+ from ...types import Response
11
+
12
+
13
+ def _get_kwargs(
14
+ *,
15
+ body: AgentIdentityRequest,
16
+ ) -> dict[str, Any]:
17
+ headers: dict[str, Any] = {}
18
+
19
+ _kwargs: dict[str, Any] = {
20
+ "method": "post",
21
+ "url": "/api/marketplace-site-agent-identities/",
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) -> AgentIdentity:
33
+ if response.status_code == 201:
34
+ response_201 = AgentIdentity.from_dict(response.json())
35
+
36
+ return response_201
37
+ raise errors.UnexpectedStatus(response.status_code, response.content)
38
+
39
+
40
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[AgentIdentity]:
41
+ return Response(
42
+ status_code=HTTPStatus(response.status_code),
43
+ content=response.content,
44
+ headers=response.headers,
45
+ parsed=_parse_response(client=client, response=response),
46
+ )
47
+
48
+
49
+ def sync_detailed(
50
+ *,
51
+ client: AuthenticatedClient,
52
+ body: AgentIdentityRequest,
53
+ ) -> Response[AgentIdentity]:
54
+ """
55
+ Args:
56
+ body (AgentIdentityRequest):
57
+
58
+ Raises:
59
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
60
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
61
+
62
+ Returns:
63
+ Response[AgentIdentity]
64
+ """
65
+
66
+ kwargs = _get_kwargs(
67
+ body=body,
68
+ )
69
+
70
+ response = client.get_httpx_client().request(
71
+ **kwargs,
72
+ )
73
+
74
+ return _build_response(client=client, response=response)
75
+
76
+
77
+ def sync(
78
+ *,
79
+ client: AuthenticatedClient,
80
+ body: AgentIdentityRequest,
81
+ ) -> AgentIdentity:
82
+ """
83
+ Args:
84
+ body (AgentIdentityRequest):
85
+
86
+ Raises:
87
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
88
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
89
+
90
+ Returns:
91
+ AgentIdentity
92
+ """
93
+
94
+ return sync_detailed(
95
+ client=client,
96
+ body=body,
97
+ ).parsed
98
+
99
+
100
+ async def asyncio_detailed(
101
+ *,
102
+ client: AuthenticatedClient,
103
+ body: AgentIdentityRequest,
104
+ ) -> Response[AgentIdentity]:
105
+ """
106
+ Args:
107
+ body (AgentIdentityRequest):
108
+
109
+ Raises:
110
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
111
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
112
+
113
+ Returns:
114
+ Response[AgentIdentity]
115
+ """
116
+
117
+ kwargs = _get_kwargs(
118
+ body=body,
119
+ )
120
+
121
+ response = await client.get_async_httpx_client().request(**kwargs)
122
+
123
+ return _build_response(client=client, response=response)
124
+
125
+
126
+ async def asyncio(
127
+ *,
128
+ client: AuthenticatedClient,
129
+ body: AgentIdentityRequest,
130
+ ) -> AgentIdentity:
131
+ """
132
+ Args:
133
+ body (AgentIdentityRequest):
134
+
135
+ Raises:
136
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
137
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
138
+
139
+ Returns:
140
+ AgentIdentity
141
+ """
142
+
143
+ return (
144
+ await asyncio_detailed(
145
+ client=client,
146
+ body=body,
147
+ )
148
+ ).parsed
@@ -0,0 +1,89 @@
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 ...types import Response
10
+
11
+
12
+ def _get_kwargs(
13
+ uuid: UUID,
14
+ ) -> dict[str, Any]:
15
+ _kwargs: dict[str, Any] = {
16
+ "method": "delete",
17
+ "url": f"/api/marketplace-site-agent-identities/{uuid}/",
18
+ }
19
+
20
+ return _kwargs
21
+
22
+
23
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Any:
24
+ if response.status_code == 204:
25
+ return None
26
+ raise errors.UnexpectedStatus(response.status_code, response.content)
27
+
28
+
29
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
30
+ return Response(
31
+ status_code=HTTPStatus(response.status_code),
32
+ content=response.content,
33
+ headers=response.headers,
34
+ parsed=_parse_response(client=client, response=response),
35
+ )
36
+
37
+
38
+ def sync_detailed(
39
+ uuid: UUID,
40
+ *,
41
+ client: AuthenticatedClient,
42
+ ) -> Response[Any]:
43
+ """
44
+ Args:
45
+ uuid (UUID):
46
+
47
+ Raises:
48
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
49
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
50
+
51
+ Returns:
52
+ Response[Any]
53
+ """
54
+
55
+ kwargs = _get_kwargs(
56
+ uuid=uuid,
57
+ )
58
+
59
+ response = client.get_httpx_client().request(
60
+ **kwargs,
61
+ )
62
+
63
+ return _build_response(client=client, response=response)
64
+
65
+
66
+ async def asyncio_detailed(
67
+ uuid: UUID,
68
+ *,
69
+ client: AuthenticatedClient,
70
+ ) -> Response[Any]:
71
+ """
72
+ Args:
73
+ uuid (UUID):
74
+
75
+ Raises:
76
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
77
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
78
+
79
+ Returns:
80
+ Response[Any]
81
+ """
82
+
83
+ kwargs = _get_kwargs(
84
+ uuid=uuid,
85
+ )
86
+
87
+ response = await client.get_async_httpx_client().request(**kwargs)
88
+
89
+ return _build_response(client=client, response=response)
@@ -0,0 +1,241 @@
1
+ import datetime
2
+ from http import HTTPStatus
3
+ from typing import Any, Union
4
+ from uuid import UUID
5
+
6
+ import httpx
7
+
8
+ from ... import errors
9
+ from ...client import AuthenticatedClient, Client
10
+ from ...models.agent_identity import AgentIdentity
11
+ from ...types import UNSET, Response, Unset
12
+
13
+
14
+ def _get_kwargs(
15
+ *,
16
+ last_restarted: Union[Unset, datetime.datetime] = UNSET,
17
+ name: Union[Unset, str] = UNSET,
18
+ offering_uuid: Union[Unset, UUID] = UNSET,
19
+ page: Union[Unset, int] = UNSET,
20
+ page_size: Union[Unset, int] = UNSET,
21
+ version: Union[Unset, str] = UNSET,
22
+ ) -> dict[str, Any]:
23
+ params: dict[str, Any] = {}
24
+
25
+ json_last_restarted: Union[Unset, str] = UNSET
26
+ if not isinstance(last_restarted, Unset):
27
+ json_last_restarted = last_restarted.isoformat()
28
+ params["last_restarted"] = json_last_restarted
29
+
30
+ params["name"] = name
31
+
32
+ json_offering_uuid: Union[Unset, str] = UNSET
33
+ if not isinstance(offering_uuid, Unset):
34
+ json_offering_uuid = str(offering_uuid)
35
+ params["offering_uuid"] = json_offering_uuid
36
+
37
+ params["page"] = page
38
+
39
+ params["page_size"] = page_size
40
+
41
+ params["version"] = version
42
+
43
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
44
+
45
+ _kwargs: dict[str, Any] = {
46
+ "method": "get",
47
+ "url": "/api/marketplace-site-agent-identities/",
48
+ "params": params,
49
+ }
50
+
51
+ return _kwargs
52
+
53
+
54
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> list["AgentIdentity"]:
55
+ if response.status_code == 200:
56
+ response_200 = []
57
+ _response_200 = response.json()
58
+ for response_200_item_data in _response_200:
59
+ response_200_item = AgentIdentity.from_dict(response_200_item_data)
60
+
61
+ response_200.append(response_200_item)
62
+
63
+ return response_200
64
+ raise errors.UnexpectedStatus(response.status_code, response.content)
65
+
66
+
67
+ def _build_response(
68
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
69
+ ) -> Response[list["AgentIdentity"]]:
70
+ return Response(
71
+ status_code=HTTPStatus(response.status_code),
72
+ content=response.content,
73
+ headers=response.headers,
74
+ parsed=_parse_response(client=client, response=response),
75
+ )
76
+
77
+
78
+ def sync_detailed(
79
+ *,
80
+ client: AuthenticatedClient,
81
+ last_restarted: Union[Unset, datetime.datetime] = UNSET,
82
+ name: Union[Unset, str] = UNSET,
83
+ offering_uuid: Union[Unset, UUID] = UNSET,
84
+ page: Union[Unset, int] = UNSET,
85
+ page_size: Union[Unset, int] = UNSET,
86
+ version: Union[Unset, str] = UNSET,
87
+ ) -> Response[list["AgentIdentity"]]:
88
+ """Mixin to optimize HEAD requests for DRF views bypassing serializer processing
89
+
90
+ Args:
91
+ last_restarted (Union[Unset, datetime.datetime]):
92
+ name (Union[Unset, str]):
93
+ offering_uuid (Union[Unset, UUID]):
94
+ page (Union[Unset, int]):
95
+ page_size (Union[Unset, int]):
96
+ version (Union[Unset, str]):
97
+
98
+ Raises:
99
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
100
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
101
+
102
+ Returns:
103
+ Response[list['AgentIdentity']]
104
+ """
105
+
106
+ kwargs = _get_kwargs(
107
+ last_restarted=last_restarted,
108
+ name=name,
109
+ offering_uuid=offering_uuid,
110
+ page=page,
111
+ page_size=page_size,
112
+ version=version,
113
+ )
114
+
115
+ response = client.get_httpx_client().request(
116
+ **kwargs,
117
+ )
118
+
119
+ return _build_response(client=client, response=response)
120
+
121
+
122
+ def sync(
123
+ *,
124
+ client: AuthenticatedClient,
125
+ last_restarted: Union[Unset, datetime.datetime] = UNSET,
126
+ name: Union[Unset, str] = UNSET,
127
+ offering_uuid: Union[Unset, UUID] = UNSET,
128
+ page: Union[Unset, int] = UNSET,
129
+ page_size: Union[Unset, int] = UNSET,
130
+ version: Union[Unset, str] = UNSET,
131
+ ) -> list["AgentIdentity"]:
132
+ """Mixin to optimize HEAD requests for DRF views bypassing serializer processing
133
+
134
+ Args:
135
+ last_restarted (Union[Unset, datetime.datetime]):
136
+ name (Union[Unset, str]):
137
+ offering_uuid (Union[Unset, UUID]):
138
+ page (Union[Unset, int]):
139
+ page_size (Union[Unset, int]):
140
+ version (Union[Unset, str]):
141
+
142
+ Raises:
143
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
144
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
145
+
146
+ Returns:
147
+ list['AgentIdentity']
148
+ """
149
+
150
+ return sync_detailed(
151
+ client=client,
152
+ last_restarted=last_restarted,
153
+ name=name,
154
+ offering_uuid=offering_uuid,
155
+ page=page,
156
+ page_size=page_size,
157
+ version=version,
158
+ ).parsed
159
+
160
+
161
+ async def asyncio_detailed(
162
+ *,
163
+ client: AuthenticatedClient,
164
+ last_restarted: Union[Unset, datetime.datetime] = UNSET,
165
+ name: Union[Unset, str] = UNSET,
166
+ offering_uuid: Union[Unset, UUID] = UNSET,
167
+ page: Union[Unset, int] = UNSET,
168
+ page_size: Union[Unset, int] = UNSET,
169
+ version: Union[Unset, str] = UNSET,
170
+ ) -> Response[list["AgentIdentity"]]:
171
+ """Mixin to optimize HEAD requests for DRF views bypassing serializer processing
172
+
173
+ Args:
174
+ last_restarted (Union[Unset, datetime.datetime]):
175
+ name (Union[Unset, str]):
176
+ offering_uuid (Union[Unset, UUID]):
177
+ page (Union[Unset, int]):
178
+ page_size (Union[Unset, int]):
179
+ version (Union[Unset, str]):
180
+
181
+ Raises:
182
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
183
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
184
+
185
+ Returns:
186
+ Response[list['AgentIdentity']]
187
+ """
188
+
189
+ kwargs = _get_kwargs(
190
+ last_restarted=last_restarted,
191
+ name=name,
192
+ offering_uuid=offering_uuid,
193
+ page=page,
194
+ page_size=page_size,
195
+ version=version,
196
+ )
197
+
198
+ response = await client.get_async_httpx_client().request(**kwargs)
199
+
200
+ return _build_response(client=client, response=response)
201
+
202
+
203
+ async def asyncio(
204
+ *,
205
+ client: AuthenticatedClient,
206
+ last_restarted: Union[Unset, datetime.datetime] = UNSET,
207
+ name: Union[Unset, str] = UNSET,
208
+ offering_uuid: Union[Unset, UUID] = UNSET,
209
+ page: Union[Unset, int] = UNSET,
210
+ page_size: Union[Unset, int] = UNSET,
211
+ version: Union[Unset, str] = UNSET,
212
+ ) -> list["AgentIdentity"]:
213
+ """Mixin to optimize HEAD requests for DRF views bypassing serializer processing
214
+
215
+ Args:
216
+ last_restarted (Union[Unset, datetime.datetime]):
217
+ name (Union[Unset, str]):
218
+ offering_uuid (Union[Unset, UUID]):
219
+ page (Union[Unset, int]):
220
+ page_size (Union[Unset, int]):
221
+ version (Union[Unset, str]):
222
+
223
+ Raises:
224
+ errors.UnexpectedStatus: If the server returns an undocumented status code.
225
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
226
+
227
+ Returns:
228
+ list['AgentIdentity']
229
+ """
230
+
231
+ return (
232
+ await asyncio_detailed(
233
+ client=client,
234
+ last_restarted=last_restarted,
235
+ name=name,
236
+ offering_uuid=offering_uuid,
237
+ page=page,
238
+ page_size=page_size,
239
+ version=version,
240
+ )
241
+ ).parsed