rapidata 2.23.2__py3-none-any.whl → 3.0.1__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 rapidata might be problematic. Click here for more details.

Files changed (865) hide show
  1. rapidata/__init__.py +31 -14
  2. rapidata/api_client/__init__.py +84 -312
  3. rapidata/api_client/api/__init__.py +12 -3
  4. rapidata/api_client/api/asset_api.py +853 -0
  5. rapidata/api_client/api/audience_api.py +3044 -0
  6. rapidata/api_client/api/benchmark_api.py +4307 -0
  7. rapidata/api_client/api/campaign_api.py +232 -207
  8. rapidata/api_client/api/client_api.py +166 -145
  9. rapidata/api_client/api/coco_api.py +0 -571
  10. rapidata/api_client/api/compare_workflow_api.py +11 -10
  11. rapidata/api_client/api/customer_rapid_api.py +2216 -0
  12. rapidata/api_client/api/datapoint_api.py +8 -797
  13. rapidata/api_client/api/dataset_api.py +276 -2858
  14. rapidata/api_client/api/evaluation_workflow_api.py +29 -82
  15. rapidata/api_client/api/feedback_api.py +11 -281
  16. rapidata/api_client/api/grouped_ranking_workflow_api.py +319 -0
  17. rapidata/api_client/api/identity_api.py +83 -1171
  18. rapidata/api_client/api/job_api.py +4200 -0
  19. rapidata/api_client/api/job_definition_api.py +319 -0
  20. rapidata/api_client/api/job_revision_api.py +335 -0
  21. rapidata/api_client/api/leaderboard_api.py +2855 -0
  22. rapidata/api_client/api/newsletter_api.py +30 -317
  23. rapidata/api_client/api/order_api.py +758 -5487
  24. rapidata/api_client/api/participant_api.py +2181 -0
  25. rapidata/api_client/api/pipeline_api.py +24 -1783
  26. rapidata/api_client/api/prompt_api.py +320 -0
  27. rapidata/api_client/api/rapidata_identity_api_api.py +5 -4
  28. rapidata/api_client/api/sample_api.py +300 -0
  29. rapidata/api_client/api/simple_workflow_api.py +11 -10
  30. rapidata/api_client/api/survey_api.py +304 -0
  31. rapidata/api_client/api/user_rapid_api.py +1389 -0
  32. rapidata/api_client/api/validation_set_api.py +510 -3230
  33. rapidata/api_client/api/workflow_api.py +32 -825
  34. rapidata/api_client/api_client.py +2 -2
  35. rapidata/api_client/configuration.py +16 -29
  36. rapidata/api_client/exceptions.py +2 -2
  37. rapidata/api_client/models/__init__.py +65 -291
  38. rapidata/api_client/models/ab_test_selection_a_inner.py +27 -13
  39. rapidata/api_client/models/add_campaign_model.py +8 -3
  40. rapidata/api_client/models/add_rapid_to_audience_model.py +144 -0
  41. rapidata/api_client/models/add_user_response_result.py +10 -5
  42. rapidata/api_client/models/add_validation_rapid_model.py +49 -28
  43. rapidata/api_client/models/add_validation_rapid_model_asset.py +154 -0
  44. rapidata/api_client/models/add_validation_rapid_model_context_asset.py +160 -0
  45. rapidata/api_client/models/add_validation_rapid_model_metadata_inner.py +140 -0
  46. rapidata/api_client/models/add_validation_rapid_model_truth.py +32 -12
  47. rapidata/api_client/models/add_validation_rapid_new_model.py +137 -0
  48. rapidata/api_client/models/add_validation_rapid_new_model_asset.py +182 -0
  49. rapidata/api_client/models/add_validation_rapid_new_model_truth.py +286 -0
  50. rapidata/api_client/models/add_validation_text_rapid_model.py +4 -6
  51. rapidata/api_client/models/age_user_filter_model.py +2 -2
  52. rapidata/api_client/models/age_user_filter_model_age_group.py +41 -0
  53. rapidata/api_client/models/aggregated_orders_model.py +98 -0
  54. rapidata/api_client/models/aggregator_type.py +4 -2
  55. rapidata/api_client/models/and_filter.py +121 -0
  56. rapidata/api_client/models/and_filter_filters_inner.py +282 -0
  57. rapidata/api_client/models/and_user_filter_model.py +106 -0
  58. rapidata/api_client/models/and_user_filter_model_filters_inner.py +282 -0
  59. rapidata/api_client/models/are_rapids_active_result.py +2 -2
  60. rapidata/api_client/models/asset_metadata.py +106 -0
  61. rapidata/api_client/models/asset_metadata_asset.py +170 -0
  62. rapidata/api_client/models/asset_metadata_model.py +96 -0
  63. rapidata/api_client/models/asset_metadata_model_asset.py +170 -0
  64. rapidata/api_client/models/asset_type.py +40 -0
  65. rapidata/api_client/models/attach_category_rapid_blueprint.py +13 -3
  66. rapidata/api_client/models/attach_category_rapid_blueprint_category.py +89 -0
  67. rapidata/api_client/models/audience_job_state.py +38 -0
  68. rapidata/api_client/models/audience_status.py +39 -0
  69. rapidata/api_client/models/benchmark_query_result.py +98 -0
  70. rapidata/api_client/models/benchmark_query_result_paged_result.py +105 -0
  71. rapidata/api_client/models/boost_leaderboard_model.py +89 -0
  72. rapidata/api_client/models/boost_mode.py +37 -0
  73. rapidata/api_client/models/boost_query_result.py +97 -0
  74. rapidata/api_client/models/boost_query_result_boost_mode.py +37 -0
  75. rapidata/api_client/models/boost_query_result_boost_status.py +39 -0
  76. rapidata/api_client/models/boost_status.py +39 -0
  77. rapidata/api_client/models/boosting_profile.py +91 -0
  78. rapidata/api_client/models/box_shape.py +4 -33
  79. rapidata/api_client/models/campaign_filter.py +98 -0
  80. rapidata/api_client/models/campaign_query_result.py +15 -13
  81. rapidata/api_client/models/campaign_status.py +2 -2
  82. rapidata/api_client/models/change_boost_model.py +89 -0
  83. rapidata/api_client/models/classification_metadata.py +12 -1
  84. rapidata/api_client/models/classify_payload.py +14 -15
  85. rapidata/api_client/models/classify_payload_category.py +89 -0
  86. rapidata/api_client/models/client_model.py +181 -0
  87. rapidata/api_client/models/clients_query_result.py +5 -5
  88. rapidata/api_client/models/clone_order_model.py +6 -8
  89. rapidata/api_client/models/clone_order_result.py +9 -4
  90. rapidata/api_client/models/compare_rapid_blueprint.py +5 -3
  91. rapidata/api_client/models/compare_rapid_blueprint1.py +96 -0
  92. rapidata/api_client/models/compare_result.py +1 -10
  93. rapidata/api_client/models/compare_workflow_config.py +34 -23
  94. rapidata/api_client/models/compare_workflow_config_context_asset.py +174 -0
  95. rapidata/api_client/models/compare_workflow_config_metadata_value.py +75 -17
  96. rapidata/api_client/models/compare_workflow_config_model.py +15 -5
  97. rapidata/api_client/models/compare_workflow_model.py +34 -6
  98. rapidata/api_client/models/compare_workflow_model1.py +20 -9
  99. rapidata/api_client/models/compare_workflow_model_context_asset.py +160 -0
  100. rapidata/api_client/models/compare_workflow_model_metadata_inner.py +154 -0
  101. rapidata/api_client/models/compare_workflow_model_pair_maker_config.py +1 -1
  102. rapidata/api_client/models/comparison_operator.py +2 -2
  103. rapidata/api_client/models/conditional_validation_selection.py +8 -11
  104. rapidata/api_client/models/conditional_validation_selection_validation_chance.py +103 -0
  105. rapidata/api_client/models/confidence_interval.py +89 -0
  106. rapidata/api_client/models/count_metadata.py +12 -1
  107. rapidata/api_client/models/country_filter.py +98 -0
  108. rapidata/api_client/models/create_audience_request.py +122 -0
  109. rapidata/api_client/models/create_audience_result.py +87 -0
  110. rapidata/api_client/models/create_benchmark_model.py +87 -0
  111. rapidata/api_client/models/create_benchmark_participant_model.py +87 -0
  112. rapidata/api_client/models/create_benchmark_participant_result.py +89 -0
  113. rapidata/api_client/models/create_benchmark_prompt_result.py +87 -0
  114. rapidata/api_client/models/create_benchmark_result.py +87 -0
  115. rapidata/api_client/models/create_bridge_token_result.py +2 -2
  116. rapidata/api_client/models/create_client_model.py +6 -13
  117. rapidata/api_client/models/create_complex_order_model.py +9 -9
  118. rapidata/api_client/models/create_complex_order_result.py +6 -4
  119. rapidata/api_client/models/create_customer_client_result.py +89 -0
  120. rapidata/api_client/models/create_datapoint_from_files_model_metadata_inner.py +25 -11
  121. rapidata/api_client/models/create_datapoint_model.py +124 -0
  122. rapidata/api_client/models/create_datapoint_model_asset.py +154 -0
  123. rapidata/api_client/models/create_datapoint_model_context_asset.py +160 -0
  124. rapidata/api_client/models/create_datapoint_model_metadata_inner.py +154 -0
  125. rapidata/api_client/models/create_datapoint_result.py +6 -18
  126. rapidata/api_client/models/create_dataset_endpoint_input.py +87 -0
  127. rapidata/api_client/models/create_dataset_endpoint_output.py +87 -0
  128. rapidata/api_client/models/create_demographic_rapid_model.py +45 -7
  129. rapidata/api_client/models/create_demographic_rapid_model_asset.py +160 -0
  130. rapidata/api_client/models/create_demographic_rapid_model_context_asset.py +160 -0
  131. rapidata/api_client/models/create_demographic_rapid_model_new.py +119 -0
  132. rapidata/api_client/models/create_empty_validation_set_result.py +2 -2
  133. rapidata/api_client/models/create_job_definition_endpoint_input.py +119 -0
  134. rapidata/api_client/models/create_job_definition_endpoint_output.py +89 -0
  135. rapidata/api_client/models/create_job_endpoint_input.py +100 -0
  136. rapidata/api_client/models/create_job_endpoint_output.py +89 -0
  137. rapidata/api_client/models/create_job_revision_endpoint_input.py +127 -0
  138. rapidata/api_client/models/create_job_revision_endpoint_output.py +89 -0
  139. rapidata/api_client/models/create_leaderboard_model.py +147 -0
  140. rapidata/api_client/models/create_leaderboard_participant_model.py +87 -0
  141. rapidata/api_client/models/create_leaderboard_participant_result.py +89 -0
  142. rapidata/api_client/models/create_leaderboard_result.py +99 -0
  143. rapidata/api_client/models/create_order_definition_model.py +119 -0
  144. rapidata/api_client/models/create_order_definition_result.py +87 -0
  145. rapidata/api_client/models/create_order_definition_revision_model.py +117 -0
  146. rapidata/api_client/models/create_order_definition_revision_result.py +87 -0
  147. rapidata/api_client/models/create_order_model.py +30 -103
  148. rapidata/api_client/models/create_order_model_referee.py +12 -12
  149. rapidata/api_client/models/create_order_model_workflow.py +35 -21
  150. rapidata/api_client/models/create_order_result.py +6 -4
  151. rapidata/api_client/models/create_rapid_result.py +2 -2
  152. rapidata/api_client/models/create_sample_model.py +93 -0
  153. rapidata/api_client/models/create_sample_model_asset.py +154 -0
  154. rapidata/api_client/models/create_sample_model_obsolete.py +87 -0
  155. rapidata/api_client/models/create_simple_pipeline_model_pipeline_steps_inner.py +8 -22
  156. rapidata/api_client/models/create_unsupported_order_model.py +6 -6
  157. rapidata/api_client/models/create_validation_set_model.py +5 -5
  158. rapidata/api_client/models/datapoint_metadata_model.py +3 -3
  159. rapidata/api_client/models/datapoint_model.py +3 -3
  160. rapidata/api_client/models/datapoint_model_paged_result.py +105 -0
  161. rapidata/api_client/models/datapoint_state.py +2 -2
  162. rapidata/api_client/models/dataset_dataset_id_datapoints_post_request_metadata_inner.py +182 -0
  163. rapidata/api_client/models/definition_type.py +49 -0
  164. rapidata/api_client/models/demographic_filter.py +100 -0
  165. rapidata/api_client/models/dynamic_client_registration_request.py +160 -0
  166. rapidata/api_client/models/early_stopping_referee_model.py +3 -3
  167. rapidata/api_client/models/effort_capped_selection.py +106 -0
  168. rapidata/api_client/models/elo_config.py +2 -2
  169. rapidata/api_client/models/elo_config_model.py +6 -6
  170. rapidata/api_client/models/entity_tag_header_value.py +93 -0
  171. rapidata/api_client/models/evaluation_workflow_config.py +13 -3
  172. rapidata/api_client/models/evaluation_workflow_model.py +16 -6
  173. rapidata/api_client/models/existing_asset_input.py +109 -0
  174. rapidata/api_client/models/existing_asset_input_metadata_value.py +126 -0
  175. rapidata/api_client/models/feature_flag.py +2 -2
  176. rapidata/api_client/models/feature_flag_model.py +6 -6
  177. rapidata/api_client/models/feedback_model.py +7 -7
  178. rapidata/api_client/models/file_asset.py +15 -12
  179. rapidata/api_client/models/file_asset_input.py +104 -0
  180. rapidata/api_client/models/file_asset_input1.py +104 -0
  181. rapidata/api_client/models/file_asset_input1_file.py +168 -0
  182. rapidata/api_client/models/file_asset_input2.py +104 -0
  183. rapidata/api_client/models/file_asset_input3.py +104 -0
  184. rapidata/api_client/models/file_asset_input_file.py +168 -0
  185. rapidata/api_client/models/file_asset_metadata_value.py +252 -0
  186. rapidata/api_client/models/file_asset_model_metadata_value.py +37 -51
  187. rapidata/api_client/models/file_stream_result.py +122 -0
  188. rapidata/api_client/models/file_type.py +39 -0
  189. rapidata/api_client/models/file_type_metadata.py +110 -0
  190. rapidata/api_client/models/file_type_metadata_model.py +97 -0
  191. rapidata/api_client/models/filter.py +7 -25
  192. rapidata/api_client/models/filter_operator.py +3 -2
  193. rapidata/api_client/models/fork_benchmark_result.py +87 -0
  194. rapidata/api_client/models/form_file_wrapper.py +135 -0
  195. rapidata/api_client/models/free_text_payload.py +10 -3
  196. rapidata/api_client/models/free_text_rapid_blueprint.py +10 -3
  197. rapidata/api_client/models/gender_user_filter_model.py +2 -2
  198. rapidata/api_client/models/gender_user_filter_model_gender.py +38 -0
  199. rapidata/api_client/models/get_asset_metadata_result.py +100 -0
  200. rapidata/api_client/models/get_audience_by_id_result.py +118 -0
  201. rapidata/api_client/models/get_audience_user_state_metrics_result.py +87 -0
  202. rapidata/api_client/models/get_available_validation_sets_result.py +2 -2
  203. rapidata/api_client/models/get_benchmark_by_id_query.py +96 -0
  204. rapidata/api_client/models/get_benchmark_by_id_query_result.py +94 -0
  205. rapidata/api_client/models/get_benchmark_by_id_query_result_paged_result.py +105 -0
  206. rapidata/api_client/models/get_benchmark_by_id_result.py +98 -0
  207. rapidata/api_client/models/get_boost_result.py +97 -0
  208. rapidata/api_client/models/get_boost_result_boost_mode.py +37 -0
  209. rapidata/api_client/models/get_boost_result_boost_status.py +39 -0
  210. rapidata/api_client/models/get_compare_ab_summary_result.py +5 -5
  211. rapidata/api_client/models/get_compare_workflow_results_model.py +7 -7
  212. rapidata/api_client/models/get_compare_workflow_results_result.py +5 -5
  213. rapidata/api_client/models/get_datapoint_by_id_result.py +10 -21
  214. rapidata/api_client/models/get_datapoint_by_id_result_asset.py +170 -0
  215. rapidata/api_client/models/get_dataset_by_id_result.py +2 -2
  216. rapidata/api_client/models/get_dataset_progress_result.py +2 -2
  217. rapidata/api_client/models/get_evaluation_workflow_results_model.py +119 -0
  218. rapidata/api_client/models/get_failed_datapoints_result.py +5 -5
  219. rapidata/api_client/models/get_failed_datapoints_result_datapoint.py +100 -0
  220. rapidata/api_client/models/get_file_metadata_result.py +100 -0
  221. rapidata/api_client/models/get_grouped_ranking_workflow_results_model.py +106 -0
  222. rapidata/api_client/models/get_grouped_ranking_workflow_results_result.py +97 -0
  223. rapidata/api_client/models/get_grouped_ranking_workflow_results_result_paged_result.py +105 -0
  224. rapidata/api_client/models/get_job_by_id_endpoint_output.py +130 -0
  225. rapidata/api_client/models/get_job_definition_by_id_endpoint_output.py +95 -0
  226. rapidata/api_client/models/get_job_revision_endpoint_output.py +133 -0
  227. rapidata/api_client/models/get_leaderboard_by_id_result.py +135 -0
  228. rapidata/api_client/models/get_order_by_id_result.py +12 -5
  229. rapidata/api_client/models/get_participant_by_id_result.py +91 -0
  230. rapidata/api_client/models/get_pipeline_by_id_result.py +5 -5
  231. rapidata/api_client/models/get_public_orders_result.py +2 -2
  232. rapidata/api_client/models/get_public_responses_result.py +95 -0
  233. rapidata/api_client/models/get_public_responses_result_response.py +112 -0
  234. rapidata/api_client/models/get_rapid_responses_result.py +6 -12
  235. rapidata/api_client/models/get_recommended_validation_set_result.py +95 -0
  236. rapidata/api_client/models/get_responses_for_rapid_result.py +106 -0
  237. rapidata/api_client/models/get_responses_for_rapid_result_response.py +103 -0
  238. rapidata/api_client/models/get_responses_for_rapid_result_response_result.py +266 -0
  239. rapidata/api_client/models/get_responses_result.py +5 -5
  240. rapidata/api_client/models/get_responses_result_response.py +103 -0
  241. rapidata/api_client/models/get_sample_by_id_result.py +125 -0
  242. rapidata/api_client/models/get_simple_workflow_results_model.py +20 -15
  243. rapidata/api_client/models/get_standing_by_id_result.py +96 -0
  244. rapidata/api_client/models/get_validation_rapids_result.py +33 -33
  245. rapidata/api_client/models/get_validation_rapids_result_truth.py +25 -11
  246. rapidata/api_client/models/get_validation_set_by_id_result.py +10 -4
  247. rapidata/api_client/models/get_workflow_by_id_result.py +5 -5
  248. rapidata/api_client/models/get_workflow_by_id_result_workflow.py +23 -9
  249. rapidata/api_client/models/get_workflow_progress_result.py +5 -11
  250. rapidata/api_client/models/get_workflow_results_result.py +34 -23
  251. rapidata/api_client/models/get_workflow_results_result_response.py +103 -0
  252. rapidata/api_client/models/google_one_tap_login_model.py +4 -4
  253. rapidata/api_client/models/grouped_ranking_workflow_config.py +155 -0
  254. rapidata/api_client/models/grouped_ranking_workflow_config_context_assets_value.py +170 -0
  255. rapidata/api_client/models/grouped_ranking_workflow_model.py +147 -0
  256. rapidata/api_client/models/grouped_ranking_workflow_model1.py +121 -0
  257. rapidata/api_client/models/i_artifact_model.py +182 -0
  258. rapidata/api_client/models/i_artifact_model_campaign_artifact_model.py +98 -0
  259. rapidata/api_client/models/i_artifact_model_dataset_artifact_model.py +98 -0
  260. rapidata/api_client/models/i_artifact_model_file_artifact_model.py +98 -0
  261. rapidata/api_client/models/i_artifact_model_workflow_artifact_model.py +98 -0
  262. rapidata/api_client/models/i_artifact_model_workflow_config_artifact_model.py +102 -0
  263. rapidata/api_client/models/i_asset.py +170 -0
  264. rapidata/api_client/models/i_asset_file_asset.py +111 -0
  265. rapidata/api_client/models/i_asset_input.py +156 -0
  266. rapidata/api_client/models/i_asset_input_existing_asset_input.py +118 -0
  267. rapidata/api_client/models/i_asset_input_multi_asset_input.py +128 -0
  268. rapidata/api_client/models/i_asset_input_text_asset_input.py +118 -0
  269. rapidata/api_client/models/i_asset_model.py +170 -0
  270. rapidata/api_client/models/i_asset_model_file_asset_model.py +113 -0
  271. rapidata/api_client/models/i_asset_model_multi_asset_model.py +123 -0
  272. rapidata/api_client/models/i_asset_model_null_asset_model.py +111 -0
  273. rapidata/api_client/models/i_asset_model_text_asset_model.py +113 -0
  274. rapidata/api_client/models/i_asset_multi_asset.py +121 -0
  275. rapidata/api_client/models/i_asset_null_asset.py +109 -0
  276. rapidata/api_client/models/i_asset_text_asset.py +111 -0
  277. rapidata/api_client/models/i_audience_filter.py +184 -0
  278. rapidata/api_client/models/i_audience_filter_and_audience_filter.py +106 -0
  279. rapidata/api_client/models/i_audience_filter_country_audience_filter.py +96 -0
  280. rapidata/api_client/models/i_audience_filter_country_filter.py +96 -0
  281. rapidata/api_client/models/i_audience_filter_language_audience_filter.py +96 -0
  282. rapidata/api_client/models/i_audience_filter_language_filter.py +96 -0
  283. rapidata/api_client/models/i_audience_filter_not_audience_filter.py +102 -0
  284. rapidata/api_client/models/i_audience_filter_or_audience_filter.py +106 -0
  285. rapidata/api_client/models/i_campaign_filter.py +296 -0
  286. rapidata/api_client/models/i_campaign_filter_and_filter.py +117 -0
  287. rapidata/api_client/models/i_campaign_filter_campaign_filter.py +98 -0
  288. rapidata/api_client/models/i_campaign_filter_campaign_session_count_filter.py +101 -0
  289. rapidata/api_client/models/i_campaign_filter_country_filter.py +98 -0
  290. rapidata/api_client/models/i_campaign_filter_demographic_filter.py +100 -0
  291. rapidata/api_client/models/i_campaign_filter_device_filter.py +106 -0
  292. rapidata/api_client/models/i_campaign_filter_language_filter.py +98 -0
  293. rapidata/api_client/models/i_campaign_filter_new_user_filter.py +96 -0
  294. rapidata/api_client/models/i_campaign_filter_not_filter.py +113 -0
  295. rapidata/api_client/models/i_campaign_filter_or_filter.py +117 -0
  296. rapidata/api_client/models/i_campaign_filter_response_count_filter.py +103 -0
  297. rapidata/api_client/models/i_campaign_filter_user_action_restriction_filter.py +106 -0
  298. rapidata/api_client/models/i_campaign_filter_user_score_filter.py +102 -0
  299. rapidata/api_client/models/i_campaign_filter_user_state_filter.py +106 -0
  300. rapidata/api_client/models/i_dataset_metadata_input.py +154 -0
  301. rapidata/api_client/models/i_dataset_metadata_input_prompt_asset_metadata_input.py +100 -0
  302. rapidata/api_client/models/i_dataset_metadata_input_prompt_metadata_input.py +96 -0
  303. rapidata/api_client/models/i_dataset_metadata_input_transcription_metadata_input.py +96 -0
  304. rapidata/api_client/models/i_dataset_model.py +126 -0
  305. rapidata/api_client/models/i_dataset_model_clone_dataset_model.py +98 -0
  306. rapidata/api_client/models/i_metadata.py +252 -0
  307. rapidata/api_client/models/i_metadata_classification_metadata.py +109 -0
  308. rapidata/api_client/models/i_metadata_count_metadata.py +109 -0
  309. rapidata/api_client/models/i_metadata_duration_metadata.py +110 -0
  310. rapidata/api_client/models/i_metadata_file_type_metadata.py +110 -0
  311. rapidata/api_client/models/i_metadata_image_dimension_metadata.py +111 -0
  312. rapidata/api_client/models/i_metadata_input.py +126 -0
  313. rapidata/api_client/models/i_metadata_input_text_metadata_input.py +111 -0
  314. rapidata/api_client/models/i_metadata_location_metadata.py +111 -0
  315. rapidata/api_client/models/i_metadata_model.py +252 -0
  316. rapidata/api_client/models/i_metadata_model_classification_metadata_model.py +96 -0
  317. rapidata/api_client/models/i_metadata_model_count_metadata_model.py +96 -0
  318. rapidata/api_client/models/i_metadata_model_file_type_metadata_model.py +97 -0
  319. rapidata/api_client/models/i_metadata_model_image_dimension_metadata_model.py +98 -0
  320. rapidata/api_client/models/i_metadata_model_location_metadata_model.py +98 -0
  321. rapidata/api_client/models/i_metadata_model_original_filename_metadata_model.py +96 -0
  322. rapidata/api_client/models/i_metadata_model_source_url_metadata_model.py +96 -0
  323. rapidata/api_client/models/i_metadata_model_streams_metadata_model.py +100 -0
  324. rapidata/api_client/models/i_metadata_model_text_metadata_model.py +101 -0
  325. rapidata/api_client/models/i_metadata_model_video_duration_metadata_model.py +97 -0
  326. rapidata/api_client/models/i_metadata_original_filename_metadata.py +109 -0
  327. rapidata/api_client/models/i_metadata_source_url_metadata.py +109 -0
  328. rapidata/api_client/models/i_metadata_streams_metadata.py +113 -0
  329. rapidata/api_client/models/i_metadata_text_metadata.py +114 -0
  330. rapidata/api_client/models/i_metadata_video_duration_metadata.py +110 -0
  331. rapidata/api_client/models/i_order_workflow_model.py +168 -0
  332. rapidata/api_client/models/i_order_workflow_model_compare_workflow_model.py +146 -0
  333. rapidata/api_client/models/i_order_workflow_model_evaluation_workflow_model.py +108 -0
  334. rapidata/api_client/models/i_order_workflow_model_grouped_ranking_workflow_model.py +147 -0
  335. rapidata/api_client/models/i_order_workflow_model_simple_workflow_model.py +110 -0
  336. rapidata/api_client/models/i_pair_maker_config.py +126 -0
  337. rapidata/api_client/models/i_pair_maker_config_model.py +126 -0
  338. rapidata/api_client/models/i_pair_maker_config_model_online_pair_maker_config_model.py +98 -0
  339. rapidata/api_client/models/i_pair_maker_config_online_pair_maker_config.py +98 -0
  340. rapidata/api_client/models/i_pair_maker_information.py +126 -0
  341. rapidata/api_client/models/i_pair_maker_information_online_pair_maker_information.py +100 -0
  342. rapidata/api_client/models/i_pipeline_artifact_model.py +126 -0
  343. rapidata/api_client/models/i_pipeline_artifact_model_create_dataset_artifact_model.py +102 -0
  344. rapidata/api_client/models/i_pipeline_model.py +126 -0
  345. rapidata/api_client/models/i_pipeline_model_create_simple_pipeline_model.py +116 -0
  346. rapidata/api_client/models/i_pipeline_step_model.py +168 -0
  347. rapidata/api_client/models/i_pipeline_step_model_dataset_evaluation_step_model.py +102 -0
  348. rapidata/api_client/models/i_pipeline_step_model_send_completion_mail_step_model.py +98 -0
  349. rapidata/api_client/models/i_pipeline_step_model_workflow_aggregation_step_model.py +103 -0
  350. rapidata/api_client/models/i_pipeline_step_model_workflow_labeling_step_model.py +96 -0
  351. rapidata/api_client/models/i_rapid_blueprint.py +252 -0
  352. rapidata/api_client/models/i_rapid_blueprint_attach_category_rapid_blueprint.py +108 -0
  353. rapidata/api_client/models/i_rapid_blueprint_bounding_box_rapid_blueprint.py +96 -0
  354. rapidata/api_client/models/i_rapid_blueprint_compare_rapid_blueprint.py +98 -0
  355. rapidata/api_client/models/i_rapid_blueprint_free_text_rapid_blueprint.py +105 -0
  356. rapidata/api_client/models/i_rapid_blueprint_line_rapid_blueprint.py +96 -0
  357. rapidata/api_client/models/i_rapid_blueprint_locate_rapid_blueprint.py +96 -0
  358. rapidata/api_client/models/i_rapid_blueprint_named_entity_rapid_blueprint.py +98 -0
  359. rapidata/api_client/models/i_rapid_blueprint_polygon_rapid_blueprint.py +96 -0
  360. rapidata/api_client/models/i_rapid_blueprint_scrub_rapid_blueprint.py +96 -0
  361. rapidata/api_client/models/i_rapid_blueprint_transcription_rapid_blueprint.py +96 -0
  362. rapidata/api_client/models/i_rapid_payload.py +252 -0
  363. rapidata/api_client/models/i_rapid_payload_bounding_box_payload.py +96 -0
  364. rapidata/api_client/models/i_rapid_payload_classify_payload.py +106 -0
  365. rapidata/api_client/models/i_rapid_payload_compare_payload.py +96 -0
  366. rapidata/api_client/models/i_rapid_payload_free_text_payload.py +105 -0
  367. rapidata/api_client/models/i_rapid_payload_line_payload.py +96 -0
  368. rapidata/api_client/models/i_rapid_payload_locate_payload.py +96 -0
  369. rapidata/api_client/models/i_rapid_payload_named_entity_payload.py +98 -0
  370. rapidata/api_client/models/i_rapid_payload_polygon_payload.py +96 -0
  371. rapidata/api_client/models/i_rapid_payload_scrub_payload.py +96 -0
  372. rapidata/api_client/models/i_rapid_payload_transcription_payload.py +106 -0
  373. rapidata/api_client/models/i_rapid_result.py +266 -0
  374. rapidata/api_client/models/i_rapid_result_attach_category_result.py +98 -0
  375. rapidata/api_client/models/i_rapid_result_bounding_box_result.py +106 -0
  376. rapidata/api_client/models/i_rapid_result_compare_result.py +98 -0
  377. rapidata/api_client/models/i_rapid_result_free_text_result.py +98 -0
  378. rapidata/api_client/models/i_rapid_result_line_result.py +106 -0
  379. rapidata/api_client/models/i_rapid_result_locate_result.py +106 -0
  380. rapidata/api_client/models/i_rapid_result_named_entity_result.py +106 -0
  381. rapidata/api_client/models/i_rapid_result_polygon_result.py +106 -0
  382. rapidata/api_client/models/i_rapid_result_scrub_result.py +98 -0
  383. rapidata/api_client/models/i_rapid_result_skip_result.py +96 -0
  384. rapidata/api_client/models/i_rapid_result_transcription_result.py +106 -0
  385. rapidata/api_client/models/i_referee_config.py +154 -0
  386. rapidata/api_client/models/i_referee_config_naive_referee_config.py +96 -0
  387. rapidata/api_client/models/i_referee_config_never_ending_referee_config.py +94 -0
  388. rapidata/api_client/models/i_referee_config_probabilistic_attach_category_referee_config.py +98 -0
  389. rapidata/api_client/models/i_referee_info.py +154 -0
  390. rapidata/api_client/models/i_referee_info_naive_referee_info.py +96 -0
  391. rapidata/api_client/models/i_referee_info_never_ending_referee_info.py +94 -0
  392. rapidata/api_client/models/i_referee_info_probabilistic_attach_category_referee_info.py +98 -0
  393. rapidata/api_client/models/i_referee_model.py +140 -0
  394. rapidata/api_client/models/i_referee_model_early_stopping_referee_model.py +98 -0
  395. rapidata/api_client/models/i_referee_model_naive_referee_model.py +96 -0
  396. rapidata/api_client/models/i_selection.py +240 -0
  397. rapidata/api_client/models/i_selection_ab_test_selection.py +122 -0
  398. rapidata/api_client/models/i_selection_capped_selection.py +108 -0
  399. rapidata/api_client/models/i_selection_conditional_validation_selection.py +110 -0
  400. rapidata/api_client/models/i_selection_demographic_selection.py +98 -0
  401. rapidata/api_client/models/i_selection_effort_capped_selection.py +101 -0
  402. rapidata/api_client/models/i_selection_labeling_selection.py +103 -0
  403. rapidata/api_client/models/i_selection_shuffling_selection.py +106 -0
  404. rapidata/api_client/models/i_selection_static_selection.py +96 -0
  405. rapidata/api_client/models/i_selection_validation_selection.py +98 -0
  406. rapidata/api_client/models/i_user_filter_model.py +296 -0
  407. rapidata/api_client/models/i_user_filter_model_age_user_filter_model.py +104 -0
  408. rapidata/api_client/models/i_user_filter_model_and_user_filter_model.py +106 -0
  409. rapidata/api_client/models/i_user_filter_model_campaign_user_filter_model.py +96 -0
  410. rapidata/api_client/models/i_user_filter_model_country_user_filter_model.py +96 -0
  411. rapidata/api_client/models/i_user_filter_model_custom_user_filter_model.py +98 -0
  412. rapidata/api_client/models/i_user_filter_model_device_user_filter_model.py +104 -0
  413. rapidata/api_client/models/i_user_filter_model_gender_user_filter_model.py +104 -0
  414. rapidata/api_client/models/i_user_filter_model_language_user_filter_model.py +96 -0
  415. rapidata/api_client/models/i_user_filter_model_new_user_filter_model.py +94 -0
  416. rapidata/api_client/models/i_user_filter_model_not_user_filter_model.py +102 -0
  417. rapidata/api_client/models/i_user_filter_model_or_user_filter_model.py +106 -0
  418. rapidata/api_client/models/i_user_filter_model_response_count_user_filter_model.py +101 -0
  419. rapidata/api_client/models/i_user_filter_model_user_score_user_filter_model.py +105 -0
  420. rapidata/api_client/models/i_validation_metadata_input.py +140 -0
  421. rapidata/api_client/models/i_validation_metadata_input_prompt_asset_metadata_input.py +100 -0
  422. rapidata/api_client/models/i_validation_metadata_input_prompt_metadata_input.py +96 -0
  423. rapidata/api_client/models/i_validation_truth.py +280 -0
  424. rapidata/api_client/models/i_validation_truth_attach_category_truth.py +96 -0
  425. rapidata/api_client/models/i_validation_truth_bounding_box_truth.py +102 -0
  426. rapidata/api_client/models/i_validation_truth_compare_truth.py +96 -0
  427. rapidata/api_client/models/i_validation_truth_empty_validation_truth.py +94 -0
  428. rapidata/api_client/models/i_validation_truth_line_truth.py +94 -0
  429. rapidata/api_client/models/i_validation_truth_locate_box_truth.py +108 -0
  430. rapidata/api_client/models/i_validation_truth_model.py +294 -0
  431. rapidata/api_client/models/i_validation_truth_model_attach_category_truth_model.py +96 -0
  432. rapidata/api_client/models/i_validation_truth_model_bounding_box_truth_model.py +102 -0
  433. rapidata/api_client/models/i_validation_truth_model_classify_truth_model.py +96 -0
  434. rapidata/api_client/models/i_validation_truth_model_compare_truth_model.py +96 -0
  435. rapidata/api_client/models/i_validation_truth_model_empty_validation_truth_model.py +94 -0
  436. rapidata/api_client/models/i_validation_truth_model_line_truth_model.py +94 -0
  437. rapidata/api_client/models/i_validation_truth_model_locate_box_truth_model.py +108 -0
  438. rapidata/api_client/models/i_validation_truth_model_multi_compare_truth_model.py +96 -0
  439. rapidata/api_client/models/i_validation_truth_model_named_entity_truth_model.py +104 -0
  440. rapidata/api_client/models/i_validation_truth_model_polygon_truth_model.py +94 -0
  441. rapidata/api_client/models/i_validation_truth_model_scrub_truth_model.py +104 -0
  442. rapidata/api_client/models/i_validation_truth_model_skip_truth_model.py +94 -0
  443. rapidata/api_client/models/i_validation_truth_model_transcription_truth_model.py +115 -0
  444. rapidata/api_client/models/i_validation_truth_multi_compare_truth.py +96 -0
  445. rapidata/api_client/models/i_validation_truth_named_entity_truth.py +104 -0
  446. rapidata/api_client/models/i_validation_truth_polygon_truth.py +94 -0
  447. rapidata/api_client/models/i_validation_truth_scrub_truth.py +104 -0
  448. rapidata/api_client/models/i_validation_truth_skip_truth.py +94 -0
  449. rapidata/api_client/models/i_validation_truth_transcription_truth.py +115 -0
  450. rapidata/api_client/models/i_workflow_config.py +168 -0
  451. rapidata/api_client/models/i_workflow_config_compare_workflow_config.py +142 -0
  452. rapidata/api_client/models/i_workflow_config_evaluation_workflow_config.py +114 -0
  453. rapidata/api_client/models/i_workflow_config_grouped_ranking_workflow_config.py +155 -0
  454. rapidata/api_client/models/i_workflow_config_simple_workflow_config.py +116 -0
  455. rapidata/api_client/models/i_workflow_model.py +168 -0
  456. rapidata/api_client/models/i_workflow_model_compare_workflow_model.py +145 -0
  457. rapidata/api_client/models/i_workflow_model_evaluation_workflow_model.py +115 -0
  458. rapidata/api_client/models/i_workflow_model_grouped_ranking_workflow_model.py +121 -0
  459. rapidata/api_client/models/i_workflow_model_simple_workflow_model.py +119 -0
  460. rapidata/api_client/models/image_dimension_metadata.py +12 -1
  461. rapidata/api_client/models/inquire_file_metadata_result.py +100 -0
  462. rapidata/api_client/models/inspect_report_result.py +2 -2
  463. rapidata/api_client/models/job_definition_revision_state.py +38 -0
  464. rapidata/api_client/models/json_web_key.py +224 -0
  465. rapidata/api_client/models/json_web_key_set.py +95 -0
  466. rapidata/api_client/models/labeling_selection.py +11 -13
  467. rapidata/api_client/models/language_filter.py +98 -0
  468. rapidata/api_client/models/leaderboard_query_result.py +135 -0
  469. rapidata/api_client/models/leaderboard_query_result_paged_result.py +105 -0
  470. rapidata/api_client/models/leaderboards_query_result.py +135 -0
  471. rapidata/api_client/models/line_result.py +3 -3
  472. rapidata/api_client/models/line_result_line.py +97 -0
  473. rapidata/api_client/models/line_result_line_point.py +89 -0
  474. rapidata/api_client/models/local_file_wrapper.py +120 -0
  475. rapidata/api_client/models/locate_coordinate.py +4 -13
  476. rapidata/api_client/models/location_metadata.py +12 -1
  477. rapidata/api_client/models/logic_operator.py +2 -2
  478. rapidata/api_client/models/metadata_i_order_metadata_input.py +154 -0
  479. rapidata/api_client/models/metadata_i_order_metadata_input_metadata_prompt_asset_metadata_input.py +100 -0
  480. rapidata/api_client/models/metadata_i_order_metadata_input_metadata_prompt_metadata_input.py +96 -0
  481. rapidata/api_client/models/metadata_i_order_metadata_input_metadata_transcription_metadata_input.py +96 -0
  482. rapidata/api_client/models/metadata_prompt_asset_metadata_input.py +100 -0
  483. rapidata/api_client/models/metadata_prompt_metadata_input.py +96 -0
  484. rapidata/api_client/models/metadata_transcription_metadata_input.py +96 -0
  485. rapidata/api_client/models/multi_asset.py +17 -12
  486. rapidata/api_client/models/multi_asset_assets_inner.py +170 -0
  487. rapidata/api_client/models/multi_asset_input.py +130 -0
  488. rapidata/api_client/models/multi_asset_input1.py +110 -0
  489. rapidata/api_client/models/multi_asset_input1_assets_inner.py +198 -0
  490. rapidata/api_client/models/multi_asset_input2.py +110 -0
  491. rapidata/api_client/models/multi_asset_input3.py +110 -0
  492. rapidata/api_client/models/multi_asset_input3_assets_inner.py +198 -0
  493. rapidata/api_client/models/multi_asset_input_assets_inner.py +156 -0
  494. rapidata/api_client/models/multi_asset_model.py +3 -3
  495. rapidata/api_client/models/multi_compare_truth.py +96 -0
  496. rapidata/api_client/models/naive_referee_info.py +96 -0
  497. rapidata/api_client/models/naive_referee_model.py +2 -2
  498. rapidata/api_client/models/named_classification.py +4 -13
  499. rapidata/api_client/models/never_ending_referee_info.py +94 -0
  500. rapidata/api_client/models/new_user_filter.py +96 -0
  501. rapidata/api_client/models/newsletter_model.py +6 -6
  502. rapidata/api_client/models/not_available_yet_result.py +4 -13
  503. rapidata/api_client/models/not_filter.py +117 -0
  504. rapidata/api_client/models/not_user_filter_model.py +3 -3
  505. rapidata/api_client/models/null_asset.py +14 -9
  506. rapidata/api_client/models/online_pair_maker_config_model.py +3 -3
  507. rapidata/api_client/models/option_of_aggregator_type.py +49 -0
  508. rapidata/api_client/models/or_filter.py +121 -0
  509. rapidata/api_client/models/or_user_filter_model.py +3 -3
  510. rapidata/api_client/models/order_model.py +15 -14
  511. rapidata/api_client/models/order_state.py +2 -2
  512. rapidata/api_client/models/original_filename_metadata.py +12 -1
  513. rapidata/api_client/models/page_info.py +2 -7
  514. rapidata/api_client/models/paged_result_aggregated_orders_model.py +105 -0
  515. rapidata/api_client/models/paged_result_benchmark_query_result.py +105 -0
  516. rapidata/api_client/models/paged_result_campaign_query_result.py +105 -0
  517. rapidata/api_client/models/paged_result_clients_query_result.py +105 -0
  518. rapidata/api_client/models/paged_result_datapoint_model.py +105 -0
  519. rapidata/api_client/models/paged_result_get_compare_workflow_results_result.py +105 -0
  520. rapidata/api_client/models/paged_result_get_grouped_ranking_workflow_results_result.py +105 -0
  521. rapidata/api_client/models/paged_result_get_validation_rapids_result.py +105 -0
  522. rapidata/api_client/models/paged_result_get_workflow_results_result.py +105 -0
  523. rapidata/api_client/models/paged_result_i_workflow_model.py +105 -0
  524. rapidata/api_client/models/paged_result_leaderboard_query_result.py +105 -0
  525. rapidata/api_client/models/paged_result_leaderboards_query_result.py +105 -0
  526. rapidata/api_client/models/paged_result_of_aggregated_orders_model.py +103 -0
  527. rapidata/api_client/models/paged_result_of_benchmark_query_result.py +103 -0
  528. rapidata/api_client/models/paged_result_of_campaign_query_result.py +103 -0
  529. rapidata/api_client/models/paged_result_of_clients_query_result.py +103 -0
  530. rapidata/api_client/models/paged_result_of_get_compare_workflow_results_result.py +103 -0
  531. rapidata/api_client/models/paged_result_of_get_grouped_ranking_workflow_results_result.py +103 -0
  532. rapidata/api_client/models/paged_result_of_get_validation_rapids_result.py +103 -0
  533. rapidata/api_client/models/paged_result_of_get_workflow_results_result.py +103 -0
  534. rapidata/api_client/models/paged_result_of_i_workflow_model.py +103 -0
  535. rapidata/api_client/models/paged_result_of_leaderboards_query_result.py +103 -0
  536. rapidata/api_client/models/paged_result_of_order_model.py +103 -0
  537. rapidata/api_client/models/paged_result_of_participant_by_benchmark.py +103 -0
  538. rapidata/api_client/models/paged_result_of_prompt_by_benchmark_result.py +103 -0
  539. rapidata/api_client/models/paged_result_of_query_audiences_result.py +103 -0
  540. rapidata/api_client/models/paged_result_of_query_datapoints_by_dataset_id_result.py +103 -0
  541. rapidata/api_client/models/paged_result_of_query_job_definitions_result.py +103 -0
  542. rapidata/api_client/models/paged_result_of_query_job_revisions_result.py +103 -0
  543. rapidata/api_client/models/paged_result_of_query_jobs_result.py +103 -0
  544. rapidata/api_client/models/paged_result_of_query_rapids_for_audience_result.py +103 -0
  545. rapidata/api_client/models/paged_result_of_query_validation_rapid_eligibility_result.py +103 -0
  546. rapidata/api_client/models/paged_result_of_rapid_model.py +103 -0
  547. rapidata/api_client/models/paged_result_of_runs_by_leaderboard_result.py +103 -0
  548. rapidata/api_client/models/paged_result_of_sample_by_identifier.py +103 -0
  549. rapidata/api_client/models/paged_result_of_sample_by_participant.py +103 -0
  550. rapidata/api_client/models/paged_result_of_standing_by_leaderboard.py +103 -0
  551. rapidata/api_client/models/paged_result_of_validation_set_model.py +103 -0
  552. rapidata/api_client/models/paged_result_order_model.py +105 -0
  553. rapidata/api_client/models/paged_result_participant_by_benchmark.py +105 -0
  554. rapidata/api_client/models/paged_result_potential_validation_rapid.py +105 -0
  555. rapidata/api_client/models/paged_result_prompt_by_benchmark_result.py +105 -0
  556. rapidata/api_client/models/paged_result_query_audiences_result.py +105 -0
  557. rapidata/api_client/models/paged_result_query_datapoints_by_dataset_id_result.py +105 -0
  558. rapidata/api_client/models/paged_result_query_validation_rapid_eligibility_result.py +105 -0
  559. rapidata/api_client/models/paged_result_rapid_model.py +105 -0
  560. rapidata/api_client/models/paged_result_runs_by_leaderboard_result.py +105 -0
  561. rapidata/api_client/models/paged_result_sample_by_identifier.py +105 -0
  562. rapidata/api_client/models/paged_result_sample_by_participant.py +105 -0
  563. rapidata/api_client/models/paged_result_standing_by_leaderboard.py +105 -0
  564. rapidata/api_client/models/paged_result_validation_set_model.py +105 -0
  565. rapidata/api_client/models/participant_by_benchmark.py +94 -0
  566. rapidata/api_client/models/participant_by_benchmark_paged_result.py +105 -0
  567. rapidata/api_client/models/participant_by_leaderboard.py +113 -0
  568. rapidata/api_client/models/participant_by_leaderboard_paged_result.py +105 -0
  569. rapidata/api_client/models/participant_status.py +38 -0
  570. rapidata/api_client/models/pipeline_id_workflow_config_put_request.py +140 -0
  571. rapidata/api_client/models/polygon_result.py +3 -3
  572. rapidata/api_client/models/polygon_result_coordinate.py +89 -0
  573. rapidata/api_client/models/polygon_result_shape.py +95 -0
  574. rapidata/api_client/models/potential_validation_rapid.py +103 -0
  575. rapidata/api_client/models/potential_validation_rapid_paged_result.py +105 -0
  576. rapidata/api_client/models/potential_validation_rapid_truth.py +280 -0
  577. rapidata/api_client/models/preliminary_download_model.py +5 -5
  578. rapidata/api_client/models/preview_order_model.py +92 -0
  579. rapidata/api_client/models/probabilistic_attach_category_referee_info.py +98 -0
  580. rapidata/api_client/models/problem_details.py +2 -20
  581. rapidata/api_client/models/prompt_asset_metadata_input.py +100 -0
  582. rapidata/api_client/models/prompt_asset_metadata_input_asset.py +154 -0
  583. rapidata/api_client/models/prompt_by_benchmark_result.py +112 -0
  584. rapidata/api_client/models/prompt_by_benchmark_result_paged_result.py +105 -0
  585. rapidata/api_client/models/prompt_by_leaderboard_result.py +90 -0
  586. rapidata/api_client/models/prompt_by_leaderboard_result_paged_result.py +105 -0
  587. rapidata/api_client/models/prompt_metadata.py +12 -1
  588. rapidata/api_client/models/prompt_metadata_input.py +2 -2
  589. rapidata/api_client/models/prompt_type.py +38 -0
  590. rapidata/api_client/models/proxy_file_wrapper.py +129 -0
  591. rapidata/api_client/models/public_order_model.py +2 -2
  592. rapidata/api_client/models/public_rapid_response.py +112 -0
  593. rapidata/api_client/models/query_audiences_result.py +118 -0
  594. rapidata/api_client/models/query_datapoints_by_dataset_id_result.py +95 -0
  595. rapidata/api_client/models/query_job_definitions_result.py +97 -0
  596. rapidata/api_client/models/query_job_revisions_result.py +95 -0
  597. rapidata/api_client/models/query_jobs_result.py +103 -0
  598. rapidata/api_client/models/query_model.py +10 -5
  599. rapidata/api_client/models/query_rapids_for_audience_result.py +150 -0
  600. rapidata/api_client/models/query_validation_model.py +97 -0
  601. rapidata/api_client/models/query_validation_rapid_eligibility_model_query_validation_model.py +107 -0
  602. rapidata/api_client/models/query_validation_rapid_eligibility_result.py +103 -0
  603. rapidata/api_client/models/query_validation_rapid_eligibility_result_truth.py +280 -0
  604. rapidata/api_client/models/rapid_issue.py +2 -2
  605. rapidata/api_client/models/rapid_modality.py +46 -0
  606. rapidata/api_client/models/rapid_model.py +157 -0
  607. rapidata/api_client/models/rapid_model_paged_result.py +105 -0
  608. rapidata/api_client/models/rapid_model_referee.py +154 -0
  609. rapidata/api_client/models/rapid_result_model.py +7 -7
  610. rapidata/api_client/models/rapid_skipped_model.py +5 -5
  611. rapidata/api_client/models/rapid_state.py +3 -2
  612. rapidata/api_client/models/read_bridge_token_keys_result.py +10 -24
  613. rapidata/api_client/models/reference_asset_input.py +100 -0
  614. rapidata/api_client/models/report_model.py +9 -15
  615. rapidata/api_client/models/response_count_filter.py +103 -0
  616. rapidata/api_client/models/response_count_user_filter_model.py +2 -8
  617. rapidata/api_client/models/retrieval_mode.py +2 -2
  618. rapidata/api_client/models/root_filter.py +5 -14
  619. rapidata/api_client/models/run_status.py +39 -0
  620. rapidata/api_client/models/runs_by_leaderboard_result.py +104 -0
  621. rapidata/api_client/models/runs_by_leaderboard_result_paged_result.py +105 -0
  622. rapidata/api_client/models/sample_by_identifier.py +125 -0
  623. rapidata/api_client/models/sample_by_identifier_paged_result.py +105 -0
  624. rapidata/api_client/models/sample_by_participant.py +121 -0
  625. rapidata/api_client/models/sample_by_participant_paged_result.py +105 -0
  626. rapidata/api_client/models/scrub_range.py +2 -2
  627. rapidata/api_client/models/send_survey_model.py +87 -0
  628. rapidata/api_client/models/simple_workflow_config.py +15 -7
  629. rapidata/api_client/models/simple_workflow_config_blueprint.py +37 -23
  630. rapidata/api_client/models/simple_workflow_config_model.py +11 -3
  631. rapidata/api_client/models/simple_workflow_model.py +14 -4
  632. rapidata/api_client/models/simple_workflow_model1.py +4 -11
  633. rapidata/api_client/models/simple_workflow_model_blueprint.py +1 -1
  634. rapidata/api_client/models/sort_criterion.py +5 -11
  635. rapidata/api_client/models/sort_direction.py +2 -2
  636. rapidata/api_client/models/source_url_metadata.py +12 -1
  637. rapidata/api_client/models/standing_by_benchmark.py +113 -0
  638. rapidata/api_client/models/standing_by_leaderboard.py +113 -0
  639. rapidata/api_client/models/standing_by_leaderboard_paged_result.py +105 -0
  640. rapidata/api_client/models/standing_status.py +38 -0
  641. rapidata/api_client/models/standings_by_benchmark_result.py +95 -0
  642. rapidata/api_client/models/standings_by_leaderboard_result.py +95 -0
  643. rapidata/api_client/models/start_preliminary_download_result.py +87 -0
  644. rapidata/api_client/models/sticky_state.py +3 -2
  645. rapidata/api_client/models/stream_file_wrapper.py +138 -0
  646. rapidata/api_client/models/streams_metadata.py +113 -0
  647. rapidata/api_client/models/streams_metadata_model.py +100 -0
  648. rapidata/api_client/models/string_segment.py +105 -0
  649. rapidata/api_client/models/submit_coco_model.py +1 -3
  650. rapidata/api_client/models/submit_order_model.py +92 -0
  651. rapidata/api_client/models/submit_participant_result.py +89 -0
  652. rapidata/api_client/models/submit_prompt_model.py +107 -0
  653. rapidata/api_client/models/submit_prompt_model_prompt_asset.py +202 -0
  654. rapidata/api_client/models/tags_by_benchmark_result.py +87 -0
  655. rapidata/api_client/models/text_asset.py +15 -10
  656. rapidata/api_client/models/text_asset_input.py +120 -0
  657. rapidata/api_client/models/text_metadata.py +18 -2
  658. rapidata/api_client/models/text_metadata_input.py +111 -0
  659. rapidata/api_client/models/text_metadata_model.py +7 -2
  660. rapidata/api_client/models/transcription_metadata.py +9 -1
  661. rapidata/api_client/models/transcription_metadata_input.py +2 -2
  662. rapidata/api_client/models/transcription_word.py +2 -2
  663. rapidata/api_client/models/translated_string.py +2 -2
  664. rapidata/api_client/models/unlock_order_result.py +2 -2
  665. rapidata/api_client/models/update_access_model.py +1 -1
  666. rapidata/api_client/models/update_audience_request.py +113 -0
  667. rapidata/api_client/models/update_benchmark_model.py +99 -0
  668. rapidata/api_client/models/update_benchmark_name_model.py +87 -0
  669. rapidata/api_client/models/update_campaign_model.py +11 -11
  670. rapidata/api_client/models/update_dataset_name_model.py +5 -5
  671. rapidata/api_client/models/update_dimensions_model.py +3 -3
  672. rapidata/api_client/models/update_job_definition_endpoint_input.py +92 -0
  673. rapidata/api_client/models/update_job_endpoint_input.py +92 -0
  674. rapidata/api_client/models/update_leaderboard_model.py +106 -0
  675. rapidata/api_client/models/update_leaderboard_name_model.py +87 -0
  676. rapidata/api_client/models/update_leaderboard_response_config_model.py +89 -0
  677. rapidata/api_client/models/update_order_name_model.py +5 -5
  678. rapidata/api_client/models/update_participant_model.py +92 -0
  679. rapidata/api_client/models/update_participant_name_model.py +87 -0
  680. rapidata/api_client/models/update_priority_model.py +87 -0
  681. rapidata/api_client/models/update_prompt_tags_model.py +87 -0
  682. rapidata/api_client/models/update_should_alert_model.py +87 -0
  683. rapidata/api_client/models/update_validation_rapid_model.py +28 -12
  684. rapidata/api_client/models/update_validation_rapid_model_context_asset.py +160 -0
  685. rapidata/api_client/models/update_validation_rapid_model_truth.py +26 -12
  686. rapidata/api_client/models/update_validation_set_model.py +120 -0
  687. rapidata/api_client/models/upload_asset_result.py +102 -0
  688. rapidata/api_client/models/upload_file_from_url_result.py +87 -0
  689. rapidata/api_client/models/upload_file_result.py +87 -0
  690. rapidata/api_client/models/upload_files_from_s3_bucket_model.py +12 -2
  691. rapidata/api_client/models/upload_text_sources_to_dataset_model.py +3 -3
  692. rapidata/api_client/models/url_asset_input.py +100 -0
  693. rapidata/api_client/models/user_action_restriction.py +37 -0
  694. rapidata/api_client/models/user_action_restriction_filter.py +101 -0
  695. rapidata/api_client/models/user_score_filter.py +102 -0
  696. rapidata/api_client/models/user_state.py +38 -0
  697. rapidata/api_client/models/user_state_filter.py +101 -0
  698. rapidata/api_client/models/validation_chance.py +20 -3
  699. rapidata/api_client/models/validation_problem_details.py +117 -0
  700. rapidata/api_client/models/validation_set_model.py +39 -5
  701. rapidata/api_client/models/validation_set_overview_model.py +2 -2
  702. rapidata/api_client/models/validation_set_validation_set_id_rapid_post_payload_parameter.py +252 -0
  703. rapidata/api_client/models/validation_set_validation_set_id_rapid_post_truth_parameter.py +280 -0
  704. rapidata/api_client/models/validation_set_zip_post_request_blueprint.py +252 -0
  705. rapidata/api_client/models/video_duration_metadata.py +109 -0
  706. rapidata/api_client/models/video_duration_metadata_model.py +96 -0
  707. rapidata/api_client/models/vote_matrix_result.py +91 -0
  708. rapidata/api_client/models/workflow_aggregation_step_model.py +3 -12
  709. rapidata/api_client/models/workflow_config_artifact_model_workflow_config.py +23 -9
  710. rapidata/api_client/models/workflow_state.py +2 -2
  711. rapidata/api_client/models/zip_entry_file_wrapper.py +151 -0
  712. rapidata/api_client/rest.py +2 -2
  713. rapidata/api_client_README.md +469 -309
  714. rapidata/rapidata_client/__init__.py +23 -22
  715. rapidata/rapidata_client/api/rapidata_api_client.py +253 -0
  716. rapidata/rapidata_client/audience/__init__.py +2 -0
  717. rapidata/rapidata_client/audience/audience_example_handler.py +168 -0
  718. rapidata/rapidata_client/audience/rapidata_audience.py +287 -0
  719. rapidata/rapidata_client/audience/rapidata_audience_manager.py +162 -0
  720. rapidata/rapidata_client/benchmark/__init__.py +0 -0
  721. rapidata/rapidata_client/benchmark/_detail_mapper.py +34 -0
  722. rapidata/rapidata_client/benchmark/leaderboard/__init__.py +0 -0
  723. rapidata/rapidata_client/benchmark/leaderboard/rapidata_leaderboard.py +257 -0
  724. rapidata/rapidata_client/benchmark/participant/__init__.py +0 -0
  725. rapidata/rapidata_client/benchmark/participant/_participant.py +146 -0
  726. rapidata/rapidata_client/benchmark/rapidata_benchmark.py +592 -0
  727. rapidata/rapidata_client/benchmark/rapidata_benchmark_manager.py +216 -0
  728. rapidata/rapidata_client/config/__init__.py +4 -0
  729. rapidata/rapidata_client/config/logger.py +135 -0
  730. rapidata/rapidata_client/config/logging_config.py +55 -0
  731. rapidata/rapidata_client/config/managed_print.py +6 -0
  732. rapidata/rapidata_client/config/order_config.py +14 -0
  733. rapidata/rapidata_client/config/rapidata_config.py +36 -0
  734. rapidata/rapidata_client/config/tracer.py +184 -0
  735. rapidata/rapidata_client/config/upload_config.py +64 -0
  736. rapidata/rapidata_client/datapoints/__init__.py +8 -0
  737. rapidata/rapidata_client/datapoints/_asset_uploader.py +194 -0
  738. rapidata/rapidata_client/datapoints/_datapoint.py +92 -0
  739. rapidata/rapidata_client/datapoints/_datapoint_uploader.py +47 -0
  740. rapidata/rapidata_client/datapoints/_datapoints_validator.py +70 -0
  741. rapidata/rapidata_client/datapoints/_single_flight_cache.py +82 -0
  742. rapidata/rapidata_client/datapoints/assets/__init__.py +0 -0
  743. rapidata/rapidata_client/datapoints/assets/constants.py +7 -0
  744. rapidata/rapidata_client/{metadata → datapoints/metadata}/__init__.py +1 -1
  745. rapidata/rapidata_client/datapoints/metadata/_private_text_metadata.py +16 -0
  746. rapidata/rapidata_client/datapoints/metadata/_prompt_identifier_metadata.py +14 -0
  747. rapidata/rapidata_client/datapoints/metadata/_public_text_metadata.py +16 -0
  748. rapidata/rapidata_client/{metadata → datapoints/metadata}/_select_words_metadata.py +4 -5
  749. rapidata/rapidata_client/dataset/__init__.py +1 -0
  750. rapidata/rapidata_client/dataset/_rapidata_dataset.py +55 -0
  751. rapidata/rapidata_client/demographic/demographic_manager.py +44 -19
  752. rapidata/rapidata_client/exceptions/__init__.py +1 -0
  753. rapidata/rapidata_client/exceptions/failed_upload_exception.py +27 -0
  754. rapidata/rapidata_client/filter/__init__.py +3 -0
  755. rapidata/rapidata_client/filter/_backend_filter_mapper.py +134 -0
  756. rapidata/rapidata_client/filter/_base_filter.py +58 -2
  757. rapidata/rapidata_client/filter/age_filter.py +26 -10
  758. rapidata/rapidata_client/filter/and_filter.py +55 -0
  759. rapidata/rapidata_client/filter/campaign_filter.py +21 -10
  760. rapidata/rapidata_client/filter/country_filter.py +46 -12
  761. rapidata/rapidata_client/filter/custom_filter.py +25 -12
  762. rapidata/rapidata_client/filter/device_filter.py +38 -0
  763. rapidata/rapidata_client/filter/gender_filter.py +25 -10
  764. rapidata/rapidata_client/filter/language_filter.py +51 -21
  765. rapidata/rapidata_client/filter/models/age_group.py +14 -12
  766. rapidata/rapidata_client/filter/models/device_type.py +20 -0
  767. rapidata/rapidata_client/filter/models/gender.py +12 -8
  768. rapidata/rapidata_client/filter/new_user_filter.py +14 -4
  769. rapidata/rapidata_client/filter/not_filter.py +35 -11
  770. rapidata/rapidata_client/filter/or_filter.py +36 -11
  771. rapidata/rapidata_client/filter/rapidata_filters.py +30 -25
  772. rapidata/rapidata_client/filter/response_count_filter.py +51 -20
  773. rapidata/rapidata_client/filter/user_score_filter.py +62 -24
  774. rapidata/rapidata_client/job/__init__.py +3 -0
  775. rapidata/rapidata_client/job/job_definition.py +110 -0
  776. rapidata/rapidata_client/job/job_manager.py +758 -0
  777. rapidata/rapidata_client/job/rapidata_job.py +326 -0
  778. rapidata/rapidata_client/order/__init__.py +2 -0
  779. rapidata/rapidata_client/order/_rapidata_order_builder.py +286 -193
  780. rapidata/rapidata_client/order/rapidata_order.py +329 -153
  781. rapidata/rapidata_client/order/rapidata_order_manager.py +722 -420
  782. rapidata/rapidata_client/rapidata_client.py +130 -26
  783. rapidata/rapidata_client/referee/__init__.py +1 -1
  784. rapidata/rapidata_client/referee/_base_referee.py +14 -3
  785. rapidata/rapidata_client/referee/_early_stopping_referee.py +32 -17
  786. rapidata/rapidata_client/referee/_naive_referee.py +24 -3
  787. rapidata/rapidata_client/results/__init__.py +3 -0
  788. rapidata/rapidata_client/{order → results}/rapidata_results.py +98 -67
  789. rapidata/rapidata_client/selection/__init__.py +2 -1
  790. rapidata/rapidata_client/selection/_base_selection.py +9 -2
  791. rapidata/rapidata_client/selection/ab_test_selection.py +28 -20
  792. rapidata/rapidata_client/selection/capped_selection.py +23 -16
  793. rapidata/rapidata_client/selection/conditional_validation_selection.py +43 -24
  794. rapidata/rapidata_client/selection/demographic_selection.py +21 -6
  795. rapidata/rapidata_client/selection/effort_selection.py +49 -0
  796. rapidata/rapidata_client/selection/labeling_selection.py +36 -12
  797. rapidata/rapidata_client/selection/{retrieval_modes.py → rapidata_retrieval_modes.py} +10 -7
  798. rapidata/rapidata_client/selection/rapidata_selections.py +31 -21
  799. rapidata/rapidata_client/selection/shuffling_selection.py +21 -13
  800. rapidata/rapidata_client/selection/static_selection.py +20 -9
  801. rapidata/rapidata_client/selection/validation_selection.py +20 -4
  802. rapidata/rapidata_client/settings/__init__.py +4 -1
  803. rapidata/rapidata_client/settings/_rapidata_setting.py +22 -3
  804. rapidata/rapidata_client/settings/alert_on_fast_response.py +8 -5
  805. rapidata/rapidata_client/settings/allow_neither_both.py +17 -0
  806. rapidata/rapidata_client/settings/custom_setting.py +3 -2
  807. rapidata/rapidata_client/settings/free_text_minimum_characters.py +9 -4
  808. rapidata/rapidata_client/settings/models/translation_behaviour_options.py +3 -2
  809. rapidata/rapidata_client/settings/mute_video.py +15 -0
  810. rapidata/rapidata_client/settings/no_shuffle.py +4 -2
  811. rapidata/rapidata_client/settings/play_video_until_the_end.py +7 -4
  812. rapidata/rapidata_client/settings/rapidata_settings.py +28 -16
  813. rapidata/rapidata_client/settings/swap_context_instruction.py +20 -0
  814. rapidata/rapidata_client/settings/translation_behaviour.py +7 -5
  815. rapidata/rapidata_client/utils/__init__.py +3 -0
  816. rapidata/rapidata_client/utils/threaded_uploader.py +153 -0
  817. rapidata/rapidata_client/validation/__init__.py +2 -0
  818. rapidata/rapidata_client/validation/rapidata_validation_set.py +106 -12
  819. rapidata/rapidata_client/validation/rapids/__init__.py +2 -0
  820. rapidata/rapidata_client/validation/rapids/_validation_rapid_uploader.py +48 -0
  821. rapidata/rapidata_client/validation/rapids/box.py +37 -12
  822. rapidata/rapidata_client/validation/rapids/rapids.py +29 -104
  823. rapidata/rapidata_client/validation/rapids/rapids_manager.py +371 -214
  824. rapidata/rapidata_client/validation/validation_set_manager.py +529 -227
  825. rapidata/rapidata_client/workflow/__init__.py +2 -2
  826. rapidata/rapidata_client/workflow/_base_workflow.py +25 -7
  827. rapidata/rapidata_client/workflow/_classify_workflow.py +58 -15
  828. rapidata/rapidata_client/workflow/_compare_workflow.py +44 -9
  829. rapidata/rapidata_client/workflow/_draw_workflow.py +40 -10
  830. rapidata/rapidata_client/workflow/_evaluation_workflow.py +28 -7
  831. rapidata/rapidata_client/workflow/_free_text_workflow.py +46 -9
  832. rapidata/rapidata_client/workflow/_locate_workflow.py +40 -10
  833. rapidata/rapidata_client/workflow/_multi_ranking_workflow.py +90 -0
  834. rapidata/rapidata_client/workflow/_select_words_workflow.py +51 -11
  835. rapidata/rapidata_client/workflow/_timestamp_workflow.py +42 -11
  836. rapidata/service/__init__.py +0 -1
  837. rapidata/service/credential_manager.py +18 -18
  838. rapidata/service/openapi_service.py +128 -28
  839. rapidata/types/__init__.py +149 -0
  840. rapidata-3.0.1.dist-info/METADATA +32 -0
  841. rapidata-3.0.1.dist-info/RECORD +1089 -0
  842. {rapidata-2.23.2.dist-info → rapidata-3.0.1.dist-info}/WHEEL +1 -1
  843. rapidata/rapidata_client/api/rapidata_exception.py +0 -107
  844. rapidata/rapidata_client/assets/__init__.py +0 -10
  845. rapidata/rapidata_client/assets/_base_asset.py +0 -11
  846. rapidata/rapidata_client/assets/_media_asset.py +0 -306
  847. rapidata/rapidata_client/assets/_multi_asset.py +0 -66
  848. rapidata/rapidata_client/assets/_sessions.py +0 -35
  849. rapidata/rapidata_client/assets/_text_asset.py +0 -34
  850. rapidata/rapidata_client/assets/data_type_enum.py +0 -7
  851. rapidata/rapidata_client/country_codes/__init__.py +0 -1
  852. rapidata/rapidata_client/country_codes/country_codes.py +0 -19
  853. rapidata/rapidata_client/logging/__init__.py +0 -2
  854. rapidata/rapidata_client/logging/logger.py +0 -47
  855. rapidata/rapidata_client/logging/output_manager.py +0 -16
  856. rapidata/rapidata_client/metadata/_private_text_metadata.py +0 -17
  857. rapidata/rapidata_client/metadata/_prompt_metadata.py +0 -18
  858. rapidata/rapidata_client/metadata/_public_text_metadata.py +0 -17
  859. rapidata/rapidata_client/order/_rapidata_dataset.py +0 -443
  860. rapidata/rapidata_client/workflow/_ranking_workflow.py +0 -51
  861. rapidata/service/local_file_service.py +0 -25
  862. rapidata-2.23.2.dist-info/METADATA +0 -34
  863. rapidata-2.23.2.dist-info/RECORD +0 -523
  864. /rapidata/rapidata_client/{metadata → datapoints/metadata}/_base_metadata.py +0 -0
  865. {rapidata-2.23.2.dist-info → rapidata-3.0.1.dist-info/licenses}/LICENSE +0 -0
@@ -0,0 +1,4307 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Rapidata Asset API
5
+
6
+ The API for the Rapidata Asset service
7
+
8
+ The version of the OpenAPI document: v1
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from pydantic import Field, StrictBool, StrictStr
20
+ from typing import List, Optional
21
+ from typing_extensions import Annotated
22
+ from rapidata.api_client.models.create_benchmark_model import CreateBenchmarkModel
23
+ from rapidata.api_client.models.create_benchmark_participant_model import CreateBenchmarkParticipantModel
24
+ from rapidata.api_client.models.create_benchmark_participant_result import CreateBenchmarkParticipantResult
25
+ from rapidata.api_client.models.create_benchmark_prompt_result import CreateBenchmarkPromptResult
26
+ from rapidata.api_client.models.create_benchmark_result import CreateBenchmarkResult
27
+ from rapidata.api_client.models.fork_benchmark_result import ForkBenchmarkResult
28
+ from rapidata.api_client.models.get_benchmark_by_id_result import GetBenchmarkByIdResult
29
+ from rapidata.api_client.models.paged_result_of_benchmark_query_result import PagedResultOfBenchmarkQueryResult
30
+ from rapidata.api_client.models.paged_result_of_leaderboards_query_result import PagedResultOfLeaderboardsQueryResult
31
+ from rapidata.api_client.models.paged_result_of_participant_by_benchmark import PagedResultOfParticipantByBenchmark
32
+ from rapidata.api_client.models.paged_result_of_prompt_by_benchmark_result import PagedResultOfPromptByBenchmarkResult
33
+ from rapidata.api_client.models.paged_result_of_sample_by_identifier import PagedResultOfSampleByIdentifier
34
+ from rapidata.api_client.models.query_model import QueryModel
35
+ from rapidata.api_client.models.standings_by_benchmark_result import StandingsByBenchmarkResult
36
+ from rapidata.api_client.models.submit_prompt_model import SubmitPromptModel
37
+ from rapidata.api_client.models.tags_by_benchmark_result import TagsByBenchmarkResult
38
+ from rapidata.api_client.models.update_benchmark_model import UpdateBenchmarkModel
39
+ from rapidata.api_client.models.vote_matrix_result import VoteMatrixResult
40
+
41
+ from rapidata.api_client.api_client import ApiClient, RequestSerialized
42
+ from rapidata.api_client.api_response import ApiResponse
43
+ from rapidata.api_client.rest import RESTResponseType
44
+
45
+
46
+ class BenchmarkApi:
47
+ """NOTE: This class is auto generated by OpenAPI Generator
48
+ Ref: https://openapi-generator.tech
49
+
50
+ Do not edit the class manually.
51
+ """
52
+
53
+ def __init__(self, api_client=None) -> None:
54
+ if api_client is None:
55
+ api_client = ApiClient.get_default()
56
+ self.api_client = api_client
57
+
58
+
59
+ @validate_call
60
+ def benchmark_benchmark_id_delete(
61
+ self,
62
+ benchmark_id: StrictStr,
63
+ _request_timeout: Union[
64
+ None,
65
+ Annotated[StrictFloat, Field(gt=0)],
66
+ Tuple[
67
+ Annotated[StrictFloat, Field(gt=0)],
68
+ Annotated[StrictFloat, Field(gt=0)]
69
+ ]
70
+ ] = None,
71
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
72
+ _content_type: Optional[StrictStr] = None,
73
+ _headers: Optional[Dict[StrictStr, Any]] = None,
74
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
75
+ ) -> None:
76
+ """Deletes a single benchmark.
77
+
78
+
79
+ :param benchmark_id: (required)
80
+ :type benchmark_id: str
81
+ :param _request_timeout: timeout setting for this request. If one
82
+ number provided, it will be total request
83
+ timeout. It can also be a pair (tuple) of
84
+ (connection, read) timeouts.
85
+ :type _request_timeout: int, tuple(int, int), optional
86
+ :param _request_auth: set to override the auth_settings for an a single
87
+ request; this effectively ignores the
88
+ authentication in the spec for a single request.
89
+ :type _request_auth: dict, optional
90
+ :param _content_type: force content-type for the request.
91
+ :type _content_type: str, Optional
92
+ :param _headers: set to override the headers for a single
93
+ request; this effectively ignores the headers
94
+ in the spec for a single request.
95
+ :type _headers: dict, optional
96
+ :param _host_index: set to override the host_index for a single
97
+ request; this effectively ignores the host_index
98
+ in the spec for a single request.
99
+ :type _host_index: int, optional
100
+ :return: Returns the result object.
101
+ """ # noqa: E501
102
+
103
+ _param = self._benchmark_benchmark_id_delete_serialize(
104
+ benchmark_id=benchmark_id,
105
+ _request_auth=_request_auth,
106
+ _content_type=_content_type,
107
+ _headers=_headers,
108
+ _host_index=_host_index
109
+ )
110
+
111
+ _response_types_map: Dict[str, Optional[str]] = {
112
+ '204': None,
113
+ }
114
+ response_data = self.api_client.call_api(
115
+ *_param,
116
+ _request_timeout=_request_timeout
117
+ )
118
+ response_data.read()
119
+ return self.api_client.response_deserialize(
120
+ response_data=response_data,
121
+ response_types_map=_response_types_map,
122
+ ).data
123
+
124
+
125
+ @validate_call
126
+ def benchmark_benchmark_id_delete_with_http_info(
127
+ self,
128
+ benchmark_id: StrictStr,
129
+ _request_timeout: Union[
130
+ None,
131
+ Annotated[StrictFloat, Field(gt=0)],
132
+ Tuple[
133
+ Annotated[StrictFloat, Field(gt=0)],
134
+ Annotated[StrictFloat, Field(gt=0)]
135
+ ]
136
+ ] = None,
137
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
138
+ _content_type: Optional[StrictStr] = None,
139
+ _headers: Optional[Dict[StrictStr, Any]] = None,
140
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
141
+ ) -> ApiResponse[None]:
142
+ """Deletes a single benchmark.
143
+
144
+
145
+ :param benchmark_id: (required)
146
+ :type benchmark_id: str
147
+ :param _request_timeout: timeout setting for this request. If one
148
+ number provided, it will be total request
149
+ timeout. It can also be a pair (tuple) of
150
+ (connection, read) timeouts.
151
+ :type _request_timeout: int, tuple(int, int), optional
152
+ :param _request_auth: set to override the auth_settings for an a single
153
+ request; this effectively ignores the
154
+ authentication in the spec for a single request.
155
+ :type _request_auth: dict, optional
156
+ :param _content_type: force content-type for the request.
157
+ :type _content_type: str, Optional
158
+ :param _headers: set to override the headers for a single
159
+ request; this effectively ignores the headers
160
+ in the spec for a single request.
161
+ :type _headers: dict, optional
162
+ :param _host_index: set to override the host_index for a single
163
+ request; this effectively ignores the host_index
164
+ in the spec for a single request.
165
+ :type _host_index: int, optional
166
+ :return: Returns the result object.
167
+ """ # noqa: E501
168
+
169
+ _param = self._benchmark_benchmark_id_delete_serialize(
170
+ benchmark_id=benchmark_id,
171
+ _request_auth=_request_auth,
172
+ _content_type=_content_type,
173
+ _headers=_headers,
174
+ _host_index=_host_index
175
+ )
176
+
177
+ _response_types_map: Dict[str, Optional[str]] = {
178
+ '204': None,
179
+ }
180
+ response_data = self.api_client.call_api(
181
+ *_param,
182
+ _request_timeout=_request_timeout
183
+ )
184
+ response_data.read()
185
+ return self.api_client.response_deserialize(
186
+ response_data=response_data,
187
+ response_types_map=_response_types_map,
188
+ )
189
+
190
+
191
+ @validate_call
192
+ def benchmark_benchmark_id_delete_without_preload_content(
193
+ self,
194
+ benchmark_id: StrictStr,
195
+ _request_timeout: Union[
196
+ None,
197
+ Annotated[StrictFloat, Field(gt=0)],
198
+ Tuple[
199
+ Annotated[StrictFloat, Field(gt=0)],
200
+ Annotated[StrictFloat, Field(gt=0)]
201
+ ]
202
+ ] = None,
203
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
204
+ _content_type: Optional[StrictStr] = None,
205
+ _headers: Optional[Dict[StrictStr, Any]] = None,
206
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
207
+ ) -> RESTResponseType:
208
+ """Deletes a single benchmark.
209
+
210
+
211
+ :param benchmark_id: (required)
212
+ :type benchmark_id: str
213
+ :param _request_timeout: timeout setting for this request. If one
214
+ number provided, it will be total request
215
+ timeout. It can also be a pair (tuple) of
216
+ (connection, read) timeouts.
217
+ :type _request_timeout: int, tuple(int, int), optional
218
+ :param _request_auth: set to override the auth_settings for an a single
219
+ request; this effectively ignores the
220
+ authentication in the spec for a single request.
221
+ :type _request_auth: dict, optional
222
+ :param _content_type: force content-type for the request.
223
+ :type _content_type: str, Optional
224
+ :param _headers: set to override the headers for a single
225
+ request; this effectively ignores the headers
226
+ in the spec for a single request.
227
+ :type _headers: dict, optional
228
+ :param _host_index: set to override the host_index for a single
229
+ request; this effectively ignores the host_index
230
+ in the spec for a single request.
231
+ :type _host_index: int, optional
232
+ :return: Returns the result object.
233
+ """ # noqa: E501
234
+
235
+ _param = self._benchmark_benchmark_id_delete_serialize(
236
+ benchmark_id=benchmark_id,
237
+ _request_auth=_request_auth,
238
+ _content_type=_content_type,
239
+ _headers=_headers,
240
+ _host_index=_host_index
241
+ )
242
+
243
+ _response_types_map: Dict[str, Optional[str]] = {
244
+ '204': None,
245
+ }
246
+ response_data = self.api_client.call_api(
247
+ *_param,
248
+ _request_timeout=_request_timeout
249
+ )
250
+ return response_data.response
251
+
252
+
253
+ def _benchmark_benchmark_id_delete_serialize(
254
+ self,
255
+ benchmark_id,
256
+ _request_auth,
257
+ _content_type,
258
+ _headers,
259
+ _host_index,
260
+ ) -> RequestSerialized:
261
+
262
+ _host = None
263
+
264
+ _collection_formats: Dict[str, str] = {
265
+ }
266
+
267
+ _path_params: Dict[str, str] = {}
268
+ _query_params: List[Tuple[str, str]] = []
269
+ _header_params: Dict[str, Optional[str]] = _headers or {}
270
+ _form_params: List[Tuple[str, str]] = []
271
+ _files: Dict[
272
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
273
+ ] = {}
274
+ _body_params: Optional[bytes] = None
275
+
276
+ # process the path parameters
277
+ if benchmark_id is not None:
278
+ _path_params['benchmarkId'] = benchmark_id
279
+ # process the query parameters
280
+ # process the header parameters
281
+ # process the form parameters
282
+ # process the body parameter
283
+
284
+
285
+
286
+
287
+ # authentication setting
288
+ _auth_settings: List[str] = [
289
+ 'OAuth2',
290
+ 'OpenIdConnect',
291
+ 'Bearer'
292
+ ]
293
+
294
+ return self.api_client.param_serialize(
295
+ method='DELETE',
296
+ resource_path='/benchmark/{benchmarkId}',
297
+ path_params=_path_params,
298
+ query_params=_query_params,
299
+ header_params=_header_params,
300
+ body=_body_params,
301
+ post_params=_form_params,
302
+ files=_files,
303
+ auth_settings=_auth_settings,
304
+ collection_formats=_collection_formats,
305
+ _host=_host,
306
+ _request_auth=_request_auth
307
+ )
308
+
309
+
310
+
311
+
312
+ @validate_call
313
+ def benchmark_benchmark_id_fork_post(
314
+ self,
315
+ benchmark_id: StrictStr,
316
+ _request_timeout: Union[
317
+ None,
318
+ Annotated[StrictFloat, Field(gt=0)],
319
+ Tuple[
320
+ Annotated[StrictFloat, Field(gt=0)],
321
+ Annotated[StrictFloat, Field(gt=0)]
322
+ ]
323
+ ] = None,
324
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
325
+ _content_type: Optional[StrictStr] = None,
326
+ _headers: Optional[Dict[StrictStr, Any]] = None,
327
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
328
+ ) -> ForkBenchmarkResult:
329
+ """Creates a copy of a public benchmark and all of its related entities
330
+
331
+
332
+ :param benchmark_id: (required)
333
+ :type benchmark_id: str
334
+ :param _request_timeout: timeout setting for this request. If one
335
+ number provided, it will be total request
336
+ timeout. It can also be a pair (tuple) of
337
+ (connection, read) timeouts.
338
+ :type _request_timeout: int, tuple(int, int), optional
339
+ :param _request_auth: set to override the auth_settings for an a single
340
+ request; this effectively ignores the
341
+ authentication in the spec for a single request.
342
+ :type _request_auth: dict, optional
343
+ :param _content_type: force content-type for the request.
344
+ :type _content_type: str, Optional
345
+ :param _headers: set to override the headers for a single
346
+ request; this effectively ignores the headers
347
+ in the spec for a single request.
348
+ :type _headers: dict, optional
349
+ :param _host_index: set to override the host_index for a single
350
+ request; this effectively ignores the host_index
351
+ in the spec for a single request.
352
+ :type _host_index: int, optional
353
+ :return: Returns the result object.
354
+ """ # noqa: E501
355
+
356
+ _param = self._benchmark_benchmark_id_fork_post_serialize(
357
+ benchmark_id=benchmark_id,
358
+ _request_auth=_request_auth,
359
+ _content_type=_content_type,
360
+ _headers=_headers,
361
+ _host_index=_host_index
362
+ )
363
+
364
+ _response_types_map: Dict[str, Optional[str]] = {
365
+ '200': "ForkBenchmarkResult",
366
+ }
367
+ response_data = self.api_client.call_api(
368
+ *_param,
369
+ _request_timeout=_request_timeout
370
+ )
371
+ response_data.read()
372
+ return self.api_client.response_deserialize(
373
+ response_data=response_data,
374
+ response_types_map=_response_types_map,
375
+ ).data
376
+
377
+
378
+ @validate_call
379
+ def benchmark_benchmark_id_fork_post_with_http_info(
380
+ self,
381
+ benchmark_id: StrictStr,
382
+ _request_timeout: Union[
383
+ None,
384
+ Annotated[StrictFloat, Field(gt=0)],
385
+ Tuple[
386
+ Annotated[StrictFloat, Field(gt=0)],
387
+ Annotated[StrictFloat, Field(gt=0)]
388
+ ]
389
+ ] = None,
390
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
391
+ _content_type: Optional[StrictStr] = None,
392
+ _headers: Optional[Dict[StrictStr, Any]] = None,
393
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
394
+ ) -> ApiResponse[ForkBenchmarkResult]:
395
+ """Creates a copy of a public benchmark and all of its related entities
396
+
397
+
398
+ :param benchmark_id: (required)
399
+ :type benchmark_id: str
400
+ :param _request_timeout: timeout setting for this request. If one
401
+ number provided, it will be total request
402
+ timeout. It can also be a pair (tuple) of
403
+ (connection, read) timeouts.
404
+ :type _request_timeout: int, tuple(int, int), optional
405
+ :param _request_auth: set to override the auth_settings for an a single
406
+ request; this effectively ignores the
407
+ authentication in the spec for a single request.
408
+ :type _request_auth: dict, optional
409
+ :param _content_type: force content-type for the request.
410
+ :type _content_type: str, Optional
411
+ :param _headers: set to override the headers for a single
412
+ request; this effectively ignores the headers
413
+ in the spec for a single request.
414
+ :type _headers: dict, optional
415
+ :param _host_index: set to override the host_index for a single
416
+ request; this effectively ignores the host_index
417
+ in the spec for a single request.
418
+ :type _host_index: int, optional
419
+ :return: Returns the result object.
420
+ """ # noqa: E501
421
+
422
+ _param = self._benchmark_benchmark_id_fork_post_serialize(
423
+ benchmark_id=benchmark_id,
424
+ _request_auth=_request_auth,
425
+ _content_type=_content_type,
426
+ _headers=_headers,
427
+ _host_index=_host_index
428
+ )
429
+
430
+ _response_types_map: Dict[str, Optional[str]] = {
431
+ '200': "ForkBenchmarkResult",
432
+ }
433
+ response_data = self.api_client.call_api(
434
+ *_param,
435
+ _request_timeout=_request_timeout
436
+ )
437
+ response_data.read()
438
+ return self.api_client.response_deserialize(
439
+ response_data=response_data,
440
+ response_types_map=_response_types_map,
441
+ )
442
+
443
+
444
+ @validate_call
445
+ def benchmark_benchmark_id_fork_post_without_preload_content(
446
+ self,
447
+ benchmark_id: StrictStr,
448
+ _request_timeout: Union[
449
+ None,
450
+ Annotated[StrictFloat, Field(gt=0)],
451
+ Tuple[
452
+ Annotated[StrictFloat, Field(gt=0)],
453
+ Annotated[StrictFloat, Field(gt=0)]
454
+ ]
455
+ ] = None,
456
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
457
+ _content_type: Optional[StrictStr] = None,
458
+ _headers: Optional[Dict[StrictStr, Any]] = None,
459
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
460
+ ) -> RESTResponseType:
461
+ """Creates a copy of a public benchmark and all of its related entities
462
+
463
+
464
+ :param benchmark_id: (required)
465
+ :type benchmark_id: str
466
+ :param _request_timeout: timeout setting for this request. If one
467
+ number provided, it will be total request
468
+ timeout. It can also be a pair (tuple) of
469
+ (connection, read) timeouts.
470
+ :type _request_timeout: int, tuple(int, int), optional
471
+ :param _request_auth: set to override the auth_settings for an a single
472
+ request; this effectively ignores the
473
+ authentication in the spec for a single request.
474
+ :type _request_auth: dict, optional
475
+ :param _content_type: force content-type for the request.
476
+ :type _content_type: str, Optional
477
+ :param _headers: set to override the headers for a single
478
+ request; this effectively ignores the headers
479
+ in the spec for a single request.
480
+ :type _headers: dict, optional
481
+ :param _host_index: set to override the host_index for a single
482
+ request; this effectively ignores the host_index
483
+ in the spec for a single request.
484
+ :type _host_index: int, optional
485
+ :return: Returns the result object.
486
+ """ # noqa: E501
487
+
488
+ _param = self._benchmark_benchmark_id_fork_post_serialize(
489
+ benchmark_id=benchmark_id,
490
+ _request_auth=_request_auth,
491
+ _content_type=_content_type,
492
+ _headers=_headers,
493
+ _host_index=_host_index
494
+ )
495
+
496
+ _response_types_map: Dict[str, Optional[str]] = {
497
+ '200': "ForkBenchmarkResult",
498
+ }
499
+ response_data = self.api_client.call_api(
500
+ *_param,
501
+ _request_timeout=_request_timeout
502
+ )
503
+ return response_data.response
504
+
505
+
506
+ def _benchmark_benchmark_id_fork_post_serialize(
507
+ self,
508
+ benchmark_id,
509
+ _request_auth,
510
+ _content_type,
511
+ _headers,
512
+ _host_index,
513
+ ) -> RequestSerialized:
514
+
515
+ _host = None
516
+
517
+ _collection_formats: Dict[str, str] = {
518
+ }
519
+
520
+ _path_params: Dict[str, str] = {}
521
+ _query_params: List[Tuple[str, str]] = []
522
+ _header_params: Dict[str, Optional[str]] = _headers or {}
523
+ _form_params: List[Tuple[str, str]] = []
524
+ _files: Dict[
525
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
526
+ ] = {}
527
+ _body_params: Optional[bytes] = None
528
+
529
+ # process the path parameters
530
+ if benchmark_id is not None:
531
+ _path_params['benchmarkId'] = benchmark_id
532
+ # process the query parameters
533
+ # process the header parameters
534
+ # process the form parameters
535
+ # process the body parameter
536
+
537
+
538
+ # set the HTTP header `Accept`
539
+ if 'Accept' not in _header_params:
540
+ _header_params['Accept'] = self.api_client.select_header_accept(
541
+ [
542
+ 'text/plain',
543
+ 'application/json',
544
+ 'text/json'
545
+ ]
546
+ )
547
+
548
+
549
+ # authentication setting
550
+ _auth_settings: List[str] = [
551
+ 'OAuth2',
552
+ 'OpenIdConnect',
553
+ 'Bearer'
554
+ ]
555
+
556
+ return self.api_client.param_serialize(
557
+ method='POST',
558
+ resource_path='/benchmark/{benchmarkId}/fork',
559
+ path_params=_path_params,
560
+ query_params=_query_params,
561
+ header_params=_header_params,
562
+ body=_body_params,
563
+ post_params=_form_params,
564
+ files=_files,
565
+ auth_settings=_auth_settings,
566
+ collection_formats=_collection_formats,
567
+ _host=_host,
568
+ _request_auth=_request_auth
569
+ )
570
+
571
+
572
+
573
+
574
+ @validate_call
575
+ def benchmark_benchmark_id_get(
576
+ self,
577
+ benchmark_id: StrictStr,
578
+ _request_timeout: Union[
579
+ None,
580
+ Annotated[StrictFloat, Field(gt=0)],
581
+ Tuple[
582
+ Annotated[StrictFloat, Field(gt=0)],
583
+ Annotated[StrictFloat, Field(gt=0)]
584
+ ]
585
+ ] = None,
586
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
587
+ _content_type: Optional[StrictStr] = None,
588
+ _headers: Optional[Dict[StrictStr, Any]] = None,
589
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
590
+ ) -> GetBenchmarkByIdResult:
591
+ """Returns a single benchmark by its ID.
592
+
593
+
594
+ :param benchmark_id: (required)
595
+ :type benchmark_id: str
596
+ :param _request_timeout: timeout setting for this request. If one
597
+ number provided, it will be total request
598
+ timeout. It can also be a pair (tuple) of
599
+ (connection, read) timeouts.
600
+ :type _request_timeout: int, tuple(int, int), optional
601
+ :param _request_auth: set to override the auth_settings for an a single
602
+ request; this effectively ignores the
603
+ authentication in the spec for a single request.
604
+ :type _request_auth: dict, optional
605
+ :param _content_type: force content-type for the request.
606
+ :type _content_type: str, Optional
607
+ :param _headers: set to override the headers for a single
608
+ request; this effectively ignores the headers
609
+ in the spec for a single request.
610
+ :type _headers: dict, optional
611
+ :param _host_index: set to override the host_index for a single
612
+ request; this effectively ignores the host_index
613
+ in the spec for a single request.
614
+ :type _host_index: int, optional
615
+ :return: Returns the result object.
616
+ """ # noqa: E501
617
+
618
+ _param = self._benchmark_benchmark_id_get_serialize(
619
+ benchmark_id=benchmark_id,
620
+ _request_auth=_request_auth,
621
+ _content_type=_content_type,
622
+ _headers=_headers,
623
+ _host_index=_host_index
624
+ )
625
+
626
+ _response_types_map: Dict[str, Optional[str]] = {
627
+ '200': "GetBenchmarkByIdResult",
628
+ }
629
+ response_data = self.api_client.call_api(
630
+ *_param,
631
+ _request_timeout=_request_timeout
632
+ )
633
+ response_data.read()
634
+ return self.api_client.response_deserialize(
635
+ response_data=response_data,
636
+ response_types_map=_response_types_map,
637
+ ).data
638
+
639
+
640
+ @validate_call
641
+ def benchmark_benchmark_id_get_with_http_info(
642
+ self,
643
+ benchmark_id: StrictStr,
644
+ _request_timeout: Union[
645
+ None,
646
+ Annotated[StrictFloat, Field(gt=0)],
647
+ Tuple[
648
+ Annotated[StrictFloat, Field(gt=0)],
649
+ Annotated[StrictFloat, Field(gt=0)]
650
+ ]
651
+ ] = None,
652
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
653
+ _content_type: Optional[StrictStr] = None,
654
+ _headers: Optional[Dict[StrictStr, Any]] = None,
655
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
656
+ ) -> ApiResponse[GetBenchmarkByIdResult]:
657
+ """Returns a single benchmark by its ID.
658
+
659
+
660
+ :param benchmark_id: (required)
661
+ :type benchmark_id: str
662
+ :param _request_timeout: timeout setting for this request. If one
663
+ number provided, it will be total request
664
+ timeout. It can also be a pair (tuple) of
665
+ (connection, read) timeouts.
666
+ :type _request_timeout: int, tuple(int, int), optional
667
+ :param _request_auth: set to override the auth_settings for an a single
668
+ request; this effectively ignores the
669
+ authentication in the spec for a single request.
670
+ :type _request_auth: dict, optional
671
+ :param _content_type: force content-type for the request.
672
+ :type _content_type: str, Optional
673
+ :param _headers: set to override the headers for a single
674
+ request; this effectively ignores the headers
675
+ in the spec for a single request.
676
+ :type _headers: dict, optional
677
+ :param _host_index: set to override the host_index for a single
678
+ request; this effectively ignores the host_index
679
+ in the spec for a single request.
680
+ :type _host_index: int, optional
681
+ :return: Returns the result object.
682
+ """ # noqa: E501
683
+
684
+ _param = self._benchmark_benchmark_id_get_serialize(
685
+ benchmark_id=benchmark_id,
686
+ _request_auth=_request_auth,
687
+ _content_type=_content_type,
688
+ _headers=_headers,
689
+ _host_index=_host_index
690
+ )
691
+
692
+ _response_types_map: Dict[str, Optional[str]] = {
693
+ '200': "GetBenchmarkByIdResult",
694
+ }
695
+ response_data = self.api_client.call_api(
696
+ *_param,
697
+ _request_timeout=_request_timeout
698
+ )
699
+ response_data.read()
700
+ return self.api_client.response_deserialize(
701
+ response_data=response_data,
702
+ response_types_map=_response_types_map,
703
+ )
704
+
705
+
706
+ @validate_call
707
+ def benchmark_benchmark_id_get_without_preload_content(
708
+ self,
709
+ benchmark_id: StrictStr,
710
+ _request_timeout: Union[
711
+ None,
712
+ Annotated[StrictFloat, Field(gt=0)],
713
+ Tuple[
714
+ Annotated[StrictFloat, Field(gt=0)],
715
+ Annotated[StrictFloat, Field(gt=0)]
716
+ ]
717
+ ] = None,
718
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
719
+ _content_type: Optional[StrictStr] = None,
720
+ _headers: Optional[Dict[StrictStr, Any]] = None,
721
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
722
+ ) -> RESTResponseType:
723
+ """Returns a single benchmark by its ID.
724
+
725
+
726
+ :param benchmark_id: (required)
727
+ :type benchmark_id: str
728
+ :param _request_timeout: timeout setting for this request. If one
729
+ number provided, it will be total request
730
+ timeout. It can also be a pair (tuple) of
731
+ (connection, read) timeouts.
732
+ :type _request_timeout: int, tuple(int, int), optional
733
+ :param _request_auth: set to override the auth_settings for an a single
734
+ request; this effectively ignores the
735
+ authentication in the spec for a single request.
736
+ :type _request_auth: dict, optional
737
+ :param _content_type: force content-type for the request.
738
+ :type _content_type: str, Optional
739
+ :param _headers: set to override the headers for a single
740
+ request; this effectively ignores the headers
741
+ in the spec for a single request.
742
+ :type _headers: dict, optional
743
+ :param _host_index: set to override the host_index for a single
744
+ request; this effectively ignores the host_index
745
+ in the spec for a single request.
746
+ :type _host_index: int, optional
747
+ :return: Returns the result object.
748
+ """ # noqa: E501
749
+
750
+ _param = self._benchmark_benchmark_id_get_serialize(
751
+ benchmark_id=benchmark_id,
752
+ _request_auth=_request_auth,
753
+ _content_type=_content_type,
754
+ _headers=_headers,
755
+ _host_index=_host_index
756
+ )
757
+
758
+ _response_types_map: Dict[str, Optional[str]] = {
759
+ '200': "GetBenchmarkByIdResult",
760
+ }
761
+ response_data = self.api_client.call_api(
762
+ *_param,
763
+ _request_timeout=_request_timeout
764
+ )
765
+ return response_data.response
766
+
767
+
768
+ def _benchmark_benchmark_id_get_serialize(
769
+ self,
770
+ benchmark_id,
771
+ _request_auth,
772
+ _content_type,
773
+ _headers,
774
+ _host_index,
775
+ ) -> RequestSerialized:
776
+
777
+ _host = None
778
+
779
+ _collection_formats: Dict[str, str] = {
780
+ }
781
+
782
+ _path_params: Dict[str, str] = {}
783
+ _query_params: List[Tuple[str, str]] = []
784
+ _header_params: Dict[str, Optional[str]] = _headers or {}
785
+ _form_params: List[Tuple[str, str]] = []
786
+ _files: Dict[
787
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
788
+ ] = {}
789
+ _body_params: Optional[bytes] = None
790
+
791
+ # process the path parameters
792
+ if benchmark_id is not None:
793
+ _path_params['benchmarkId'] = benchmark_id
794
+ # process the query parameters
795
+ # process the header parameters
796
+ # process the form parameters
797
+ # process the body parameter
798
+
799
+
800
+ # set the HTTP header `Accept`
801
+ if 'Accept' not in _header_params:
802
+ _header_params['Accept'] = self.api_client.select_header_accept(
803
+ [
804
+ 'text/plain',
805
+ 'application/json',
806
+ 'text/json'
807
+ ]
808
+ )
809
+
810
+
811
+ # authentication setting
812
+ _auth_settings: List[str] = [
813
+ 'OAuth2',
814
+ 'OpenIdConnect',
815
+ 'Bearer'
816
+ ]
817
+
818
+ return self.api_client.param_serialize(
819
+ method='GET',
820
+ resource_path='/benchmark/{benchmarkId}',
821
+ path_params=_path_params,
822
+ query_params=_query_params,
823
+ header_params=_header_params,
824
+ body=_body_params,
825
+ post_params=_form_params,
826
+ files=_files,
827
+ auth_settings=_auth_settings,
828
+ collection_formats=_collection_formats,
829
+ _host=_host,
830
+ _request_auth=_request_auth
831
+ )
832
+
833
+
834
+
835
+
836
+ @validate_call
837
+ def benchmark_benchmark_id_leaderboards_get(
838
+ self,
839
+ benchmark_id: Annotated[StrictStr, Field(description="The Id of the benchmark whoms leaderboards will be returned")],
840
+ request: Annotated[Optional[QueryModel], Field(description="Query parameters")] = None,
841
+ _request_timeout: Union[
842
+ None,
843
+ Annotated[StrictFloat, Field(gt=0)],
844
+ Tuple[
845
+ Annotated[StrictFloat, Field(gt=0)],
846
+ Annotated[StrictFloat, Field(gt=0)]
847
+ ]
848
+ ] = None,
849
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
850
+ _content_type: Optional[StrictStr] = None,
851
+ _headers: Optional[Dict[StrictStr, Any]] = None,
852
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
853
+ ) -> PagedResultOfLeaderboardsQueryResult:
854
+ """Queries all leaderboards for the current user's benchmarks.
855
+
856
+
857
+ :param benchmark_id: The Id of the benchmark whoms leaderboards will be returned (required)
858
+ :type benchmark_id: str
859
+ :param request: Query parameters
860
+ :type request: QueryModel
861
+ :param _request_timeout: timeout setting for this request. If one
862
+ number provided, it will be total request
863
+ timeout. It can also be a pair (tuple) of
864
+ (connection, read) timeouts.
865
+ :type _request_timeout: int, tuple(int, int), optional
866
+ :param _request_auth: set to override the auth_settings for an a single
867
+ request; this effectively ignores the
868
+ authentication in the spec for a single request.
869
+ :type _request_auth: dict, optional
870
+ :param _content_type: force content-type for the request.
871
+ :type _content_type: str, Optional
872
+ :param _headers: set to override the headers for a single
873
+ request; this effectively ignores the headers
874
+ in the spec for a single request.
875
+ :type _headers: dict, optional
876
+ :param _host_index: set to override the host_index for a single
877
+ request; this effectively ignores the host_index
878
+ in the spec for a single request.
879
+ :type _host_index: int, optional
880
+ :return: Returns the result object.
881
+ """ # noqa: E501
882
+
883
+ _param = self._benchmark_benchmark_id_leaderboards_get_serialize(
884
+ benchmark_id=benchmark_id,
885
+ request=request,
886
+ _request_auth=_request_auth,
887
+ _content_type=_content_type,
888
+ _headers=_headers,
889
+ _host_index=_host_index
890
+ )
891
+
892
+ _response_types_map: Dict[str, Optional[str]] = {
893
+ '200': "PagedResultOfLeaderboardsQueryResult",
894
+ }
895
+ response_data = self.api_client.call_api(
896
+ *_param,
897
+ _request_timeout=_request_timeout
898
+ )
899
+ response_data.read()
900
+ return self.api_client.response_deserialize(
901
+ response_data=response_data,
902
+ response_types_map=_response_types_map,
903
+ ).data
904
+
905
+
906
+ @validate_call
907
+ def benchmark_benchmark_id_leaderboards_get_with_http_info(
908
+ self,
909
+ benchmark_id: Annotated[StrictStr, Field(description="The Id of the benchmark whoms leaderboards will be returned")],
910
+ request: Annotated[Optional[QueryModel], Field(description="Query parameters")] = None,
911
+ _request_timeout: Union[
912
+ None,
913
+ Annotated[StrictFloat, Field(gt=0)],
914
+ Tuple[
915
+ Annotated[StrictFloat, Field(gt=0)],
916
+ Annotated[StrictFloat, Field(gt=0)]
917
+ ]
918
+ ] = None,
919
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
920
+ _content_type: Optional[StrictStr] = None,
921
+ _headers: Optional[Dict[StrictStr, Any]] = None,
922
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
923
+ ) -> ApiResponse[PagedResultOfLeaderboardsQueryResult]:
924
+ """Queries all leaderboards for the current user's benchmarks.
925
+
926
+
927
+ :param benchmark_id: The Id of the benchmark whoms leaderboards will be returned (required)
928
+ :type benchmark_id: str
929
+ :param request: Query parameters
930
+ :type request: QueryModel
931
+ :param _request_timeout: timeout setting for this request. If one
932
+ number provided, it will be total request
933
+ timeout. It can also be a pair (tuple) of
934
+ (connection, read) timeouts.
935
+ :type _request_timeout: int, tuple(int, int), optional
936
+ :param _request_auth: set to override the auth_settings for an a single
937
+ request; this effectively ignores the
938
+ authentication in the spec for a single request.
939
+ :type _request_auth: dict, optional
940
+ :param _content_type: force content-type for the request.
941
+ :type _content_type: str, Optional
942
+ :param _headers: set to override the headers for a single
943
+ request; this effectively ignores the headers
944
+ in the spec for a single request.
945
+ :type _headers: dict, optional
946
+ :param _host_index: set to override the host_index for a single
947
+ request; this effectively ignores the host_index
948
+ in the spec for a single request.
949
+ :type _host_index: int, optional
950
+ :return: Returns the result object.
951
+ """ # noqa: E501
952
+
953
+ _param = self._benchmark_benchmark_id_leaderboards_get_serialize(
954
+ benchmark_id=benchmark_id,
955
+ request=request,
956
+ _request_auth=_request_auth,
957
+ _content_type=_content_type,
958
+ _headers=_headers,
959
+ _host_index=_host_index
960
+ )
961
+
962
+ _response_types_map: Dict[str, Optional[str]] = {
963
+ '200': "PagedResultOfLeaderboardsQueryResult",
964
+ }
965
+ response_data = self.api_client.call_api(
966
+ *_param,
967
+ _request_timeout=_request_timeout
968
+ )
969
+ response_data.read()
970
+ return self.api_client.response_deserialize(
971
+ response_data=response_data,
972
+ response_types_map=_response_types_map,
973
+ )
974
+
975
+
976
+ @validate_call
977
+ def benchmark_benchmark_id_leaderboards_get_without_preload_content(
978
+ self,
979
+ benchmark_id: Annotated[StrictStr, Field(description="The Id of the benchmark whoms leaderboards will be returned")],
980
+ request: Annotated[Optional[QueryModel], Field(description="Query parameters")] = None,
981
+ _request_timeout: Union[
982
+ None,
983
+ Annotated[StrictFloat, Field(gt=0)],
984
+ Tuple[
985
+ Annotated[StrictFloat, Field(gt=0)],
986
+ Annotated[StrictFloat, Field(gt=0)]
987
+ ]
988
+ ] = None,
989
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
990
+ _content_type: Optional[StrictStr] = None,
991
+ _headers: Optional[Dict[StrictStr, Any]] = None,
992
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
993
+ ) -> RESTResponseType:
994
+ """Queries all leaderboards for the current user's benchmarks.
995
+
996
+
997
+ :param benchmark_id: The Id of the benchmark whoms leaderboards will be returned (required)
998
+ :type benchmark_id: str
999
+ :param request: Query parameters
1000
+ :type request: QueryModel
1001
+ :param _request_timeout: timeout setting for this request. If one
1002
+ number provided, it will be total request
1003
+ timeout. It can also be a pair (tuple) of
1004
+ (connection, read) timeouts.
1005
+ :type _request_timeout: int, tuple(int, int), optional
1006
+ :param _request_auth: set to override the auth_settings for an a single
1007
+ request; this effectively ignores the
1008
+ authentication in the spec for a single request.
1009
+ :type _request_auth: dict, optional
1010
+ :param _content_type: force content-type for the request.
1011
+ :type _content_type: str, Optional
1012
+ :param _headers: set to override the headers for a single
1013
+ request; this effectively ignores the headers
1014
+ in the spec for a single request.
1015
+ :type _headers: dict, optional
1016
+ :param _host_index: set to override the host_index for a single
1017
+ request; this effectively ignores the host_index
1018
+ in the spec for a single request.
1019
+ :type _host_index: int, optional
1020
+ :return: Returns the result object.
1021
+ """ # noqa: E501
1022
+
1023
+ _param = self._benchmark_benchmark_id_leaderboards_get_serialize(
1024
+ benchmark_id=benchmark_id,
1025
+ request=request,
1026
+ _request_auth=_request_auth,
1027
+ _content_type=_content_type,
1028
+ _headers=_headers,
1029
+ _host_index=_host_index
1030
+ )
1031
+
1032
+ _response_types_map: Dict[str, Optional[str]] = {
1033
+ '200': "PagedResultOfLeaderboardsQueryResult",
1034
+ }
1035
+ response_data = self.api_client.call_api(
1036
+ *_param,
1037
+ _request_timeout=_request_timeout
1038
+ )
1039
+ return response_data.response
1040
+
1041
+
1042
+ def _benchmark_benchmark_id_leaderboards_get_serialize(
1043
+ self,
1044
+ benchmark_id,
1045
+ request,
1046
+ _request_auth,
1047
+ _content_type,
1048
+ _headers,
1049
+ _host_index,
1050
+ ) -> RequestSerialized:
1051
+
1052
+ _host = None
1053
+
1054
+ _collection_formats: Dict[str, str] = {
1055
+ }
1056
+
1057
+ _path_params: Dict[str, str] = {}
1058
+ _query_params: List[Tuple[str, str]] = []
1059
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1060
+ _form_params: List[Tuple[str, str]] = []
1061
+ _files: Dict[
1062
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1063
+ ] = {}
1064
+ _body_params: Optional[bytes] = None
1065
+
1066
+ # process the path parameters
1067
+ if benchmark_id is not None:
1068
+ _path_params['benchmarkId'] = benchmark_id
1069
+ # process the query parameters
1070
+ if request is not None:
1071
+
1072
+ _query_params.append(('request', request))
1073
+
1074
+ # process the header parameters
1075
+ # process the form parameters
1076
+ # process the body parameter
1077
+
1078
+
1079
+ # set the HTTP header `Accept`
1080
+ if 'Accept' not in _header_params:
1081
+ _header_params['Accept'] = self.api_client.select_header_accept(
1082
+ [
1083
+ 'text/plain',
1084
+ 'application/json',
1085
+ 'text/json'
1086
+ ]
1087
+ )
1088
+
1089
+
1090
+ # authentication setting
1091
+ _auth_settings: List[str] = [
1092
+ 'OAuth2',
1093
+ 'OpenIdConnect',
1094
+ 'Bearer'
1095
+ ]
1096
+
1097
+ return self.api_client.param_serialize(
1098
+ method='GET',
1099
+ resource_path='/benchmark/{benchmarkId}/leaderboards',
1100
+ path_params=_path_params,
1101
+ query_params=_query_params,
1102
+ header_params=_header_params,
1103
+ body=_body_params,
1104
+ post_params=_form_params,
1105
+ files=_files,
1106
+ auth_settings=_auth_settings,
1107
+ collection_formats=_collection_formats,
1108
+ _host=_host,
1109
+ _request_auth=_request_auth
1110
+ )
1111
+
1112
+
1113
+
1114
+
1115
+ @validate_call
1116
+ def benchmark_benchmark_id_matrix_get(
1117
+ self,
1118
+ benchmark_id: StrictStr,
1119
+ tags: Optional[List[StrictStr]] = None,
1120
+ participant_ids: Optional[List[StrictStr]] = None,
1121
+ leaderboard_ids: Optional[List[StrictStr]] = None,
1122
+ use_weighted_scoring: Optional[StrictBool] = None,
1123
+ _request_timeout: Union[
1124
+ None,
1125
+ Annotated[StrictFloat, Field(gt=0)],
1126
+ Tuple[
1127
+ Annotated[StrictFloat, Field(gt=0)],
1128
+ Annotated[StrictFloat, Field(gt=0)]
1129
+ ]
1130
+ ] = None,
1131
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1132
+ _content_type: Optional[StrictStr] = None,
1133
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1134
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1135
+ ) -> VoteMatrixResult:
1136
+ """Returns the pairwise vote matrix for a benchmark.
1137
+
1138
+
1139
+ :param benchmark_id: (required)
1140
+ :type benchmark_id: str
1141
+ :param tags:
1142
+ :type tags: List[str]
1143
+ :param participant_ids:
1144
+ :type participant_ids: List[str]
1145
+ :param leaderboard_ids:
1146
+ :type leaderboard_ids: List[str]
1147
+ :param use_weighted_scoring:
1148
+ :type use_weighted_scoring: bool
1149
+ :param _request_timeout: timeout setting for this request. If one
1150
+ number provided, it will be total request
1151
+ timeout. It can also be a pair (tuple) of
1152
+ (connection, read) timeouts.
1153
+ :type _request_timeout: int, tuple(int, int), optional
1154
+ :param _request_auth: set to override the auth_settings for an a single
1155
+ request; this effectively ignores the
1156
+ authentication in the spec for a single request.
1157
+ :type _request_auth: dict, optional
1158
+ :param _content_type: force content-type for the request.
1159
+ :type _content_type: str, Optional
1160
+ :param _headers: set to override the headers for a single
1161
+ request; this effectively ignores the headers
1162
+ in the spec for a single request.
1163
+ :type _headers: dict, optional
1164
+ :param _host_index: set to override the host_index for a single
1165
+ request; this effectively ignores the host_index
1166
+ in the spec for a single request.
1167
+ :type _host_index: int, optional
1168
+ :return: Returns the result object.
1169
+ """ # noqa: E501
1170
+
1171
+ _param = self._benchmark_benchmark_id_matrix_get_serialize(
1172
+ benchmark_id=benchmark_id,
1173
+ tags=tags,
1174
+ participant_ids=participant_ids,
1175
+ leaderboard_ids=leaderboard_ids,
1176
+ use_weighted_scoring=use_weighted_scoring,
1177
+ _request_auth=_request_auth,
1178
+ _content_type=_content_type,
1179
+ _headers=_headers,
1180
+ _host_index=_host_index
1181
+ )
1182
+
1183
+ _response_types_map: Dict[str, Optional[str]] = {
1184
+ '200': "VoteMatrixResult",
1185
+ '400': "ValidationProblemDetails",
1186
+ '401': None,
1187
+ '403': None,
1188
+ }
1189
+ response_data = self.api_client.call_api(
1190
+ *_param,
1191
+ _request_timeout=_request_timeout
1192
+ )
1193
+ response_data.read()
1194
+ return self.api_client.response_deserialize(
1195
+ response_data=response_data,
1196
+ response_types_map=_response_types_map,
1197
+ ).data
1198
+
1199
+
1200
+ @validate_call
1201
+ def benchmark_benchmark_id_matrix_get_with_http_info(
1202
+ self,
1203
+ benchmark_id: StrictStr,
1204
+ tags: Optional[List[StrictStr]] = None,
1205
+ participant_ids: Optional[List[StrictStr]] = None,
1206
+ leaderboard_ids: Optional[List[StrictStr]] = None,
1207
+ use_weighted_scoring: Optional[StrictBool] = None,
1208
+ _request_timeout: Union[
1209
+ None,
1210
+ Annotated[StrictFloat, Field(gt=0)],
1211
+ Tuple[
1212
+ Annotated[StrictFloat, Field(gt=0)],
1213
+ Annotated[StrictFloat, Field(gt=0)]
1214
+ ]
1215
+ ] = None,
1216
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1217
+ _content_type: Optional[StrictStr] = None,
1218
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1219
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1220
+ ) -> ApiResponse[VoteMatrixResult]:
1221
+ """Returns the pairwise vote matrix for a benchmark.
1222
+
1223
+
1224
+ :param benchmark_id: (required)
1225
+ :type benchmark_id: str
1226
+ :param tags:
1227
+ :type tags: List[str]
1228
+ :param participant_ids:
1229
+ :type participant_ids: List[str]
1230
+ :param leaderboard_ids:
1231
+ :type leaderboard_ids: List[str]
1232
+ :param use_weighted_scoring:
1233
+ :type use_weighted_scoring: bool
1234
+ :param _request_timeout: timeout setting for this request. If one
1235
+ number provided, it will be total request
1236
+ timeout. It can also be a pair (tuple) of
1237
+ (connection, read) timeouts.
1238
+ :type _request_timeout: int, tuple(int, int), optional
1239
+ :param _request_auth: set to override the auth_settings for an a single
1240
+ request; this effectively ignores the
1241
+ authentication in the spec for a single request.
1242
+ :type _request_auth: dict, optional
1243
+ :param _content_type: force content-type for the request.
1244
+ :type _content_type: str, Optional
1245
+ :param _headers: set to override the headers for a single
1246
+ request; this effectively ignores the headers
1247
+ in the spec for a single request.
1248
+ :type _headers: dict, optional
1249
+ :param _host_index: set to override the host_index for a single
1250
+ request; this effectively ignores the host_index
1251
+ in the spec for a single request.
1252
+ :type _host_index: int, optional
1253
+ :return: Returns the result object.
1254
+ """ # noqa: E501
1255
+
1256
+ _param = self._benchmark_benchmark_id_matrix_get_serialize(
1257
+ benchmark_id=benchmark_id,
1258
+ tags=tags,
1259
+ participant_ids=participant_ids,
1260
+ leaderboard_ids=leaderboard_ids,
1261
+ use_weighted_scoring=use_weighted_scoring,
1262
+ _request_auth=_request_auth,
1263
+ _content_type=_content_type,
1264
+ _headers=_headers,
1265
+ _host_index=_host_index
1266
+ )
1267
+
1268
+ _response_types_map: Dict[str, Optional[str]] = {
1269
+ '200': "VoteMatrixResult",
1270
+ '400': "ValidationProblemDetails",
1271
+ '401': None,
1272
+ '403': None,
1273
+ }
1274
+ response_data = self.api_client.call_api(
1275
+ *_param,
1276
+ _request_timeout=_request_timeout
1277
+ )
1278
+ response_data.read()
1279
+ return self.api_client.response_deserialize(
1280
+ response_data=response_data,
1281
+ response_types_map=_response_types_map,
1282
+ )
1283
+
1284
+
1285
+ @validate_call
1286
+ def benchmark_benchmark_id_matrix_get_without_preload_content(
1287
+ self,
1288
+ benchmark_id: StrictStr,
1289
+ tags: Optional[List[StrictStr]] = None,
1290
+ participant_ids: Optional[List[StrictStr]] = None,
1291
+ leaderboard_ids: Optional[List[StrictStr]] = None,
1292
+ use_weighted_scoring: Optional[StrictBool] = None,
1293
+ _request_timeout: Union[
1294
+ None,
1295
+ Annotated[StrictFloat, Field(gt=0)],
1296
+ Tuple[
1297
+ Annotated[StrictFloat, Field(gt=0)],
1298
+ Annotated[StrictFloat, Field(gt=0)]
1299
+ ]
1300
+ ] = None,
1301
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1302
+ _content_type: Optional[StrictStr] = None,
1303
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1304
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1305
+ ) -> RESTResponseType:
1306
+ """Returns the pairwise vote matrix for a benchmark.
1307
+
1308
+
1309
+ :param benchmark_id: (required)
1310
+ :type benchmark_id: str
1311
+ :param tags:
1312
+ :type tags: List[str]
1313
+ :param participant_ids:
1314
+ :type participant_ids: List[str]
1315
+ :param leaderboard_ids:
1316
+ :type leaderboard_ids: List[str]
1317
+ :param use_weighted_scoring:
1318
+ :type use_weighted_scoring: bool
1319
+ :param _request_timeout: timeout setting for this request. If one
1320
+ number provided, it will be total request
1321
+ timeout. It can also be a pair (tuple) of
1322
+ (connection, read) timeouts.
1323
+ :type _request_timeout: int, tuple(int, int), optional
1324
+ :param _request_auth: set to override the auth_settings for an a single
1325
+ request; this effectively ignores the
1326
+ authentication in the spec for a single request.
1327
+ :type _request_auth: dict, optional
1328
+ :param _content_type: force content-type for the request.
1329
+ :type _content_type: str, Optional
1330
+ :param _headers: set to override the headers for a single
1331
+ request; this effectively ignores the headers
1332
+ in the spec for a single request.
1333
+ :type _headers: dict, optional
1334
+ :param _host_index: set to override the host_index for a single
1335
+ request; this effectively ignores the host_index
1336
+ in the spec for a single request.
1337
+ :type _host_index: int, optional
1338
+ :return: Returns the result object.
1339
+ """ # noqa: E501
1340
+
1341
+ _param = self._benchmark_benchmark_id_matrix_get_serialize(
1342
+ benchmark_id=benchmark_id,
1343
+ tags=tags,
1344
+ participant_ids=participant_ids,
1345
+ leaderboard_ids=leaderboard_ids,
1346
+ use_weighted_scoring=use_weighted_scoring,
1347
+ _request_auth=_request_auth,
1348
+ _content_type=_content_type,
1349
+ _headers=_headers,
1350
+ _host_index=_host_index
1351
+ )
1352
+
1353
+ _response_types_map: Dict[str, Optional[str]] = {
1354
+ '200': "VoteMatrixResult",
1355
+ '400': "ValidationProblemDetails",
1356
+ '401': None,
1357
+ '403': None,
1358
+ }
1359
+ response_data = self.api_client.call_api(
1360
+ *_param,
1361
+ _request_timeout=_request_timeout
1362
+ )
1363
+ return response_data.response
1364
+
1365
+
1366
+ def _benchmark_benchmark_id_matrix_get_serialize(
1367
+ self,
1368
+ benchmark_id,
1369
+ tags,
1370
+ participant_ids,
1371
+ leaderboard_ids,
1372
+ use_weighted_scoring,
1373
+ _request_auth,
1374
+ _content_type,
1375
+ _headers,
1376
+ _host_index,
1377
+ ) -> RequestSerialized:
1378
+
1379
+ _host = None
1380
+
1381
+ _collection_formats: Dict[str, str] = {
1382
+ 'tags': 'multi',
1383
+ 'participantIds': 'multi',
1384
+ 'leaderboardIds': 'multi',
1385
+ }
1386
+
1387
+ _path_params: Dict[str, str] = {}
1388
+ _query_params: List[Tuple[str, str]] = []
1389
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1390
+ _form_params: List[Tuple[str, str]] = []
1391
+ _files: Dict[
1392
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1393
+ ] = {}
1394
+ _body_params: Optional[bytes] = None
1395
+
1396
+ # process the path parameters
1397
+ if benchmark_id is not None:
1398
+ _path_params['benchmarkId'] = benchmark_id
1399
+ # process the query parameters
1400
+ if tags is not None:
1401
+
1402
+ _query_params.append(('tags', tags))
1403
+
1404
+ if participant_ids is not None:
1405
+
1406
+ _query_params.append(('participantIds', participant_ids))
1407
+
1408
+ if leaderboard_ids is not None:
1409
+
1410
+ _query_params.append(('leaderboardIds', leaderboard_ids))
1411
+
1412
+ if use_weighted_scoring is not None:
1413
+
1414
+ _query_params.append(('useWeightedScoring', use_weighted_scoring))
1415
+
1416
+ # process the header parameters
1417
+ # process the form parameters
1418
+ # process the body parameter
1419
+
1420
+
1421
+ # set the HTTP header `Accept`
1422
+ if 'Accept' not in _header_params:
1423
+ _header_params['Accept'] = self.api_client.select_header_accept(
1424
+ [
1425
+ 'application/json'
1426
+ ]
1427
+ )
1428
+
1429
+
1430
+ # authentication setting
1431
+ _auth_settings: List[str] = [
1432
+ 'OAuth2',
1433
+ 'OpenIdConnect',
1434
+ 'Bearer'
1435
+ ]
1436
+
1437
+ return self.api_client.param_serialize(
1438
+ method='GET',
1439
+ resource_path='/benchmark/{benchmarkId}/matrix',
1440
+ path_params=_path_params,
1441
+ query_params=_query_params,
1442
+ header_params=_header_params,
1443
+ body=_body_params,
1444
+ post_params=_form_params,
1445
+ files=_files,
1446
+ auth_settings=_auth_settings,
1447
+ collection_formats=_collection_formats,
1448
+ _host=_host,
1449
+ _request_auth=_request_auth
1450
+ )
1451
+
1452
+
1453
+
1454
+
1455
+ @validate_call
1456
+ def benchmark_benchmark_id_participants_get(
1457
+ self,
1458
+ benchmark_id: StrictStr,
1459
+ _request_timeout: Union[
1460
+ None,
1461
+ Annotated[StrictFloat, Field(gt=0)],
1462
+ Tuple[
1463
+ Annotated[StrictFloat, Field(gt=0)],
1464
+ Annotated[StrictFloat, Field(gt=0)]
1465
+ ]
1466
+ ] = None,
1467
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1468
+ _content_type: Optional[StrictStr] = None,
1469
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1470
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1471
+ ) -> PagedResultOfParticipantByBenchmark:
1472
+ """Query all participants within a benchmark
1473
+
1474
+
1475
+ :param benchmark_id: (required)
1476
+ :type benchmark_id: str
1477
+ :param _request_timeout: timeout setting for this request. If one
1478
+ number provided, it will be total request
1479
+ timeout. It can also be a pair (tuple) of
1480
+ (connection, read) timeouts.
1481
+ :type _request_timeout: int, tuple(int, int), optional
1482
+ :param _request_auth: set to override the auth_settings for an a single
1483
+ request; this effectively ignores the
1484
+ authentication in the spec for a single request.
1485
+ :type _request_auth: dict, optional
1486
+ :param _content_type: force content-type for the request.
1487
+ :type _content_type: str, Optional
1488
+ :param _headers: set to override the headers for a single
1489
+ request; this effectively ignores the headers
1490
+ in the spec for a single request.
1491
+ :type _headers: dict, optional
1492
+ :param _host_index: set to override the host_index for a single
1493
+ request; this effectively ignores the host_index
1494
+ in the spec for a single request.
1495
+ :type _host_index: int, optional
1496
+ :return: Returns the result object.
1497
+ """ # noqa: E501
1498
+
1499
+ _param = self._benchmark_benchmark_id_participants_get_serialize(
1500
+ benchmark_id=benchmark_id,
1501
+ _request_auth=_request_auth,
1502
+ _content_type=_content_type,
1503
+ _headers=_headers,
1504
+ _host_index=_host_index
1505
+ )
1506
+
1507
+ _response_types_map: Dict[str, Optional[str]] = {
1508
+ '200': "PagedResultOfParticipantByBenchmark",
1509
+ }
1510
+ response_data = self.api_client.call_api(
1511
+ *_param,
1512
+ _request_timeout=_request_timeout
1513
+ )
1514
+ response_data.read()
1515
+ return self.api_client.response_deserialize(
1516
+ response_data=response_data,
1517
+ response_types_map=_response_types_map,
1518
+ ).data
1519
+
1520
+
1521
+ @validate_call
1522
+ def benchmark_benchmark_id_participants_get_with_http_info(
1523
+ self,
1524
+ benchmark_id: StrictStr,
1525
+ _request_timeout: Union[
1526
+ None,
1527
+ Annotated[StrictFloat, Field(gt=0)],
1528
+ Tuple[
1529
+ Annotated[StrictFloat, Field(gt=0)],
1530
+ Annotated[StrictFloat, Field(gt=0)]
1531
+ ]
1532
+ ] = None,
1533
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1534
+ _content_type: Optional[StrictStr] = None,
1535
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1536
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1537
+ ) -> ApiResponse[PagedResultOfParticipantByBenchmark]:
1538
+ """Query all participants within a benchmark
1539
+
1540
+
1541
+ :param benchmark_id: (required)
1542
+ :type benchmark_id: str
1543
+ :param _request_timeout: timeout setting for this request. If one
1544
+ number provided, it will be total request
1545
+ timeout. It can also be a pair (tuple) of
1546
+ (connection, read) timeouts.
1547
+ :type _request_timeout: int, tuple(int, int), optional
1548
+ :param _request_auth: set to override the auth_settings for an a single
1549
+ request; this effectively ignores the
1550
+ authentication in the spec for a single request.
1551
+ :type _request_auth: dict, optional
1552
+ :param _content_type: force content-type for the request.
1553
+ :type _content_type: str, Optional
1554
+ :param _headers: set to override the headers for a single
1555
+ request; this effectively ignores the headers
1556
+ in the spec for a single request.
1557
+ :type _headers: dict, optional
1558
+ :param _host_index: set to override the host_index for a single
1559
+ request; this effectively ignores the host_index
1560
+ in the spec for a single request.
1561
+ :type _host_index: int, optional
1562
+ :return: Returns the result object.
1563
+ """ # noqa: E501
1564
+
1565
+ _param = self._benchmark_benchmark_id_participants_get_serialize(
1566
+ benchmark_id=benchmark_id,
1567
+ _request_auth=_request_auth,
1568
+ _content_type=_content_type,
1569
+ _headers=_headers,
1570
+ _host_index=_host_index
1571
+ )
1572
+
1573
+ _response_types_map: Dict[str, Optional[str]] = {
1574
+ '200': "PagedResultOfParticipantByBenchmark",
1575
+ }
1576
+ response_data = self.api_client.call_api(
1577
+ *_param,
1578
+ _request_timeout=_request_timeout
1579
+ )
1580
+ response_data.read()
1581
+ return self.api_client.response_deserialize(
1582
+ response_data=response_data,
1583
+ response_types_map=_response_types_map,
1584
+ )
1585
+
1586
+
1587
+ @validate_call
1588
+ def benchmark_benchmark_id_participants_get_without_preload_content(
1589
+ self,
1590
+ benchmark_id: StrictStr,
1591
+ _request_timeout: Union[
1592
+ None,
1593
+ Annotated[StrictFloat, Field(gt=0)],
1594
+ Tuple[
1595
+ Annotated[StrictFloat, Field(gt=0)],
1596
+ Annotated[StrictFloat, Field(gt=0)]
1597
+ ]
1598
+ ] = None,
1599
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1600
+ _content_type: Optional[StrictStr] = None,
1601
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1602
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1603
+ ) -> RESTResponseType:
1604
+ """Query all participants within a benchmark
1605
+
1606
+
1607
+ :param benchmark_id: (required)
1608
+ :type benchmark_id: str
1609
+ :param _request_timeout: timeout setting for this request. If one
1610
+ number provided, it will be total request
1611
+ timeout. It can also be a pair (tuple) of
1612
+ (connection, read) timeouts.
1613
+ :type _request_timeout: int, tuple(int, int), optional
1614
+ :param _request_auth: set to override the auth_settings for an a single
1615
+ request; this effectively ignores the
1616
+ authentication in the spec for a single request.
1617
+ :type _request_auth: dict, optional
1618
+ :param _content_type: force content-type for the request.
1619
+ :type _content_type: str, Optional
1620
+ :param _headers: set to override the headers for a single
1621
+ request; this effectively ignores the headers
1622
+ in the spec for a single request.
1623
+ :type _headers: dict, optional
1624
+ :param _host_index: set to override the host_index for a single
1625
+ request; this effectively ignores the host_index
1626
+ in the spec for a single request.
1627
+ :type _host_index: int, optional
1628
+ :return: Returns the result object.
1629
+ """ # noqa: E501
1630
+
1631
+ _param = self._benchmark_benchmark_id_participants_get_serialize(
1632
+ benchmark_id=benchmark_id,
1633
+ _request_auth=_request_auth,
1634
+ _content_type=_content_type,
1635
+ _headers=_headers,
1636
+ _host_index=_host_index
1637
+ )
1638
+
1639
+ _response_types_map: Dict[str, Optional[str]] = {
1640
+ '200': "PagedResultOfParticipantByBenchmark",
1641
+ }
1642
+ response_data = self.api_client.call_api(
1643
+ *_param,
1644
+ _request_timeout=_request_timeout
1645
+ )
1646
+ return response_data.response
1647
+
1648
+
1649
+ def _benchmark_benchmark_id_participants_get_serialize(
1650
+ self,
1651
+ benchmark_id,
1652
+ _request_auth,
1653
+ _content_type,
1654
+ _headers,
1655
+ _host_index,
1656
+ ) -> RequestSerialized:
1657
+
1658
+ _host = None
1659
+
1660
+ _collection_formats: Dict[str, str] = {
1661
+ }
1662
+
1663
+ _path_params: Dict[str, str] = {}
1664
+ _query_params: List[Tuple[str, str]] = []
1665
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1666
+ _form_params: List[Tuple[str, str]] = []
1667
+ _files: Dict[
1668
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1669
+ ] = {}
1670
+ _body_params: Optional[bytes] = None
1671
+
1672
+ # process the path parameters
1673
+ if benchmark_id is not None:
1674
+ _path_params['benchmarkId'] = benchmark_id
1675
+ # process the query parameters
1676
+ # process the header parameters
1677
+ # process the form parameters
1678
+ # process the body parameter
1679
+
1680
+
1681
+ # set the HTTP header `Accept`
1682
+ if 'Accept' not in _header_params:
1683
+ _header_params['Accept'] = self.api_client.select_header_accept(
1684
+ [
1685
+ 'text/plain',
1686
+ 'application/json',
1687
+ 'text/json'
1688
+ ]
1689
+ )
1690
+
1691
+
1692
+ # authentication setting
1693
+ _auth_settings: List[str] = [
1694
+ 'OAuth2',
1695
+ 'OpenIdConnect',
1696
+ 'Bearer'
1697
+ ]
1698
+
1699
+ return self.api_client.param_serialize(
1700
+ method='GET',
1701
+ resource_path='/benchmark/{benchmarkId}/participants',
1702
+ path_params=_path_params,
1703
+ query_params=_query_params,
1704
+ header_params=_header_params,
1705
+ body=_body_params,
1706
+ post_params=_form_params,
1707
+ files=_files,
1708
+ auth_settings=_auth_settings,
1709
+ collection_formats=_collection_formats,
1710
+ _host=_host,
1711
+ _request_auth=_request_auth
1712
+ )
1713
+
1714
+
1715
+
1716
+
1717
+ @validate_call
1718
+ def benchmark_benchmark_id_participants_post(
1719
+ self,
1720
+ benchmark_id: StrictStr,
1721
+ create_benchmark_participant_model: CreateBenchmarkParticipantModel,
1722
+ _request_timeout: Union[
1723
+ None,
1724
+ Annotated[StrictFloat, Field(gt=0)],
1725
+ Tuple[
1726
+ Annotated[StrictFloat, Field(gt=0)],
1727
+ Annotated[StrictFloat, Field(gt=0)]
1728
+ ]
1729
+ ] = None,
1730
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1731
+ _content_type: Optional[StrictStr] = None,
1732
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1733
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1734
+ ) -> CreateBenchmarkParticipantResult:
1735
+ """Creates a participant in a benchmark.
1736
+
1737
+
1738
+ :param benchmark_id: (required)
1739
+ :type benchmark_id: str
1740
+ :param create_benchmark_participant_model: (required)
1741
+ :type create_benchmark_participant_model: CreateBenchmarkParticipantModel
1742
+ :param _request_timeout: timeout setting for this request. If one
1743
+ number provided, it will be total request
1744
+ timeout. It can also be a pair (tuple) of
1745
+ (connection, read) timeouts.
1746
+ :type _request_timeout: int, tuple(int, int), optional
1747
+ :param _request_auth: set to override the auth_settings for an a single
1748
+ request; this effectively ignores the
1749
+ authentication in the spec for a single request.
1750
+ :type _request_auth: dict, optional
1751
+ :param _content_type: force content-type for the request.
1752
+ :type _content_type: str, Optional
1753
+ :param _headers: set to override the headers for a single
1754
+ request; this effectively ignores the headers
1755
+ in the spec for a single request.
1756
+ :type _headers: dict, optional
1757
+ :param _host_index: set to override the host_index for a single
1758
+ request; this effectively ignores the host_index
1759
+ in the spec for a single request.
1760
+ :type _host_index: int, optional
1761
+ :return: Returns the result object.
1762
+ """ # noqa: E501
1763
+
1764
+ _param = self._benchmark_benchmark_id_participants_post_serialize(
1765
+ benchmark_id=benchmark_id,
1766
+ create_benchmark_participant_model=create_benchmark_participant_model,
1767
+ _request_auth=_request_auth,
1768
+ _content_type=_content_type,
1769
+ _headers=_headers,
1770
+ _host_index=_host_index
1771
+ )
1772
+
1773
+ _response_types_map: Dict[str, Optional[str]] = {
1774
+ '200': "CreateBenchmarkParticipantResult",
1775
+ }
1776
+ response_data = self.api_client.call_api(
1777
+ *_param,
1778
+ _request_timeout=_request_timeout
1779
+ )
1780
+ response_data.read()
1781
+ return self.api_client.response_deserialize(
1782
+ response_data=response_data,
1783
+ response_types_map=_response_types_map,
1784
+ ).data
1785
+
1786
+
1787
+ @validate_call
1788
+ def benchmark_benchmark_id_participants_post_with_http_info(
1789
+ self,
1790
+ benchmark_id: StrictStr,
1791
+ create_benchmark_participant_model: CreateBenchmarkParticipantModel,
1792
+ _request_timeout: Union[
1793
+ None,
1794
+ Annotated[StrictFloat, Field(gt=0)],
1795
+ Tuple[
1796
+ Annotated[StrictFloat, Field(gt=0)],
1797
+ Annotated[StrictFloat, Field(gt=0)]
1798
+ ]
1799
+ ] = None,
1800
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1801
+ _content_type: Optional[StrictStr] = None,
1802
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1803
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1804
+ ) -> ApiResponse[CreateBenchmarkParticipantResult]:
1805
+ """Creates a participant in a benchmark.
1806
+
1807
+
1808
+ :param benchmark_id: (required)
1809
+ :type benchmark_id: str
1810
+ :param create_benchmark_participant_model: (required)
1811
+ :type create_benchmark_participant_model: CreateBenchmarkParticipantModel
1812
+ :param _request_timeout: timeout setting for this request. If one
1813
+ number provided, it will be total request
1814
+ timeout. It can also be a pair (tuple) of
1815
+ (connection, read) timeouts.
1816
+ :type _request_timeout: int, tuple(int, int), optional
1817
+ :param _request_auth: set to override the auth_settings for an a single
1818
+ request; this effectively ignores the
1819
+ authentication in the spec for a single request.
1820
+ :type _request_auth: dict, optional
1821
+ :param _content_type: force content-type for the request.
1822
+ :type _content_type: str, Optional
1823
+ :param _headers: set to override the headers for a single
1824
+ request; this effectively ignores the headers
1825
+ in the spec for a single request.
1826
+ :type _headers: dict, optional
1827
+ :param _host_index: set to override the host_index for a single
1828
+ request; this effectively ignores the host_index
1829
+ in the spec for a single request.
1830
+ :type _host_index: int, optional
1831
+ :return: Returns the result object.
1832
+ """ # noqa: E501
1833
+
1834
+ _param = self._benchmark_benchmark_id_participants_post_serialize(
1835
+ benchmark_id=benchmark_id,
1836
+ create_benchmark_participant_model=create_benchmark_participant_model,
1837
+ _request_auth=_request_auth,
1838
+ _content_type=_content_type,
1839
+ _headers=_headers,
1840
+ _host_index=_host_index
1841
+ )
1842
+
1843
+ _response_types_map: Dict[str, Optional[str]] = {
1844
+ '200': "CreateBenchmarkParticipantResult",
1845
+ }
1846
+ response_data = self.api_client.call_api(
1847
+ *_param,
1848
+ _request_timeout=_request_timeout
1849
+ )
1850
+ response_data.read()
1851
+ return self.api_client.response_deserialize(
1852
+ response_data=response_data,
1853
+ response_types_map=_response_types_map,
1854
+ )
1855
+
1856
+
1857
+ @validate_call
1858
+ def benchmark_benchmark_id_participants_post_without_preload_content(
1859
+ self,
1860
+ benchmark_id: StrictStr,
1861
+ create_benchmark_participant_model: CreateBenchmarkParticipantModel,
1862
+ _request_timeout: Union[
1863
+ None,
1864
+ Annotated[StrictFloat, Field(gt=0)],
1865
+ Tuple[
1866
+ Annotated[StrictFloat, Field(gt=0)],
1867
+ Annotated[StrictFloat, Field(gt=0)]
1868
+ ]
1869
+ ] = None,
1870
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1871
+ _content_type: Optional[StrictStr] = None,
1872
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1873
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1874
+ ) -> RESTResponseType:
1875
+ """Creates a participant in a benchmark.
1876
+
1877
+
1878
+ :param benchmark_id: (required)
1879
+ :type benchmark_id: str
1880
+ :param create_benchmark_participant_model: (required)
1881
+ :type create_benchmark_participant_model: CreateBenchmarkParticipantModel
1882
+ :param _request_timeout: timeout setting for this request. If one
1883
+ number provided, it will be total request
1884
+ timeout. It can also be a pair (tuple) of
1885
+ (connection, read) timeouts.
1886
+ :type _request_timeout: int, tuple(int, int), optional
1887
+ :param _request_auth: set to override the auth_settings for an a single
1888
+ request; this effectively ignores the
1889
+ authentication in the spec for a single request.
1890
+ :type _request_auth: dict, optional
1891
+ :param _content_type: force content-type for the request.
1892
+ :type _content_type: str, Optional
1893
+ :param _headers: set to override the headers for a single
1894
+ request; this effectively ignores the headers
1895
+ in the spec for a single request.
1896
+ :type _headers: dict, optional
1897
+ :param _host_index: set to override the host_index for a single
1898
+ request; this effectively ignores the host_index
1899
+ in the spec for a single request.
1900
+ :type _host_index: int, optional
1901
+ :return: Returns the result object.
1902
+ """ # noqa: E501
1903
+
1904
+ _param = self._benchmark_benchmark_id_participants_post_serialize(
1905
+ benchmark_id=benchmark_id,
1906
+ create_benchmark_participant_model=create_benchmark_participant_model,
1907
+ _request_auth=_request_auth,
1908
+ _content_type=_content_type,
1909
+ _headers=_headers,
1910
+ _host_index=_host_index
1911
+ )
1912
+
1913
+ _response_types_map: Dict[str, Optional[str]] = {
1914
+ '200': "CreateBenchmarkParticipantResult",
1915
+ }
1916
+ response_data = self.api_client.call_api(
1917
+ *_param,
1918
+ _request_timeout=_request_timeout
1919
+ )
1920
+ return response_data.response
1921
+
1922
+
1923
+ def _benchmark_benchmark_id_participants_post_serialize(
1924
+ self,
1925
+ benchmark_id,
1926
+ create_benchmark_participant_model,
1927
+ _request_auth,
1928
+ _content_type,
1929
+ _headers,
1930
+ _host_index,
1931
+ ) -> RequestSerialized:
1932
+
1933
+ _host = None
1934
+
1935
+ _collection_formats: Dict[str, str] = {
1936
+ }
1937
+
1938
+ _path_params: Dict[str, str] = {}
1939
+ _query_params: List[Tuple[str, str]] = []
1940
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1941
+ _form_params: List[Tuple[str, str]] = []
1942
+ _files: Dict[
1943
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1944
+ ] = {}
1945
+ _body_params: Optional[bytes] = None
1946
+
1947
+ # process the path parameters
1948
+ if benchmark_id is not None:
1949
+ _path_params['benchmarkId'] = benchmark_id
1950
+ # process the query parameters
1951
+ # process the header parameters
1952
+ # process the form parameters
1953
+ # process the body parameter
1954
+ if create_benchmark_participant_model is not None:
1955
+ _body_params = create_benchmark_participant_model
1956
+
1957
+
1958
+ # set the HTTP header `Accept`
1959
+ if 'Accept' not in _header_params:
1960
+ _header_params['Accept'] = self.api_client.select_header_accept(
1961
+ [
1962
+ 'text/plain',
1963
+ 'application/json',
1964
+ 'text/json'
1965
+ ]
1966
+ )
1967
+
1968
+ # set the HTTP header `Content-Type`
1969
+ if _content_type:
1970
+ _header_params['Content-Type'] = _content_type
1971
+ else:
1972
+ _default_content_type = (
1973
+ self.api_client.select_header_content_type(
1974
+ [
1975
+ 'application/json',
1976
+ 'text/json',
1977
+ 'application/*+json'
1978
+ ]
1979
+ )
1980
+ )
1981
+ if _default_content_type is not None:
1982
+ _header_params['Content-Type'] = _default_content_type
1983
+
1984
+ # authentication setting
1985
+ _auth_settings: List[str] = [
1986
+ 'OAuth2',
1987
+ 'OpenIdConnect',
1988
+ 'Bearer'
1989
+ ]
1990
+
1991
+ return self.api_client.param_serialize(
1992
+ method='POST',
1993
+ resource_path='/benchmark/{benchmarkId}/participants',
1994
+ path_params=_path_params,
1995
+ query_params=_query_params,
1996
+ header_params=_header_params,
1997
+ body=_body_params,
1998
+ post_params=_form_params,
1999
+ files=_files,
2000
+ auth_settings=_auth_settings,
2001
+ collection_formats=_collection_formats,
2002
+ _host=_host,
2003
+ _request_auth=_request_auth
2004
+ )
2005
+
2006
+
2007
+
2008
+
2009
+ @validate_call
2010
+ def benchmark_benchmark_id_patch(
2011
+ self,
2012
+ benchmark_id: StrictStr,
2013
+ update_benchmark_model: UpdateBenchmarkModel,
2014
+ _request_timeout: Union[
2015
+ None,
2016
+ Annotated[StrictFloat, Field(gt=0)],
2017
+ Tuple[
2018
+ Annotated[StrictFloat, Field(gt=0)],
2019
+ Annotated[StrictFloat, Field(gt=0)]
2020
+ ]
2021
+ ] = None,
2022
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2023
+ _content_type: Optional[StrictStr] = None,
2024
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2025
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2026
+ ) -> None:
2027
+ """Updates a benchmark using patch semantics.
2028
+
2029
+
2030
+ :param benchmark_id: (required)
2031
+ :type benchmark_id: str
2032
+ :param update_benchmark_model: (required)
2033
+ :type update_benchmark_model: UpdateBenchmarkModel
2034
+ :param _request_timeout: timeout setting for this request. If one
2035
+ number provided, it will be total request
2036
+ timeout. It can also be a pair (tuple) of
2037
+ (connection, read) timeouts.
2038
+ :type _request_timeout: int, tuple(int, int), optional
2039
+ :param _request_auth: set to override the auth_settings for an a single
2040
+ request; this effectively ignores the
2041
+ authentication in the spec for a single request.
2042
+ :type _request_auth: dict, optional
2043
+ :param _content_type: force content-type for the request.
2044
+ :type _content_type: str, Optional
2045
+ :param _headers: set to override the headers for a single
2046
+ request; this effectively ignores the headers
2047
+ in the spec for a single request.
2048
+ :type _headers: dict, optional
2049
+ :param _host_index: set to override the host_index for a single
2050
+ request; this effectively ignores the host_index
2051
+ in the spec for a single request.
2052
+ :type _host_index: int, optional
2053
+ :return: Returns the result object.
2054
+ """ # noqa: E501
2055
+
2056
+ _param = self._benchmark_benchmark_id_patch_serialize(
2057
+ benchmark_id=benchmark_id,
2058
+ update_benchmark_model=update_benchmark_model,
2059
+ _request_auth=_request_auth,
2060
+ _content_type=_content_type,
2061
+ _headers=_headers,
2062
+ _host_index=_host_index
2063
+ )
2064
+
2065
+ _response_types_map: Dict[str, Optional[str]] = {
2066
+ '204': None,
2067
+ }
2068
+ response_data = self.api_client.call_api(
2069
+ *_param,
2070
+ _request_timeout=_request_timeout
2071
+ )
2072
+ response_data.read()
2073
+ return self.api_client.response_deserialize(
2074
+ response_data=response_data,
2075
+ response_types_map=_response_types_map,
2076
+ ).data
2077
+
2078
+
2079
+ @validate_call
2080
+ def benchmark_benchmark_id_patch_with_http_info(
2081
+ self,
2082
+ benchmark_id: StrictStr,
2083
+ update_benchmark_model: UpdateBenchmarkModel,
2084
+ _request_timeout: Union[
2085
+ None,
2086
+ Annotated[StrictFloat, Field(gt=0)],
2087
+ Tuple[
2088
+ Annotated[StrictFloat, Field(gt=0)],
2089
+ Annotated[StrictFloat, Field(gt=0)]
2090
+ ]
2091
+ ] = None,
2092
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2093
+ _content_type: Optional[StrictStr] = None,
2094
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2095
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2096
+ ) -> ApiResponse[None]:
2097
+ """Updates a benchmark using patch semantics.
2098
+
2099
+
2100
+ :param benchmark_id: (required)
2101
+ :type benchmark_id: str
2102
+ :param update_benchmark_model: (required)
2103
+ :type update_benchmark_model: UpdateBenchmarkModel
2104
+ :param _request_timeout: timeout setting for this request. If one
2105
+ number provided, it will be total request
2106
+ timeout. It can also be a pair (tuple) of
2107
+ (connection, read) timeouts.
2108
+ :type _request_timeout: int, tuple(int, int), optional
2109
+ :param _request_auth: set to override the auth_settings for an a single
2110
+ request; this effectively ignores the
2111
+ authentication in the spec for a single request.
2112
+ :type _request_auth: dict, optional
2113
+ :param _content_type: force content-type for the request.
2114
+ :type _content_type: str, Optional
2115
+ :param _headers: set to override the headers for a single
2116
+ request; this effectively ignores the headers
2117
+ in the spec for a single request.
2118
+ :type _headers: dict, optional
2119
+ :param _host_index: set to override the host_index for a single
2120
+ request; this effectively ignores the host_index
2121
+ in the spec for a single request.
2122
+ :type _host_index: int, optional
2123
+ :return: Returns the result object.
2124
+ """ # noqa: E501
2125
+
2126
+ _param = self._benchmark_benchmark_id_patch_serialize(
2127
+ benchmark_id=benchmark_id,
2128
+ update_benchmark_model=update_benchmark_model,
2129
+ _request_auth=_request_auth,
2130
+ _content_type=_content_type,
2131
+ _headers=_headers,
2132
+ _host_index=_host_index
2133
+ )
2134
+
2135
+ _response_types_map: Dict[str, Optional[str]] = {
2136
+ '204': None,
2137
+ }
2138
+ response_data = self.api_client.call_api(
2139
+ *_param,
2140
+ _request_timeout=_request_timeout
2141
+ )
2142
+ response_data.read()
2143
+ return self.api_client.response_deserialize(
2144
+ response_data=response_data,
2145
+ response_types_map=_response_types_map,
2146
+ )
2147
+
2148
+
2149
+ @validate_call
2150
+ def benchmark_benchmark_id_patch_without_preload_content(
2151
+ self,
2152
+ benchmark_id: StrictStr,
2153
+ update_benchmark_model: UpdateBenchmarkModel,
2154
+ _request_timeout: Union[
2155
+ None,
2156
+ Annotated[StrictFloat, Field(gt=0)],
2157
+ Tuple[
2158
+ Annotated[StrictFloat, Field(gt=0)],
2159
+ Annotated[StrictFloat, Field(gt=0)]
2160
+ ]
2161
+ ] = None,
2162
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2163
+ _content_type: Optional[StrictStr] = None,
2164
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2165
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2166
+ ) -> RESTResponseType:
2167
+ """Updates a benchmark using patch semantics.
2168
+
2169
+
2170
+ :param benchmark_id: (required)
2171
+ :type benchmark_id: str
2172
+ :param update_benchmark_model: (required)
2173
+ :type update_benchmark_model: UpdateBenchmarkModel
2174
+ :param _request_timeout: timeout setting for this request. If one
2175
+ number provided, it will be total request
2176
+ timeout. It can also be a pair (tuple) of
2177
+ (connection, read) timeouts.
2178
+ :type _request_timeout: int, tuple(int, int), optional
2179
+ :param _request_auth: set to override the auth_settings for an a single
2180
+ request; this effectively ignores the
2181
+ authentication in the spec for a single request.
2182
+ :type _request_auth: dict, optional
2183
+ :param _content_type: force content-type for the request.
2184
+ :type _content_type: str, Optional
2185
+ :param _headers: set to override the headers for a single
2186
+ request; this effectively ignores the headers
2187
+ in the spec for a single request.
2188
+ :type _headers: dict, optional
2189
+ :param _host_index: set to override the host_index for a single
2190
+ request; this effectively ignores the host_index
2191
+ in the spec for a single request.
2192
+ :type _host_index: int, optional
2193
+ :return: Returns the result object.
2194
+ """ # noqa: E501
2195
+
2196
+ _param = self._benchmark_benchmark_id_patch_serialize(
2197
+ benchmark_id=benchmark_id,
2198
+ update_benchmark_model=update_benchmark_model,
2199
+ _request_auth=_request_auth,
2200
+ _content_type=_content_type,
2201
+ _headers=_headers,
2202
+ _host_index=_host_index
2203
+ )
2204
+
2205
+ _response_types_map: Dict[str, Optional[str]] = {
2206
+ '204': None,
2207
+ }
2208
+ response_data = self.api_client.call_api(
2209
+ *_param,
2210
+ _request_timeout=_request_timeout
2211
+ )
2212
+ return response_data.response
2213
+
2214
+
2215
+ def _benchmark_benchmark_id_patch_serialize(
2216
+ self,
2217
+ benchmark_id,
2218
+ update_benchmark_model,
2219
+ _request_auth,
2220
+ _content_type,
2221
+ _headers,
2222
+ _host_index,
2223
+ ) -> RequestSerialized:
2224
+
2225
+ _host = None
2226
+
2227
+ _collection_formats: Dict[str, str] = {
2228
+ }
2229
+
2230
+ _path_params: Dict[str, str] = {}
2231
+ _query_params: List[Tuple[str, str]] = []
2232
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2233
+ _form_params: List[Tuple[str, str]] = []
2234
+ _files: Dict[
2235
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2236
+ ] = {}
2237
+ _body_params: Optional[bytes] = None
2238
+
2239
+ # process the path parameters
2240
+ if benchmark_id is not None:
2241
+ _path_params['benchmarkId'] = benchmark_id
2242
+ # process the query parameters
2243
+ # process the header parameters
2244
+ # process the form parameters
2245
+ # process the body parameter
2246
+ if update_benchmark_model is not None:
2247
+ _body_params = update_benchmark_model
2248
+
2249
+
2250
+
2251
+ # set the HTTP header `Content-Type`
2252
+ if _content_type:
2253
+ _header_params['Content-Type'] = _content_type
2254
+ else:
2255
+ _default_content_type = (
2256
+ self.api_client.select_header_content_type(
2257
+ [
2258
+ 'application/json',
2259
+ 'text/json',
2260
+ 'application/*+json'
2261
+ ]
2262
+ )
2263
+ )
2264
+ if _default_content_type is not None:
2265
+ _header_params['Content-Type'] = _default_content_type
2266
+
2267
+ # authentication setting
2268
+ _auth_settings: List[str] = [
2269
+ 'OAuth2',
2270
+ 'OpenIdConnect',
2271
+ 'Bearer'
2272
+ ]
2273
+
2274
+ return self.api_client.param_serialize(
2275
+ method='PATCH',
2276
+ resource_path='/benchmark/{benchmarkId}',
2277
+ path_params=_path_params,
2278
+ query_params=_query_params,
2279
+ header_params=_header_params,
2280
+ body=_body_params,
2281
+ post_params=_form_params,
2282
+ files=_files,
2283
+ auth_settings=_auth_settings,
2284
+ collection_formats=_collection_formats,
2285
+ _host=_host,
2286
+ _request_auth=_request_auth
2287
+ )
2288
+
2289
+
2290
+
2291
+
2292
+ @validate_call
2293
+ def benchmark_benchmark_id_prompt_post(
2294
+ self,
2295
+ benchmark_id: Annotated[StrictStr, Field(description="The benchmark id.")],
2296
+ submit_prompt_model: SubmitPromptModel,
2297
+ _request_timeout: Union[
2298
+ None,
2299
+ Annotated[StrictFloat, Field(gt=0)],
2300
+ Tuple[
2301
+ Annotated[StrictFloat, Field(gt=0)],
2302
+ Annotated[StrictFloat, Field(gt=0)]
2303
+ ]
2304
+ ] = None,
2305
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2306
+ _content_type: Optional[StrictStr] = None,
2307
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2308
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2309
+ ) -> CreateBenchmarkPromptResult:
2310
+ """Adds a new prompt to a benchmark.
2311
+
2312
+
2313
+ :param benchmark_id: The benchmark id. (required)
2314
+ :type benchmark_id: str
2315
+ :param submit_prompt_model: (required)
2316
+ :type submit_prompt_model: SubmitPromptModel
2317
+ :param _request_timeout: timeout setting for this request. If one
2318
+ number provided, it will be total request
2319
+ timeout. It can also be a pair (tuple) of
2320
+ (connection, read) timeouts.
2321
+ :type _request_timeout: int, tuple(int, int), optional
2322
+ :param _request_auth: set to override the auth_settings for an a single
2323
+ request; this effectively ignores the
2324
+ authentication in the spec for a single request.
2325
+ :type _request_auth: dict, optional
2326
+ :param _content_type: force content-type for the request.
2327
+ :type _content_type: str, Optional
2328
+ :param _headers: set to override the headers for a single
2329
+ request; this effectively ignores the headers
2330
+ in the spec for a single request.
2331
+ :type _headers: dict, optional
2332
+ :param _host_index: set to override the host_index for a single
2333
+ request; this effectively ignores the host_index
2334
+ in the spec for a single request.
2335
+ :type _host_index: int, optional
2336
+ :return: Returns the result object.
2337
+ """ # noqa: E501
2338
+
2339
+ _param = self._benchmark_benchmark_id_prompt_post_serialize(
2340
+ benchmark_id=benchmark_id,
2341
+ submit_prompt_model=submit_prompt_model,
2342
+ _request_auth=_request_auth,
2343
+ _content_type=_content_type,
2344
+ _headers=_headers,
2345
+ _host_index=_host_index
2346
+ )
2347
+
2348
+ _response_types_map: Dict[str, Optional[str]] = {
2349
+ '200': "CreateBenchmarkPromptResult",
2350
+ }
2351
+ response_data = self.api_client.call_api(
2352
+ *_param,
2353
+ _request_timeout=_request_timeout
2354
+ )
2355
+ response_data.read()
2356
+ return self.api_client.response_deserialize(
2357
+ response_data=response_data,
2358
+ response_types_map=_response_types_map,
2359
+ ).data
2360
+
2361
+
2362
+ @validate_call
2363
+ def benchmark_benchmark_id_prompt_post_with_http_info(
2364
+ self,
2365
+ benchmark_id: Annotated[StrictStr, Field(description="The benchmark id.")],
2366
+ submit_prompt_model: SubmitPromptModel,
2367
+ _request_timeout: Union[
2368
+ None,
2369
+ Annotated[StrictFloat, Field(gt=0)],
2370
+ Tuple[
2371
+ Annotated[StrictFloat, Field(gt=0)],
2372
+ Annotated[StrictFloat, Field(gt=0)]
2373
+ ]
2374
+ ] = None,
2375
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2376
+ _content_type: Optional[StrictStr] = None,
2377
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2378
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2379
+ ) -> ApiResponse[CreateBenchmarkPromptResult]:
2380
+ """Adds a new prompt to a benchmark.
2381
+
2382
+
2383
+ :param benchmark_id: The benchmark id. (required)
2384
+ :type benchmark_id: str
2385
+ :param submit_prompt_model: (required)
2386
+ :type submit_prompt_model: SubmitPromptModel
2387
+ :param _request_timeout: timeout setting for this request. If one
2388
+ number provided, it will be total request
2389
+ timeout. It can also be a pair (tuple) of
2390
+ (connection, read) timeouts.
2391
+ :type _request_timeout: int, tuple(int, int), optional
2392
+ :param _request_auth: set to override the auth_settings for an a single
2393
+ request; this effectively ignores the
2394
+ authentication in the spec for a single request.
2395
+ :type _request_auth: dict, optional
2396
+ :param _content_type: force content-type for the request.
2397
+ :type _content_type: str, Optional
2398
+ :param _headers: set to override the headers for a single
2399
+ request; this effectively ignores the headers
2400
+ in the spec for a single request.
2401
+ :type _headers: dict, optional
2402
+ :param _host_index: set to override the host_index for a single
2403
+ request; this effectively ignores the host_index
2404
+ in the spec for a single request.
2405
+ :type _host_index: int, optional
2406
+ :return: Returns the result object.
2407
+ """ # noqa: E501
2408
+
2409
+ _param = self._benchmark_benchmark_id_prompt_post_serialize(
2410
+ benchmark_id=benchmark_id,
2411
+ submit_prompt_model=submit_prompt_model,
2412
+ _request_auth=_request_auth,
2413
+ _content_type=_content_type,
2414
+ _headers=_headers,
2415
+ _host_index=_host_index
2416
+ )
2417
+
2418
+ _response_types_map: Dict[str, Optional[str]] = {
2419
+ '200': "CreateBenchmarkPromptResult",
2420
+ }
2421
+ response_data = self.api_client.call_api(
2422
+ *_param,
2423
+ _request_timeout=_request_timeout
2424
+ )
2425
+ response_data.read()
2426
+ return self.api_client.response_deserialize(
2427
+ response_data=response_data,
2428
+ response_types_map=_response_types_map,
2429
+ )
2430
+
2431
+
2432
+ @validate_call
2433
+ def benchmark_benchmark_id_prompt_post_without_preload_content(
2434
+ self,
2435
+ benchmark_id: Annotated[StrictStr, Field(description="The benchmark id.")],
2436
+ submit_prompt_model: SubmitPromptModel,
2437
+ _request_timeout: Union[
2438
+ None,
2439
+ Annotated[StrictFloat, Field(gt=0)],
2440
+ Tuple[
2441
+ Annotated[StrictFloat, Field(gt=0)],
2442
+ Annotated[StrictFloat, Field(gt=0)]
2443
+ ]
2444
+ ] = None,
2445
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2446
+ _content_type: Optional[StrictStr] = None,
2447
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2448
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2449
+ ) -> RESTResponseType:
2450
+ """Adds a new prompt to a benchmark.
2451
+
2452
+
2453
+ :param benchmark_id: The benchmark id. (required)
2454
+ :type benchmark_id: str
2455
+ :param submit_prompt_model: (required)
2456
+ :type submit_prompt_model: SubmitPromptModel
2457
+ :param _request_timeout: timeout setting for this request. If one
2458
+ number provided, it will be total request
2459
+ timeout. It can also be a pair (tuple) of
2460
+ (connection, read) timeouts.
2461
+ :type _request_timeout: int, tuple(int, int), optional
2462
+ :param _request_auth: set to override the auth_settings for an a single
2463
+ request; this effectively ignores the
2464
+ authentication in the spec for a single request.
2465
+ :type _request_auth: dict, optional
2466
+ :param _content_type: force content-type for the request.
2467
+ :type _content_type: str, Optional
2468
+ :param _headers: set to override the headers for a single
2469
+ request; this effectively ignores the headers
2470
+ in the spec for a single request.
2471
+ :type _headers: dict, optional
2472
+ :param _host_index: set to override the host_index for a single
2473
+ request; this effectively ignores the host_index
2474
+ in the spec for a single request.
2475
+ :type _host_index: int, optional
2476
+ :return: Returns the result object.
2477
+ """ # noqa: E501
2478
+
2479
+ _param = self._benchmark_benchmark_id_prompt_post_serialize(
2480
+ benchmark_id=benchmark_id,
2481
+ submit_prompt_model=submit_prompt_model,
2482
+ _request_auth=_request_auth,
2483
+ _content_type=_content_type,
2484
+ _headers=_headers,
2485
+ _host_index=_host_index
2486
+ )
2487
+
2488
+ _response_types_map: Dict[str, Optional[str]] = {
2489
+ '200': "CreateBenchmarkPromptResult",
2490
+ }
2491
+ response_data = self.api_client.call_api(
2492
+ *_param,
2493
+ _request_timeout=_request_timeout
2494
+ )
2495
+ return response_data.response
2496
+
2497
+
2498
+ def _benchmark_benchmark_id_prompt_post_serialize(
2499
+ self,
2500
+ benchmark_id,
2501
+ submit_prompt_model,
2502
+ _request_auth,
2503
+ _content_type,
2504
+ _headers,
2505
+ _host_index,
2506
+ ) -> RequestSerialized:
2507
+
2508
+ _host = None
2509
+
2510
+ _collection_formats: Dict[str, str] = {
2511
+ }
2512
+
2513
+ _path_params: Dict[str, str] = {}
2514
+ _query_params: List[Tuple[str, str]] = []
2515
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2516
+ _form_params: List[Tuple[str, str]] = []
2517
+ _files: Dict[
2518
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2519
+ ] = {}
2520
+ _body_params: Optional[bytes] = None
2521
+
2522
+ # process the path parameters
2523
+ if benchmark_id is not None:
2524
+ _path_params['benchmarkId'] = benchmark_id
2525
+ # process the query parameters
2526
+ # process the header parameters
2527
+ # process the form parameters
2528
+ # process the body parameter
2529
+ if submit_prompt_model is not None:
2530
+ _body_params = submit_prompt_model
2531
+
2532
+
2533
+ # set the HTTP header `Accept`
2534
+ if 'Accept' not in _header_params:
2535
+ _header_params['Accept'] = self.api_client.select_header_accept(
2536
+ [
2537
+ 'text/plain',
2538
+ 'application/json',
2539
+ 'text/json'
2540
+ ]
2541
+ )
2542
+
2543
+ # set the HTTP header `Content-Type`
2544
+ if _content_type:
2545
+ _header_params['Content-Type'] = _content_type
2546
+ else:
2547
+ _default_content_type = (
2548
+ self.api_client.select_header_content_type(
2549
+ [
2550
+ 'application/json',
2551
+ 'text/json',
2552
+ 'application/*+json'
2553
+ ]
2554
+ )
2555
+ )
2556
+ if _default_content_type is not None:
2557
+ _header_params['Content-Type'] = _default_content_type
2558
+
2559
+ # authentication setting
2560
+ _auth_settings: List[str] = [
2561
+ 'OAuth2',
2562
+ 'OpenIdConnect',
2563
+ 'Bearer'
2564
+ ]
2565
+
2566
+ return self.api_client.param_serialize(
2567
+ method='POST',
2568
+ resource_path='/benchmark/{benchmarkId}/prompt',
2569
+ path_params=_path_params,
2570
+ query_params=_query_params,
2571
+ header_params=_header_params,
2572
+ body=_body_params,
2573
+ post_params=_form_params,
2574
+ files=_files,
2575
+ auth_settings=_auth_settings,
2576
+ collection_formats=_collection_formats,
2577
+ _host=_host,
2578
+ _request_auth=_request_auth
2579
+ )
2580
+
2581
+
2582
+
2583
+
2584
+ @validate_call
2585
+ def benchmark_benchmark_id_prompts_get(
2586
+ self,
2587
+ benchmark_id: StrictStr,
2588
+ request: Optional[QueryModel] = None,
2589
+ _request_timeout: Union[
2590
+ None,
2591
+ Annotated[StrictFloat, Field(gt=0)],
2592
+ Tuple[
2593
+ Annotated[StrictFloat, Field(gt=0)],
2594
+ Annotated[StrictFloat, Field(gt=0)]
2595
+ ]
2596
+ ] = None,
2597
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2598
+ _content_type: Optional[StrictStr] = None,
2599
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2600
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2601
+ ) -> PagedResultOfPromptByBenchmarkResult:
2602
+ """Returns the paged prompts of a benchmark by its ID.
2603
+
2604
+
2605
+ :param benchmark_id: (required)
2606
+ :type benchmark_id: str
2607
+ :param request:
2608
+ :type request: QueryModel
2609
+ :param _request_timeout: timeout setting for this request. If one
2610
+ number provided, it will be total request
2611
+ timeout. It can also be a pair (tuple) of
2612
+ (connection, read) timeouts.
2613
+ :type _request_timeout: int, tuple(int, int), optional
2614
+ :param _request_auth: set to override the auth_settings for an a single
2615
+ request; this effectively ignores the
2616
+ authentication in the spec for a single request.
2617
+ :type _request_auth: dict, optional
2618
+ :param _content_type: force content-type for the request.
2619
+ :type _content_type: str, Optional
2620
+ :param _headers: set to override the headers for a single
2621
+ request; this effectively ignores the headers
2622
+ in the spec for a single request.
2623
+ :type _headers: dict, optional
2624
+ :param _host_index: set to override the host_index for a single
2625
+ request; this effectively ignores the host_index
2626
+ in the spec for a single request.
2627
+ :type _host_index: int, optional
2628
+ :return: Returns the result object.
2629
+ """ # noqa: E501
2630
+
2631
+ _param = self._benchmark_benchmark_id_prompts_get_serialize(
2632
+ benchmark_id=benchmark_id,
2633
+ request=request,
2634
+ _request_auth=_request_auth,
2635
+ _content_type=_content_type,
2636
+ _headers=_headers,
2637
+ _host_index=_host_index
2638
+ )
2639
+
2640
+ _response_types_map: Dict[str, Optional[str]] = {
2641
+ '200': "PagedResultOfPromptByBenchmarkResult",
2642
+ }
2643
+ response_data = self.api_client.call_api(
2644
+ *_param,
2645
+ _request_timeout=_request_timeout
2646
+ )
2647
+ response_data.read()
2648
+ return self.api_client.response_deserialize(
2649
+ response_data=response_data,
2650
+ response_types_map=_response_types_map,
2651
+ ).data
2652
+
2653
+
2654
+ @validate_call
2655
+ def benchmark_benchmark_id_prompts_get_with_http_info(
2656
+ self,
2657
+ benchmark_id: StrictStr,
2658
+ request: Optional[QueryModel] = None,
2659
+ _request_timeout: Union[
2660
+ None,
2661
+ Annotated[StrictFloat, Field(gt=0)],
2662
+ Tuple[
2663
+ Annotated[StrictFloat, Field(gt=0)],
2664
+ Annotated[StrictFloat, Field(gt=0)]
2665
+ ]
2666
+ ] = None,
2667
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2668
+ _content_type: Optional[StrictStr] = None,
2669
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2670
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2671
+ ) -> ApiResponse[PagedResultOfPromptByBenchmarkResult]:
2672
+ """Returns the paged prompts of a benchmark by its ID.
2673
+
2674
+
2675
+ :param benchmark_id: (required)
2676
+ :type benchmark_id: str
2677
+ :param request:
2678
+ :type request: QueryModel
2679
+ :param _request_timeout: timeout setting for this request. If one
2680
+ number provided, it will be total request
2681
+ timeout. It can also be a pair (tuple) of
2682
+ (connection, read) timeouts.
2683
+ :type _request_timeout: int, tuple(int, int), optional
2684
+ :param _request_auth: set to override the auth_settings for an a single
2685
+ request; this effectively ignores the
2686
+ authentication in the spec for a single request.
2687
+ :type _request_auth: dict, optional
2688
+ :param _content_type: force content-type for the request.
2689
+ :type _content_type: str, Optional
2690
+ :param _headers: set to override the headers for a single
2691
+ request; this effectively ignores the headers
2692
+ in the spec for a single request.
2693
+ :type _headers: dict, optional
2694
+ :param _host_index: set to override the host_index for a single
2695
+ request; this effectively ignores the host_index
2696
+ in the spec for a single request.
2697
+ :type _host_index: int, optional
2698
+ :return: Returns the result object.
2699
+ """ # noqa: E501
2700
+
2701
+ _param = self._benchmark_benchmark_id_prompts_get_serialize(
2702
+ benchmark_id=benchmark_id,
2703
+ request=request,
2704
+ _request_auth=_request_auth,
2705
+ _content_type=_content_type,
2706
+ _headers=_headers,
2707
+ _host_index=_host_index
2708
+ )
2709
+
2710
+ _response_types_map: Dict[str, Optional[str]] = {
2711
+ '200': "PagedResultOfPromptByBenchmarkResult",
2712
+ }
2713
+ response_data = self.api_client.call_api(
2714
+ *_param,
2715
+ _request_timeout=_request_timeout
2716
+ )
2717
+ response_data.read()
2718
+ return self.api_client.response_deserialize(
2719
+ response_data=response_data,
2720
+ response_types_map=_response_types_map,
2721
+ )
2722
+
2723
+
2724
+ @validate_call
2725
+ def benchmark_benchmark_id_prompts_get_without_preload_content(
2726
+ self,
2727
+ benchmark_id: StrictStr,
2728
+ request: Optional[QueryModel] = None,
2729
+ _request_timeout: Union[
2730
+ None,
2731
+ Annotated[StrictFloat, Field(gt=0)],
2732
+ Tuple[
2733
+ Annotated[StrictFloat, Field(gt=0)],
2734
+ Annotated[StrictFloat, Field(gt=0)]
2735
+ ]
2736
+ ] = None,
2737
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2738
+ _content_type: Optional[StrictStr] = None,
2739
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2740
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2741
+ ) -> RESTResponseType:
2742
+ """Returns the paged prompts of a benchmark by its ID.
2743
+
2744
+
2745
+ :param benchmark_id: (required)
2746
+ :type benchmark_id: str
2747
+ :param request:
2748
+ :type request: QueryModel
2749
+ :param _request_timeout: timeout setting for this request. If one
2750
+ number provided, it will be total request
2751
+ timeout. It can also be a pair (tuple) of
2752
+ (connection, read) timeouts.
2753
+ :type _request_timeout: int, tuple(int, int), optional
2754
+ :param _request_auth: set to override the auth_settings for an a single
2755
+ request; this effectively ignores the
2756
+ authentication in the spec for a single request.
2757
+ :type _request_auth: dict, optional
2758
+ :param _content_type: force content-type for the request.
2759
+ :type _content_type: str, Optional
2760
+ :param _headers: set to override the headers for a single
2761
+ request; this effectively ignores the headers
2762
+ in the spec for a single request.
2763
+ :type _headers: dict, optional
2764
+ :param _host_index: set to override the host_index for a single
2765
+ request; this effectively ignores the host_index
2766
+ in the spec for a single request.
2767
+ :type _host_index: int, optional
2768
+ :return: Returns the result object.
2769
+ """ # noqa: E501
2770
+
2771
+ _param = self._benchmark_benchmark_id_prompts_get_serialize(
2772
+ benchmark_id=benchmark_id,
2773
+ request=request,
2774
+ _request_auth=_request_auth,
2775
+ _content_type=_content_type,
2776
+ _headers=_headers,
2777
+ _host_index=_host_index
2778
+ )
2779
+
2780
+ _response_types_map: Dict[str, Optional[str]] = {
2781
+ '200': "PagedResultOfPromptByBenchmarkResult",
2782
+ }
2783
+ response_data = self.api_client.call_api(
2784
+ *_param,
2785
+ _request_timeout=_request_timeout
2786
+ )
2787
+ return response_data.response
2788
+
2789
+
2790
+ def _benchmark_benchmark_id_prompts_get_serialize(
2791
+ self,
2792
+ benchmark_id,
2793
+ request,
2794
+ _request_auth,
2795
+ _content_type,
2796
+ _headers,
2797
+ _host_index,
2798
+ ) -> RequestSerialized:
2799
+
2800
+ _host = None
2801
+
2802
+ _collection_formats: Dict[str, str] = {
2803
+ }
2804
+
2805
+ _path_params: Dict[str, str] = {}
2806
+ _query_params: List[Tuple[str, str]] = []
2807
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2808
+ _form_params: List[Tuple[str, str]] = []
2809
+ _files: Dict[
2810
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2811
+ ] = {}
2812
+ _body_params: Optional[bytes] = None
2813
+
2814
+ # process the path parameters
2815
+ if benchmark_id is not None:
2816
+ _path_params['benchmarkId'] = benchmark_id
2817
+ # process the query parameters
2818
+ if request is not None:
2819
+
2820
+ _query_params.append(('request', request))
2821
+
2822
+ # process the header parameters
2823
+ # process the form parameters
2824
+ # process the body parameter
2825
+
2826
+
2827
+ # set the HTTP header `Accept`
2828
+ if 'Accept' not in _header_params:
2829
+ _header_params['Accept'] = self.api_client.select_header_accept(
2830
+ [
2831
+ 'text/plain',
2832
+ 'application/json',
2833
+ 'text/json'
2834
+ ]
2835
+ )
2836
+
2837
+
2838
+ # authentication setting
2839
+ _auth_settings: List[str] = [
2840
+ 'OAuth2',
2841
+ 'OpenIdConnect',
2842
+ 'Bearer'
2843
+ ]
2844
+
2845
+ return self.api_client.param_serialize(
2846
+ method='GET',
2847
+ resource_path='/benchmark/{benchmarkId}/prompts',
2848
+ path_params=_path_params,
2849
+ query_params=_query_params,
2850
+ header_params=_header_params,
2851
+ body=_body_params,
2852
+ post_params=_form_params,
2853
+ files=_files,
2854
+ auth_settings=_auth_settings,
2855
+ collection_formats=_collection_formats,
2856
+ _host=_host,
2857
+ _request_auth=_request_auth
2858
+ )
2859
+
2860
+
2861
+
2862
+
2863
+ @validate_call
2864
+ def benchmark_benchmark_id_samples_identifier_get(
2865
+ self,
2866
+ benchmark_id: Annotated[StrictStr, Field(description="The id of the benchmark to query")],
2867
+ identifier: Annotated[StrictStr, Field(description="The identifier to filter all samples for")],
2868
+ request: Annotated[Optional[QueryModel], Field(description="additional query settings")] = None,
2869
+ _request_timeout: Union[
2870
+ None,
2871
+ Annotated[StrictFloat, Field(gt=0)],
2872
+ Tuple[
2873
+ Annotated[StrictFloat, Field(gt=0)],
2874
+ Annotated[StrictFloat, Field(gt=0)]
2875
+ ]
2876
+ ] = None,
2877
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2878
+ _content_type: Optional[StrictStr] = None,
2879
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2880
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2881
+ ) -> PagedResultOfSampleByIdentifier:
2882
+ """Returns the paged prompts of a benchmark by its ID.
2883
+
2884
+
2885
+ :param benchmark_id: The id of the benchmark to query (required)
2886
+ :type benchmark_id: str
2887
+ :param identifier: The identifier to filter all samples for (required)
2888
+ :type identifier: str
2889
+ :param request: additional query settings
2890
+ :type request: QueryModel
2891
+ :param _request_timeout: timeout setting for this request. If one
2892
+ number provided, it will be total request
2893
+ timeout. It can also be a pair (tuple) of
2894
+ (connection, read) timeouts.
2895
+ :type _request_timeout: int, tuple(int, int), optional
2896
+ :param _request_auth: set to override the auth_settings for an a single
2897
+ request; this effectively ignores the
2898
+ authentication in the spec for a single request.
2899
+ :type _request_auth: dict, optional
2900
+ :param _content_type: force content-type for the request.
2901
+ :type _content_type: str, Optional
2902
+ :param _headers: set to override the headers for a single
2903
+ request; this effectively ignores the headers
2904
+ in the spec for a single request.
2905
+ :type _headers: dict, optional
2906
+ :param _host_index: set to override the host_index for a single
2907
+ request; this effectively ignores the host_index
2908
+ in the spec for a single request.
2909
+ :type _host_index: int, optional
2910
+ :return: Returns the result object.
2911
+ """ # noqa: E501
2912
+
2913
+ _param = self._benchmark_benchmark_id_samples_identifier_get_serialize(
2914
+ benchmark_id=benchmark_id,
2915
+ identifier=identifier,
2916
+ request=request,
2917
+ _request_auth=_request_auth,
2918
+ _content_type=_content_type,
2919
+ _headers=_headers,
2920
+ _host_index=_host_index
2921
+ )
2922
+
2923
+ _response_types_map: Dict[str, Optional[str]] = {
2924
+ '200': "PagedResultOfSampleByIdentifier",
2925
+ }
2926
+ response_data = self.api_client.call_api(
2927
+ *_param,
2928
+ _request_timeout=_request_timeout
2929
+ )
2930
+ response_data.read()
2931
+ return self.api_client.response_deserialize(
2932
+ response_data=response_data,
2933
+ response_types_map=_response_types_map,
2934
+ ).data
2935
+
2936
+
2937
+ @validate_call
2938
+ def benchmark_benchmark_id_samples_identifier_get_with_http_info(
2939
+ self,
2940
+ benchmark_id: Annotated[StrictStr, Field(description="The id of the benchmark to query")],
2941
+ identifier: Annotated[StrictStr, Field(description="The identifier to filter all samples for")],
2942
+ request: Annotated[Optional[QueryModel], Field(description="additional query settings")] = None,
2943
+ _request_timeout: Union[
2944
+ None,
2945
+ Annotated[StrictFloat, Field(gt=0)],
2946
+ Tuple[
2947
+ Annotated[StrictFloat, Field(gt=0)],
2948
+ Annotated[StrictFloat, Field(gt=0)]
2949
+ ]
2950
+ ] = None,
2951
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2952
+ _content_type: Optional[StrictStr] = None,
2953
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2954
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2955
+ ) -> ApiResponse[PagedResultOfSampleByIdentifier]:
2956
+ """Returns the paged prompts of a benchmark by its ID.
2957
+
2958
+
2959
+ :param benchmark_id: The id of the benchmark to query (required)
2960
+ :type benchmark_id: str
2961
+ :param identifier: The identifier to filter all samples for (required)
2962
+ :type identifier: str
2963
+ :param request: additional query settings
2964
+ :type request: QueryModel
2965
+ :param _request_timeout: timeout setting for this request. If one
2966
+ number provided, it will be total request
2967
+ timeout. It can also be a pair (tuple) of
2968
+ (connection, read) timeouts.
2969
+ :type _request_timeout: int, tuple(int, int), optional
2970
+ :param _request_auth: set to override the auth_settings for an a single
2971
+ request; this effectively ignores the
2972
+ authentication in the spec for a single request.
2973
+ :type _request_auth: dict, optional
2974
+ :param _content_type: force content-type for the request.
2975
+ :type _content_type: str, Optional
2976
+ :param _headers: set to override the headers for a single
2977
+ request; this effectively ignores the headers
2978
+ in the spec for a single request.
2979
+ :type _headers: dict, optional
2980
+ :param _host_index: set to override the host_index for a single
2981
+ request; this effectively ignores the host_index
2982
+ in the spec for a single request.
2983
+ :type _host_index: int, optional
2984
+ :return: Returns the result object.
2985
+ """ # noqa: E501
2986
+
2987
+ _param = self._benchmark_benchmark_id_samples_identifier_get_serialize(
2988
+ benchmark_id=benchmark_id,
2989
+ identifier=identifier,
2990
+ request=request,
2991
+ _request_auth=_request_auth,
2992
+ _content_type=_content_type,
2993
+ _headers=_headers,
2994
+ _host_index=_host_index
2995
+ )
2996
+
2997
+ _response_types_map: Dict[str, Optional[str]] = {
2998
+ '200': "PagedResultOfSampleByIdentifier",
2999
+ }
3000
+ response_data = self.api_client.call_api(
3001
+ *_param,
3002
+ _request_timeout=_request_timeout
3003
+ )
3004
+ response_data.read()
3005
+ return self.api_client.response_deserialize(
3006
+ response_data=response_data,
3007
+ response_types_map=_response_types_map,
3008
+ )
3009
+
3010
+
3011
+ @validate_call
3012
+ def benchmark_benchmark_id_samples_identifier_get_without_preload_content(
3013
+ self,
3014
+ benchmark_id: Annotated[StrictStr, Field(description="The id of the benchmark to query")],
3015
+ identifier: Annotated[StrictStr, Field(description="The identifier to filter all samples for")],
3016
+ request: Annotated[Optional[QueryModel], Field(description="additional query settings")] = None,
3017
+ _request_timeout: Union[
3018
+ None,
3019
+ Annotated[StrictFloat, Field(gt=0)],
3020
+ Tuple[
3021
+ Annotated[StrictFloat, Field(gt=0)],
3022
+ Annotated[StrictFloat, Field(gt=0)]
3023
+ ]
3024
+ ] = None,
3025
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3026
+ _content_type: Optional[StrictStr] = None,
3027
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3028
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3029
+ ) -> RESTResponseType:
3030
+ """Returns the paged prompts of a benchmark by its ID.
3031
+
3032
+
3033
+ :param benchmark_id: The id of the benchmark to query (required)
3034
+ :type benchmark_id: str
3035
+ :param identifier: The identifier to filter all samples for (required)
3036
+ :type identifier: str
3037
+ :param request: additional query settings
3038
+ :type request: QueryModel
3039
+ :param _request_timeout: timeout setting for this request. If one
3040
+ number provided, it will be total request
3041
+ timeout. It can also be a pair (tuple) of
3042
+ (connection, read) timeouts.
3043
+ :type _request_timeout: int, tuple(int, int), optional
3044
+ :param _request_auth: set to override the auth_settings for an a single
3045
+ request; this effectively ignores the
3046
+ authentication in the spec for a single request.
3047
+ :type _request_auth: dict, optional
3048
+ :param _content_type: force content-type for the request.
3049
+ :type _content_type: str, Optional
3050
+ :param _headers: set to override the headers for a single
3051
+ request; this effectively ignores the headers
3052
+ in the spec for a single request.
3053
+ :type _headers: dict, optional
3054
+ :param _host_index: set to override the host_index for a single
3055
+ request; this effectively ignores the host_index
3056
+ in the spec for a single request.
3057
+ :type _host_index: int, optional
3058
+ :return: Returns the result object.
3059
+ """ # noqa: E501
3060
+
3061
+ _param = self._benchmark_benchmark_id_samples_identifier_get_serialize(
3062
+ benchmark_id=benchmark_id,
3063
+ identifier=identifier,
3064
+ request=request,
3065
+ _request_auth=_request_auth,
3066
+ _content_type=_content_type,
3067
+ _headers=_headers,
3068
+ _host_index=_host_index
3069
+ )
3070
+
3071
+ _response_types_map: Dict[str, Optional[str]] = {
3072
+ '200': "PagedResultOfSampleByIdentifier",
3073
+ }
3074
+ response_data = self.api_client.call_api(
3075
+ *_param,
3076
+ _request_timeout=_request_timeout
3077
+ )
3078
+ return response_data.response
3079
+
3080
+
3081
+ def _benchmark_benchmark_id_samples_identifier_get_serialize(
3082
+ self,
3083
+ benchmark_id,
3084
+ identifier,
3085
+ request,
3086
+ _request_auth,
3087
+ _content_type,
3088
+ _headers,
3089
+ _host_index,
3090
+ ) -> RequestSerialized:
3091
+
3092
+ _host = None
3093
+
3094
+ _collection_formats: Dict[str, str] = {
3095
+ }
3096
+
3097
+ _path_params: Dict[str, str] = {}
3098
+ _query_params: List[Tuple[str, str]] = []
3099
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3100
+ _form_params: List[Tuple[str, str]] = []
3101
+ _files: Dict[
3102
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3103
+ ] = {}
3104
+ _body_params: Optional[bytes] = None
3105
+
3106
+ # process the path parameters
3107
+ if benchmark_id is not None:
3108
+ _path_params['benchmarkId'] = benchmark_id
3109
+ if identifier is not None:
3110
+ _path_params['identifier'] = identifier
3111
+ # process the query parameters
3112
+ if request is not None:
3113
+
3114
+ _query_params.append(('request', request))
3115
+
3116
+ # process the header parameters
3117
+ # process the form parameters
3118
+ # process the body parameter
3119
+
3120
+
3121
+ # set the HTTP header `Accept`
3122
+ if 'Accept' not in _header_params:
3123
+ _header_params['Accept'] = self.api_client.select_header_accept(
3124
+ [
3125
+ 'text/plain',
3126
+ 'application/json',
3127
+ 'text/json'
3128
+ ]
3129
+ )
3130
+
3131
+
3132
+ # authentication setting
3133
+ _auth_settings: List[str] = [
3134
+ 'OAuth2',
3135
+ 'OpenIdConnect',
3136
+ 'Bearer'
3137
+ ]
3138
+
3139
+ return self.api_client.param_serialize(
3140
+ method='GET',
3141
+ resource_path='/benchmark/{benchmarkId}/samples/{identifier}',
3142
+ path_params=_path_params,
3143
+ query_params=_query_params,
3144
+ header_params=_header_params,
3145
+ body=_body_params,
3146
+ post_params=_form_params,
3147
+ files=_files,
3148
+ auth_settings=_auth_settings,
3149
+ collection_formats=_collection_formats,
3150
+ _host=_host,
3151
+ _request_auth=_request_auth
3152
+ )
3153
+
3154
+
3155
+
3156
+
3157
+ @validate_call
3158
+ def benchmark_benchmark_id_standings_get(
3159
+ self,
3160
+ benchmark_id: StrictStr,
3161
+ tags: Optional[List[StrictStr]] = None,
3162
+ participant_ids: Optional[List[StrictStr]] = None,
3163
+ leaderboard_ids: Optional[List[StrictStr]] = None,
3164
+ use_weighted_scoring: Optional[StrictBool] = None,
3165
+ include_confidence_intervals: Optional[StrictBool] = None,
3166
+ _request_timeout: Union[
3167
+ None,
3168
+ Annotated[StrictFloat, Field(gt=0)],
3169
+ Tuple[
3170
+ Annotated[StrictFloat, Field(gt=0)],
3171
+ Annotated[StrictFloat, Field(gt=0)]
3172
+ ]
3173
+ ] = None,
3174
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3175
+ _content_type: Optional[StrictStr] = None,
3176
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3177
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3178
+ ) -> StandingsByBenchmarkResult:
3179
+ """benchmark_benchmark_id_standings_get
3180
+
3181
+
3182
+ :param benchmark_id: (required)
3183
+ :type benchmark_id: str
3184
+ :param tags:
3185
+ :type tags: List[str]
3186
+ :param participant_ids:
3187
+ :type participant_ids: List[str]
3188
+ :param leaderboard_ids:
3189
+ :type leaderboard_ids: List[str]
3190
+ :param use_weighted_scoring:
3191
+ :type use_weighted_scoring: bool
3192
+ :param include_confidence_intervals:
3193
+ :type include_confidence_intervals: bool
3194
+ :param _request_timeout: timeout setting for this request. If one
3195
+ number provided, it will be total request
3196
+ timeout. It can also be a pair (tuple) of
3197
+ (connection, read) timeouts.
3198
+ :type _request_timeout: int, tuple(int, int), optional
3199
+ :param _request_auth: set to override the auth_settings for an a single
3200
+ request; this effectively ignores the
3201
+ authentication in the spec for a single request.
3202
+ :type _request_auth: dict, optional
3203
+ :param _content_type: force content-type for the request.
3204
+ :type _content_type: str, Optional
3205
+ :param _headers: set to override the headers for a single
3206
+ request; this effectively ignores the headers
3207
+ in the spec for a single request.
3208
+ :type _headers: dict, optional
3209
+ :param _host_index: set to override the host_index for a single
3210
+ request; this effectively ignores the host_index
3211
+ in the spec for a single request.
3212
+ :type _host_index: int, optional
3213
+ :return: Returns the result object.
3214
+ """ # noqa: E501
3215
+
3216
+ _param = self._benchmark_benchmark_id_standings_get_serialize(
3217
+ benchmark_id=benchmark_id,
3218
+ tags=tags,
3219
+ participant_ids=participant_ids,
3220
+ leaderboard_ids=leaderboard_ids,
3221
+ use_weighted_scoring=use_weighted_scoring,
3222
+ include_confidence_intervals=include_confidence_intervals,
3223
+ _request_auth=_request_auth,
3224
+ _content_type=_content_type,
3225
+ _headers=_headers,
3226
+ _host_index=_host_index
3227
+ )
3228
+
3229
+ _response_types_map: Dict[str, Optional[str]] = {
3230
+ '200': "StandingsByBenchmarkResult",
3231
+ }
3232
+ response_data = self.api_client.call_api(
3233
+ *_param,
3234
+ _request_timeout=_request_timeout
3235
+ )
3236
+ response_data.read()
3237
+ return self.api_client.response_deserialize(
3238
+ response_data=response_data,
3239
+ response_types_map=_response_types_map,
3240
+ ).data
3241
+
3242
+
3243
+ @validate_call
3244
+ def benchmark_benchmark_id_standings_get_with_http_info(
3245
+ self,
3246
+ benchmark_id: StrictStr,
3247
+ tags: Optional[List[StrictStr]] = None,
3248
+ participant_ids: Optional[List[StrictStr]] = None,
3249
+ leaderboard_ids: Optional[List[StrictStr]] = None,
3250
+ use_weighted_scoring: Optional[StrictBool] = None,
3251
+ include_confidence_intervals: Optional[StrictBool] = None,
3252
+ _request_timeout: Union[
3253
+ None,
3254
+ Annotated[StrictFloat, Field(gt=0)],
3255
+ Tuple[
3256
+ Annotated[StrictFloat, Field(gt=0)],
3257
+ Annotated[StrictFloat, Field(gt=0)]
3258
+ ]
3259
+ ] = None,
3260
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3261
+ _content_type: Optional[StrictStr] = None,
3262
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3263
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3264
+ ) -> ApiResponse[StandingsByBenchmarkResult]:
3265
+ """benchmark_benchmark_id_standings_get
3266
+
3267
+
3268
+ :param benchmark_id: (required)
3269
+ :type benchmark_id: str
3270
+ :param tags:
3271
+ :type tags: List[str]
3272
+ :param participant_ids:
3273
+ :type participant_ids: List[str]
3274
+ :param leaderboard_ids:
3275
+ :type leaderboard_ids: List[str]
3276
+ :param use_weighted_scoring:
3277
+ :type use_weighted_scoring: bool
3278
+ :param include_confidence_intervals:
3279
+ :type include_confidence_intervals: bool
3280
+ :param _request_timeout: timeout setting for this request. If one
3281
+ number provided, it will be total request
3282
+ timeout. It can also be a pair (tuple) of
3283
+ (connection, read) timeouts.
3284
+ :type _request_timeout: int, tuple(int, int), optional
3285
+ :param _request_auth: set to override the auth_settings for an a single
3286
+ request; this effectively ignores the
3287
+ authentication in the spec for a single request.
3288
+ :type _request_auth: dict, optional
3289
+ :param _content_type: force content-type for the request.
3290
+ :type _content_type: str, Optional
3291
+ :param _headers: set to override the headers for a single
3292
+ request; this effectively ignores the headers
3293
+ in the spec for a single request.
3294
+ :type _headers: dict, optional
3295
+ :param _host_index: set to override the host_index for a single
3296
+ request; this effectively ignores the host_index
3297
+ in the spec for a single request.
3298
+ :type _host_index: int, optional
3299
+ :return: Returns the result object.
3300
+ """ # noqa: E501
3301
+
3302
+ _param = self._benchmark_benchmark_id_standings_get_serialize(
3303
+ benchmark_id=benchmark_id,
3304
+ tags=tags,
3305
+ participant_ids=participant_ids,
3306
+ leaderboard_ids=leaderboard_ids,
3307
+ use_weighted_scoring=use_weighted_scoring,
3308
+ include_confidence_intervals=include_confidence_intervals,
3309
+ _request_auth=_request_auth,
3310
+ _content_type=_content_type,
3311
+ _headers=_headers,
3312
+ _host_index=_host_index
3313
+ )
3314
+
3315
+ _response_types_map: Dict[str, Optional[str]] = {
3316
+ '200': "StandingsByBenchmarkResult",
3317
+ }
3318
+ response_data = self.api_client.call_api(
3319
+ *_param,
3320
+ _request_timeout=_request_timeout
3321
+ )
3322
+ response_data.read()
3323
+ return self.api_client.response_deserialize(
3324
+ response_data=response_data,
3325
+ response_types_map=_response_types_map,
3326
+ )
3327
+
3328
+
3329
+ @validate_call
3330
+ def benchmark_benchmark_id_standings_get_without_preload_content(
3331
+ self,
3332
+ benchmark_id: StrictStr,
3333
+ tags: Optional[List[StrictStr]] = None,
3334
+ participant_ids: Optional[List[StrictStr]] = None,
3335
+ leaderboard_ids: Optional[List[StrictStr]] = None,
3336
+ use_weighted_scoring: Optional[StrictBool] = None,
3337
+ include_confidence_intervals: Optional[StrictBool] = None,
3338
+ _request_timeout: Union[
3339
+ None,
3340
+ Annotated[StrictFloat, Field(gt=0)],
3341
+ Tuple[
3342
+ Annotated[StrictFloat, Field(gt=0)],
3343
+ Annotated[StrictFloat, Field(gt=0)]
3344
+ ]
3345
+ ] = None,
3346
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3347
+ _content_type: Optional[StrictStr] = None,
3348
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3349
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3350
+ ) -> RESTResponseType:
3351
+ """benchmark_benchmark_id_standings_get
3352
+
3353
+
3354
+ :param benchmark_id: (required)
3355
+ :type benchmark_id: str
3356
+ :param tags:
3357
+ :type tags: List[str]
3358
+ :param participant_ids:
3359
+ :type participant_ids: List[str]
3360
+ :param leaderboard_ids:
3361
+ :type leaderboard_ids: List[str]
3362
+ :param use_weighted_scoring:
3363
+ :type use_weighted_scoring: bool
3364
+ :param include_confidence_intervals:
3365
+ :type include_confidence_intervals: bool
3366
+ :param _request_timeout: timeout setting for this request. If one
3367
+ number provided, it will be total request
3368
+ timeout. It can also be a pair (tuple) of
3369
+ (connection, read) timeouts.
3370
+ :type _request_timeout: int, tuple(int, int), optional
3371
+ :param _request_auth: set to override the auth_settings for an a single
3372
+ request; this effectively ignores the
3373
+ authentication in the spec for a single request.
3374
+ :type _request_auth: dict, optional
3375
+ :param _content_type: force content-type for the request.
3376
+ :type _content_type: str, Optional
3377
+ :param _headers: set to override the headers for a single
3378
+ request; this effectively ignores the headers
3379
+ in the spec for a single request.
3380
+ :type _headers: dict, optional
3381
+ :param _host_index: set to override the host_index for a single
3382
+ request; this effectively ignores the host_index
3383
+ in the spec for a single request.
3384
+ :type _host_index: int, optional
3385
+ :return: Returns the result object.
3386
+ """ # noqa: E501
3387
+
3388
+ _param = self._benchmark_benchmark_id_standings_get_serialize(
3389
+ benchmark_id=benchmark_id,
3390
+ tags=tags,
3391
+ participant_ids=participant_ids,
3392
+ leaderboard_ids=leaderboard_ids,
3393
+ use_weighted_scoring=use_weighted_scoring,
3394
+ include_confidence_intervals=include_confidence_intervals,
3395
+ _request_auth=_request_auth,
3396
+ _content_type=_content_type,
3397
+ _headers=_headers,
3398
+ _host_index=_host_index
3399
+ )
3400
+
3401
+ _response_types_map: Dict[str, Optional[str]] = {
3402
+ '200': "StandingsByBenchmarkResult",
3403
+ }
3404
+ response_data = self.api_client.call_api(
3405
+ *_param,
3406
+ _request_timeout=_request_timeout
3407
+ )
3408
+ return response_data.response
3409
+
3410
+
3411
+ def _benchmark_benchmark_id_standings_get_serialize(
3412
+ self,
3413
+ benchmark_id,
3414
+ tags,
3415
+ participant_ids,
3416
+ leaderboard_ids,
3417
+ use_weighted_scoring,
3418
+ include_confidence_intervals,
3419
+ _request_auth,
3420
+ _content_type,
3421
+ _headers,
3422
+ _host_index,
3423
+ ) -> RequestSerialized:
3424
+
3425
+ _host = None
3426
+
3427
+ _collection_formats: Dict[str, str] = {
3428
+ 'tags': 'multi',
3429
+ 'participantIds': 'multi',
3430
+ 'leaderboardIds': 'multi',
3431
+ }
3432
+
3433
+ _path_params: Dict[str, str] = {}
3434
+ _query_params: List[Tuple[str, str]] = []
3435
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3436
+ _form_params: List[Tuple[str, str]] = []
3437
+ _files: Dict[
3438
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3439
+ ] = {}
3440
+ _body_params: Optional[bytes] = None
3441
+
3442
+ # process the path parameters
3443
+ if benchmark_id is not None:
3444
+ _path_params['benchmarkId'] = benchmark_id
3445
+ # process the query parameters
3446
+ if tags is not None:
3447
+
3448
+ _query_params.append(('tags', tags))
3449
+
3450
+ if participant_ids is not None:
3451
+
3452
+ _query_params.append(('participantIds', participant_ids))
3453
+
3454
+ if leaderboard_ids is not None:
3455
+
3456
+ _query_params.append(('leaderboardIds', leaderboard_ids))
3457
+
3458
+ if use_weighted_scoring is not None:
3459
+
3460
+ _query_params.append(('useWeightedScoring', use_weighted_scoring))
3461
+
3462
+ if include_confidence_intervals is not None:
3463
+
3464
+ _query_params.append(('includeConfidenceIntervals', include_confidence_intervals))
3465
+
3466
+ # process the header parameters
3467
+ # process the form parameters
3468
+ # process the body parameter
3469
+
3470
+
3471
+ # set the HTTP header `Accept`
3472
+ if 'Accept' not in _header_params:
3473
+ _header_params['Accept'] = self.api_client.select_header_accept(
3474
+ [
3475
+ 'text/plain',
3476
+ 'application/json',
3477
+ 'text/json'
3478
+ ]
3479
+ )
3480
+
3481
+
3482
+ # authentication setting
3483
+ _auth_settings: List[str] = [
3484
+ 'OAuth2',
3485
+ 'OpenIdConnect',
3486
+ 'Bearer'
3487
+ ]
3488
+
3489
+ return self.api_client.param_serialize(
3490
+ method='GET',
3491
+ resource_path='/benchmark/{benchmarkId}/standings',
3492
+ path_params=_path_params,
3493
+ query_params=_query_params,
3494
+ header_params=_header_params,
3495
+ body=_body_params,
3496
+ post_params=_form_params,
3497
+ files=_files,
3498
+ auth_settings=_auth_settings,
3499
+ collection_formats=_collection_formats,
3500
+ _host=_host,
3501
+ _request_auth=_request_auth
3502
+ )
3503
+
3504
+
3505
+
3506
+
3507
+ @validate_call
3508
+ def benchmark_benchmark_id_tags_get(
3509
+ self,
3510
+ benchmark_id: Annotated[StrictStr, Field(description="The id of the benchmark the prompts should be retrieved from")],
3511
+ _request_timeout: Union[
3512
+ None,
3513
+ Annotated[StrictFloat, Field(gt=0)],
3514
+ Tuple[
3515
+ Annotated[StrictFloat, Field(gt=0)],
3516
+ Annotated[StrictFloat, Field(gt=0)]
3517
+ ]
3518
+ ] = None,
3519
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3520
+ _content_type: Optional[StrictStr] = None,
3521
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3522
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3523
+ ) -> TagsByBenchmarkResult:
3524
+ """Query all tags within a benchmark
3525
+
3526
+
3527
+ :param benchmark_id: The id of the benchmark the prompts should be retrieved from (required)
3528
+ :type benchmark_id: str
3529
+ :param _request_timeout: timeout setting for this request. If one
3530
+ number provided, it will be total request
3531
+ timeout. It can also be a pair (tuple) of
3532
+ (connection, read) timeouts.
3533
+ :type _request_timeout: int, tuple(int, int), optional
3534
+ :param _request_auth: set to override the auth_settings for an a single
3535
+ request; this effectively ignores the
3536
+ authentication in the spec for a single request.
3537
+ :type _request_auth: dict, optional
3538
+ :param _content_type: force content-type for the request.
3539
+ :type _content_type: str, Optional
3540
+ :param _headers: set to override the headers for a single
3541
+ request; this effectively ignores the headers
3542
+ in the spec for a single request.
3543
+ :type _headers: dict, optional
3544
+ :param _host_index: set to override the host_index for a single
3545
+ request; this effectively ignores the host_index
3546
+ in the spec for a single request.
3547
+ :type _host_index: int, optional
3548
+ :return: Returns the result object.
3549
+ """ # noqa: E501
3550
+
3551
+ _param = self._benchmark_benchmark_id_tags_get_serialize(
3552
+ benchmark_id=benchmark_id,
3553
+ _request_auth=_request_auth,
3554
+ _content_type=_content_type,
3555
+ _headers=_headers,
3556
+ _host_index=_host_index
3557
+ )
3558
+
3559
+ _response_types_map: Dict[str, Optional[str]] = {
3560
+ '200': "TagsByBenchmarkResult",
3561
+ }
3562
+ response_data = self.api_client.call_api(
3563
+ *_param,
3564
+ _request_timeout=_request_timeout
3565
+ )
3566
+ response_data.read()
3567
+ return self.api_client.response_deserialize(
3568
+ response_data=response_data,
3569
+ response_types_map=_response_types_map,
3570
+ ).data
3571
+
3572
+
3573
+ @validate_call
3574
+ def benchmark_benchmark_id_tags_get_with_http_info(
3575
+ self,
3576
+ benchmark_id: Annotated[StrictStr, Field(description="The id of the benchmark the prompts should be retrieved from")],
3577
+ _request_timeout: Union[
3578
+ None,
3579
+ Annotated[StrictFloat, Field(gt=0)],
3580
+ Tuple[
3581
+ Annotated[StrictFloat, Field(gt=0)],
3582
+ Annotated[StrictFloat, Field(gt=0)]
3583
+ ]
3584
+ ] = None,
3585
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3586
+ _content_type: Optional[StrictStr] = None,
3587
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3588
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3589
+ ) -> ApiResponse[TagsByBenchmarkResult]:
3590
+ """Query all tags within a benchmark
3591
+
3592
+
3593
+ :param benchmark_id: The id of the benchmark the prompts should be retrieved from (required)
3594
+ :type benchmark_id: str
3595
+ :param _request_timeout: timeout setting for this request. If one
3596
+ number provided, it will be total request
3597
+ timeout. It can also be a pair (tuple) of
3598
+ (connection, read) timeouts.
3599
+ :type _request_timeout: int, tuple(int, int), optional
3600
+ :param _request_auth: set to override the auth_settings for an a single
3601
+ request; this effectively ignores the
3602
+ authentication in the spec for a single request.
3603
+ :type _request_auth: dict, optional
3604
+ :param _content_type: force content-type for the request.
3605
+ :type _content_type: str, Optional
3606
+ :param _headers: set to override the headers for a single
3607
+ request; this effectively ignores the headers
3608
+ in the spec for a single request.
3609
+ :type _headers: dict, optional
3610
+ :param _host_index: set to override the host_index for a single
3611
+ request; this effectively ignores the host_index
3612
+ in the spec for a single request.
3613
+ :type _host_index: int, optional
3614
+ :return: Returns the result object.
3615
+ """ # noqa: E501
3616
+
3617
+ _param = self._benchmark_benchmark_id_tags_get_serialize(
3618
+ benchmark_id=benchmark_id,
3619
+ _request_auth=_request_auth,
3620
+ _content_type=_content_type,
3621
+ _headers=_headers,
3622
+ _host_index=_host_index
3623
+ )
3624
+
3625
+ _response_types_map: Dict[str, Optional[str]] = {
3626
+ '200': "TagsByBenchmarkResult",
3627
+ }
3628
+ response_data = self.api_client.call_api(
3629
+ *_param,
3630
+ _request_timeout=_request_timeout
3631
+ )
3632
+ response_data.read()
3633
+ return self.api_client.response_deserialize(
3634
+ response_data=response_data,
3635
+ response_types_map=_response_types_map,
3636
+ )
3637
+
3638
+
3639
+ @validate_call
3640
+ def benchmark_benchmark_id_tags_get_without_preload_content(
3641
+ self,
3642
+ benchmark_id: Annotated[StrictStr, Field(description="The id of the benchmark the prompts should be retrieved from")],
3643
+ _request_timeout: Union[
3644
+ None,
3645
+ Annotated[StrictFloat, Field(gt=0)],
3646
+ Tuple[
3647
+ Annotated[StrictFloat, Field(gt=0)],
3648
+ Annotated[StrictFloat, Field(gt=0)]
3649
+ ]
3650
+ ] = None,
3651
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3652
+ _content_type: Optional[StrictStr] = None,
3653
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3654
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3655
+ ) -> RESTResponseType:
3656
+ """Query all tags within a benchmark
3657
+
3658
+
3659
+ :param benchmark_id: The id of the benchmark the prompts should be retrieved from (required)
3660
+ :type benchmark_id: str
3661
+ :param _request_timeout: timeout setting for this request. If one
3662
+ number provided, it will be total request
3663
+ timeout. It can also be a pair (tuple) of
3664
+ (connection, read) timeouts.
3665
+ :type _request_timeout: int, tuple(int, int), optional
3666
+ :param _request_auth: set to override the auth_settings for an a single
3667
+ request; this effectively ignores the
3668
+ authentication in the spec for a single request.
3669
+ :type _request_auth: dict, optional
3670
+ :param _content_type: force content-type for the request.
3671
+ :type _content_type: str, Optional
3672
+ :param _headers: set to override the headers for a single
3673
+ request; this effectively ignores the headers
3674
+ in the spec for a single request.
3675
+ :type _headers: dict, optional
3676
+ :param _host_index: set to override the host_index for a single
3677
+ request; this effectively ignores the host_index
3678
+ in the spec for a single request.
3679
+ :type _host_index: int, optional
3680
+ :return: Returns the result object.
3681
+ """ # noqa: E501
3682
+
3683
+ _param = self._benchmark_benchmark_id_tags_get_serialize(
3684
+ benchmark_id=benchmark_id,
3685
+ _request_auth=_request_auth,
3686
+ _content_type=_content_type,
3687
+ _headers=_headers,
3688
+ _host_index=_host_index
3689
+ )
3690
+
3691
+ _response_types_map: Dict[str, Optional[str]] = {
3692
+ '200': "TagsByBenchmarkResult",
3693
+ }
3694
+ response_data = self.api_client.call_api(
3695
+ *_param,
3696
+ _request_timeout=_request_timeout
3697
+ )
3698
+ return response_data.response
3699
+
3700
+
3701
+ def _benchmark_benchmark_id_tags_get_serialize(
3702
+ self,
3703
+ benchmark_id,
3704
+ _request_auth,
3705
+ _content_type,
3706
+ _headers,
3707
+ _host_index,
3708
+ ) -> RequestSerialized:
3709
+
3710
+ _host = None
3711
+
3712
+ _collection_formats: Dict[str, str] = {
3713
+ }
3714
+
3715
+ _path_params: Dict[str, str] = {}
3716
+ _query_params: List[Tuple[str, str]] = []
3717
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3718
+ _form_params: List[Tuple[str, str]] = []
3719
+ _files: Dict[
3720
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3721
+ ] = {}
3722
+ _body_params: Optional[bytes] = None
3723
+
3724
+ # process the path parameters
3725
+ if benchmark_id is not None:
3726
+ _path_params['benchmarkId'] = benchmark_id
3727
+ # process the query parameters
3728
+ # process the header parameters
3729
+ # process the form parameters
3730
+ # process the body parameter
3731
+
3732
+
3733
+ # set the HTTP header `Accept`
3734
+ if 'Accept' not in _header_params:
3735
+ _header_params['Accept'] = self.api_client.select_header_accept(
3736
+ [
3737
+ 'text/plain',
3738
+ 'application/json',
3739
+ 'text/json'
3740
+ ]
3741
+ )
3742
+
3743
+
3744
+ # authentication setting
3745
+ _auth_settings: List[str] = [
3746
+ 'OAuth2',
3747
+ 'OpenIdConnect',
3748
+ 'Bearer'
3749
+ ]
3750
+
3751
+ return self.api_client.param_serialize(
3752
+ method='GET',
3753
+ resource_path='/benchmark/{benchmarkId}/tags',
3754
+ path_params=_path_params,
3755
+ query_params=_query_params,
3756
+ header_params=_header_params,
3757
+ body=_body_params,
3758
+ post_params=_form_params,
3759
+ files=_files,
3760
+ auth_settings=_auth_settings,
3761
+ collection_formats=_collection_formats,
3762
+ _host=_host,
3763
+ _request_auth=_request_auth
3764
+ )
3765
+
3766
+
3767
+
3768
+
3769
+ @validate_call
3770
+ def benchmark_post(
3771
+ self,
3772
+ create_benchmark_model: CreateBenchmarkModel,
3773
+ _request_timeout: Union[
3774
+ None,
3775
+ Annotated[StrictFloat, Field(gt=0)],
3776
+ Tuple[
3777
+ Annotated[StrictFloat, Field(gt=0)],
3778
+ Annotated[StrictFloat, Field(gt=0)]
3779
+ ]
3780
+ ] = None,
3781
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3782
+ _content_type: Optional[StrictStr] = None,
3783
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3784
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3785
+ ) -> CreateBenchmarkResult:
3786
+ """Creates a benchmark
3787
+
3788
+
3789
+ :param create_benchmark_model: (required)
3790
+ :type create_benchmark_model: CreateBenchmarkModel
3791
+ :param _request_timeout: timeout setting for this request. If one
3792
+ number provided, it will be total request
3793
+ timeout. It can also be a pair (tuple) of
3794
+ (connection, read) timeouts.
3795
+ :type _request_timeout: int, tuple(int, int), optional
3796
+ :param _request_auth: set to override the auth_settings for an a single
3797
+ request; this effectively ignores the
3798
+ authentication in the spec for a single request.
3799
+ :type _request_auth: dict, optional
3800
+ :param _content_type: force content-type for the request.
3801
+ :type _content_type: str, Optional
3802
+ :param _headers: set to override the headers for a single
3803
+ request; this effectively ignores the headers
3804
+ in the spec for a single request.
3805
+ :type _headers: dict, optional
3806
+ :param _host_index: set to override the host_index for a single
3807
+ request; this effectively ignores the host_index
3808
+ in the spec for a single request.
3809
+ :type _host_index: int, optional
3810
+ :return: Returns the result object.
3811
+ """ # noqa: E501
3812
+
3813
+ _param = self._benchmark_post_serialize(
3814
+ create_benchmark_model=create_benchmark_model,
3815
+ _request_auth=_request_auth,
3816
+ _content_type=_content_type,
3817
+ _headers=_headers,
3818
+ _host_index=_host_index
3819
+ )
3820
+
3821
+ _response_types_map: Dict[str, Optional[str]] = {
3822
+ '200': "CreateBenchmarkResult",
3823
+ }
3824
+ response_data = self.api_client.call_api(
3825
+ *_param,
3826
+ _request_timeout=_request_timeout
3827
+ )
3828
+ response_data.read()
3829
+ return self.api_client.response_deserialize(
3830
+ response_data=response_data,
3831
+ response_types_map=_response_types_map,
3832
+ ).data
3833
+
3834
+
3835
+ @validate_call
3836
+ def benchmark_post_with_http_info(
3837
+ self,
3838
+ create_benchmark_model: CreateBenchmarkModel,
3839
+ _request_timeout: Union[
3840
+ None,
3841
+ Annotated[StrictFloat, Field(gt=0)],
3842
+ Tuple[
3843
+ Annotated[StrictFloat, Field(gt=0)],
3844
+ Annotated[StrictFloat, Field(gt=0)]
3845
+ ]
3846
+ ] = None,
3847
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3848
+ _content_type: Optional[StrictStr] = None,
3849
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3850
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3851
+ ) -> ApiResponse[CreateBenchmarkResult]:
3852
+ """Creates a benchmark
3853
+
3854
+
3855
+ :param create_benchmark_model: (required)
3856
+ :type create_benchmark_model: CreateBenchmarkModel
3857
+ :param _request_timeout: timeout setting for this request. If one
3858
+ number provided, it will be total request
3859
+ timeout. It can also be a pair (tuple) of
3860
+ (connection, read) timeouts.
3861
+ :type _request_timeout: int, tuple(int, int), optional
3862
+ :param _request_auth: set to override the auth_settings for an a single
3863
+ request; this effectively ignores the
3864
+ authentication in the spec for a single request.
3865
+ :type _request_auth: dict, optional
3866
+ :param _content_type: force content-type for the request.
3867
+ :type _content_type: str, Optional
3868
+ :param _headers: set to override the headers for a single
3869
+ request; this effectively ignores the headers
3870
+ in the spec for a single request.
3871
+ :type _headers: dict, optional
3872
+ :param _host_index: set to override the host_index for a single
3873
+ request; this effectively ignores the host_index
3874
+ in the spec for a single request.
3875
+ :type _host_index: int, optional
3876
+ :return: Returns the result object.
3877
+ """ # noqa: E501
3878
+
3879
+ _param = self._benchmark_post_serialize(
3880
+ create_benchmark_model=create_benchmark_model,
3881
+ _request_auth=_request_auth,
3882
+ _content_type=_content_type,
3883
+ _headers=_headers,
3884
+ _host_index=_host_index
3885
+ )
3886
+
3887
+ _response_types_map: Dict[str, Optional[str]] = {
3888
+ '200': "CreateBenchmarkResult",
3889
+ }
3890
+ response_data = self.api_client.call_api(
3891
+ *_param,
3892
+ _request_timeout=_request_timeout
3893
+ )
3894
+ response_data.read()
3895
+ return self.api_client.response_deserialize(
3896
+ response_data=response_data,
3897
+ response_types_map=_response_types_map,
3898
+ )
3899
+
3900
+
3901
+ @validate_call
3902
+ def benchmark_post_without_preload_content(
3903
+ self,
3904
+ create_benchmark_model: CreateBenchmarkModel,
3905
+ _request_timeout: Union[
3906
+ None,
3907
+ Annotated[StrictFloat, Field(gt=0)],
3908
+ Tuple[
3909
+ Annotated[StrictFloat, Field(gt=0)],
3910
+ Annotated[StrictFloat, Field(gt=0)]
3911
+ ]
3912
+ ] = None,
3913
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3914
+ _content_type: Optional[StrictStr] = None,
3915
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3916
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3917
+ ) -> RESTResponseType:
3918
+ """Creates a benchmark
3919
+
3920
+
3921
+ :param create_benchmark_model: (required)
3922
+ :type create_benchmark_model: CreateBenchmarkModel
3923
+ :param _request_timeout: timeout setting for this request. If one
3924
+ number provided, it will be total request
3925
+ timeout. It can also be a pair (tuple) of
3926
+ (connection, read) timeouts.
3927
+ :type _request_timeout: int, tuple(int, int), optional
3928
+ :param _request_auth: set to override the auth_settings for an a single
3929
+ request; this effectively ignores the
3930
+ authentication in the spec for a single request.
3931
+ :type _request_auth: dict, optional
3932
+ :param _content_type: force content-type for the request.
3933
+ :type _content_type: str, Optional
3934
+ :param _headers: set to override the headers for a single
3935
+ request; this effectively ignores the headers
3936
+ in the spec for a single request.
3937
+ :type _headers: dict, optional
3938
+ :param _host_index: set to override the host_index for a single
3939
+ request; this effectively ignores the host_index
3940
+ in the spec for a single request.
3941
+ :type _host_index: int, optional
3942
+ :return: Returns the result object.
3943
+ """ # noqa: E501
3944
+
3945
+ _param = self._benchmark_post_serialize(
3946
+ create_benchmark_model=create_benchmark_model,
3947
+ _request_auth=_request_auth,
3948
+ _content_type=_content_type,
3949
+ _headers=_headers,
3950
+ _host_index=_host_index
3951
+ )
3952
+
3953
+ _response_types_map: Dict[str, Optional[str]] = {
3954
+ '200': "CreateBenchmarkResult",
3955
+ }
3956
+ response_data = self.api_client.call_api(
3957
+ *_param,
3958
+ _request_timeout=_request_timeout
3959
+ )
3960
+ return response_data.response
3961
+
3962
+
3963
+ def _benchmark_post_serialize(
3964
+ self,
3965
+ create_benchmark_model,
3966
+ _request_auth,
3967
+ _content_type,
3968
+ _headers,
3969
+ _host_index,
3970
+ ) -> RequestSerialized:
3971
+
3972
+ _host = None
3973
+
3974
+ _collection_formats: Dict[str, str] = {
3975
+ }
3976
+
3977
+ _path_params: Dict[str, str] = {}
3978
+ _query_params: List[Tuple[str, str]] = []
3979
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3980
+ _form_params: List[Tuple[str, str]] = []
3981
+ _files: Dict[
3982
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3983
+ ] = {}
3984
+ _body_params: Optional[bytes] = None
3985
+
3986
+ # process the path parameters
3987
+ # process the query parameters
3988
+ # process the header parameters
3989
+ # process the form parameters
3990
+ # process the body parameter
3991
+ if create_benchmark_model is not None:
3992
+ _body_params = create_benchmark_model
3993
+
3994
+
3995
+ # set the HTTP header `Accept`
3996
+ if 'Accept' not in _header_params:
3997
+ _header_params['Accept'] = self.api_client.select_header_accept(
3998
+ [
3999
+ 'text/plain',
4000
+ 'application/json',
4001
+ 'text/json'
4002
+ ]
4003
+ )
4004
+
4005
+ # set the HTTP header `Content-Type`
4006
+ if _content_type:
4007
+ _header_params['Content-Type'] = _content_type
4008
+ else:
4009
+ _default_content_type = (
4010
+ self.api_client.select_header_content_type(
4011
+ [
4012
+ 'application/json',
4013
+ 'text/json',
4014
+ 'application/*+json'
4015
+ ]
4016
+ )
4017
+ )
4018
+ if _default_content_type is not None:
4019
+ _header_params['Content-Type'] = _default_content_type
4020
+
4021
+ # authentication setting
4022
+ _auth_settings: List[str] = [
4023
+ 'OAuth2',
4024
+ 'OpenIdConnect',
4025
+ 'Bearer'
4026
+ ]
4027
+
4028
+ return self.api_client.param_serialize(
4029
+ method='POST',
4030
+ resource_path='/benchmark',
4031
+ path_params=_path_params,
4032
+ query_params=_query_params,
4033
+ header_params=_header_params,
4034
+ body=_body_params,
4035
+ post_params=_form_params,
4036
+ files=_files,
4037
+ auth_settings=_auth_settings,
4038
+ collection_formats=_collection_formats,
4039
+ _host=_host,
4040
+ _request_auth=_request_auth
4041
+ )
4042
+
4043
+
4044
+
4045
+
4046
+ @validate_call
4047
+ def benchmarks_get(
4048
+ self,
4049
+ request: Optional[QueryModel] = None,
4050
+ _request_timeout: Union[
4051
+ None,
4052
+ Annotated[StrictFloat, Field(gt=0)],
4053
+ Tuple[
4054
+ Annotated[StrictFloat, Field(gt=0)],
4055
+ Annotated[StrictFloat, Field(gt=0)]
4056
+ ]
4057
+ ] = None,
4058
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4059
+ _content_type: Optional[StrictStr] = None,
4060
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4061
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4062
+ ) -> PagedResultOfBenchmarkQueryResult:
4063
+ """Queries all benchmarks of the user.
4064
+
4065
+
4066
+ :param request:
4067
+ :type request: QueryModel
4068
+ :param _request_timeout: timeout setting for this request. If one
4069
+ number provided, it will be total request
4070
+ timeout. It can also be a pair (tuple) of
4071
+ (connection, read) timeouts.
4072
+ :type _request_timeout: int, tuple(int, int), optional
4073
+ :param _request_auth: set to override the auth_settings for an a single
4074
+ request; this effectively ignores the
4075
+ authentication in the spec for a single request.
4076
+ :type _request_auth: dict, optional
4077
+ :param _content_type: force content-type for the request.
4078
+ :type _content_type: str, Optional
4079
+ :param _headers: set to override the headers for a single
4080
+ request; this effectively ignores the headers
4081
+ in the spec for a single request.
4082
+ :type _headers: dict, optional
4083
+ :param _host_index: set to override the host_index for a single
4084
+ request; this effectively ignores the host_index
4085
+ in the spec for a single request.
4086
+ :type _host_index: int, optional
4087
+ :return: Returns the result object.
4088
+ """ # noqa: E501
4089
+
4090
+ _param = self._benchmarks_get_serialize(
4091
+ request=request,
4092
+ _request_auth=_request_auth,
4093
+ _content_type=_content_type,
4094
+ _headers=_headers,
4095
+ _host_index=_host_index
4096
+ )
4097
+
4098
+ _response_types_map: Dict[str, Optional[str]] = {
4099
+ '200': "PagedResultOfBenchmarkQueryResult",
4100
+ }
4101
+ response_data = self.api_client.call_api(
4102
+ *_param,
4103
+ _request_timeout=_request_timeout
4104
+ )
4105
+ response_data.read()
4106
+ return self.api_client.response_deserialize(
4107
+ response_data=response_data,
4108
+ response_types_map=_response_types_map,
4109
+ ).data
4110
+
4111
+
4112
+ @validate_call
4113
+ def benchmarks_get_with_http_info(
4114
+ self,
4115
+ request: Optional[QueryModel] = None,
4116
+ _request_timeout: Union[
4117
+ None,
4118
+ Annotated[StrictFloat, Field(gt=0)],
4119
+ Tuple[
4120
+ Annotated[StrictFloat, Field(gt=0)],
4121
+ Annotated[StrictFloat, Field(gt=0)]
4122
+ ]
4123
+ ] = None,
4124
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4125
+ _content_type: Optional[StrictStr] = None,
4126
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4127
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4128
+ ) -> ApiResponse[PagedResultOfBenchmarkQueryResult]:
4129
+ """Queries all benchmarks of the user.
4130
+
4131
+
4132
+ :param request:
4133
+ :type request: QueryModel
4134
+ :param _request_timeout: timeout setting for this request. If one
4135
+ number provided, it will be total request
4136
+ timeout. It can also be a pair (tuple) of
4137
+ (connection, read) timeouts.
4138
+ :type _request_timeout: int, tuple(int, int), optional
4139
+ :param _request_auth: set to override the auth_settings for an a single
4140
+ request; this effectively ignores the
4141
+ authentication in the spec for a single request.
4142
+ :type _request_auth: dict, optional
4143
+ :param _content_type: force content-type for the request.
4144
+ :type _content_type: str, Optional
4145
+ :param _headers: set to override the headers for a single
4146
+ request; this effectively ignores the headers
4147
+ in the spec for a single request.
4148
+ :type _headers: dict, optional
4149
+ :param _host_index: set to override the host_index for a single
4150
+ request; this effectively ignores the host_index
4151
+ in the spec for a single request.
4152
+ :type _host_index: int, optional
4153
+ :return: Returns the result object.
4154
+ """ # noqa: E501
4155
+
4156
+ _param = self._benchmarks_get_serialize(
4157
+ request=request,
4158
+ _request_auth=_request_auth,
4159
+ _content_type=_content_type,
4160
+ _headers=_headers,
4161
+ _host_index=_host_index
4162
+ )
4163
+
4164
+ _response_types_map: Dict[str, Optional[str]] = {
4165
+ '200': "PagedResultOfBenchmarkQueryResult",
4166
+ }
4167
+ response_data = self.api_client.call_api(
4168
+ *_param,
4169
+ _request_timeout=_request_timeout
4170
+ )
4171
+ response_data.read()
4172
+ return self.api_client.response_deserialize(
4173
+ response_data=response_data,
4174
+ response_types_map=_response_types_map,
4175
+ )
4176
+
4177
+
4178
+ @validate_call
4179
+ def benchmarks_get_without_preload_content(
4180
+ self,
4181
+ request: Optional[QueryModel] = None,
4182
+ _request_timeout: Union[
4183
+ None,
4184
+ Annotated[StrictFloat, Field(gt=0)],
4185
+ Tuple[
4186
+ Annotated[StrictFloat, Field(gt=0)],
4187
+ Annotated[StrictFloat, Field(gt=0)]
4188
+ ]
4189
+ ] = None,
4190
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4191
+ _content_type: Optional[StrictStr] = None,
4192
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4193
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4194
+ ) -> RESTResponseType:
4195
+ """Queries all benchmarks of the user.
4196
+
4197
+
4198
+ :param request:
4199
+ :type request: QueryModel
4200
+ :param _request_timeout: timeout setting for this request. If one
4201
+ number provided, it will be total request
4202
+ timeout. It can also be a pair (tuple) of
4203
+ (connection, read) timeouts.
4204
+ :type _request_timeout: int, tuple(int, int), optional
4205
+ :param _request_auth: set to override the auth_settings for an a single
4206
+ request; this effectively ignores the
4207
+ authentication in the spec for a single request.
4208
+ :type _request_auth: dict, optional
4209
+ :param _content_type: force content-type for the request.
4210
+ :type _content_type: str, Optional
4211
+ :param _headers: set to override the headers for a single
4212
+ request; this effectively ignores the headers
4213
+ in the spec for a single request.
4214
+ :type _headers: dict, optional
4215
+ :param _host_index: set to override the host_index for a single
4216
+ request; this effectively ignores the host_index
4217
+ in the spec for a single request.
4218
+ :type _host_index: int, optional
4219
+ :return: Returns the result object.
4220
+ """ # noqa: E501
4221
+
4222
+ _param = self._benchmarks_get_serialize(
4223
+ request=request,
4224
+ _request_auth=_request_auth,
4225
+ _content_type=_content_type,
4226
+ _headers=_headers,
4227
+ _host_index=_host_index
4228
+ )
4229
+
4230
+ _response_types_map: Dict[str, Optional[str]] = {
4231
+ '200': "PagedResultOfBenchmarkQueryResult",
4232
+ }
4233
+ response_data = self.api_client.call_api(
4234
+ *_param,
4235
+ _request_timeout=_request_timeout
4236
+ )
4237
+ return response_data.response
4238
+
4239
+
4240
+ def _benchmarks_get_serialize(
4241
+ self,
4242
+ request,
4243
+ _request_auth,
4244
+ _content_type,
4245
+ _headers,
4246
+ _host_index,
4247
+ ) -> RequestSerialized:
4248
+
4249
+ _host = None
4250
+
4251
+ _collection_formats: Dict[str, str] = {
4252
+ }
4253
+
4254
+ _path_params: Dict[str, str] = {}
4255
+ _query_params: List[Tuple[str, str]] = []
4256
+ _header_params: Dict[str, Optional[str]] = _headers or {}
4257
+ _form_params: List[Tuple[str, str]] = []
4258
+ _files: Dict[
4259
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
4260
+ ] = {}
4261
+ _body_params: Optional[bytes] = None
4262
+
4263
+ # process the path parameters
4264
+ # process the query parameters
4265
+ if request is not None:
4266
+
4267
+ _query_params.append(('request', request))
4268
+
4269
+ # process the header parameters
4270
+ # process the form parameters
4271
+ # process the body parameter
4272
+
4273
+
4274
+ # set the HTTP header `Accept`
4275
+ if 'Accept' not in _header_params:
4276
+ _header_params['Accept'] = self.api_client.select_header_accept(
4277
+ [
4278
+ 'text/plain',
4279
+ 'application/json',
4280
+ 'text/json'
4281
+ ]
4282
+ )
4283
+
4284
+
4285
+ # authentication setting
4286
+ _auth_settings: List[str] = [
4287
+ 'OAuth2',
4288
+ 'OpenIdConnect',
4289
+ 'Bearer'
4290
+ ]
4291
+
4292
+ return self.api_client.param_serialize(
4293
+ method='GET',
4294
+ resource_path='/benchmarks',
4295
+ path_params=_path_params,
4296
+ query_params=_query_params,
4297
+ header_params=_header_params,
4298
+ body=_body_params,
4299
+ post_params=_form_params,
4300
+ files=_files,
4301
+ auth_settings=_auth_settings,
4302
+ collection_formats=_collection_formats,
4303
+ _host=_host,
4304
+ _request_auth=_request_auth
4305
+ )
4306
+
4307
+