rapidata 1.8.3__py3-none-any.whl → 2.44.4__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 (899) hide show
  1. rapidata/__init__.py +32 -16
  2. rapidata/api_client/__init__.py +83 -279
  3. rapidata/api_client/api/__init__.py +14 -4
  4. rapidata/api_client/api/asset_api.py +853 -0
  5. rapidata/api_client/api/audience_api.py +1133 -0
  6. rapidata/api_client/api/benchmark_api.py +3966 -0
  7. rapidata/api_client/api/campaign_api.py +926 -125
  8. rapidata/api_client/api/client_api.py +589 -42
  9. rapidata/api_client/api/coco_api.py +45 -45
  10. rapidata/api_client/api/compare_workflow_api.py +47 -45
  11. rapidata/api_client/api/{validation_api.py → customer_rapid_api.py} +367 -378
  12. rapidata/api_client/api/datapoint_api.py +69 -336
  13. rapidata/api_client/api/dataset_api.py +263 -872
  14. rapidata/api_client/api/evaluation_workflow_api.py +319 -0
  15. rapidata/api_client/api/feedback_api.py +306 -0
  16. rapidata/api_client/api/grouped_ranking_workflow_api.py +319 -0
  17. rapidata/api_client/api/identity_api.py +365 -120
  18. rapidata/api_client/api/leaderboard_api.py +2550 -0
  19. rapidata/api_client/api/newsletter_api.py +35 -34
  20. rapidata/api_client/api/order_api.py +1111 -787
  21. rapidata/api_client/api/participant_api.py +2181 -0
  22. rapidata/api_client/api/pipeline_api.py +156 -139
  23. rapidata/api_client/api/prompt_api.py +320 -0
  24. rapidata/api_client/api/rapid_api.py +1288 -189
  25. rapidata/api_client/api/rapidata_identity_api_api.py +5 -4
  26. rapidata/api_client/api/sample_api.py +300 -0
  27. rapidata/api_client/api/simple_workflow_api.py +47 -79
  28. rapidata/api_client/api/survey_api.py +304 -0
  29. rapidata/api_client/api/user_rapid_api.py +1389 -0
  30. rapidata/api_client/api/validation_set_api.py +3052 -0
  31. rapidata/api_client/api/workflow_api.py +410 -96
  32. rapidata/api_client/api_client.py +2 -2
  33. rapidata/api_client/configuration.py +16 -29
  34. rapidata/api_client/exceptions.py +2 -2
  35. rapidata/api_client/models/__init__.py +65 -260
  36. rapidata/api_client/models/ab_test_selection.py +122 -0
  37. rapidata/api_client/models/ab_test_selection_a_inner.py +240 -0
  38. rapidata/api_client/models/add_campaign_model.py +52 -11
  39. rapidata/api_client/models/add_campaign_model_user_filters_inner.py +224 -0
  40. rapidata/api_client/models/add_user_response_result.py +111 -0
  41. rapidata/api_client/models/add_user_response_result_validation_truth.py +258 -0
  42. rapidata/api_client/models/add_validation_rapid_model.py +61 -23
  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_payload.py +30 -16
  47. rapidata/api_client/models/add_validation_rapid_model_truth.py +65 -17
  48. rapidata/api_client/models/add_validation_rapid_new_model.py +137 -0
  49. rapidata/api_client/models/add_validation_rapid_new_model_asset.py +182 -0
  50. rapidata/api_client/models/add_validation_rapid_new_model_truth.py +286 -0
  51. rapidata/api_client/models/add_validation_text_rapid_model.py +14 -9
  52. rapidata/api_client/models/age_group.py +5 -4
  53. rapidata/api_client/models/age_user_filter_model.py +2 -2
  54. rapidata/api_client/models/age_user_filter_model_age_group.py +41 -0
  55. rapidata/api_client/models/aggregated_orders_model.py +98 -0
  56. rapidata/api_client/models/aggregator_type.py +5 -2
  57. rapidata/api_client/models/and_filter.py +121 -0
  58. rapidata/api_client/models/and_filter_filters_inner.py +282 -0
  59. rapidata/api_client/models/and_user_filter_model.py +106 -0
  60. rapidata/api_client/models/and_user_filter_model_filters_inner.py +282 -0
  61. rapidata/api_client/models/are_rapids_active_result.py +87 -0
  62. rapidata/api_client/models/asset_metadata.py +106 -0
  63. rapidata/api_client/models/asset_metadata_asset.py +170 -0
  64. rapidata/api_client/models/asset_metadata_model.py +96 -0
  65. rapidata/api_client/models/asset_metadata_model_asset.py +170 -0
  66. rapidata/api_client/models/asset_type.py +40 -0
  67. rapidata/api_client/models/attach_category_rapid_blueprint.py +13 -3
  68. rapidata/api_client/models/attach_category_rapid_blueprint_category.py +89 -0
  69. rapidata/api_client/models/audience_status.py +38 -0
  70. rapidata/api_client/models/base_error.py +1 -4
  71. rapidata/api_client/models/benchmark_query_result.py +98 -0
  72. rapidata/api_client/models/benchmark_query_result_paged_result.py +105 -0
  73. rapidata/api_client/models/boost_leaderboard_model.py +89 -0
  74. rapidata/api_client/models/boost_mode.py +37 -0
  75. rapidata/api_client/models/boost_query_result.py +97 -0
  76. rapidata/api_client/models/boost_query_result_boost_mode.py +37 -0
  77. rapidata/api_client/models/boost_query_result_boost_status.py +39 -0
  78. rapidata/api_client/models/boost_status.py +39 -0
  79. rapidata/api_client/models/boosting_profile.py +89 -0
  80. rapidata/api_client/models/box_shape.py +4 -33
  81. rapidata/api_client/models/campaign_filter.py +98 -0
  82. rapidata/api_client/models/campaign_query_result.py +107 -0
  83. rapidata/api_client/models/campaign_query_result_paged_result.py +105 -0
  84. rapidata/api_client/models/campaign_status.py +4 -2
  85. rapidata/api_client/models/capped_selection.py +3 -3
  86. rapidata/api_client/models/change_boost_model.py +89 -0
  87. rapidata/api_client/models/classification_metadata.py +14 -5
  88. rapidata/api_client/models/classification_metadata_model.py +2 -4
  89. rapidata/api_client/models/classify_payload.py +14 -15
  90. rapidata/api_client/models/classify_payload_category.py +89 -0
  91. rapidata/api_client/models/client_model.py +181 -0
  92. rapidata/api_client/models/clients_query_result.py +2 -2
  93. rapidata/api_client/models/clone_order_model.py +6 -8
  94. rapidata/api_client/models/clone_order_result.py +9 -4
  95. rapidata/api_client/models/compare_match_status.py +39 -0
  96. rapidata/api_client/models/compare_rapid_blueprint.py +5 -3
  97. rapidata/api_client/models/compare_rapid_blueprint1.py +96 -0
  98. rapidata/api_client/models/compare_result.py +4 -4
  99. rapidata/api_client/models/compare_workflow_config.py +31 -22
  100. rapidata/api_client/models/compare_workflow_config_context_asset.py +174 -0
  101. rapidata/api_client/models/compare_workflow_config_metadata_value.py +296 -0
  102. rapidata/api_client/models/compare_workflow_config_model.py +32 -29
  103. rapidata/api_client/models/compare_workflow_config_model_pair_maker_config.py +126 -0
  104. rapidata/api_client/models/compare_workflow_config_pair_maker_config.py +126 -0
  105. rapidata/api_client/models/compare_workflow_model.py +59 -14
  106. rapidata/api_client/models/compare_workflow_model1.py +32 -19
  107. rapidata/api_client/models/compare_workflow_model1_pair_maker_information.py +126 -0
  108. rapidata/api_client/models/compare_workflow_model_context_asset.py +160 -0
  109. rapidata/api_client/models/compare_workflow_model_metadata_inner.py +154 -0
  110. rapidata/api_client/models/compare_workflow_model_pair_maker_config.py +126 -0
  111. rapidata/api_client/models/comparison_operator.py +41 -0
  112. rapidata/api_client/models/conditional_validation_selection.py +9 -5
  113. rapidata/api_client/models/conditional_validation_selection_validation_chance.py +103 -0
  114. rapidata/api_client/models/confidence_interval.py +89 -0
  115. rapidata/api_client/models/coordinate.py +2 -2
  116. rapidata/api_client/models/count_metadata.py +13 -4
  117. rapidata/api_client/models/count_metadata_model.py +2 -4
  118. rapidata/api_client/models/country_filter.py +98 -0
  119. rapidata/api_client/models/create_audience_request.py +99 -0
  120. rapidata/api_client/models/create_audience_result.py +87 -0
  121. rapidata/api_client/models/create_benchmark_model.py +87 -0
  122. rapidata/api_client/models/create_benchmark_participant_model.py +87 -0
  123. rapidata/api_client/models/create_benchmark_participant_result.py +89 -0
  124. rapidata/api_client/models/create_benchmark_prompt_result.py +87 -0
  125. rapidata/api_client/models/create_benchmark_result.py +87 -0
  126. rapidata/api_client/models/create_bridge_token_result.py +2 -2
  127. rapidata/api_client/models/create_client_model.py +6 -13
  128. rapidata/api_client/models/create_complex_order_model.py +9 -9
  129. rapidata/api_client/models/create_complex_order_result.py +6 -4
  130. rapidata/api_client/models/create_customer_client_result.py +89 -0
  131. rapidata/api_client/models/create_datapoint_from_files_model.py +102 -0
  132. rapidata/api_client/models/create_datapoint_from_files_model_metadata_inner.py +182 -0
  133. rapidata/api_client/models/create_datapoint_from_text_sources_model.py +109 -0
  134. rapidata/api_client/models/create_datapoint_from_urls_model.py +109 -0
  135. rapidata/api_client/models/create_datapoint_from_urls_model_metadata_inner.py +168 -0
  136. rapidata/api_client/models/create_datapoint_model.py +134 -0
  137. rapidata/api_client/models/create_datapoint_model_asset.py +154 -0
  138. rapidata/api_client/models/create_datapoint_model_context_asset.py +160 -0
  139. rapidata/api_client/models/create_datapoint_model_metadata_inner.py +154 -0
  140. rapidata/api_client/models/create_datapoint_result.py +87 -0
  141. rapidata/api_client/models/create_datapoints_from_s3_bucket_model.py +124 -0
  142. rapidata/api_client/models/create_demographic_rapid_model.py +45 -7
  143. rapidata/api_client/models/create_demographic_rapid_model_asset.py +160 -0
  144. rapidata/api_client/models/create_demographic_rapid_model_context_asset.py +160 -0
  145. rapidata/api_client/models/create_demographic_rapid_model_new.py +119 -0
  146. rapidata/api_client/models/create_empty_validation_set_result.py +2 -2
  147. rapidata/api_client/models/create_leaderboard_model.py +140 -0
  148. rapidata/api_client/models/create_leaderboard_participant_model.py +87 -0
  149. rapidata/api_client/models/create_leaderboard_participant_result.py +89 -0
  150. rapidata/api_client/models/create_leaderboard_result.py +99 -0
  151. rapidata/api_client/models/create_order_model.py +41 -52
  152. rapidata/api_client/models/create_order_model_referee.py +12 -12
  153. rapidata/api_client/models/create_order_model_user_filters_inner.py +83 -11
  154. rapidata/api_client/models/create_order_model_workflow.py +35 -21
  155. rapidata/api_client/models/create_order_result.py +6 -4
  156. rapidata/api_client/models/create_rapid_result.py +87 -0
  157. rapidata/api_client/models/create_sample_model.py +93 -0
  158. rapidata/api_client/models/create_sample_model_asset.py +154 -0
  159. rapidata/api_client/models/create_sample_model_obsolete.py +87 -0
  160. rapidata/api_client/models/create_simple_pipeline_model_pipeline_steps_inner.py +8 -22
  161. rapidata/api_client/models/create_unsupported_order_model.py +6 -6
  162. rapidata/api_client/models/create_validation_set_model.py +87 -0
  163. rapidata/api_client/models/custom_user_filter_model.py +98 -0
  164. rapidata/api_client/models/datapoint.py +12 -28
  165. rapidata/api_client/models/datapoint_asset.py +40 -40
  166. rapidata/api_client/models/datapoint_metadata_model.py +13 -6
  167. rapidata/api_client/models/datapoint_model_paged_result.py +105 -0
  168. rapidata/api_client/models/datapoint_state.py +38 -0
  169. rapidata/api_client/models/dataset_dataset_id_datapoints_post_request_metadata_inner.py +182 -0
  170. rapidata/api_client/models/demographic.py +89 -0
  171. rapidata/api_client/models/demographic_filter.py +100 -0
  172. rapidata/api_client/models/demographic_metadata_model.py +18 -9
  173. rapidata/api_client/models/dynamic_client_registration_request.py +160 -0
  174. rapidata/api_client/models/early_stopping_referee_model.py +3 -3
  175. rapidata/api_client/models/effort_capped_selection.py +106 -0
  176. rapidata/api_client/models/elo_config.py +91 -0
  177. rapidata/api_client/models/elo_config_model.py +91 -0
  178. rapidata/api_client/models/entity_tag_header_value.py +93 -0
  179. rapidata/api_client/models/evaluation_workflow_config.py +13 -3
  180. rapidata/api_client/models/evaluation_workflow_model.py +16 -6
  181. rapidata/api_client/models/evaluation_workflow_model1.py +115 -0
  182. rapidata/api_client/models/existing_asset_input.py +120 -0
  183. rapidata/api_client/models/existing_asset_input_metadata_value.py +126 -0
  184. rapidata/api_client/models/feature_flag.py +2 -2
  185. rapidata/api_client/models/feature_flag_model.py +6 -6
  186. rapidata/api_client/models/feedback_model.py +7 -7
  187. rapidata/api_client/models/file_asset.py +15 -12
  188. rapidata/api_client/models/file_asset_input.py +104 -0
  189. rapidata/api_client/models/file_asset_input1.py +104 -0
  190. rapidata/api_client/models/file_asset_input1_file.py +168 -0
  191. rapidata/api_client/models/file_asset_input2.py +104 -0
  192. rapidata/api_client/models/file_asset_input3.py +104 -0
  193. rapidata/api_client/models/file_asset_input_file.py +168 -0
  194. rapidata/api_client/models/file_asset_metadata_value.py +252 -0
  195. rapidata/api_client/models/file_asset_model.py +18 -13
  196. rapidata/api_client/models/file_asset_model_metadata_inner.py +8 -22
  197. rapidata/api_client/models/file_asset_model_metadata_value.py +252 -0
  198. rapidata/api_client/models/file_stream_result.py +122 -0
  199. rapidata/api_client/models/file_type.py +39 -0
  200. rapidata/api_client/models/file_type_metadata.py +110 -0
  201. rapidata/api_client/models/file_type_metadata_model.py +97 -0
  202. rapidata/api_client/models/filter.py +7 -25
  203. rapidata/api_client/models/filter_operator.py +3 -2
  204. rapidata/api_client/models/fork_benchmark_result.py +87 -0
  205. rapidata/api_client/models/form_file_wrapper.py +135 -0
  206. rapidata/api_client/models/free_text_payload.py +10 -3
  207. rapidata/api_client/models/free_text_rapid_blueprint.py +10 -3
  208. rapidata/api_client/models/gender_user_filter_model.py +2 -2
  209. rapidata/api_client/models/gender_user_filter_model_gender.py +38 -0
  210. rapidata/api_client/models/get_asset_metadata_result.py +100 -0
  211. rapidata/api_client/models/get_audience_by_id_result.py +111 -0
  212. rapidata/api_client/models/get_available_validation_sets_result.py +2 -2
  213. rapidata/api_client/models/get_benchmark_by_id_query.py +96 -0
  214. rapidata/api_client/models/get_benchmark_by_id_query_result.py +94 -0
  215. rapidata/api_client/models/get_benchmark_by_id_query_result_paged_result.py +105 -0
  216. rapidata/api_client/models/get_benchmark_by_id_result.py +96 -0
  217. rapidata/api_client/models/get_boost_result.py +97 -0
  218. rapidata/api_client/models/get_boost_result_boost_mode.py +37 -0
  219. rapidata/api_client/models/get_boost_result_boost_status.py +39 -0
  220. rapidata/api_client/models/get_classify_workflow_result_overview_result.py +144 -0
  221. rapidata/api_client/models/get_compare_ab_summary_result.py +87 -0
  222. rapidata/api_client/models/get_compare_workflow_results_model.py +106 -0
  223. rapidata/api_client/models/get_compare_workflow_results_result.py +95 -0
  224. rapidata/api_client/models/get_compare_workflow_results_result_asset.py +170 -0
  225. rapidata/api_client/models/get_compare_workflow_results_result_paged_result.py +105 -0
  226. rapidata/api_client/models/get_datapoint_by_id_result.py +103 -0
  227. rapidata/api_client/models/get_datapoint_by_id_result_asset.py +170 -0
  228. rapidata/api_client/models/get_dataset_by_id_result.py +2 -2
  229. rapidata/api_client/models/get_dataset_progress_result.py +93 -0
  230. rapidata/api_client/models/get_evaluation_workflow_results_model.py +119 -0
  231. rapidata/api_client/models/get_failed_datapoints_result.py +95 -0
  232. rapidata/api_client/models/get_failed_datapoints_result_datapoint.py +100 -0
  233. rapidata/api_client/models/get_file_metadata_result.py +100 -0
  234. rapidata/api_client/models/get_grouped_ranking_workflow_results_model.py +106 -0
  235. rapidata/api_client/models/get_grouped_ranking_workflow_results_result.py +97 -0
  236. rapidata/api_client/models/get_grouped_ranking_workflow_results_result_paged_result.py +105 -0
  237. rapidata/api_client/models/get_leaderboard_by_id_result.py +135 -0
  238. rapidata/api_client/models/get_order_by_id_result.py +12 -5
  239. rapidata/api_client/models/get_participant_by_id_result.py +91 -0
  240. rapidata/api_client/models/get_pipeline_by_id_result.py +18 -8
  241. rapidata/api_client/models/get_public_orders_result.py +2 -2
  242. rapidata/api_client/models/get_public_responses_result.py +95 -0
  243. rapidata/api_client/models/get_public_responses_result_response.py +112 -0
  244. rapidata/api_client/models/get_rapid_responses_result.py +106 -0
  245. rapidata/api_client/models/get_recommended_validation_set_result.py +95 -0
  246. rapidata/api_client/models/get_responses_for_rapid_result.py +106 -0
  247. rapidata/api_client/models/get_responses_for_rapid_result_response.py +103 -0
  248. rapidata/api_client/models/get_responses_for_rapid_result_response_result.py +266 -0
  249. rapidata/api_client/models/get_responses_result.py +95 -0
  250. rapidata/api_client/models/get_responses_result_response.py +103 -0
  251. rapidata/api_client/models/get_sample_by_id_result.py +125 -0
  252. rapidata/api_client/models/get_simple_workflow_results_model.py +119 -0
  253. rapidata/api_client/models/get_simple_workflow_results_result.py +118 -0
  254. rapidata/api_client/models/get_simple_workflow_results_result_paged_result.py +105 -0
  255. rapidata/api_client/models/get_standing_by_id_result.py +96 -0
  256. rapidata/api_client/models/get_validation_rapids_query.py +123 -0
  257. rapidata/api_client/models/get_validation_rapids_query_paged_result.py +105 -0
  258. rapidata/api_client/models/get_validation_rapids_result.py +150 -0
  259. rapidata/api_client/models/get_validation_rapids_result_asset.py +174 -0
  260. rapidata/api_client/models/get_validation_rapids_result_paged_result.py +105 -0
  261. rapidata/api_client/models/get_validation_rapids_result_payload.py +252 -0
  262. rapidata/api_client/models/get_validation_rapids_result_truth.py +286 -0
  263. rapidata/api_client/models/get_validation_set_by_id_result.py +10 -4
  264. rapidata/api_client/models/get_workflow_by_id_result.py +5 -5
  265. rapidata/api_client/models/get_workflow_by_id_result_workflow.py +37 -9
  266. rapidata/api_client/models/get_workflow_progress_result.py +5 -11
  267. rapidata/api_client/models/get_workflow_results_result.py +129 -0
  268. rapidata/api_client/models/get_workflow_results_result_paged_result.py +105 -0
  269. rapidata/api_client/models/get_workflow_results_result_response.py +103 -0
  270. rapidata/api_client/models/google_one_tap_login_model.py +87 -0
  271. rapidata/api_client/models/grouped_ranking_workflow_config.py +155 -0
  272. rapidata/api_client/models/grouped_ranking_workflow_config_context_assets_value.py +170 -0
  273. rapidata/api_client/models/grouped_ranking_workflow_model.py +147 -0
  274. rapidata/api_client/models/grouped_ranking_workflow_model1.py +121 -0
  275. rapidata/api_client/models/i_artifact_model.py +182 -0
  276. rapidata/api_client/models/i_artifact_model_campaign_artifact_model.py +98 -0
  277. rapidata/api_client/models/i_artifact_model_dataset_artifact_model.py +98 -0
  278. rapidata/api_client/models/i_artifact_model_file_artifact_model.py +98 -0
  279. rapidata/api_client/models/i_artifact_model_workflow_artifact_model.py +98 -0
  280. rapidata/api_client/models/i_artifact_model_workflow_config_artifact_model.py +102 -0
  281. rapidata/api_client/models/i_asset.py +170 -0
  282. rapidata/api_client/models/i_asset_file_asset.py +111 -0
  283. rapidata/api_client/models/i_asset_input.py +156 -0
  284. rapidata/api_client/models/i_asset_input_existing_asset_input.py +118 -0
  285. rapidata/api_client/models/i_asset_input_multi_asset_input.py +128 -0
  286. rapidata/api_client/models/i_asset_input_text_asset_input.py +118 -0
  287. rapidata/api_client/models/i_asset_model.py +170 -0
  288. rapidata/api_client/models/i_asset_model_file_asset_model.py +113 -0
  289. rapidata/api_client/models/i_asset_model_multi_asset_model.py +123 -0
  290. rapidata/api_client/models/i_asset_model_null_asset_model.py +111 -0
  291. rapidata/api_client/models/i_asset_model_text_asset_model.py +113 -0
  292. rapidata/api_client/models/i_asset_multi_asset.py +121 -0
  293. rapidata/api_client/models/i_asset_null_asset.py +109 -0
  294. rapidata/api_client/models/i_asset_text_asset.py +111 -0
  295. rapidata/api_client/models/i_campaign_filter.py +282 -0
  296. rapidata/api_client/models/i_campaign_filter_and_filter.py +117 -0
  297. rapidata/api_client/models/i_campaign_filter_campaign_filter.py +98 -0
  298. rapidata/api_client/models/i_campaign_filter_country_filter.py +98 -0
  299. rapidata/api_client/models/i_campaign_filter_demographic_filter.py +100 -0
  300. rapidata/api_client/models/i_campaign_filter_language_filter.py +98 -0
  301. rapidata/api_client/models/i_campaign_filter_new_user_filter.py +96 -0
  302. rapidata/api_client/models/i_campaign_filter_not_filter.py +113 -0
  303. rapidata/api_client/models/i_campaign_filter_or_filter.py +117 -0
  304. rapidata/api_client/models/i_campaign_filter_response_count_filter.py +103 -0
  305. rapidata/api_client/models/i_campaign_filter_user_action_restriction_filter.py +106 -0
  306. rapidata/api_client/models/i_campaign_filter_user_score_filter.py +102 -0
  307. rapidata/api_client/models/i_campaign_filter_user_state_filter.py +106 -0
  308. rapidata/api_client/models/i_dataset_metadata_input.py +154 -0
  309. rapidata/api_client/models/i_dataset_metadata_input_prompt_asset_metadata_input.py +100 -0
  310. rapidata/api_client/models/i_dataset_metadata_input_prompt_metadata_input.py +96 -0
  311. rapidata/api_client/models/i_dataset_metadata_input_transcription_metadata_input.py +96 -0
  312. rapidata/api_client/models/i_dataset_model.py +126 -0
  313. rapidata/api_client/models/i_dataset_model_clone_dataset_model.py +98 -0
  314. rapidata/api_client/models/i_metadata.py +252 -0
  315. rapidata/api_client/models/i_metadata_classification_metadata.py +109 -0
  316. rapidata/api_client/models/i_metadata_count_metadata.py +109 -0
  317. rapidata/api_client/models/i_metadata_file_type_metadata.py +110 -0
  318. rapidata/api_client/models/i_metadata_image_dimension_metadata.py +111 -0
  319. rapidata/api_client/models/i_metadata_input.py +126 -0
  320. rapidata/api_client/models/i_metadata_input_text_metadata_input.py +111 -0
  321. rapidata/api_client/models/i_metadata_location_metadata.py +111 -0
  322. rapidata/api_client/models/i_metadata_model.py +252 -0
  323. rapidata/api_client/models/i_metadata_model_classification_metadata_model.py +96 -0
  324. rapidata/api_client/models/i_metadata_model_count_metadata_model.py +96 -0
  325. rapidata/api_client/models/i_metadata_model_file_type_metadata_model.py +97 -0
  326. rapidata/api_client/models/i_metadata_model_image_dimension_metadata_model.py +98 -0
  327. rapidata/api_client/models/i_metadata_model_location_metadata_model.py +98 -0
  328. rapidata/api_client/models/i_metadata_model_original_filename_metadata_model.py +96 -0
  329. rapidata/api_client/models/i_metadata_model_source_url_metadata_model.py +96 -0
  330. rapidata/api_client/models/i_metadata_model_streams_metadata_model.py +100 -0
  331. rapidata/api_client/models/i_metadata_model_text_metadata_model.py +101 -0
  332. rapidata/api_client/models/i_metadata_model_video_duration_metadata_model.py +97 -0
  333. rapidata/api_client/models/i_metadata_original_filename_metadata.py +109 -0
  334. rapidata/api_client/models/i_metadata_source_url_metadata.py +109 -0
  335. rapidata/api_client/models/i_metadata_streams_metadata.py +113 -0
  336. rapidata/api_client/models/i_metadata_text_metadata.py +114 -0
  337. rapidata/api_client/models/i_metadata_video_duration_metadata.py +110 -0
  338. rapidata/api_client/models/i_order_workflow_model.py +168 -0
  339. rapidata/api_client/models/i_order_workflow_model_compare_workflow_model.py +146 -0
  340. rapidata/api_client/models/i_order_workflow_model_evaluation_workflow_model.py +108 -0
  341. rapidata/api_client/models/i_order_workflow_model_grouped_ranking_workflow_model.py +147 -0
  342. rapidata/api_client/models/i_order_workflow_model_simple_workflow_model.py +110 -0
  343. rapidata/api_client/models/i_pair_maker_config.py +126 -0
  344. rapidata/api_client/models/i_pair_maker_config_model.py +126 -0
  345. rapidata/api_client/models/i_pair_maker_config_model_online_pair_maker_config_model.py +98 -0
  346. rapidata/api_client/models/i_pair_maker_config_online_pair_maker_config.py +98 -0
  347. rapidata/api_client/models/i_pair_maker_information.py +126 -0
  348. rapidata/api_client/models/i_pair_maker_information_online_pair_maker_information.py +100 -0
  349. rapidata/api_client/models/i_pipeline_artifact_model.py +126 -0
  350. rapidata/api_client/models/i_pipeline_artifact_model_create_dataset_artifact_model.py +102 -0
  351. rapidata/api_client/models/i_pipeline_model.py +126 -0
  352. rapidata/api_client/models/i_pipeline_model_create_simple_pipeline_model.py +116 -0
  353. rapidata/api_client/models/i_pipeline_step_model.py +168 -0
  354. rapidata/api_client/models/i_pipeline_step_model_dataset_evaluation_step_model.py +102 -0
  355. rapidata/api_client/models/i_pipeline_step_model_send_completion_mail_step_model.py +98 -0
  356. rapidata/api_client/models/i_pipeline_step_model_workflow_aggregation_step_model.py +103 -0
  357. rapidata/api_client/models/i_pipeline_step_model_workflow_labeling_step_model.py +96 -0
  358. rapidata/api_client/models/i_rapid_blueprint.py +252 -0
  359. rapidata/api_client/models/i_rapid_blueprint_attach_category_rapid_blueprint.py +108 -0
  360. rapidata/api_client/models/i_rapid_blueprint_bounding_box_rapid_blueprint.py +96 -0
  361. rapidata/api_client/models/i_rapid_blueprint_compare_rapid_blueprint.py +98 -0
  362. rapidata/api_client/models/i_rapid_blueprint_free_text_rapid_blueprint.py +103 -0
  363. rapidata/api_client/models/i_rapid_blueprint_line_rapid_blueprint.py +96 -0
  364. rapidata/api_client/models/i_rapid_blueprint_locate_rapid_blueprint.py +96 -0
  365. rapidata/api_client/models/i_rapid_blueprint_named_entity_rapid_blueprint.py +98 -0
  366. rapidata/api_client/models/i_rapid_blueprint_polygon_rapid_blueprint.py +96 -0
  367. rapidata/api_client/models/i_rapid_blueprint_scrub_rapid_blueprint.py +96 -0
  368. rapidata/api_client/models/i_rapid_blueprint_transcription_rapid_blueprint.py +96 -0
  369. rapidata/api_client/models/i_rapid_payload.py +252 -0
  370. rapidata/api_client/models/i_rapid_payload_bounding_box_payload.py +96 -0
  371. rapidata/api_client/models/i_rapid_payload_classify_payload.py +106 -0
  372. rapidata/api_client/models/i_rapid_payload_compare_payload.py +96 -0
  373. rapidata/api_client/models/i_rapid_payload_free_text_payload.py +103 -0
  374. rapidata/api_client/models/i_rapid_payload_line_payload.py +96 -0
  375. rapidata/api_client/models/i_rapid_payload_locate_payload.py +96 -0
  376. rapidata/api_client/models/i_rapid_payload_named_entity_payload.py +98 -0
  377. rapidata/api_client/models/i_rapid_payload_polygon_payload.py +96 -0
  378. rapidata/api_client/models/i_rapid_payload_scrub_payload.py +96 -0
  379. rapidata/api_client/models/i_rapid_payload_transcription_payload.py +106 -0
  380. rapidata/api_client/models/i_rapid_result.py +266 -0
  381. rapidata/api_client/models/i_rapid_result_attach_category_result.py +98 -0
  382. rapidata/api_client/models/i_rapid_result_bounding_box_result.py +106 -0
  383. rapidata/api_client/models/i_rapid_result_compare_result.py +98 -0
  384. rapidata/api_client/models/i_rapid_result_free_text_result.py +98 -0
  385. rapidata/api_client/models/i_rapid_result_line_result.py +106 -0
  386. rapidata/api_client/models/i_rapid_result_locate_result.py +106 -0
  387. rapidata/api_client/models/i_rapid_result_named_entity_result.py +106 -0
  388. rapidata/api_client/models/i_rapid_result_polygon_result.py +106 -0
  389. rapidata/api_client/models/i_rapid_result_scrub_result.py +98 -0
  390. rapidata/api_client/models/i_rapid_result_skip_result.py +96 -0
  391. rapidata/api_client/models/i_rapid_result_transcription_result.py +106 -0
  392. rapidata/api_client/models/i_referee_config.py +154 -0
  393. rapidata/api_client/models/i_referee_config_naive_referee_config.py +96 -0
  394. rapidata/api_client/models/i_referee_config_never_ending_referee_config.py +94 -0
  395. rapidata/api_client/models/i_referee_config_probabilistic_attach_category_referee_config.py +98 -0
  396. rapidata/api_client/models/i_referee_info.py +154 -0
  397. rapidata/api_client/models/i_referee_info_naive_referee_info.py +96 -0
  398. rapidata/api_client/models/i_referee_info_never_ending_referee_info.py +94 -0
  399. rapidata/api_client/models/i_referee_info_probabilistic_attach_category_referee_info.py +98 -0
  400. rapidata/api_client/models/i_referee_model.py +140 -0
  401. rapidata/api_client/models/i_referee_model_early_stopping_referee_model.py +98 -0
  402. rapidata/api_client/models/i_referee_model_naive_referee_model.py +96 -0
  403. rapidata/api_client/models/i_selection.py +240 -0
  404. rapidata/api_client/models/i_selection_ab_test_selection.py +122 -0
  405. rapidata/api_client/models/i_selection_capped_selection.py +108 -0
  406. rapidata/api_client/models/i_selection_conditional_validation_selection.py +110 -0
  407. rapidata/api_client/models/i_selection_demographic_selection.py +98 -0
  408. rapidata/api_client/models/i_selection_effort_capped_selection.py +101 -0
  409. rapidata/api_client/models/i_selection_labeling_selection.py +103 -0
  410. rapidata/api_client/models/i_selection_shuffling_selection.py +106 -0
  411. rapidata/api_client/models/i_selection_static_selection.py +96 -0
  412. rapidata/api_client/models/i_selection_validation_selection.py +98 -0
  413. rapidata/api_client/models/i_user_filter_model.py +282 -0
  414. rapidata/api_client/models/i_user_filter_model_age_user_filter_model.py +104 -0
  415. rapidata/api_client/models/i_user_filter_model_and_user_filter_model.py +106 -0
  416. rapidata/api_client/models/i_user_filter_model_campaign_user_filter_model.py +96 -0
  417. rapidata/api_client/models/i_user_filter_model_country_user_filter_model.py +96 -0
  418. rapidata/api_client/models/i_user_filter_model_custom_user_filter_model.py +98 -0
  419. rapidata/api_client/models/i_user_filter_model_gender_user_filter_model.py +104 -0
  420. rapidata/api_client/models/i_user_filter_model_language_user_filter_model.py +96 -0
  421. rapidata/api_client/models/i_user_filter_model_new_user_filter_model.py +94 -0
  422. rapidata/api_client/models/i_user_filter_model_not_user_filter_model.py +102 -0
  423. rapidata/api_client/models/i_user_filter_model_or_user_filter_model.py +106 -0
  424. rapidata/api_client/models/i_user_filter_model_response_count_user_filter_model.py +101 -0
  425. rapidata/api_client/models/i_user_filter_model_user_score_user_filter_model.py +105 -0
  426. rapidata/api_client/models/i_validation_metadata_input.py +140 -0
  427. rapidata/api_client/models/i_validation_metadata_input_prompt_asset_metadata_input.py +100 -0
  428. rapidata/api_client/models/i_validation_metadata_input_prompt_metadata_input.py +96 -0
  429. rapidata/api_client/models/i_validation_truth.py +280 -0
  430. rapidata/api_client/models/i_validation_truth_attach_category_truth.py +96 -0
  431. rapidata/api_client/models/i_validation_truth_bounding_box_truth.py +102 -0
  432. rapidata/api_client/models/i_validation_truth_compare_truth.py +96 -0
  433. rapidata/api_client/models/i_validation_truth_empty_validation_truth.py +94 -0
  434. rapidata/api_client/models/i_validation_truth_line_truth.py +94 -0
  435. rapidata/api_client/models/i_validation_truth_locate_box_truth.py +104 -0
  436. rapidata/api_client/models/i_validation_truth_multi_compare_truth.py +96 -0
  437. rapidata/api_client/models/i_validation_truth_named_entity_truth.py +104 -0
  438. rapidata/api_client/models/i_validation_truth_polygon_truth.py +94 -0
  439. rapidata/api_client/models/i_validation_truth_scrub_truth.py +104 -0
  440. rapidata/api_client/models/i_validation_truth_skip_truth.py +94 -0
  441. rapidata/api_client/models/i_validation_truth_transcription_truth.py +115 -0
  442. rapidata/api_client/models/i_workflow_config.py +168 -0
  443. rapidata/api_client/models/i_workflow_config_compare_workflow_config.py +142 -0
  444. rapidata/api_client/models/i_workflow_config_evaluation_workflow_config.py +114 -0
  445. rapidata/api_client/models/i_workflow_config_grouped_ranking_workflow_config.py +155 -0
  446. rapidata/api_client/models/i_workflow_config_simple_workflow_config.py +116 -0
  447. rapidata/api_client/models/i_workflow_model.py +168 -0
  448. rapidata/api_client/models/i_workflow_model_compare_workflow_model.py +145 -0
  449. rapidata/api_client/models/i_workflow_model_evaluation_workflow_model.py +115 -0
  450. rapidata/api_client/models/i_workflow_model_grouped_ranking_workflow_model.py +121 -0
  451. rapidata/api_client/models/i_workflow_model_simple_workflow_model.py +119 -0
  452. rapidata/api_client/models/identity_read_bridge_token_get202_response.py +140 -0
  453. rapidata/api_client/models/image_dimension_metadata.py +13 -4
  454. rapidata/api_client/models/image_dimension_metadata_model.py +2 -4
  455. rapidata/api_client/models/inquire_file_metadata_result.py +100 -0
  456. rapidata/api_client/models/inspect_report_result.py +92 -0
  457. rapidata/api_client/models/json_web_key.py +224 -0
  458. rapidata/api_client/models/json_web_key_set.py +95 -0
  459. rapidata/api_client/models/labeling_selection.py +21 -4
  460. rapidata/api_client/models/language_filter.py +98 -0
  461. rapidata/api_client/models/leaderboard_query_result.py +135 -0
  462. rapidata/api_client/models/leaderboard_query_result_paged_result.py +105 -0
  463. rapidata/api_client/models/leaderboards_query_result.py +135 -0
  464. rapidata/api_client/models/line_result.py +3 -3
  465. rapidata/api_client/models/line_result_line.py +97 -0
  466. rapidata/api_client/models/line_result_line_point.py +89 -0
  467. rapidata/api_client/models/local_file_wrapper.py +120 -0
  468. rapidata/api_client/models/locate_coordinate.py +4 -13
  469. rapidata/api_client/models/location_metadata.py +14 -5
  470. rapidata/api_client/models/location_metadata_model.py +2 -4
  471. rapidata/api_client/models/logic_operator.py +3 -2
  472. rapidata/api_client/models/metadata_i_order_metadata_input.py +154 -0
  473. rapidata/api_client/models/metadata_i_order_metadata_input_metadata_prompt_asset_metadata_input.py +100 -0
  474. rapidata/api_client/models/metadata_i_order_metadata_input_metadata_prompt_metadata_input.py +96 -0
  475. rapidata/api_client/models/metadata_i_order_metadata_input_metadata_transcription_metadata_input.py +96 -0
  476. rapidata/api_client/models/metadata_prompt_asset_metadata_input.py +100 -0
  477. rapidata/api_client/models/metadata_prompt_metadata_input.py +96 -0
  478. rapidata/api_client/models/metadata_transcription_metadata_input.py +96 -0
  479. rapidata/api_client/models/metadata_visibilities.py +1 -0
  480. rapidata/api_client/models/multi_asset.py +17 -12
  481. rapidata/api_client/models/multi_asset_assets_inner.py +170 -0
  482. rapidata/api_client/models/multi_asset_input.py +130 -0
  483. rapidata/api_client/models/multi_asset_input1.py +110 -0
  484. rapidata/api_client/models/multi_asset_input1_assets_inner.py +198 -0
  485. rapidata/api_client/models/multi_asset_input2.py +110 -0
  486. rapidata/api_client/models/multi_asset_input3.py +110 -0
  487. rapidata/api_client/models/multi_asset_input3_assets_inner.py +198 -0
  488. rapidata/api_client/models/multi_asset_input_assets_inner.py +156 -0
  489. rapidata/api_client/models/multi_asset_model.py +21 -16
  490. rapidata/api_client/models/multi_asset_model2.py +3 -3
  491. rapidata/api_client/models/multi_compare_truth.py +96 -0
  492. rapidata/api_client/models/naive_referee_info.py +96 -0
  493. rapidata/api_client/models/naive_referee_model.py +2 -2
  494. rapidata/api_client/models/named_classification.py +4 -13
  495. rapidata/api_client/models/never_ending_referee_info.py +94 -0
  496. rapidata/api_client/models/new_user_filter.py +96 -0
  497. rapidata/api_client/models/new_user_filter_model.py +94 -0
  498. rapidata/api_client/models/new_user_filter_model1.py +94 -0
  499. rapidata/api_client/models/newsletter_model.py +6 -6
  500. rapidata/api_client/models/not_available_yet_result.py +87 -0
  501. rapidata/api_client/models/not_filter.py +117 -0
  502. rapidata/api_client/models/not_user_filter_model.py +102 -0
  503. rapidata/api_client/models/null_asset.py +14 -9
  504. rapidata/api_client/models/null_asset_model.py +18 -13
  505. rapidata/api_client/models/online_pair_maker_config.py +98 -0
  506. rapidata/api_client/models/online_pair_maker_config_model.py +98 -0
  507. rapidata/api_client/models/online_pair_maker_information.py +100 -0
  508. rapidata/api_client/models/or_filter.py +121 -0
  509. rapidata/api_client/models/or_user_filter_model.py +106 -0
  510. rapidata/api_client/models/order_model.py +16 -13
  511. rapidata/api_client/models/order_state.py +3 -2
  512. rapidata/api_client/models/original_filename_metadata.py +14 -5
  513. rapidata/api_client/models/original_filename_metadata_model.py +2 -4
  514. rapidata/api_client/models/page_info.py +2 -7
  515. rapidata/api_client/models/paged_result_aggregated_orders_model.py +105 -0
  516. rapidata/api_client/models/paged_result_benchmark_query_result.py +105 -0
  517. rapidata/api_client/models/paged_result_campaign_query_result.py +105 -0
  518. rapidata/api_client/models/paged_result_clients_query_result.py +105 -0
  519. rapidata/api_client/models/paged_result_datapoint_model.py +105 -0
  520. rapidata/api_client/models/paged_result_get_compare_workflow_results_result.py +105 -0
  521. rapidata/api_client/models/paged_result_get_grouped_ranking_workflow_results_result.py +105 -0
  522. rapidata/api_client/models/paged_result_get_validation_rapids_result.py +105 -0
  523. rapidata/api_client/models/paged_result_get_workflow_results_result.py +105 -0
  524. rapidata/api_client/models/paged_result_i_workflow_model.py +105 -0
  525. rapidata/api_client/models/paged_result_leaderboard_query_result.py +105 -0
  526. rapidata/api_client/models/paged_result_leaderboards_query_result.py +105 -0
  527. rapidata/api_client/models/paged_result_of_aggregated_orders_model.py +103 -0
  528. rapidata/api_client/models/paged_result_of_benchmark_query_result.py +103 -0
  529. rapidata/api_client/models/paged_result_of_campaign_query_result.py +103 -0
  530. rapidata/api_client/models/paged_result_of_clients_query_result.py +103 -0
  531. rapidata/api_client/models/paged_result_of_get_compare_workflow_results_result.py +103 -0
  532. rapidata/api_client/models/paged_result_of_get_grouped_ranking_workflow_results_result.py +103 -0
  533. rapidata/api_client/models/paged_result_of_get_validation_rapids_result.py +103 -0
  534. rapidata/api_client/models/paged_result_of_get_workflow_results_result.py +103 -0
  535. rapidata/api_client/models/paged_result_of_i_workflow_model.py +103 -0
  536. rapidata/api_client/models/paged_result_of_leaderboards_query_result.py +103 -0
  537. rapidata/api_client/models/paged_result_of_order_model.py +103 -0
  538. rapidata/api_client/models/paged_result_of_participant_by_benchmark.py +103 -0
  539. rapidata/api_client/models/paged_result_of_prompt_by_benchmark_result.py +103 -0
  540. rapidata/api_client/models/paged_result_of_query_audiences_result.py +103 -0
  541. rapidata/api_client/models/paged_result_of_query_datapoints_by_dataset_id_result.py +103 -0
  542. rapidata/api_client/models/paged_result_of_query_validation_rapid_eligibility_result.py +103 -0
  543. rapidata/api_client/models/paged_result_of_rapid_model.py +103 -0
  544. rapidata/api_client/models/paged_result_of_runs_by_leaderboard_result.py +103 -0
  545. rapidata/api_client/models/paged_result_of_sample_by_identifier.py +103 -0
  546. rapidata/api_client/models/paged_result_of_sample_by_participant.py +103 -0
  547. rapidata/api_client/models/paged_result_of_standing_by_leaderboard.py +103 -0
  548. rapidata/api_client/models/paged_result_of_validation_set_model.py +103 -0
  549. rapidata/api_client/models/paged_result_order_model.py +105 -0
  550. rapidata/api_client/models/paged_result_participant_by_benchmark.py +105 -0
  551. rapidata/api_client/models/paged_result_potential_validation_rapid.py +105 -0
  552. rapidata/api_client/models/paged_result_prompt_by_benchmark_result.py +105 -0
  553. rapidata/api_client/models/paged_result_query_audiences_result.py +105 -0
  554. rapidata/api_client/models/paged_result_query_datapoints_by_dataset_id_result.py +105 -0
  555. rapidata/api_client/models/paged_result_query_validation_rapid_eligibility_result.py +105 -0
  556. rapidata/api_client/models/paged_result_rapid_model.py +105 -0
  557. rapidata/api_client/models/paged_result_runs_by_leaderboard_result.py +105 -0
  558. rapidata/api_client/models/paged_result_sample_by_identifier.py +105 -0
  559. rapidata/api_client/models/paged_result_sample_by_participant.py +105 -0
  560. rapidata/api_client/models/paged_result_standing_by_leaderboard.py +105 -0
  561. rapidata/api_client/models/paged_result_validation_set_model.py +105 -0
  562. rapidata/api_client/models/participant_by_benchmark.py +94 -0
  563. rapidata/api_client/models/participant_by_benchmark_paged_result.py +105 -0
  564. rapidata/api_client/models/participant_by_leaderboard.py +113 -0
  565. rapidata/api_client/models/participant_by_leaderboard_paged_result.py +105 -0
  566. rapidata/api_client/models/participant_status.py +38 -0
  567. rapidata/api_client/models/pipeline_id_workflow_artifact_id_put_request.py +140 -0
  568. rapidata/api_client/models/pipeline_id_workflow_config_put_request.py +140 -0
  569. rapidata/api_client/models/pipeline_id_workflow_put_request.py +140 -0
  570. rapidata/api_client/models/polygon_result.py +3 -3
  571. rapidata/api_client/models/polygon_result_coordinate.py +89 -0
  572. rapidata/api_client/models/polygon_result_shape.py +95 -0
  573. rapidata/api_client/models/potential_validation_rapid.py +103 -0
  574. rapidata/api_client/models/potential_validation_rapid_paged_result.py +105 -0
  575. rapidata/api_client/models/potential_validation_rapid_truth.py +280 -0
  576. rapidata/api_client/models/pre_arranged_pair_maker_config.py +100 -0
  577. rapidata/api_client/models/pre_arranged_pair_maker_config_model.py +96 -0
  578. rapidata/api_client/models/pre_arranged_pair_maker_information.py +102 -0
  579. rapidata/api_client/models/preliminary_download_model.py +87 -0
  580. rapidata/api_client/models/preliminary_download_result.py +87 -0
  581. rapidata/api_client/models/preview_order_model.py +87 -0
  582. rapidata/api_client/models/probabilistic_attach_category_referee_info.py +98 -0
  583. rapidata/api_client/models/problem_details.py +2 -20
  584. rapidata/api_client/models/prompt_asset_metadata_input.py +100 -0
  585. rapidata/api_client/models/prompt_asset_metadata_input_asset.py +154 -0
  586. rapidata/api_client/models/prompt_by_benchmark_result.py +112 -0
  587. rapidata/api_client/models/prompt_by_benchmark_result_paged_result.py +105 -0
  588. rapidata/api_client/models/prompt_by_leaderboard_result.py +90 -0
  589. rapidata/api_client/models/prompt_by_leaderboard_result_paged_result.py +105 -0
  590. rapidata/api_client/models/prompt_metadata.py +13 -4
  591. rapidata/api_client/models/prompt_metadata_input.py +4 -6
  592. rapidata/api_client/models/prompt_metadata_model.py +2 -4
  593. rapidata/api_client/models/prompt_type.py +38 -0
  594. rapidata/api_client/models/proxy_file_wrapper.py +129 -0
  595. rapidata/api_client/models/public_order_model.py +2 -2
  596. rapidata/api_client/models/public_rapid_response.py +112 -0
  597. rapidata/api_client/models/query_audiences_result.py +111 -0
  598. rapidata/api_client/models/query_datapoints_by_dataset_id_result.py +95 -0
  599. rapidata/api_client/models/query_model.py +10 -5
  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/query_validation_rapids_result.py +50 -5
  605. rapidata/api_client/models/query_validation_rapids_result_asset.py +40 -40
  606. rapidata/api_client/models/query_validation_rapids_result_payload.py +252 -0
  607. rapidata/api_client/models/query_validation_rapids_result_truth.py +258 -0
  608. rapidata/api_client/models/rapid_answer.py +3 -1
  609. rapidata/api_client/models/rapid_answer_result.py +31 -17
  610. rapidata/api_client/models/rapid_issue.py +45 -0
  611. rapidata/api_client/models/rapid_modality.py +46 -0
  612. rapidata/api_client/models/rapid_model.py +157 -0
  613. rapidata/api_client/models/rapid_model_paged_result.py +105 -0
  614. rapidata/api_client/models/rapid_model_referee.py +154 -0
  615. rapidata/api_client/models/rapid_response.py +103 -0
  616. rapidata/api_client/models/rapid_response_result.py +266 -0
  617. rapidata/api_client/models/rapid_result_model.py +7 -7
  618. rapidata/api_client/models/rapid_result_model_result.py +31 -17
  619. rapidata/api_client/models/rapid_skipped_model.py +5 -5
  620. rapidata/api_client/models/rapid_state.py +41 -0
  621. rapidata/api_client/models/read_bridge_token_keys_result.py +3 -8
  622. rapidata/api_client/models/reference_asset_input.py +100 -0
  623. rapidata/api_client/models/report_model.py +109 -0
  624. rapidata/api_client/models/response_count_filter.py +103 -0
  625. rapidata/api_client/models/response_count_user_filter_model.py +101 -0
  626. rapidata/api_client/models/retrieval_mode.py +38 -0
  627. rapidata/api_client/models/root_filter.py +5 -14
  628. rapidata/api_client/models/run_status.py +39 -0
  629. rapidata/api_client/models/runs_by_leaderboard_result.py +104 -0
  630. rapidata/api_client/models/runs_by_leaderboard_result_paged_result.py +105 -0
  631. rapidata/api_client/models/sample_by_identifier.py +125 -0
  632. rapidata/api_client/models/sample_by_identifier_paged_result.py +105 -0
  633. rapidata/api_client/models/sample_by_participant.py +121 -0
  634. rapidata/api_client/models/sample_by_participant_paged_result.py +105 -0
  635. rapidata/api_client/models/scrub_payload.py +96 -0
  636. rapidata/api_client/models/scrub_range.py +89 -0
  637. rapidata/api_client/models/scrub_rapid_blueprint.py +96 -0
  638. rapidata/api_client/models/scrub_result.py +98 -0
  639. rapidata/api_client/models/scrub_truth.py +104 -0
  640. rapidata/api_client/models/send_survey_model.py +87 -0
  641. rapidata/api_client/models/shuffling_selection.py +106 -0
  642. rapidata/api_client/models/simple_workflow_config.py +6 -17
  643. rapidata/api_client/models/simple_workflow_config_blueprint.py +37 -23
  644. rapidata/api_client/models/simple_workflow_config_model.py +6 -22
  645. rapidata/api_client/models/simple_workflow_config_model_blueprint.py +31 -17
  646. rapidata/api_client/models/simple_workflow_get_result_overview_get200_response.py +16 -16
  647. rapidata/api_client/models/simple_workflow_model.py +14 -4
  648. rapidata/api_client/models/simple_workflow_model1.py +5 -12
  649. rapidata/api_client/models/simple_workflow_model_blueprint.py +31 -17
  650. rapidata/api_client/models/skip_truth.py +94 -0
  651. rapidata/api_client/models/sort_criterion.py +5 -11
  652. rapidata/api_client/models/sort_direction.py +2 -2
  653. rapidata/api_client/models/source_url_metadata.py +109 -0
  654. rapidata/api_client/models/source_url_metadata_model.py +96 -0
  655. rapidata/api_client/models/standing_by_benchmark.py +113 -0
  656. rapidata/api_client/models/standing_by_leaderboard.py +113 -0
  657. rapidata/api_client/models/standing_by_leaderboard_paged_result.py +105 -0
  658. rapidata/api_client/models/standing_status.py +38 -0
  659. rapidata/api_client/models/standings_by_benchmark_result.py +95 -0
  660. rapidata/api_client/models/standings_by_leaderboard_result.py +95 -0
  661. rapidata/api_client/models/start_preliminary_download_result.py +87 -0
  662. rapidata/api_client/models/sticky_state.py +39 -0
  663. rapidata/api_client/models/stream_file_wrapper.py +138 -0
  664. rapidata/api_client/models/streams_metadata.py +113 -0
  665. rapidata/api_client/models/streams_metadata_model.py +100 -0
  666. rapidata/api_client/models/string_segment.py +105 -0
  667. rapidata/api_client/models/submit_coco_model.py +1 -3
  668. rapidata/api_client/models/submit_order_model.py +87 -0
  669. rapidata/api_client/models/submit_participant_result.py +89 -0
  670. rapidata/api_client/models/submit_prompt_model.py +107 -0
  671. rapidata/api_client/models/submit_prompt_model_prompt_asset.py +202 -0
  672. rapidata/api_client/models/tags_by_benchmark_result.py +87 -0
  673. rapidata/api_client/models/text_asset.py +15 -10
  674. rapidata/api_client/models/text_asset_input.py +120 -0
  675. rapidata/api_client/models/text_asset_model.py +18 -13
  676. rapidata/api_client/models/text_metadata.py +20 -6
  677. rapidata/api_client/models/text_metadata_input.py +111 -0
  678. rapidata/api_client/models/text_metadata_model.py +9 -6
  679. rapidata/api_client/models/transcription_metadata.py +10 -4
  680. rapidata/api_client/models/transcription_metadata_input.py +4 -6
  681. rapidata/api_client/models/transcription_metadata_model.py +1 -3
  682. rapidata/api_client/models/transcription_truth.py +23 -4
  683. rapidata/api_client/models/transcription_word.py +2 -2
  684. rapidata/api_client/models/translated_prompt_metadata_model.py +2 -4
  685. rapidata/api_client/models/translated_string.py +2 -2
  686. rapidata/api_client/models/unlock_order_result.py +2 -2
  687. rapidata/api_client/models/update_access_model.py +1 -1
  688. rapidata/api_client/models/update_audience_request.py +102 -0
  689. rapidata/api_client/models/update_benchmark_model.py +99 -0
  690. rapidata/api_client/models/update_benchmark_name_model.py +87 -0
  691. rapidata/api_client/models/update_campaign_model.py +99 -0
  692. rapidata/api_client/models/update_dataset_name_model.py +87 -0
  693. rapidata/api_client/models/update_dimensions_model.py +87 -0
  694. rapidata/api_client/models/update_leaderboard_model.py +106 -0
  695. rapidata/api_client/models/update_leaderboard_name_model.py +87 -0
  696. rapidata/api_client/models/update_leaderboard_response_config_model.py +89 -0
  697. rapidata/api_client/models/update_order_name_model.py +87 -0
  698. rapidata/api_client/models/update_participant_model.py +92 -0
  699. rapidata/api_client/models/update_participant_name_model.py +87 -0
  700. rapidata/api_client/models/update_priority_model.py +87 -0
  701. rapidata/api_client/models/update_prompt_tags_model.py +87 -0
  702. rapidata/api_client/models/update_should_alert_model.py +87 -0
  703. rapidata/api_client/models/update_validation_rapid_model.py +125 -0
  704. rapidata/api_client/models/update_validation_rapid_model_context_asset.py +160 -0
  705. rapidata/api_client/models/update_validation_rapid_model_truth.py +280 -0
  706. rapidata/api_client/models/update_validation_set_model.py +120 -0
  707. rapidata/api_client/models/upload_asset_result.py +102 -0
  708. rapidata/api_client/models/upload_file_from_url_result.py +87 -0
  709. rapidata/api_client/models/upload_file_result.py +87 -0
  710. rapidata/api_client/models/upload_files_from_s3_bucket_model.py +15 -5
  711. rapidata/api_client/models/upload_from_s3_result.py +87 -0
  712. rapidata/api_client/models/upload_text_sources_to_dataset_model.py +26 -4
  713. rapidata/api_client/models/url_asset_input.py +100 -0
  714. rapidata/api_client/models/user_action_restriction.py +37 -0
  715. rapidata/api_client/models/user_action_restriction_filter.py +101 -0
  716. rapidata/api_client/models/user_score_filter.py +102 -0
  717. rapidata/api_client/models/user_score_user_filter_model.py +9 -2
  718. rapidata/api_client/models/user_state.py +38 -0
  719. rapidata/api_client/models/user_state_filter.py +101 -0
  720. rapidata/api_client/models/validation_chance.py +20 -3
  721. rapidata/api_client/models/validation_import_post_request_blueprint.py +31 -17
  722. rapidata/api_client/models/validation_set_model.py +39 -5
  723. rapidata/api_client/models/validation_set_overview_model.py +2 -2
  724. rapidata/api_client/models/validation_set_validation_set_id_rapid_post_payload_parameter.py +252 -0
  725. rapidata/api_client/models/validation_set_validation_set_id_rapid_post_truth_parameter.py +280 -0
  726. rapidata/api_client/models/validation_set_zip_post_request_blueprint.py +252 -0
  727. rapidata/api_client/models/video_duration_metadata.py +109 -0
  728. rapidata/api_client/models/video_duration_metadata_model.py +96 -0
  729. rapidata/api_client/models/workflow_aggregation_step_model.py +3 -12
  730. rapidata/api_client/models/workflow_config_artifact_model_workflow_config.py +23 -9
  731. rapidata/api_client/models/workflow_state.py +2 -2
  732. rapidata/api_client/models/zip_entry_file_wrapper.py +151 -0
  733. rapidata/api_client/rest.py +193 -154
  734. rapidata/api_client_README.md +488 -293
  735. rapidata/rapidata_client/__init__.py +27 -13
  736. rapidata/rapidata_client/api/rapidata_api_client.py +253 -0
  737. rapidata/rapidata_client/benchmark/_detail_mapper.py +32 -0
  738. rapidata/rapidata_client/benchmark/leaderboard/__init__.py +0 -0
  739. rapidata/rapidata_client/benchmark/leaderboard/rapidata_leaderboard.py +221 -0
  740. rapidata/rapidata_client/benchmark/participant/__init__.py +0 -0
  741. rapidata/rapidata_client/benchmark/participant/_participant.py +145 -0
  742. rapidata/rapidata_client/benchmark/rapidata_benchmark.py +546 -0
  743. rapidata/rapidata_client/benchmark/rapidata_benchmark_manager.py +219 -0
  744. rapidata/rapidata_client/config/__init__.py +4 -0
  745. rapidata/rapidata_client/config/logger.py +135 -0
  746. rapidata/rapidata_client/config/logging_config.py +55 -0
  747. rapidata/rapidata_client/config/managed_print.py +6 -0
  748. rapidata/rapidata_client/config/order_config.py +14 -0
  749. rapidata/rapidata_client/config/rapidata_config.py +36 -0
  750. rapidata/rapidata_client/config/tracer.py +184 -0
  751. rapidata/rapidata_client/config/upload_config.py +64 -0
  752. rapidata/rapidata_client/datapoints/__init__.py +10 -0
  753. rapidata/rapidata_client/datapoints/_asset_uploader.py +169 -0
  754. rapidata/rapidata_client/datapoints/_datapoint.py +92 -0
  755. rapidata/rapidata_client/datapoints/_datapoint_uploader.py +47 -0
  756. rapidata/rapidata_client/datapoints/_datapoints_validator.py +70 -0
  757. rapidata/rapidata_client/datapoints/assets/__init__.py +0 -0
  758. rapidata/rapidata_client/datapoints/assets/constants.py +7 -0
  759. rapidata/rapidata_client/datapoints/metadata/__init__.py +7 -0
  760. rapidata/rapidata_client/{selection/base_selection.py → datapoints/metadata/_base_metadata.py} +2 -1
  761. rapidata/rapidata_client/datapoints/metadata/_media_asset_metadata.py +26 -0
  762. rapidata/rapidata_client/datapoints/metadata/_private_text_metadata.py +16 -0
  763. rapidata/rapidata_client/datapoints/metadata/_prompt_identifier_metadata.py +14 -0
  764. rapidata/rapidata_client/datapoints/metadata/_prompt_metadata.py +12 -0
  765. rapidata/rapidata_client/datapoints/metadata/_public_text_metadata.py +16 -0
  766. rapidata/rapidata_client/datapoints/metadata/_select_words_metadata.py +17 -0
  767. rapidata/rapidata_client/demographic/__init__.py +0 -0
  768. rapidata/rapidata_client/demographic/demographic_manager.py +54 -0
  769. rapidata/rapidata_client/exceptions/__init__.py +1 -0
  770. rapidata/rapidata_client/exceptions/failed_upload_exception.py +20 -0
  771. rapidata/rapidata_client/filter/__init__.py +7 -1
  772. rapidata/rapidata_client/filter/_base_filter.py +62 -0
  773. rapidata/rapidata_client/filter/age_filter.py +28 -10
  774. rapidata/rapidata_client/filter/and_filter.py +42 -0
  775. rapidata/rapidata_client/filter/campaign_filter.py +28 -11
  776. rapidata/rapidata_client/filter/country_filter.py +42 -13
  777. rapidata/rapidata_client/filter/custom_filter.py +39 -0
  778. rapidata/rapidata_client/filter/gender_filter.py +29 -10
  779. rapidata/rapidata_client/filter/language_filter.py +49 -15
  780. rapidata/rapidata_client/filter/models/__init__.py +0 -0
  781. rapidata/rapidata_client/filter/models/age_group.py +28 -0
  782. rapidata/rapidata_client/filter/models/gender.py +23 -0
  783. rapidata/rapidata_client/filter/new_user_filter.py +20 -0
  784. rapidata/rapidata_client/filter/not_filter.py +42 -0
  785. rapidata/rapidata_client/filter/or_filter.py +42 -0
  786. rapidata/rapidata_client/filter/rapidata_filters.py +60 -0
  787. rapidata/rapidata_client/filter/response_count_filter.py +62 -0
  788. rapidata/rapidata_client/filter/user_score_filter.py +60 -14
  789. rapidata/rapidata_client/order/_rapidata_order_builder.py +481 -0
  790. rapidata/rapidata_client/order/dataset/_rapidata_dataset.py +153 -0
  791. rapidata/rapidata_client/order/rapidata_order.py +393 -90
  792. rapidata/rapidata_client/order/rapidata_order_manager.py +922 -0
  793. rapidata/rapidata_client/order/rapidata_results.py +251 -0
  794. rapidata/rapidata_client/rapidata_client.py +125 -180
  795. rapidata/rapidata_client/referee/__init__.py +3 -3
  796. rapidata/rapidata_client/referee/{base_referee.py → _base_referee.py} +9 -5
  797. rapidata/rapidata_client/referee/_early_stopping_referee.py +62 -0
  798. rapidata/rapidata_client/referee/_naive_referee.py +48 -0
  799. rapidata/rapidata_client/selection/__init__.py +6 -1
  800. rapidata/rapidata_client/selection/_base_selection.py +16 -0
  801. rapidata/rapidata_client/selection/ab_test_selection.py +46 -0
  802. rapidata/rapidata_client/selection/capped_selection.py +34 -17
  803. rapidata/rapidata_client/selection/conditional_validation_selection.py +71 -21
  804. rapidata/rapidata_client/selection/demographic_selection.py +43 -8
  805. rapidata/rapidata_client/selection/effort_selection.py +49 -0
  806. rapidata/rapidata_client/selection/labeling_selection.py +45 -8
  807. rapidata/rapidata_client/selection/rapidata_retrieval_modes.py +21 -0
  808. rapidata/rapidata_client/selection/rapidata_selections.py +47 -0
  809. rapidata/rapidata_client/selection/shuffling_selection.py +44 -0
  810. rapidata/rapidata_client/selection/static_selection.py +33 -0
  811. rapidata/rapidata_client/selection/validation_selection.py +29 -6
  812. rapidata/rapidata_client/settings/__init__.py +12 -2
  813. rapidata/rapidata_client/settings/_rapidata_setting.py +24 -0
  814. rapidata/rapidata_client/settings/alert_on_fast_response.py +25 -0
  815. rapidata/rapidata_client/settings/allow_neither_both.py +17 -0
  816. rapidata/rapidata_client/settings/custom_setting.py +17 -0
  817. rapidata/rapidata_client/settings/free_text_minimum_characters.py +22 -0
  818. rapidata/rapidata_client/settings/models/__init__.py +1 -0
  819. rapidata/rapidata_client/settings/models/translation_behaviour_options.py +15 -0
  820. rapidata/rapidata_client/settings/mute_video.py +15 -0
  821. rapidata/rapidata_client/settings/no_shuffle.py +18 -0
  822. rapidata/rapidata_client/settings/play_video_until_the_end.py +19 -0
  823. rapidata/rapidata_client/settings/rapidata_settings.py +51 -0
  824. rapidata/rapidata_client/settings/swap_context_instruction.py +20 -0
  825. rapidata/rapidata_client/settings/translation_behaviour.py +20 -0
  826. rapidata/rapidata_client/validation/__init__.py +1 -0
  827. rapidata/rapidata_client/validation/rapidata_validation_set.py +141 -0
  828. rapidata/rapidata_client/validation/rapids/__init__.py +1 -0
  829. rapidata/rapidata_client/validation/rapids/_validation_rapid_uploader.py +62 -0
  830. rapidata/rapidata_client/validation/rapids/box.py +42 -0
  831. rapidata/rapidata_client/validation/rapids/rapids.py +29 -0
  832. rapidata/rapidata_client/validation/rapids/rapids_manager.py +469 -0
  833. rapidata/rapidata_client/validation/validation_set_manager.py +814 -0
  834. rapidata/rapidata_client/workflow/__init__.py +11 -6
  835. rapidata/rapidata_client/workflow/_base_workflow.py +43 -0
  836. rapidata/rapidata_client/workflow/_classify_workflow.py +92 -0
  837. rapidata/rapidata_client/workflow/_compare_workflow.py +76 -0
  838. rapidata/rapidata_client/workflow/_draw_workflow.py +52 -0
  839. rapidata/rapidata_client/workflow/_evaluation_workflow.py +47 -0
  840. rapidata/rapidata_client/workflow/_free_text_workflow.py +81 -0
  841. rapidata/rapidata_client/workflow/_locate_workflow.py +52 -0
  842. rapidata/rapidata_client/workflow/_multi_ranking_workflow.py +87 -0
  843. rapidata/rapidata_client/workflow/_ranking_workflow.py +131 -0
  844. rapidata/rapidata_client/workflow/_select_words_workflow.py +74 -0
  845. rapidata/rapidata_client/workflow/_timestamp_workflow.py +65 -0
  846. rapidata/service/__init__.py +0 -1
  847. rapidata/service/credential_manager.py +41 -32
  848. rapidata/service/openapi_service.py +153 -35
  849. rapidata/types/__init__.py +166 -0
  850. rapidata-2.44.4.dist-info/METADATA +32 -0
  851. rapidata-2.44.4.dist-info/RECORD +1014 -0
  852. {rapidata-1.8.3.dist-info → rapidata-2.44.4.dist-info}/WHEEL +1 -1
  853. rapidata/constants.py +0 -1
  854. rapidata/rapidata_client/assets/__init__.py +0 -8
  855. rapidata/rapidata_client/assets/base_asset.py +0 -11
  856. rapidata/rapidata_client/assets/media_asset.py +0 -88
  857. rapidata/rapidata_client/assets/multi_asset.py +0 -55
  858. rapidata/rapidata_client/assets/text_asset.py +0 -28
  859. rapidata/rapidata_client/country_codes/__init__.py +0 -1
  860. rapidata/rapidata_client/country_codes/country_codes.py +0 -19
  861. rapidata/rapidata_client/dataset/rapid_builders/__init__.py +0 -4
  862. rapidata/rapidata_client/dataset/rapid_builders/base_rapid_builder.py +0 -33
  863. rapidata/rapidata_client/dataset/rapid_builders/classify_rapid_builders.py +0 -166
  864. rapidata/rapidata_client/dataset/rapid_builders/compare_rapid_builders.py +0 -145
  865. rapidata/rapidata_client/dataset/rapid_builders/rapids.py +0 -32
  866. rapidata/rapidata_client/dataset/rapid_builders/transcription_rapid_builders.py +0 -132
  867. rapidata/rapidata_client/dataset/rapidata_dataset.py +0 -126
  868. rapidata/rapidata_client/dataset/rapidata_validation_set.py +0 -300
  869. rapidata/rapidata_client/dataset/validation_rapid_parts.py +0 -55
  870. rapidata/rapidata_client/dataset/validation_set_builder.py +0 -324
  871. rapidata/rapidata_client/filter/base_filter.py +0 -9
  872. rapidata/rapidata_client/metadata/__init__.py +0 -5
  873. rapidata/rapidata_client/metadata/base_metadata.py +0 -12
  874. rapidata/rapidata_client/metadata/private_text_metadata.py +0 -16
  875. rapidata/rapidata_client/metadata/prompt_metadata.py +0 -17
  876. rapidata/rapidata_client/metadata/public_text_metadata.py +0 -16
  877. rapidata/rapidata_client/metadata/transcription_metadata.py +0 -19
  878. rapidata/rapidata_client/order/rapidata_order_builder.py +0 -463
  879. rapidata/rapidata_client/referee/early_stopping_referee.py +0 -50
  880. rapidata/rapidata_client/referee/naive_referee.py +0 -33
  881. rapidata/rapidata_client/settings/feature_flags.py +0 -125
  882. rapidata/rapidata_client/settings/settings.py +0 -124
  883. rapidata/rapidata_client/simple_builders/simple_classification_builders.py +0 -245
  884. rapidata/rapidata_client/simple_builders/simple_compare_builders.py +0 -250
  885. rapidata/rapidata_client/simple_builders/simple_free_text_builders.py +0 -180
  886. rapidata/rapidata_client/simple_builders/simple_transcription_builders.py +0 -194
  887. rapidata/rapidata_client/workflow/base_workflow.py +0 -42
  888. rapidata/rapidata_client/workflow/classify_workflow.py +0 -49
  889. rapidata/rapidata_client/workflow/compare_workflow.py +0 -47
  890. rapidata/rapidata_client/workflow/evaluation_workflow.py +0 -15
  891. rapidata/rapidata_client/workflow/free_text_workflow.py +0 -50
  892. rapidata/rapidata_client/workflow/transcription_workflow.py +0 -40
  893. rapidata/service/local_file_service.py +0 -25
  894. rapidata/service/token_manager.py +0 -175
  895. rapidata-1.8.3.dist-info/METADATA +0 -28
  896. rapidata-1.8.3.dist-info/RECORD +0 -396
  897. /rapidata/rapidata_client/{dataset → api}/__init__.py +0 -0
  898. /rapidata/rapidata_client/{simple_builders → benchmark}/__init__.py +0 -0
  899. {rapidata-1.8.3.dist-info → rapidata-2.44.4.dist-info/licenses}/LICENSE +0 -0
@@ -0,0 +1,3052 @@
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, StrictBytes, StrictStr, field_validator
20
+ from typing import List, Optional, Tuple, Union
21
+ from typing_extensions import Annotated
22
+ from rapidata.api_client.models.add_validation_rapid_model import AddValidationRapidModel
23
+ from rapidata.api_client.models.create_empty_validation_set_result import CreateEmptyValidationSetResult
24
+ from rapidata.api_client.models.create_validation_set_model import CreateValidationSetModel
25
+ from rapidata.api_client.models.get_available_validation_sets_result import GetAvailableValidationSetsResult
26
+ from rapidata.api_client.models.get_recommended_validation_set_result import GetRecommendedValidationSetResult
27
+ from rapidata.api_client.models.get_validation_set_by_id_result import GetValidationSetByIdResult
28
+ from rapidata.api_client.models.paged_result_of_get_validation_rapids_result import PagedResultOfGetValidationRapidsResult
29
+ from rapidata.api_client.models.paged_result_of_validation_set_model import PagedResultOfValidationSetModel
30
+ from rapidata.api_client.models.query_model import QueryModel
31
+ from rapidata.api_client.models.update_validation_set_model import UpdateValidationSetModel
32
+
33
+ from rapidata.api_client.api_client import ApiClient, RequestSerialized
34
+ from rapidata.api_client.api_response import ApiResponse
35
+ from rapidata.api_client.rest import RESTResponseType
36
+
37
+
38
+ class ValidationSetApi:
39
+ """NOTE: This class is auto generated by OpenAPI Generator
40
+ Ref: https://openapi-generator.tech
41
+
42
+ Do not edit the class manually.
43
+ """
44
+
45
+ def __init__(self, api_client=None) -> None:
46
+ if api_client is None:
47
+ api_client = ApiClient.get_default()
48
+ self.api_client = api_client
49
+
50
+
51
+ @validate_call
52
+ def validation_set_post(
53
+ self,
54
+ create_validation_set_model: Annotated[CreateValidationSetModel, Field(description="The body request for creating a new validation set.")],
55
+ _request_timeout: Union[
56
+ None,
57
+ Annotated[StrictFloat, Field(gt=0)],
58
+ Tuple[
59
+ Annotated[StrictFloat, Field(gt=0)],
60
+ Annotated[StrictFloat, Field(gt=0)]
61
+ ]
62
+ ] = None,
63
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
64
+ _content_type: Optional[StrictStr] = None,
65
+ _headers: Optional[Dict[StrictStr, Any]] = None,
66
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
67
+ ) -> CreateEmptyValidationSetResult:
68
+ """Creates a new empty validation set.
69
+
70
+
71
+ :param create_validation_set_model: The body request for creating a new validation set. (required)
72
+ :type create_validation_set_model: CreateValidationSetModel
73
+ :param _request_timeout: timeout setting for this request. If one
74
+ number provided, it will be total request
75
+ timeout. It can also be a pair (tuple) of
76
+ (connection, read) timeouts.
77
+ :type _request_timeout: int, tuple(int, int), optional
78
+ :param _request_auth: set to override the auth_settings for an a single
79
+ request; this effectively ignores the
80
+ authentication in the spec for a single request.
81
+ :type _request_auth: dict, optional
82
+ :param _content_type: force content-type for the request.
83
+ :type _content_type: str, Optional
84
+ :param _headers: set to override the headers for a single
85
+ request; this effectively ignores the headers
86
+ in the spec for a single request.
87
+ :type _headers: dict, optional
88
+ :param _host_index: set to override the host_index for a single
89
+ request; this effectively ignores the host_index
90
+ in the spec for a single request.
91
+ :type _host_index: int, optional
92
+ :return: Returns the result object.
93
+ """ # noqa: E501
94
+
95
+ _param = self._validation_set_post_serialize(
96
+ create_validation_set_model=create_validation_set_model,
97
+ _request_auth=_request_auth,
98
+ _content_type=_content_type,
99
+ _headers=_headers,
100
+ _host_index=_host_index
101
+ )
102
+
103
+ _response_types_map: Dict[str, Optional[str]] = {
104
+ '200': "CreateEmptyValidationSetResult",
105
+ }
106
+ response_data = self.api_client.call_api(
107
+ *_param,
108
+ _request_timeout=_request_timeout
109
+ )
110
+ response_data.read()
111
+ return self.api_client.response_deserialize(
112
+ response_data=response_data,
113
+ response_types_map=_response_types_map,
114
+ ).data
115
+
116
+
117
+ @validate_call
118
+ def validation_set_post_with_http_info(
119
+ self,
120
+ create_validation_set_model: Annotated[CreateValidationSetModel, Field(description="The body request for creating a new validation set.")],
121
+ _request_timeout: Union[
122
+ None,
123
+ Annotated[StrictFloat, Field(gt=0)],
124
+ Tuple[
125
+ Annotated[StrictFloat, Field(gt=0)],
126
+ Annotated[StrictFloat, Field(gt=0)]
127
+ ]
128
+ ] = None,
129
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
130
+ _content_type: Optional[StrictStr] = None,
131
+ _headers: Optional[Dict[StrictStr, Any]] = None,
132
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
133
+ ) -> ApiResponse[CreateEmptyValidationSetResult]:
134
+ """Creates a new empty validation set.
135
+
136
+
137
+ :param create_validation_set_model: The body request for creating a new validation set. (required)
138
+ :type create_validation_set_model: CreateValidationSetModel
139
+ :param _request_timeout: timeout setting for this request. If one
140
+ number provided, it will be total request
141
+ timeout. It can also be a pair (tuple) of
142
+ (connection, read) timeouts.
143
+ :type _request_timeout: int, tuple(int, int), optional
144
+ :param _request_auth: set to override the auth_settings for an a single
145
+ request; this effectively ignores the
146
+ authentication in the spec for a single request.
147
+ :type _request_auth: dict, optional
148
+ :param _content_type: force content-type for the request.
149
+ :type _content_type: str, Optional
150
+ :param _headers: set to override the headers for a single
151
+ request; this effectively ignores the headers
152
+ in the spec for a single request.
153
+ :type _headers: dict, optional
154
+ :param _host_index: set to override the host_index for a single
155
+ request; this effectively ignores the host_index
156
+ in the spec for a single request.
157
+ :type _host_index: int, optional
158
+ :return: Returns the result object.
159
+ """ # noqa: E501
160
+
161
+ _param = self._validation_set_post_serialize(
162
+ create_validation_set_model=create_validation_set_model,
163
+ _request_auth=_request_auth,
164
+ _content_type=_content_type,
165
+ _headers=_headers,
166
+ _host_index=_host_index
167
+ )
168
+
169
+ _response_types_map: Dict[str, Optional[str]] = {
170
+ '200': "CreateEmptyValidationSetResult",
171
+ }
172
+ response_data = self.api_client.call_api(
173
+ *_param,
174
+ _request_timeout=_request_timeout
175
+ )
176
+ response_data.read()
177
+ return self.api_client.response_deserialize(
178
+ response_data=response_data,
179
+ response_types_map=_response_types_map,
180
+ )
181
+
182
+
183
+ @validate_call
184
+ def validation_set_post_without_preload_content(
185
+ self,
186
+ create_validation_set_model: Annotated[CreateValidationSetModel, Field(description="The body request for creating a new validation set.")],
187
+ _request_timeout: Union[
188
+ None,
189
+ Annotated[StrictFloat, Field(gt=0)],
190
+ Tuple[
191
+ Annotated[StrictFloat, Field(gt=0)],
192
+ Annotated[StrictFloat, Field(gt=0)]
193
+ ]
194
+ ] = None,
195
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
196
+ _content_type: Optional[StrictStr] = None,
197
+ _headers: Optional[Dict[StrictStr, Any]] = None,
198
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
199
+ ) -> RESTResponseType:
200
+ """Creates a new empty validation set.
201
+
202
+
203
+ :param create_validation_set_model: The body request for creating a new validation set. (required)
204
+ :type create_validation_set_model: CreateValidationSetModel
205
+ :param _request_timeout: timeout setting for this request. If one
206
+ number provided, it will be total request
207
+ timeout. It can also be a pair (tuple) of
208
+ (connection, read) timeouts.
209
+ :type _request_timeout: int, tuple(int, int), optional
210
+ :param _request_auth: set to override the auth_settings for an a single
211
+ request; this effectively ignores the
212
+ authentication in the spec for a single request.
213
+ :type _request_auth: dict, optional
214
+ :param _content_type: force content-type for the request.
215
+ :type _content_type: str, Optional
216
+ :param _headers: set to override the headers for a single
217
+ request; this effectively ignores the headers
218
+ in the spec for a single request.
219
+ :type _headers: dict, optional
220
+ :param _host_index: set to override the host_index for a single
221
+ request; this effectively ignores the host_index
222
+ in the spec for a single request.
223
+ :type _host_index: int, optional
224
+ :return: Returns the result object.
225
+ """ # noqa: E501
226
+
227
+ _param = self._validation_set_post_serialize(
228
+ create_validation_set_model=create_validation_set_model,
229
+ _request_auth=_request_auth,
230
+ _content_type=_content_type,
231
+ _headers=_headers,
232
+ _host_index=_host_index
233
+ )
234
+
235
+ _response_types_map: Dict[str, Optional[str]] = {
236
+ '200': "CreateEmptyValidationSetResult",
237
+ }
238
+ response_data = self.api_client.call_api(
239
+ *_param,
240
+ _request_timeout=_request_timeout
241
+ )
242
+ return response_data.response
243
+
244
+
245
+ def _validation_set_post_serialize(
246
+ self,
247
+ create_validation_set_model,
248
+ _request_auth,
249
+ _content_type,
250
+ _headers,
251
+ _host_index,
252
+ ) -> RequestSerialized:
253
+
254
+ _host = None
255
+
256
+ _collection_formats: Dict[str, str] = {
257
+ }
258
+
259
+ _path_params: Dict[str, str] = {}
260
+ _query_params: List[Tuple[str, str]] = []
261
+ _header_params: Dict[str, Optional[str]] = _headers or {}
262
+ _form_params: List[Tuple[str, str]] = []
263
+ _files: Dict[
264
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
265
+ ] = {}
266
+ _body_params: Optional[bytes] = None
267
+
268
+ # process the path parameters
269
+ # process the query parameters
270
+ # process the header parameters
271
+ # process the form parameters
272
+ # process the body parameter
273
+ if create_validation_set_model is not None:
274
+ _body_params = create_validation_set_model
275
+
276
+
277
+ # set the HTTP header `Accept`
278
+ if 'Accept' not in _header_params:
279
+ _header_params['Accept'] = self.api_client.select_header_accept(
280
+ [
281
+ 'text/plain',
282
+ 'application/json',
283
+ 'text/json'
284
+ ]
285
+ )
286
+
287
+ # set the HTTP header `Content-Type`
288
+ if _content_type:
289
+ _header_params['Content-Type'] = _content_type
290
+ else:
291
+ _default_content_type = (
292
+ self.api_client.select_header_content_type(
293
+ [
294
+ 'application/json',
295
+ 'text/json',
296
+ 'application/*+json'
297
+ ]
298
+ )
299
+ )
300
+ if _default_content_type is not None:
301
+ _header_params['Content-Type'] = _default_content_type
302
+
303
+ # authentication setting
304
+ _auth_settings: List[str] = [
305
+ 'OAuth2',
306
+ 'OpenIdConnect',
307
+ 'Bearer'
308
+ ]
309
+
310
+ return self.api_client.param_serialize(
311
+ method='POST',
312
+ resource_path='/validation-set',
313
+ path_params=_path_params,
314
+ query_params=_query_params,
315
+ header_params=_header_params,
316
+ body=_body_params,
317
+ post_params=_form_params,
318
+ files=_files,
319
+ auth_settings=_auth_settings,
320
+ collection_formats=_collection_formats,
321
+ _host=_host,
322
+ _request_auth=_request_auth
323
+ )
324
+
325
+
326
+
327
+
328
+ @validate_call
329
+ def validation_set_recommended_get(
330
+ self,
331
+ asset_type: Optional[List[StrictStr]] = None,
332
+ modality: Optional[List[StrictStr]] = None,
333
+ prompt_type: Optional[List[StrictStr]] = None,
334
+ instruction: Optional[StrictStr] = None,
335
+ _request_timeout: Union[
336
+ None,
337
+ Annotated[StrictFloat, Field(gt=0)],
338
+ Tuple[
339
+ Annotated[StrictFloat, Field(gt=0)],
340
+ Annotated[StrictFloat, Field(gt=0)]
341
+ ]
342
+ ] = None,
343
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
344
+ _content_type: Optional[StrictStr] = None,
345
+ _headers: Optional[Dict[StrictStr, Any]] = None,
346
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
347
+ ) -> GetRecommendedValidationSetResult:
348
+ """validation_set_recommended_get
349
+
350
+
351
+ :param asset_type:
352
+ :type asset_type: List[str]
353
+ :param modality:
354
+ :type modality: List[str]
355
+ :param prompt_type:
356
+ :type prompt_type: List[str]
357
+ :param instruction:
358
+ :type instruction: str
359
+ :param _request_timeout: timeout setting for this request. If one
360
+ number provided, it will be total request
361
+ timeout. It can also be a pair (tuple) of
362
+ (connection, read) timeouts.
363
+ :type _request_timeout: int, tuple(int, int), optional
364
+ :param _request_auth: set to override the auth_settings for an a single
365
+ request; this effectively ignores the
366
+ authentication in the spec for a single request.
367
+ :type _request_auth: dict, optional
368
+ :param _content_type: force content-type for the request.
369
+ :type _content_type: str, Optional
370
+ :param _headers: set to override the headers for a single
371
+ request; this effectively ignores the headers
372
+ in the spec for a single request.
373
+ :type _headers: dict, optional
374
+ :param _host_index: set to override the host_index for a single
375
+ request; this effectively ignores the host_index
376
+ in the spec for a single request.
377
+ :type _host_index: int, optional
378
+ :return: Returns the result object.
379
+ """ # noqa: E501
380
+
381
+ _param = self._validation_set_recommended_get_serialize(
382
+ asset_type=asset_type,
383
+ modality=modality,
384
+ prompt_type=prompt_type,
385
+ instruction=instruction,
386
+ _request_auth=_request_auth,
387
+ _content_type=_content_type,
388
+ _headers=_headers,
389
+ _host_index=_host_index
390
+ )
391
+
392
+ _response_types_map: Dict[str, Optional[str]] = {
393
+ '200': "GetRecommendedValidationSetResult",
394
+ '404': "ProblemDetails",
395
+ }
396
+ response_data = self.api_client.call_api(
397
+ *_param,
398
+ _request_timeout=_request_timeout
399
+ )
400
+ response_data.read()
401
+ return self.api_client.response_deserialize(
402
+ response_data=response_data,
403
+ response_types_map=_response_types_map,
404
+ ).data
405
+
406
+
407
+ @validate_call
408
+ def validation_set_recommended_get_with_http_info(
409
+ self,
410
+ asset_type: Optional[List[StrictStr]] = None,
411
+ modality: Optional[List[StrictStr]] = None,
412
+ prompt_type: Optional[List[StrictStr]] = None,
413
+ instruction: Optional[StrictStr] = None,
414
+ _request_timeout: Union[
415
+ None,
416
+ Annotated[StrictFloat, Field(gt=0)],
417
+ Tuple[
418
+ Annotated[StrictFloat, Field(gt=0)],
419
+ Annotated[StrictFloat, Field(gt=0)]
420
+ ]
421
+ ] = None,
422
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
423
+ _content_type: Optional[StrictStr] = None,
424
+ _headers: Optional[Dict[StrictStr, Any]] = None,
425
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
426
+ ) -> ApiResponse[GetRecommendedValidationSetResult]:
427
+ """validation_set_recommended_get
428
+
429
+
430
+ :param asset_type:
431
+ :type asset_type: List[str]
432
+ :param modality:
433
+ :type modality: List[str]
434
+ :param prompt_type:
435
+ :type prompt_type: List[str]
436
+ :param instruction:
437
+ :type instruction: str
438
+ :param _request_timeout: timeout setting for this request. If one
439
+ number provided, it will be total request
440
+ timeout. It can also be a pair (tuple) of
441
+ (connection, read) timeouts.
442
+ :type _request_timeout: int, tuple(int, int), optional
443
+ :param _request_auth: set to override the auth_settings for an a single
444
+ request; this effectively ignores the
445
+ authentication in the spec for a single request.
446
+ :type _request_auth: dict, optional
447
+ :param _content_type: force content-type for the request.
448
+ :type _content_type: str, Optional
449
+ :param _headers: set to override the headers for a single
450
+ request; this effectively ignores the headers
451
+ in the spec for a single request.
452
+ :type _headers: dict, optional
453
+ :param _host_index: set to override the host_index for a single
454
+ request; this effectively ignores the host_index
455
+ in the spec for a single request.
456
+ :type _host_index: int, optional
457
+ :return: Returns the result object.
458
+ """ # noqa: E501
459
+
460
+ _param = self._validation_set_recommended_get_serialize(
461
+ asset_type=asset_type,
462
+ modality=modality,
463
+ prompt_type=prompt_type,
464
+ instruction=instruction,
465
+ _request_auth=_request_auth,
466
+ _content_type=_content_type,
467
+ _headers=_headers,
468
+ _host_index=_host_index
469
+ )
470
+
471
+ _response_types_map: Dict[str, Optional[str]] = {
472
+ '200': "GetRecommendedValidationSetResult",
473
+ '404': "ProblemDetails",
474
+ }
475
+ response_data = self.api_client.call_api(
476
+ *_param,
477
+ _request_timeout=_request_timeout
478
+ )
479
+ response_data.read()
480
+ return self.api_client.response_deserialize(
481
+ response_data=response_data,
482
+ response_types_map=_response_types_map,
483
+ )
484
+
485
+
486
+ @validate_call
487
+ def validation_set_recommended_get_without_preload_content(
488
+ self,
489
+ asset_type: Optional[List[StrictStr]] = None,
490
+ modality: Optional[List[StrictStr]] = None,
491
+ prompt_type: Optional[List[StrictStr]] = None,
492
+ instruction: Optional[StrictStr] = None,
493
+ _request_timeout: Union[
494
+ None,
495
+ Annotated[StrictFloat, Field(gt=0)],
496
+ Tuple[
497
+ Annotated[StrictFloat, Field(gt=0)],
498
+ Annotated[StrictFloat, Field(gt=0)]
499
+ ]
500
+ ] = None,
501
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
502
+ _content_type: Optional[StrictStr] = None,
503
+ _headers: Optional[Dict[StrictStr, Any]] = None,
504
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
505
+ ) -> RESTResponseType:
506
+ """validation_set_recommended_get
507
+
508
+
509
+ :param asset_type:
510
+ :type asset_type: List[str]
511
+ :param modality:
512
+ :type modality: List[str]
513
+ :param prompt_type:
514
+ :type prompt_type: List[str]
515
+ :param instruction:
516
+ :type instruction: str
517
+ :param _request_timeout: timeout setting for this request. If one
518
+ number provided, it will be total request
519
+ timeout. It can also be a pair (tuple) of
520
+ (connection, read) timeouts.
521
+ :type _request_timeout: int, tuple(int, int), optional
522
+ :param _request_auth: set to override the auth_settings for an a single
523
+ request; this effectively ignores the
524
+ authentication in the spec for a single request.
525
+ :type _request_auth: dict, optional
526
+ :param _content_type: force content-type for the request.
527
+ :type _content_type: str, Optional
528
+ :param _headers: set to override the headers for a single
529
+ request; this effectively ignores the headers
530
+ in the spec for a single request.
531
+ :type _headers: dict, optional
532
+ :param _host_index: set to override the host_index for a single
533
+ request; this effectively ignores the host_index
534
+ in the spec for a single request.
535
+ :type _host_index: int, optional
536
+ :return: Returns the result object.
537
+ """ # noqa: E501
538
+
539
+ _param = self._validation_set_recommended_get_serialize(
540
+ asset_type=asset_type,
541
+ modality=modality,
542
+ prompt_type=prompt_type,
543
+ instruction=instruction,
544
+ _request_auth=_request_auth,
545
+ _content_type=_content_type,
546
+ _headers=_headers,
547
+ _host_index=_host_index
548
+ )
549
+
550
+ _response_types_map: Dict[str, Optional[str]] = {
551
+ '200': "GetRecommendedValidationSetResult",
552
+ '404': "ProblemDetails",
553
+ }
554
+ response_data = self.api_client.call_api(
555
+ *_param,
556
+ _request_timeout=_request_timeout
557
+ )
558
+ return response_data.response
559
+
560
+
561
+ def _validation_set_recommended_get_serialize(
562
+ self,
563
+ asset_type,
564
+ modality,
565
+ prompt_type,
566
+ instruction,
567
+ _request_auth,
568
+ _content_type,
569
+ _headers,
570
+ _host_index,
571
+ ) -> RequestSerialized:
572
+
573
+ _host = None
574
+
575
+ _collection_formats: Dict[str, str] = {
576
+ 'assetType': 'multi',
577
+ 'modality': 'multi',
578
+ 'promptType': 'multi',
579
+ }
580
+
581
+ _path_params: Dict[str, str] = {}
582
+ _query_params: List[Tuple[str, str]] = []
583
+ _header_params: Dict[str, Optional[str]] = _headers or {}
584
+ _form_params: List[Tuple[str, str]] = []
585
+ _files: Dict[
586
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
587
+ ] = {}
588
+ _body_params: Optional[bytes] = None
589
+
590
+ # process the path parameters
591
+ # process the query parameters
592
+ if asset_type is not None:
593
+
594
+ _query_params.append(('assetType', asset_type))
595
+
596
+ if modality is not None:
597
+
598
+ _query_params.append(('modality', modality))
599
+
600
+ if prompt_type is not None:
601
+
602
+ _query_params.append(('promptType', prompt_type))
603
+
604
+ if instruction is not None:
605
+
606
+ _query_params.append(('instruction', instruction))
607
+
608
+ # process the header parameters
609
+ # process the form parameters
610
+ # process the body parameter
611
+
612
+
613
+ # set the HTTP header `Accept`
614
+ if 'Accept' not in _header_params:
615
+ _header_params['Accept'] = self.api_client.select_header_accept(
616
+ [
617
+ 'text/plain',
618
+ 'application/json',
619
+ 'text/json'
620
+ ]
621
+ )
622
+
623
+
624
+ # authentication setting
625
+ _auth_settings: List[str] = [
626
+ 'OAuth2',
627
+ 'OpenIdConnect',
628
+ 'Bearer'
629
+ ]
630
+
631
+ return self.api_client.param_serialize(
632
+ method='GET',
633
+ resource_path='/validation-set/recommended',
634
+ path_params=_path_params,
635
+ query_params=_query_params,
636
+ header_params=_header_params,
637
+ body=_body_params,
638
+ post_params=_form_params,
639
+ files=_files,
640
+ auth_settings=_auth_settings,
641
+ collection_formats=_collection_formats,
642
+ _host=_host,
643
+ _request_auth=_request_auth
644
+ )
645
+
646
+
647
+
648
+
649
+ @validate_call
650
+ def validation_set_validation_set_id_delete(
651
+ self,
652
+ validation_set_id: Annotated[StrictStr, Field(description="The id of the validation set to get.")],
653
+ _request_timeout: Union[
654
+ None,
655
+ Annotated[StrictFloat, Field(gt=0)],
656
+ Tuple[
657
+ Annotated[StrictFloat, Field(gt=0)],
658
+ Annotated[StrictFloat, Field(gt=0)]
659
+ ]
660
+ ] = None,
661
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
662
+ _content_type: Optional[StrictStr] = None,
663
+ _headers: Optional[Dict[StrictStr, Any]] = None,
664
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
665
+ ) -> None:
666
+ """Gets a validation set by the id.
667
+
668
+
669
+ :param validation_set_id: The id of the validation set to get. (required)
670
+ :type validation_set_id: str
671
+ :param _request_timeout: timeout setting for this request. If one
672
+ number provided, it will be total request
673
+ timeout. It can also be a pair (tuple) of
674
+ (connection, read) timeouts.
675
+ :type _request_timeout: int, tuple(int, int), optional
676
+ :param _request_auth: set to override the auth_settings for an a single
677
+ request; this effectively ignores the
678
+ authentication in the spec for a single request.
679
+ :type _request_auth: dict, optional
680
+ :param _content_type: force content-type for the request.
681
+ :type _content_type: str, Optional
682
+ :param _headers: set to override the headers for a single
683
+ request; this effectively ignores the headers
684
+ in the spec for a single request.
685
+ :type _headers: dict, optional
686
+ :param _host_index: set to override the host_index for a single
687
+ request; this effectively ignores the host_index
688
+ in the spec for a single request.
689
+ :type _host_index: int, optional
690
+ :return: Returns the result object.
691
+ """ # noqa: E501
692
+
693
+ _param = self._validation_set_validation_set_id_delete_serialize(
694
+ validation_set_id=validation_set_id,
695
+ _request_auth=_request_auth,
696
+ _content_type=_content_type,
697
+ _headers=_headers,
698
+ _host_index=_host_index
699
+ )
700
+
701
+ _response_types_map: Dict[str, Optional[str]] = {
702
+ '204': None,
703
+ }
704
+ response_data = self.api_client.call_api(
705
+ *_param,
706
+ _request_timeout=_request_timeout
707
+ )
708
+ response_data.read()
709
+ return self.api_client.response_deserialize(
710
+ response_data=response_data,
711
+ response_types_map=_response_types_map,
712
+ ).data
713
+
714
+
715
+ @validate_call
716
+ def validation_set_validation_set_id_delete_with_http_info(
717
+ self,
718
+ validation_set_id: Annotated[StrictStr, Field(description="The id of the validation set to get.")],
719
+ _request_timeout: Union[
720
+ None,
721
+ Annotated[StrictFloat, Field(gt=0)],
722
+ Tuple[
723
+ Annotated[StrictFloat, Field(gt=0)],
724
+ Annotated[StrictFloat, Field(gt=0)]
725
+ ]
726
+ ] = None,
727
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
728
+ _content_type: Optional[StrictStr] = None,
729
+ _headers: Optional[Dict[StrictStr, Any]] = None,
730
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
731
+ ) -> ApiResponse[None]:
732
+ """Gets a validation set by the id.
733
+
734
+
735
+ :param validation_set_id: The id of the validation set to get. (required)
736
+ :type validation_set_id: str
737
+ :param _request_timeout: timeout setting for this request. If one
738
+ number provided, it will be total request
739
+ timeout. It can also be a pair (tuple) of
740
+ (connection, read) timeouts.
741
+ :type _request_timeout: int, tuple(int, int), optional
742
+ :param _request_auth: set to override the auth_settings for an a single
743
+ request; this effectively ignores the
744
+ authentication in the spec for a single request.
745
+ :type _request_auth: dict, optional
746
+ :param _content_type: force content-type for the request.
747
+ :type _content_type: str, Optional
748
+ :param _headers: set to override the headers for a single
749
+ request; this effectively ignores the headers
750
+ in the spec for a single request.
751
+ :type _headers: dict, optional
752
+ :param _host_index: set to override the host_index for a single
753
+ request; this effectively ignores the host_index
754
+ in the spec for a single request.
755
+ :type _host_index: int, optional
756
+ :return: Returns the result object.
757
+ """ # noqa: E501
758
+
759
+ _param = self._validation_set_validation_set_id_delete_serialize(
760
+ validation_set_id=validation_set_id,
761
+ _request_auth=_request_auth,
762
+ _content_type=_content_type,
763
+ _headers=_headers,
764
+ _host_index=_host_index
765
+ )
766
+
767
+ _response_types_map: Dict[str, Optional[str]] = {
768
+ '204': None,
769
+ }
770
+ response_data = self.api_client.call_api(
771
+ *_param,
772
+ _request_timeout=_request_timeout
773
+ )
774
+ response_data.read()
775
+ return self.api_client.response_deserialize(
776
+ response_data=response_data,
777
+ response_types_map=_response_types_map,
778
+ )
779
+
780
+
781
+ @validate_call
782
+ def validation_set_validation_set_id_delete_without_preload_content(
783
+ self,
784
+ validation_set_id: Annotated[StrictStr, Field(description="The id of the validation set to get.")],
785
+ _request_timeout: Union[
786
+ None,
787
+ Annotated[StrictFloat, Field(gt=0)],
788
+ Tuple[
789
+ Annotated[StrictFloat, Field(gt=0)],
790
+ Annotated[StrictFloat, Field(gt=0)]
791
+ ]
792
+ ] = None,
793
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
794
+ _content_type: Optional[StrictStr] = None,
795
+ _headers: Optional[Dict[StrictStr, Any]] = None,
796
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
797
+ ) -> RESTResponseType:
798
+ """Gets a validation set by the id.
799
+
800
+
801
+ :param validation_set_id: The id of the validation set to get. (required)
802
+ :type validation_set_id: str
803
+ :param _request_timeout: timeout setting for this request. If one
804
+ number provided, it will be total request
805
+ timeout. It can also be a pair (tuple) of
806
+ (connection, read) timeouts.
807
+ :type _request_timeout: int, tuple(int, int), optional
808
+ :param _request_auth: set to override the auth_settings for an a single
809
+ request; this effectively ignores the
810
+ authentication in the spec for a single request.
811
+ :type _request_auth: dict, optional
812
+ :param _content_type: force content-type for the request.
813
+ :type _content_type: str, Optional
814
+ :param _headers: set to override the headers for a single
815
+ request; this effectively ignores the headers
816
+ in the spec for a single request.
817
+ :type _headers: dict, optional
818
+ :param _host_index: set to override the host_index for a single
819
+ request; this effectively ignores the host_index
820
+ in the spec for a single request.
821
+ :type _host_index: int, optional
822
+ :return: Returns the result object.
823
+ """ # noqa: E501
824
+
825
+ _param = self._validation_set_validation_set_id_delete_serialize(
826
+ validation_set_id=validation_set_id,
827
+ _request_auth=_request_auth,
828
+ _content_type=_content_type,
829
+ _headers=_headers,
830
+ _host_index=_host_index
831
+ )
832
+
833
+ _response_types_map: Dict[str, Optional[str]] = {
834
+ '204': None,
835
+ }
836
+ response_data = self.api_client.call_api(
837
+ *_param,
838
+ _request_timeout=_request_timeout
839
+ )
840
+ return response_data.response
841
+
842
+
843
+ def _validation_set_validation_set_id_delete_serialize(
844
+ self,
845
+ validation_set_id,
846
+ _request_auth,
847
+ _content_type,
848
+ _headers,
849
+ _host_index,
850
+ ) -> RequestSerialized:
851
+
852
+ _host = None
853
+
854
+ _collection_formats: Dict[str, str] = {
855
+ }
856
+
857
+ _path_params: Dict[str, str] = {}
858
+ _query_params: List[Tuple[str, str]] = []
859
+ _header_params: Dict[str, Optional[str]] = _headers or {}
860
+ _form_params: List[Tuple[str, str]] = []
861
+ _files: Dict[
862
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
863
+ ] = {}
864
+ _body_params: Optional[bytes] = None
865
+
866
+ # process the path parameters
867
+ if validation_set_id is not None:
868
+ _path_params['validationSetId'] = validation_set_id
869
+ # process the query parameters
870
+ # process the header parameters
871
+ # process the form parameters
872
+ # process the body parameter
873
+
874
+
875
+
876
+
877
+ # authentication setting
878
+ _auth_settings: List[str] = [
879
+ 'OAuth2',
880
+ 'OpenIdConnect',
881
+ 'Bearer'
882
+ ]
883
+
884
+ return self.api_client.param_serialize(
885
+ method='DELETE',
886
+ resource_path='/validation-set/{validationSetId}',
887
+ path_params=_path_params,
888
+ query_params=_query_params,
889
+ header_params=_header_params,
890
+ body=_body_params,
891
+ post_params=_form_params,
892
+ files=_files,
893
+ auth_settings=_auth_settings,
894
+ collection_formats=_collection_formats,
895
+ _host=_host,
896
+ _request_auth=_request_auth
897
+ )
898
+
899
+
900
+
901
+
902
+ @validate_call
903
+ def validation_set_validation_set_id_export_get(
904
+ self,
905
+ validation_set_id: StrictStr,
906
+ _request_timeout: Union[
907
+ None,
908
+ Annotated[StrictFloat, Field(gt=0)],
909
+ Tuple[
910
+ Annotated[StrictFloat, Field(gt=0)],
911
+ Annotated[StrictFloat, Field(gt=0)]
912
+ ]
913
+ ] = None,
914
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
915
+ _content_type: Optional[StrictStr] = None,
916
+ _headers: Optional[Dict[StrictStr, Any]] = None,
917
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
918
+ ) -> bytearray:
919
+ """Exports all rapids of a validation-set to a file.
920
+
921
+
922
+ :param validation_set_id: (required)
923
+ :type validation_set_id: str
924
+ :param _request_timeout: timeout setting for this request. If one
925
+ number provided, it will be total request
926
+ timeout. It can also be a pair (tuple) of
927
+ (connection, read) timeouts.
928
+ :type _request_timeout: int, tuple(int, int), optional
929
+ :param _request_auth: set to override the auth_settings for an a single
930
+ request; this effectively ignores the
931
+ authentication in the spec for a single request.
932
+ :type _request_auth: dict, optional
933
+ :param _content_type: force content-type for the request.
934
+ :type _content_type: str, Optional
935
+ :param _headers: set to override the headers for a single
936
+ request; this effectively ignores the headers
937
+ in the spec for a single request.
938
+ :type _headers: dict, optional
939
+ :param _host_index: set to override the host_index for a single
940
+ request; this effectively ignores the host_index
941
+ in the spec for a single request.
942
+ :type _host_index: int, optional
943
+ :return: Returns the result object.
944
+ """ # noqa: E501
945
+
946
+ _param = self._validation_set_validation_set_id_export_get_serialize(
947
+ validation_set_id=validation_set_id,
948
+ _request_auth=_request_auth,
949
+ _content_type=_content_type,
950
+ _headers=_headers,
951
+ _host_index=_host_index
952
+ )
953
+
954
+ _response_types_map: Dict[str, Optional[str]] = {
955
+ '200': "bytearray",
956
+ }
957
+ response_data = self.api_client.call_api(
958
+ *_param,
959
+ _request_timeout=_request_timeout
960
+ )
961
+ response_data.read()
962
+ return self.api_client.response_deserialize(
963
+ response_data=response_data,
964
+ response_types_map=_response_types_map,
965
+ ).data
966
+
967
+
968
+ @validate_call
969
+ def validation_set_validation_set_id_export_get_with_http_info(
970
+ self,
971
+ validation_set_id: StrictStr,
972
+ _request_timeout: Union[
973
+ None,
974
+ Annotated[StrictFloat, Field(gt=0)],
975
+ Tuple[
976
+ Annotated[StrictFloat, Field(gt=0)],
977
+ Annotated[StrictFloat, Field(gt=0)]
978
+ ]
979
+ ] = None,
980
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
981
+ _content_type: Optional[StrictStr] = None,
982
+ _headers: Optional[Dict[StrictStr, Any]] = None,
983
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
984
+ ) -> ApiResponse[bytearray]:
985
+ """Exports all rapids of a validation-set to a file.
986
+
987
+
988
+ :param validation_set_id: (required)
989
+ :type validation_set_id: str
990
+ :param _request_timeout: timeout setting for this request. If one
991
+ number provided, it will be total request
992
+ timeout. It can also be a pair (tuple) of
993
+ (connection, read) timeouts.
994
+ :type _request_timeout: int, tuple(int, int), optional
995
+ :param _request_auth: set to override the auth_settings for an a single
996
+ request; this effectively ignores the
997
+ authentication in the spec for a single request.
998
+ :type _request_auth: dict, optional
999
+ :param _content_type: force content-type for the request.
1000
+ :type _content_type: str, Optional
1001
+ :param _headers: set to override the headers for a single
1002
+ request; this effectively ignores the headers
1003
+ in the spec for a single request.
1004
+ :type _headers: dict, optional
1005
+ :param _host_index: set to override the host_index for a single
1006
+ request; this effectively ignores the host_index
1007
+ in the spec for a single request.
1008
+ :type _host_index: int, optional
1009
+ :return: Returns the result object.
1010
+ """ # noqa: E501
1011
+
1012
+ _param = self._validation_set_validation_set_id_export_get_serialize(
1013
+ validation_set_id=validation_set_id,
1014
+ _request_auth=_request_auth,
1015
+ _content_type=_content_type,
1016
+ _headers=_headers,
1017
+ _host_index=_host_index
1018
+ )
1019
+
1020
+ _response_types_map: Dict[str, Optional[str]] = {
1021
+ '200': "bytearray",
1022
+ }
1023
+ response_data = self.api_client.call_api(
1024
+ *_param,
1025
+ _request_timeout=_request_timeout
1026
+ )
1027
+ response_data.read()
1028
+ return self.api_client.response_deserialize(
1029
+ response_data=response_data,
1030
+ response_types_map=_response_types_map,
1031
+ )
1032
+
1033
+
1034
+ @validate_call
1035
+ def validation_set_validation_set_id_export_get_without_preload_content(
1036
+ self,
1037
+ validation_set_id: StrictStr,
1038
+ _request_timeout: Union[
1039
+ None,
1040
+ Annotated[StrictFloat, Field(gt=0)],
1041
+ Tuple[
1042
+ Annotated[StrictFloat, Field(gt=0)],
1043
+ Annotated[StrictFloat, Field(gt=0)]
1044
+ ]
1045
+ ] = None,
1046
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1047
+ _content_type: Optional[StrictStr] = None,
1048
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1049
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1050
+ ) -> RESTResponseType:
1051
+ """Exports all rapids of a validation-set to a file.
1052
+
1053
+
1054
+ :param validation_set_id: (required)
1055
+ :type validation_set_id: str
1056
+ :param _request_timeout: timeout setting for this request. If one
1057
+ number provided, it will be total request
1058
+ timeout. It can also be a pair (tuple) of
1059
+ (connection, read) timeouts.
1060
+ :type _request_timeout: int, tuple(int, int), optional
1061
+ :param _request_auth: set to override the auth_settings for an a single
1062
+ request; this effectively ignores the
1063
+ authentication in the spec for a single request.
1064
+ :type _request_auth: dict, optional
1065
+ :param _content_type: force content-type for the request.
1066
+ :type _content_type: str, Optional
1067
+ :param _headers: set to override the headers for a single
1068
+ request; this effectively ignores the headers
1069
+ in the spec for a single request.
1070
+ :type _headers: dict, optional
1071
+ :param _host_index: set to override the host_index for a single
1072
+ request; this effectively ignores the host_index
1073
+ in the spec for a single request.
1074
+ :type _host_index: int, optional
1075
+ :return: Returns the result object.
1076
+ """ # noqa: E501
1077
+
1078
+ _param = self._validation_set_validation_set_id_export_get_serialize(
1079
+ validation_set_id=validation_set_id,
1080
+ _request_auth=_request_auth,
1081
+ _content_type=_content_type,
1082
+ _headers=_headers,
1083
+ _host_index=_host_index
1084
+ )
1085
+
1086
+ _response_types_map: Dict[str, Optional[str]] = {
1087
+ '200': "bytearray",
1088
+ }
1089
+ response_data = self.api_client.call_api(
1090
+ *_param,
1091
+ _request_timeout=_request_timeout
1092
+ )
1093
+ return response_data.response
1094
+
1095
+
1096
+ def _validation_set_validation_set_id_export_get_serialize(
1097
+ self,
1098
+ validation_set_id,
1099
+ _request_auth,
1100
+ _content_type,
1101
+ _headers,
1102
+ _host_index,
1103
+ ) -> RequestSerialized:
1104
+
1105
+ _host = None
1106
+
1107
+ _collection_formats: Dict[str, str] = {
1108
+ }
1109
+
1110
+ _path_params: Dict[str, str] = {}
1111
+ _query_params: List[Tuple[str, str]] = []
1112
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1113
+ _form_params: List[Tuple[str, str]] = []
1114
+ _files: Dict[
1115
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1116
+ ] = {}
1117
+ _body_params: Optional[bytes] = None
1118
+
1119
+ # process the path parameters
1120
+ if validation_set_id is not None:
1121
+ _path_params['validationSetId'] = validation_set_id
1122
+ # process the query parameters
1123
+ # process the header parameters
1124
+ # process the form parameters
1125
+ # process the body parameter
1126
+
1127
+
1128
+ # set the HTTP header `Accept`
1129
+ if 'Accept' not in _header_params:
1130
+ _header_params['Accept'] = self.api_client.select_header_accept(
1131
+ [
1132
+ 'text/plain',
1133
+ 'application/json',
1134
+ 'text/json'
1135
+ ]
1136
+ )
1137
+
1138
+
1139
+ # authentication setting
1140
+ _auth_settings: List[str] = [
1141
+ 'OAuth2',
1142
+ 'OpenIdConnect',
1143
+ 'Bearer'
1144
+ ]
1145
+
1146
+ return self.api_client.param_serialize(
1147
+ method='GET',
1148
+ resource_path='/validation-set/{validationSetId}/export',
1149
+ path_params=_path_params,
1150
+ query_params=_query_params,
1151
+ header_params=_header_params,
1152
+ body=_body_params,
1153
+ post_params=_form_params,
1154
+ files=_files,
1155
+ auth_settings=_auth_settings,
1156
+ collection_formats=_collection_formats,
1157
+ _host=_host,
1158
+ _request_auth=_request_auth
1159
+ )
1160
+
1161
+
1162
+
1163
+
1164
+ @validate_call
1165
+ def validation_set_validation_set_id_get(
1166
+ self,
1167
+ validation_set_id: Annotated[StrictStr, Field(description="The id of the validation set to get.")],
1168
+ _request_timeout: Union[
1169
+ None,
1170
+ Annotated[StrictFloat, Field(gt=0)],
1171
+ Tuple[
1172
+ Annotated[StrictFloat, Field(gt=0)],
1173
+ Annotated[StrictFloat, Field(gt=0)]
1174
+ ]
1175
+ ] = None,
1176
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1177
+ _content_type: Optional[StrictStr] = None,
1178
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1179
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1180
+ ) -> GetValidationSetByIdResult:
1181
+ """Gets a validation set by the id.
1182
+
1183
+
1184
+ :param validation_set_id: The id of the validation set to get. (required)
1185
+ :type validation_set_id: str
1186
+ :param _request_timeout: timeout setting for this request. If one
1187
+ number provided, it will be total request
1188
+ timeout. It can also be a pair (tuple) of
1189
+ (connection, read) timeouts.
1190
+ :type _request_timeout: int, tuple(int, int), optional
1191
+ :param _request_auth: set to override the auth_settings for an a single
1192
+ request; this effectively ignores the
1193
+ authentication in the spec for a single request.
1194
+ :type _request_auth: dict, optional
1195
+ :param _content_type: force content-type for the request.
1196
+ :type _content_type: str, Optional
1197
+ :param _headers: set to override the headers for a single
1198
+ request; this effectively ignores the headers
1199
+ in the spec for a single request.
1200
+ :type _headers: dict, optional
1201
+ :param _host_index: set to override the host_index for a single
1202
+ request; this effectively ignores the host_index
1203
+ in the spec for a single request.
1204
+ :type _host_index: int, optional
1205
+ :return: Returns the result object.
1206
+ """ # noqa: E501
1207
+
1208
+ _param = self._validation_set_validation_set_id_get_serialize(
1209
+ validation_set_id=validation_set_id,
1210
+ _request_auth=_request_auth,
1211
+ _content_type=_content_type,
1212
+ _headers=_headers,
1213
+ _host_index=_host_index
1214
+ )
1215
+
1216
+ _response_types_map: Dict[str, Optional[str]] = {
1217
+ '200': "GetValidationSetByIdResult",
1218
+ }
1219
+ response_data = self.api_client.call_api(
1220
+ *_param,
1221
+ _request_timeout=_request_timeout
1222
+ )
1223
+ response_data.read()
1224
+ return self.api_client.response_deserialize(
1225
+ response_data=response_data,
1226
+ response_types_map=_response_types_map,
1227
+ ).data
1228
+
1229
+
1230
+ @validate_call
1231
+ def validation_set_validation_set_id_get_with_http_info(
1232
+ self,
1233
+ validation_set_id: Annotated[StrictStr, Field(description="The id of the validation set to get.")],
1234
+ _request_timeout: Union[
1235
+ None,
1236
+ Annotated[StrictFloat, Field(gt=0)],
1237
+ Tuple[
1238
+ Annotated[StrictFloat, Field(gt=0)],
1239
+ Annotated[StrictFloat, Field(gt=0)]
1240
+ ]
1241
+ ] = None,
1242
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1243
+ _content_type: Optional[StrictStr] = None,
1244
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1245
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1246
+ ) -> ApiResponse[GetValidationSetByIdResult]:
1247
+ """Gets a validation set by the id.
1248
+
1249
+
1250
+ :param validation_set_id: The id of the validation set to get. (required)
1251
+ :type validation_set_id: str
1252
+ :param _request_timeout: timeout setting for this request. If one
1253
+ number provided, it will be total request
1254
+ timeout. It can also be a pair (tuple) of
1255
+ (connection, read) timeouts.
1256
+ :type _request_timeout: int, tuple(int, int), optional
1257
+ :param _request_auth: set to override the auth_settings for an a single
1258
+ request; this effectively ignores the
1259
+ authentication in the spec for a single request.
1260
+ :type _request_auth: dict, optional
1261
+ :param _content_type: force content-type for the request.
1262
+ :type _content_type: str, Optional
1263
+ :param _headers: set to override the headers for a single
1264
+ request; this effectively ignores the headers
1265
+ in the spec for a single request.
1266
+ :type _headers: dict, optional
1267
+ :param _host_index: set to override the host_index for a single
1268
+ request; this effectively ignores the host_index
1269
+ in the spec for a single request.
1270
+ :type _host_index: int, optional
1271
+ :return: Returns the result object.
1272
+ """ # noqa: E501
1273
+
1274
+ _param = self._validation_set_validation_set_id_get_serialize(
1275
+ validation_set_id=validation_set_id,
1276
+ _request_auth=_request_auth,
1277
+ _content_type=_content_type,
1278
+ _headers=_headers,
1279
+ _host_index=_host_index
1280
+ )
1281
+
1282
+ _response_types_map: Dict[str, Optional[str]] = {
1283
+ '200': "GetValidationSetByIdResult",
1284
+ }
1285
+ response_data = self.api_client.call_api(
1286
+ *_param,
1287
+ _request_timeout=_request_timeout
1288
+ )
1289
+ response_data.read()
1290
+ return self.api_client.response_deserialize(
1291
+ response_data=response_data,
1292
+ response_types_map=_response_types_map,
1293
+ )
1294
+
1295
+
1296
+ @validate_call
1297
+ def validation_set_validation_set_id_get_without_preload_content(
1298
+ self,
1299
+ validation_set_id: Annotated[StrictStr, Field(description="The id of the validation set to get.")],
1300
+ _request_timeout: Union[
1301
+ None,
1302
+ Annotated[StrictFloat, Field(gt=0)],
1303
+ Tuple[
1304
+ Annotated[StrictFloat, Field(gt=0)],
1305
+ Annotated[StrictFloat, Field(gt=0)]
1306
+ ]
1307
+ ] = None,
1308
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1309
+ _content_type: Optional[StrictStr] = None,
1310
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1311
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1312
+ ) -> RESTResponseType:
1313
+ """Gets a validation set by the id.
1314
+
1315
+
1316
+ :param validation_set_id: The id of the validation set to get. (required)
1317
+ :type validation_set_id: str
1318
+ :param _request_timeout: timeout setting for this request. If one
1319
+ number provided, it will be total request
1320
+ timeout. It can also be a pair (tuple) of
1321
+ (connection, read) timeouts.
1322
+ :type _request_timeout: int, tuple(int, int), optional
1323
+ :param _request_auth: set to override the auth_settings for an a single
1324
+ request; this effectively ignores the
1325
+ authentication in the spec for a single request.
1326
+ :type _request_auth: dict, optional
1327
+ :param _content_type: force content-type for the request.
1328
+ :type _content_type: str, Optional
1329
+ :param _headers: set to override the headers for a single
1330
+ request; this effectively ignores the headers
1331
+ in the spec for a single request.
1332
+ :type _headers: dict, optional
1333
+ :param _host_index: set to override the host_index for a single
1334
+ request; this effectively ignores the host_index
1335
+ in the spec for a single request.
1336
+ :type _host_index: int, optional
1337
+ :return: Returns the result object.
1338
+ """ # noqa: E501
1339
+
1340
+ _param = self._validation_set_validation_set_id_get_serialize(
1341
+ validation_set_id=validation_set_id,
1342
+ _request_auth=_request_auth,
1343
+ _content_type=_content_type,
1344
+ _headers=_headers,
1345
+ _host_index=_host_index
1346
+ )
1347
+
1348
+ _response_types_map: Dict[str, Optional[str]] = {
1349
+ '200': "GetValidationSetByIdResult",
1350
+ }
1351
+ response_data = self.api_client.call_api(
1352
+ *_param,
1353
+ _request_timeout=_request_timeout
1354
+ )
1355
+ return response_data.response
1356
+
1357
+
1358
+ def _validation_set_validation_set_id_get_serialize(
1359
+ self,
1360
+ validation_set_id,
1361
+ _request_auth,
1362
+ _content_type,
1363
+ _headers,
1364
+ _host_index,
1365
+ ) -> RequestSerialized:
1366
+
1367
+ _host = None
1368
+
1369
+ _collection_formats: Dict[str, str] = {
1370
+ }
1371
+
1372
+ _path_params: Dict[str, str] = {}
1373
+ _query_params: List[Tuple[str, str]] = []
1374
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1375
+ _form_params: List[Tuple[str, str]] = []
1376
+ _files: Dict[
1377
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1378
+ ] = {}
1379
+ _body_params: Optional[bytes] = None
1380
+
1381
+ # process the path parameters
1382
+ if validation_set_id is not None:
1383
+ _path_params['validationSetId'] = validation_set_id
1384
+ # process the query parameters
1385
+ # process the header parameters
1386
+ # process the form parameters
1387
+ # process the body parameter
1388
+
1389
+
1390
+ # set the HTTP header `Accept`
1391
+ if 'Accept' not in _header_params:
1392
+ _header_params['Accept'] = self.api_client.select_header_accept(
1393
+ [
1394
+ 'text/plain',
1395
+ 'application/json',
1396
+ 'text/json'
1397
+ ]
1398
+ )
1399
+
1400
+
1401
+ # authentication setting
1402
+ _auth_settings: List[str] = [
1403
+ 'OAuth2',
1404
+ 'OpenIdConnect',
1405
+ 'Bearer'
1406
+ ]
1407
+
1408
+ return self.api_client.param_serialize(
1409
+ method='GET',
1410
+ resource_path='/validation-set/{validationSetId}',
1411
+ path_params=_path_params,
1412
+ query_params=_query_params,
1413
+ header_params=_header_params,
1414
+ body=_body_params,
1415
+ post_params=_form_params,
1416
+ files=_files,
1417
+ auth_settings=_auth_settings,
1418
+ collection_formats=_collection_formats,
1419
+ _host=_host,
1420
+ _request_auth=_request_auth
1421
+ )
1422
+
1423
+
1424
+
1425
+
1426
+ @validate_call
1427
+ def validation_set_validation_set_id_patch(
1428
+ self,
1429
+ validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
1430
+ update_validation_set_model: Annotated[UpdateValidationSetModel, Field(description="The body request for updating the shouldAlert property.")],
1431
+ _request_timeout: Union[
1432
+ None,
1433
+ Annotated[StrictFloat, Field(gt=0)],
1434
+ Tuple[
1435
+ Annotated[StrictFloat, Field(gt=0)],
1436
+ Annotated[StrictFloat, Field(gt=0)]
1437
+ ]
1438
+ ] = None,
1439
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1440
+ _content_type: Optional[StrictStr] = None,
1441
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1442
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1443
+ ) -> None:
1444
+ """Updates different characteristics of a validation set.
1445
+
1446
+
1447
+ :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
1448
+ :type validation_set_id: str
1449
+ :param update_validation_set_model: The body request for updating the shouldAlert property. (required)
1450
+ :type update_validation_set_model: UpdateValidationSetModel
1451
+ :param _request_timeout: timeout setting for this request. If one
1452
+ number provided, it will be total request
1453
+ timeout. It can also be a pair (tuple) of
1454
+ (connection, read) timeouts.
1455
+ :type _request_timeout: int, tuple(int, int), optional
1456
+ :param _request_auth: set to override the auth_settings for an a single
1457
+ request; this effectively ignores the
1458
+ authentication in the spec for a single request.
1459
+ :type _request_auth: dict, optional
1460
+ :param _content_type: force content-type for the request.
1461
+ :type _content_type: str, Optional
1462
+ :param _headers: set to override the headers for a single
1463
+ request; this effectively ignores the headers
1464
+ in the spec for a single request.
1465
+ :type _headers: dict, optional
1466
+ :param _host_index: set to override the host_index for a single
1467
+ request; this effectively ignores the host_index
1468
+ in the spec for a single request.
1469
+ :type _host_index: int, optional
1470
+ :return: Returns the result object.
1471
+ """ # noqa: E501
1472
+
1473
+ _param = self._validation_set_validation_set_id_patch_serialize(
1474
+ validation_set_id=validation_set_id,
1475
+ update_validation_set_model=update_validation_set_model,
1476
+ _request_auth=_request_auth,
1477
+ _content_type=_content_type,
1478
+ _headers=_headers,
1479
+ _host_index=_host_index
1480
+ )
1481
+
1482
+ _response_types_map: Dict[str, Optional[str]] = {
1483
+ '204': None,
1484
+ }
1485
+ response_data = self.api_client.call_api(
1486
+ *_param,
1487
+ _request_timeout=_request_timeout
1488
+ )
1489
+ response_data.read()
1490
+ return self.api_client.response_deserialize(
1491
+ response_data=response_data,
1492
+ response_types_map=_response_types_map,
1493
+ ).data
1494
+
1495
+
1496
+ @validate_call
1497
+ def validation_set_validation_set_id_patch_with_http_info(
1498
+ self,
1499
+ validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
1500
+ update_validation_set_model: Annotated[UpdateValidationSetModel, Field(description="The body request for updating the shouldAlert property.")],
1501
+ _request_timeout: Union[
1502
+ None,
1503
+ Annotated[StrictFloat, Field(gt=0)],
1504
+ Tuple[
1505
+ Annotated[StrictFloat, Field(gt=0)],
1506
+ Annotated[StrictFloat, Field(gt=0)]
1507
+ ]
1508
+ ] = None,
1509
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1510
+ _content_type: Optional[StrictStr] = None,
1511
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1512
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1513
+ ) -> ApiResponse[None]:
1514
+ """Updates different characteristics of a validation set.
1515
+
1516
+
1517
+ :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
1518
+ :type validation_set_id: str
1519
+ :param update_validation_set_model: The body request for updating the shouldAlert property. (required)
1520
+ :type update_validation_set_model: UpdateValidationSetModel
1521
+ :param _request_timeout: timeout setting for this request. If one
1522
+ number provided, it will be total request
1523
+ timeout. It can also be a pair (tuple) of
1524
+ (connection, read) timeouts.
1525
+ :type _request_timeout: int, tuple(int, int), optional
1526
+ :param _request_auth: set to override the auth_settings for an a single
1527
+ request; this effectively ignores the
1528
+ authentication in the spec for a single request.
1529
+ :type _request_auth: dict, optional
1530
+ :param _content_type: force content-type for the request.
1531
+ :type _content_type: str, Optional
1532
+ :param _headers: set to override the headers for a single
1533
+ request; this effectively ignores the headers
1534
+ in the spec for a single request.
1535
+ :type _headers: dict, optional
1536
+ :param _host_index: set to override the host_index for a single
1537
+ request; this effectively ignores the host_index
1538
+ in the spec for a single request.
1539
+ :type _host_index: int, optional
1540
+ :return: Returns the result object.
1541
+ """ # noqa: E501
1542
+
1543
+ _param = self._validation_set_validation_set_id_patch_serialize(
1544
+ validation_set_id=validation_set_id,
1545
+ update_validation_set_model=update_validation_set_model,
1546
+ _request_auth=_request_auth,
1547
+ _content_type=_content_type,
1548
+ _headers=_headers,
1549
+ _host_index=_host_index
1550
+ )
1551
+
1552
+ _response_types_map: Dict[str, Optional[str]] = {
1553
+ '204': None,
1554
+ }
1555
+ response_data = self.api_client.call_api(
1556
+ *_param,
1557
+ _request_timeout=_request_timeout
1558
+ )
1559
+ response_data.read()
1560
+ return self.api_client.response_deserialize(
1561
+ response_data=response_data,
1562
+ response_types_map=_response_types_map,
1563
+ )
1564
+
1565
+
1566
+ @validate_call
1567
+ def validation_set_validation_set_id_patch_without_preload_content(
1568
+ self,
1569
+ validation_set_id: Annotated[StrictStr, Field(description="The Id of the validation set to update the dimensions for.")],
1570
+ update_validation_set_model: Annotated[UpdateValidationSetModel, Field(description="The body request for updating the shouldAlert property.")],
1571
+ _request_timeout: Union[
1572
+ None,
1573
+ Annotated[StrictFloat, Field(gt=0)],
1574
+ Tuple[
1575
+ Annotated[StrictFloat, Field(gt=0)],
1576
+ Annotated[StrictFloat, Field(gt=0)]
1577
+ ]
1578
+ ] = None,
1579
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1580
+ _content_type: Optional[StrictStr] = None,
1581
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1582
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1583
+ ) -> RESTResponseType:
1584
+ """Updates different characteristics of a validation set.
1585
+
1586
+
1587
+ :param validation_set_id: The Id of the validation set to update the dimensions for. (required)
1588
+ :type validation_set_id: str
1589
+ :param update_validation_set_model: The body request for updating the shouldAlert property. (required)
1590
+ :type update_validation_set_model: UpdateValidationSetModel
1591
+ :param _request_timeout: timeout setting for this request. If one
1592
+ number provided, it will be total request
1593
+ timeout. It can also be a pair (tuple) of
1594
+ (connection, read) timeouts.
1595
+ :type _request_timeout: int, tuple(int, int), optional
1596
+ :param _request_auth: set to override the auth_settings for an a single
1597
+ request; this effectively ignores the
1598
+ authentication in the spec for a single request.
1599
+ :type _request_auth: dict, optional
1600
+ :param _content_type: force content-type for the request.
1601
+ :type _content_type: str, Optional
1602
+ :param _headers: set to override the headers for a single
1603
+ request; this effectively ignores the headers
1604
+ in the spec for a single request.
1605
+ :type _headers: dict, optional
1606
+ :param _host_index: set to override the host_index for a single
1607
+ request; this effectively ignores the host_index
1608
+ in the spec for a single request.
1609
+ :type _host_index: int, optional
1610
+ :return: Returns the result object.
1611
+ """ # noqa: E501
1612
+
1613
+ _param = self._validation_set_validation_set_id_patch_serialize(
1614
+ validation_set_id=validation_set_id,
1615
+ update_validation_set_model=update_validation_set_model,
1616
+ _request_auth=_request_auth,
1617
+ _content_type=_content_type,
1618
+ _headers=_headers,
1619
+ _host_index=_host_index
1620
+ )
1621
+
1622
+ _response_types_map: Dict[str, Optional[str]] = {
1623
+ '204': None,
1624
+ }
1625
+ response_data = self.api_client.call_api(
1626
+ *_param,
1627
+ _request_timeout=_request_timeout
1628
+ )
1629
+ return response_data.response
1630
+
1631
+
1632
+ def _validation_set_validation_set_id_patch_serialize(
1633
+ self,
1634
+ validation_set_id,
1635
+ update_validation_set_model,
1636
+ _request_auth,
1637
+ _content_type,
1638
+ _headers,
1639
+ _host_index,
1640
+ ) -> RequestSerialized:
1641
+
1642
+ _host = None
1643
+
1644
+ _collection_formats: Dict[str, str] = {
1645
+ }
1646
+
1647
+ _path_params: Dict[str, str] = {}
1648
+ _query_params: List[Tuple[str, str]] = []
1649
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1650
+ _form_params: List[Tuple[str, str]] = []
1651
+ _files: Dict[
1652
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1653
+ ] = {}
1654
+ _body_params: Optional[bytes] = None
1655
+
1656
+ # process the path parameters
1657
+ if validation_set_id is not None:
1658
+ _path_params['validationSetId'] = validation_set_id
1659
+ # process the query parameters
1660
+ # process the header parameters
1661
+ # process the form parameters
1662
+ # process the body parameter
1663
+ if update_validation_set_model is not None:
1664
+ _body_params = update_validation_set_model
1665
+
1666
+
1667
+
1668
+ # set the HTTP header `Content-Type`
1669
+ if _content_type:
1670
+ _header_params['Content-Type'] = _content_type
1671
+ else:
1672
+ _default_content_type = (
1673
+ self.api_client.select_header_content_type(
1674
+ [
1675
+ 'application/json',
1676
+ 'text/json',
1677
+ 'application/*+json'
1678
+ ]
1679
+ )
1680
+ )
1681
+ if _default_content_type is not None:
1682
+ _header_params['Content-Type'] = _default_content_type
1683
+
1684
+ # authentication setting
1685
+ _auth_settings: List[str] = [
1686
+ 'OAuth2',
1687
+ 'OpenIdConnect',
1688
+ 'Bearer'
1689
+ ]
1690
+
1691
+ return self.api_client.param_serialize(
1692
+ method='PATCH',
1693
+ resource_path='/validation-set/{validationSetId}',
1694
+ path_params=_path_params,
1695
+ query_params=_query_params,
1696
+ header_params=_header_params,
1697
+ body=_body_params,
1698
+ post_params=_form_params,
1699
+ files=_files,
1700
+ auth_settings=_auth_settings,
1701
+ collection_formats=_collection_formats,
1702
+ _host=_host,
1703
+ _request_auth=_request_auth
1704
+ )
1705
+
1706
+
1707
+
1708
+
1709
+ @validate_call
1710
+ def validation_set_validation_set_id_rapid_post(
1711
+ self,
1712
+ validation_set_id: Annotated[StrictStr, Field(description="The validation set to add a rapid to.")],
1713
+ add_validation_rapid_model: Annotated[AddValidationRapidModel, Field(description="The validation rapid data including asset, payload, and metadata.")],
1714
+ _request_timeout: Union[
1715
+ None,
1716
+ Annotated[StrictFloat, Field(gt=0)],
1717
+ Tuple[
1718
+ Annotated[StrictFloat, Field(gt=0)],
1719
+ Annotated[StrictFloat, Field(gt=0)]
1720
+ ]
1721
+ ] = None,
1722
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1723
+ _content_type: Optional[StrictStr] = None,
1724
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1725
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1726
+ ) -> None:
1727
+ """Adds a new validation rapid to the validation set using JSON body.
1728
+
1729
+
1730
+ :param validation_set_id: The validation set to add a rapid to. (required)
1731
+ :type validation_set_id: str
1732
+ :param add_validation_rapid_model: The validation rapid data including asset, payload, and metadata. (required)
1733
+ :type add_validation_rapid_model: AddValidationRapidModel
1734
+ :param _request_timeout: timeout setting for this request. If one
1735
+ number provided, it will be total request
1736
+ timeout. It can also be a pair (tuple) of
1737
+ (connection, read) timeouts.
1738
+ :type _request_timeout: int, tuple(int, int), optional
1739
+ :param _request_auth: set to override the auth_settings for an a single
1740
+ request; this effectively ignores the
1741
+ authentication in the spec for a single request.
1742
+ :type _request_auth: dict, optional
1743
+ :param _content_type: force content-type for the request.
1744
+ :type _content_type: str, Optional
1745
+ :param _headers: set to override the headers for a single
1746
+ request; this effectively ignores the headers
1747
+ in the spec for a single request.
1748
+ :type _headers: dict, optional
1749
+ :param _host_index: set to override the host_index for a single
1750
+ request; this effectively ignores the host_index
1751
+ in the spec for a single request.
1752
+ :type _host_index: int, optional
1753
+ :return: Returns the result object.
1754
+ """ # noqa: E501
1755
+
1756
+ _param = self._validation_set_validation_set_id_rapid_post_serialize(
1757
+ validation_set_id=validation_set_id,
1758
+ add_validation_rapid_model=add_validation_rapid_model,
1759
+ _request_auth=_request_auth,
1760
+ _content_type=_content_type,
1761
+ _headers=_headers,
1762
+ _host_index=_host_index
1763
+ )
1764
+
1765
+ _response_types_map: Dict[str, Optional[str]] = {
1766
+ '204': None,
1767
+ }
1768
+ response_data = self.api_client.call_api(
1769
+ *_param,
1770
+ _request_timeout=_request_timeout
1771
+ )
1772
+ response_data.read()
1773
+ return self.api_client.response_deserialize(
1774
+ response_data=response_data,
1775
+ response_types_map=_response_types_map,
1776
+ ).data
1777
+
1778
+
1779
+ @validate_call
1780
+ def validation_set_validation_set_id_rapid_post_with_http_info(
1781
+ self,
1782
+ validation_set_id: Annotated[StrictStr, Field(description="The validation set to add a rapid to.")],
1783
+ add_validation_rapid_model: Annotated[AddValidationRapidModel, Field(description="The validation rapid data including asset, payload, and metadata.")],
1784
+ _request_timeout: Union[
1785
+ None,
1786
+ Annotated[StrictFloat, Field(gt=0)],
1787
+ Tuple[
1788
+ Annotated[StrictFloat, Field(gt=0)],
1789
+ Annotated[StrictFloat, Field(gt=0)]
1790
+ ]
1791
+ ] = None,
1792
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1793
+ _content_type: Optional[StrictStr] = None,
1794
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1795
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1796
+ ) -> ApiResponse[None]:
1797
+ """Adds a new validation rapid to the validation set using JSON body.
1798
+
1799
+
1800
+ :param validation_set_id: The validation set to add a rapid to. (required)
1801
+ :type validation_set_id: str
1802
+ :param add_validation_rapid_model: The validation rapid data including asset, payload, and metadata. (required)
1803
+ :type add_validation_rapid_model: AddValidationRapidModel
1804
+ :param _request_timeout: timeout setting for this request. If one
1805
+ number provided, it will be total request
1806
+ timeout. It can also be a pair (tuple) of
1807
+ (connection, read) timeouts.
1808
+ :type _request_timeout: int, tuple(int, int), optional
1809
+ :param _request_auth: set to override the auth_settings for an a single
1810
+ request; this effectively ignores the
1811
+ authentication in the spec for a single request.
1812
+ :type _request_auth: dict, optional
1813
+ :param _content_type: force content-type for the request.
1814
+ :type _content_type: str, Optional
1815
+ :param _headers: set to override the headers for a single
1816
+ request; this effectively ignores the headers
1817
+ in the spec for a single request.
1818
+ :type _headers: dict, optional
1819
+ :param _host_index: set to override the host_index for a single
1820
+ request; this effectively ignores the host_index
1821
+ in the spec for a single request.
1822
+ :type _host_index: int, optional
1823
+ :return: Returns the result object.
1824
+ """ # noqa: E501
1825
+
1826
+ _param = self._validation_set_validation_set_id_rapid_post_serialize(
1827
+ validation_set_id=validation_set_id,
1828
+ add_validation_rapid_model=add_validation_rapid_model,
1829
+ _request_auth=_request_auth,
1830
+ _content_type=_content_type,
1831
+ _headers=_headers,
1832
+ _host_index=_host_index
1833
+ )
1834
+
1835
+ _response_types_map: Dict[str, Optional[str]] = {
1836
+ '204': None,
1837
+ }
1838
+ response_data = self.api_client.call_api(
1839
+ *_param,
1840
+ _request_timeout=_request_timeout
1841
+ )
1842
+ response_data.read()
1843
+ return self.api_client.response_deserialize(
1844
+ response_data=response_data,
1845
+ response_types_map=_response_types_map,
1846
+ )
1847
+
1848
+
1849
+ @validate_call
1850
+ def validation_set_validation_set_id_rapid_post_without_preload_content(
1851
+ self,
1852
+ validation_set_id: Annotated[StrictStr, Field(description="The validation set to add a rapid to.")],
1853
+ add_validation_rapid_model: Annotated[AddValidationRapidModel, Field(description="The validation rapid data including asset, payload, and metadata.")],
1854
+ _request_timeout: Union[
1855
+ None,
1856
+ Annotated[StrictFloat, Field(gt=0)],
1857
+ Tuple[
1858
+ Annotated[StrictFloat, Field(gt=0)],
1859
+ Annotated[StrictFloat, Field(gt=0)]
1860
+ ]
1861
+ ] = None,
1862
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1863
+ _content_type: Optional[StrictStr] = None,
1864
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1865
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1866
+ ) -> RESTResponseType:
1867
+ """Adds a new validation rapid to the validation set using JSON body.
1868
+
1869
+
1870
+ :param validation_set_id: The validation set to add a rapid to. (required)
1871
+ :type validation_set_id: str
1872
+ :param add_validation_rapid_model: The validation rapid data including asset, payload, and metadata. (required)
1873
+ :type add_validation_rapid_model: AddValidationRapidModel
1874
+ :param _request_timeout: timeout setting for this request. If one
1875
+ number provided, it will be total request
1876
+ timeout. It can also be a pair (tuple) of
1877
+ (connection, read) timeouts.
1878
+ :type _request_timeout: int, tuple(int, int), optional
1879
+ :param _request_auth: set to override the auth_settings for an a single
1880
+ request; this effectively ignores the
1881
+ authentication in the spec for a single request.
1882
+ :type _request_auth: dict, optional
1883
+ :param _content_type: force content-type for the request.
1884
+ :type _content_type: str, Optional
1885
+ :param _headers: set to override the headers for a single
1886
+ request; this effectively ignores the headers
1887
+ in the spec for a single request.
1888
+ :type _headers: dict, optional
1889
+ :param _host_index: set to override the host_index for a single
1890
+ request; this effectively ignores the host_index
1891
+ in the spec for a single request.
1892
+ :type _host_index: int, optional
1893
+ :return: Returns the result object.
1894
+ """ # noqa: E501
1895
+
1896
+ _param = self._validation_set_validation_set_id_rapid_post_serialize(
1897
+ validation_set_id=validation_set_id,
1898
+ add_validation_rapid_model=add_validation_rapid_model,
1899
+ _request_auth=_request_auth,
1900
+ _content_type=_content_type,
1901
+ _headers=_headers,
1902
+ _host_index=_host_index
1903
+ )
1904
+
1905
+ _response_types_map: Dict[str, Optional[str]] = {
1906
+ '204': None,
1907
+ }
1908
+ response_data = self.api_client.call_api(
1909
+ *_param,
1910
+ _request_timeout=_request_timeout
1911
+ )
1912
+ return response_data.response
1913
+
1914
+
1915
+ def _validation_set_validation_set_id_rapid_post_serialize(
1916
+ self,
1917
+ validation_set_id,
1918
+ add_validation_rapid_model,
1919
+ _request_auth,
1920
+ _content_type,
1921
+ _headers,
1922
+ _host_index,
1923
+ ) -> RequestSerialized:
1924
+
1925
+ _host = None
1926
+
1927
+ _collection_formats: Dict[str, str] = {
1928
+ }
1929
+
1930
+ _path_params: Dict[str, str] = {}
1931
+ _query_params: List[Tuple[str, str]] = []
1932
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1933
+ _form_params: List[Tuple[str, str]] = []
1934
+ _files: Dict[
1935
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1936
+ ] = {}
1937
+ _body_params: Optional[bytes] = None
1938
+
1939
+ # process the path parameters
1940
+ if validation_set_id is not None:
1941
+ _path_params['validationSetId'] = validation_set_id
1942
+ # process the query parameters
1943
+ # process the header parameters
1944
+ # process the form parameters
1945
+ # process the body parameter
1946
+ if add_validation_rapid_model is not None:
1947
+ _body_params = add_validation_rapid_model
1948
+
1949
+
1950
+
1951
+ # set the HTTP header `Content-Type`
1952
+ if _content_type:
1953
+ _header_params['Content-Type'] = _content_type
1954
+ else:
1955
+ _default_content_type = (
1956
+ self.api_client.select_header_content_type(
1957
+ [
1958
+ 'application/json',
1959
+ 'text/json',
1960
+ 'application/*+json'
1961
+ ]
1962
+ )
1963
+ )
1964
+ if _default_content_type is not None:
1965
+ _header_params['Content-Type'] = _default_content_type
1966
+
1967
+ # authentication setting
1968
+ _auth_settings: List[str] = [
1969
+ 'OAuth2',
1970
+ 'OpenIdConnect',
1971
+ 'Bearer'
1972
+ ]
1973
+
1974
+ return self.api_client.param_serialize(
1975
+ method='POST',
1976
+ resource_path='/validation-set/{validationSetId}/rapid',
1977
+ path_params=_path_params,
1978
+ query_params=_query_params,
1979
+ header_params=_header_params,
1980
+ body=_body_params,
1981
+ post_params=_form_params,
1982
+ files=_files,
1983
+ auth_settings=_auth_settings,
1984
+ collection_formats=_collection_formats,
1985
+ _host=_host,
1986
+ _request_auth=_request_auth
1987
+ )
1988
+
1989
+
1990
+
1991
+
1992
+ @validate_call
1993
+ def validation_set_validation_set_id_rapids_get(
1994
+ self,
1995
+ validation_set_id: Annotated[StrictStr, Field(description="The validation set to query.")],
1996
+ model: Annotated[Optional[QueryModel], Field(description="The request formatted as a JSON in the query parameters.")] = None,
1997
+ _request_timeout: Union[
1998
+ None,
1999
+ Annotated[StrictFloat, Field(gt=0)],
2000
+ Tuple[
2001
+ Annotated[StrictFloat, Field(gt=0)],
2002
+ Annotated[StrictFloat, Field(gt=0)]
2003
+ ]
2004
+ ] = None,
2005
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2006
+ _content_type: Optional[StrictStr] = None,
2007
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2008
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2009
+ ) -> PagedResultOfGetValidationRapidsResult:
2010
+ """Queries the validation rapids for a specific validation set.
2011
+
2012
+
2013
+ :param validation_set_id: The validation set to query. (required)
2014
+ :type validation_set_id: str
2015
+ :param model: The request formatted as a JSON in the query parameters.
2016
+ :type model: QueryModel
2017
+ :param _request_timeout: timeout setting for this request. If one
2018
+ number provided, it will be total request
2019
+ timeout. It can also be a pair (tuple) of
2020
+ (connection, read) timeouts.
2021
+ :type _request_timeout: int, tuple(int, int), optional
2022
+ :param _request_auth: set to override the auth_settings for an a single
2023
+ request; this effectively ignores the
2024
+ authentication in the spec for a single request.
2025
+ :type _request_auth: dict, optional
2026
+ :param _content_type: force content-type for the request.
2027
+ :type _content_type: str, Optional
2028
+ :param _headers: set to override the headers for a single
2029
+ request; this effectively ignores the headers
2030
+ in the spec for a single request.
2031
+ :type _headers: dict, optional
2032
+ :param _host_index: set to override the host_index for a single
2033
+ request; this effectively ignores the host_index
2034
+ in the spec for a single request.
2035
+ :type _host_index: int, optional
2036
+ :return: Returns the result object.
2037
+ """ # noqa: E501
2038
+
2039
+ _param = self._validation_set_validation_set_id_rapids_get_serialize(
2040
+ validation_set_id=validation_set_id,
2041
+ model=model,
2042
+ _request_auth=_request_auth,
2043
+ _content_type=_content_type,
2044
+ _headers=_headers,
2045
+ _host_index=_host_index
2046
+ )
2047
+
2048
+ _response_types_map: Dict[str, Optional[str]] = {
2049
+ '200': "PagedResultOfGetValidationRapidsResult",
2050
+ }
2051
+ response_data = self.api_client.call_api(
2052
+ *_param,
2053
+ _request_timeout=_request_timeout
2054
+ )
2055
+ response_data.read()
2056
+ return self.api_client.response_deserialize(
2057
+ response_data=response_data,
2058
+ response_types_map=_response_types_map,
2059
+ ).data
2060
+
2061
+
2062
+ @validate_call
2063
+ def validation_set_validation_set_id_rapids_get_with_http_info(
2064
+ self,
2065
+ validation_set_id: Annotated[StrictStr, Field(description="The validation set to query.")],
2066
+ model: Annotated[Optional[QueryModel], Field(description="The request formatted as a JSON in the query parameters.")] = None,
2067
+ _request_timeout: Union[
2068
+ None,
2069
+ Annotated[StrictFloat, Field(gt=0)],
2070
+ Tuple[
2071
+ Annotated[StrictFloat, Field(gt=0)],
2072
+ Annotated[StrictFloat, Field(gt=0)]
2073
+ ]
2074
+ ] = None,
2075
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2076
+ _content_type: Optional[StrictStr] = None,
2077
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2078
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2079
+ ) -> ApiResponse[PagedResultOfGetValidationRapidsResult]:
2080
+ """Queries the validation rapids for a specific validation set.
2081
+
2082
+
2083
+ :param validation_set_id: The validation set to query. (required)
2084
+ :type validation_set_id: str
2085
+ :param model: The request formatted as a JSON in the query parameters.
2086
+ :type model: QueryModel
2087
+ :param _request_timeout: timeout setting for this request. If one
2088
+ number provided, it will be total request
2089
+ timeout. It can also be a pair (tuple) of
2090
+ (connection, read) timeouts.
2091
+ :type _request_timeout: int, tuple(int, int), optional
2092
+ :param _request_auth: set to override the auth_settings for an a single
2093
+ request; this effectively ignores the
2094
+ authentication in the spec for a single request.
2095
+ :type _request_auth: dict, optional
2096
+ :param _content_type: force content-type for the request.
2097
+ :type _content_type: str, Optional
2098
+ :param _headers: set to override the headers for a single
2099
+ request; this effectively ignores the headers
2100
+ in the spec for a single request.
2101
+ :type _headers: dict, optional
2102
+ :param _host_index: set to override the host_index for a single
2103
+ request; this effectively ignores the host_index
2104
+ in the spec for a single request.
2105
+ :type _host_index: int, optional
2106
+ :return: Returns the result object.
2107
+ """ # noqa: E501
2108
+
2109
+ _param = self._validation_set_validation_set_id_rapids_get_serialize(
2110
+ validation_set_id=validation_set_id,
2111
+ model=model,
2112
+ _request_auth=_request_auth,
2113
+ _content_type=_content_type,
2114
+ _headers=_headers,
2115
+ _host_index=_host_index
2116
+ )
2117
+
2118
+ _response_types_map: Dict[str, Optional[str]] = {
2119
+ '200': "PagedResultOfGetValidationRapidsResult",
2120
+ }
2121
+ response_data = self.api_client.call_api(
2122
+ *_param,
2123
+ _request_timeout=_request_timeout
2124
+ )
2125
+ response_data.read()
2126
+ return self.api_client.response_deserialize(
2127
+ response_data=response_data,
2128
+ response_types_map=_response_types_map,
2129
+ )
2130
+
2131
+
2132
+ @validate_call
2133
+ def validation_set_validation_set_id_rapids_get_without_preload_content(
2134
+ self,
2135
+ validation_set_id: Annotated[StrictStr, Field(description="The validation set to query.")],
2136
+ model: Annotated[Optional[QueryModel], Field(description="The request formatted as a JSON in the query parameters.")] = None,
2137
+ _request_timeout: Union[
2138
+ None,
2139
+ Annotated[StrictFloat, Field(gt=0)],
2140
+ Tuple[
2141
+ Annotated[StrictFloat, Field(gt=0)],
2142
+ Annotated[StrictFloat, Field(gt=0)]
2143
+ ]
2144
+ ] = None,
2145
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2146
+ _content_type: Optional[StrictStr] = None,
2147
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2148
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2149
+ ) -> RESTResponseType:
2150
+ """Queries the validation rapids for a specific validation set.
2151
+
2152
+
2153
+ :param validation_set_id: The validation set to query. (required)
2154
+ :type validation_set_id: str
2155
+ :param model: The request formatted as a JSON in the query parameters.
2156
+ :type model: QueryModel
2157
+ :param _request_timeout: timeout setting for this request. If one
2158
+ number provided, it will be total request
2159
+ timeout. It can also be a pair (tuple) of
2160
+ (connection, read) timeouts.
2161
+ :type _request_timeout: int, tuple(int, int), optional
2162
+ :param _request_auth: set to override the auth_settings for an a single
2163
+ request; this effectively ignores the
2164
+ authentication in the spec for a single request.
2165
+ :type _request_auth: dict, optional
2166
+ :param _content_type: force content-type for the request.
2167
+ :type _content_type: str, Optional
2168
+ :param _headers: set to override the headers for a single
2169
+ request; this effectively ignores the headers
2170
+ in the spec for a single request.
2171
+ :type _headers: dict, optional
2172
+ :param _host_index: set to override the host_index for a single
2173
+ request; this effectively ignores the host_index
2174
+ in the spec for a single request.
2175
+ :type _host_index: int, optional
2176
+ :return: Returns the result object.
2177
+ """ # noqa: E501
2178
+
2179
+ _param = self._validation_set_validation_set_id_rapids_get_serialize(
2180
+ validation_set_id=validation_set_id,
2181
+ model=model,
2182
+ _request_auth=_request_auth,
2183
+ _content_type=_content_type,
2184
+ _headers=_headers,
2185
+ _host_index=_host_index
2186
+ )
2187
+
2188
+ _response_types_map: Dict[str, Optional[str]] = {
2189
+ '200': "PagedResultOfGetValidationRapidsResult",
2190
+ }
2191
+ response_data = self.api_client.call_api(
2192
+ *_param,
2193
+ _request_timeout=_request_timeout
2194
+ )
2195
+ return response_data.response
2196
+
2197
+
2198
+ def _validation_set_validation_set_id_rapids_get_serialize(
2199
+ self,
2200
+ validation_set_id,
2201
+ model,
2202
+ _request_auth,
2203
+ _content_type,
2204
+ _headers,
2205
+ _host_index,
2206
+ ) -> RequestSerialized:
2207
+
2208
+ _host = None
2209
+
2210
+ _collection_formats: Dict[str, str] = {
2211
+ }
2212
+
2213
+ _path_params: Dict[str, str] = {}
2214
+ _query_params: List[Tuple[str, str]] = []
2215
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2216
+ _form_params: List[Tuple[str, str]] = []
2217
+ _files: Dict[
2218
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2219
+ ] = {}
2220
+ _body_params: Optional[bytes] = None
2221
+
2222
+ # process the path parameters
2223
+ if validation_set_id is not None:
2224
+ _path_params['validationSetId'] = validation_set_id
2225
+ # process the query parameters
2226
+ if model is not None:
2227
+
2228
+ _query_params.append(('model', model))
2229
+
2230
+ # process the header parameters
2231
+ # process the form parameters
2232
+ # process the body parameter
2233
+
2234
+
2235
+ # set the HTTP header `Accept`
2236
+ if 'Accept' not in _header_params:
2237
+ _header_params['Accept'] = self.api_client.select_header_accept(
2238
+ [
2239
+ 'text/plain',
2240
+ 'application/json',
2241
+ 'text/json'
2242
+ ]
2243
+ )
2244
+
2245
+
2246
+ # authentication setting
2247
+ _auth_settings: List[str] = [
2248
+ 'OAuth2',
2249
+ 'OpenIdConnect',
2250
+ 'Bearer'
2251
+ ]
2252
+
2253
+ return self.api_client.param_serialize(
2254
+ method='GET',
2255
+ resource_path='/validation-set/{validationSetId}/rapids',
2256
+ path_params=_path_params,
2257
+ query_params=_query_params,
2258
+ header_params=_header_params,
2259
+ body=_body_params,
2260
+ post_params=_form_params,
2261
+ files=_files,
2262
+ auth_settings=_auth_settings,
2263
+ collection_formats=_collection_formats,
2264
+ _host=_host,
2265
+ _request_auth=_request_auth
2266
+ )
2267
+
2268
+
2269
+
2270
+
2271
+ @validate_call
2272
+ def validation_set_validation_set_id_visibility_patch(
2273
+ self,
2274
+ validation_set_id: Annotated[StrictStr, Field(description="The id of the validation set to update the visibility for.")],
2275
+ is_public: Annotated[Optional[StrictBool], Field(description="Whether the validation set should be public or private.")] = None,
2276
+ _request_timeout: Union[
2277
+ None,
2278
+ Annotated[StrictFloat, Field(gt=0)],
2279
+ Tuple[
2280
+ Annotated[StrictFloat, Field(gt=0)],
2281
+ Annotated[StrictFloat, Field(gt=0)]
2282
+ ]
2283
+ ] = None,
2284
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2285
+ _content_type: Optional[StrictStr] = None,
2286
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2287
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2288
+ ) -> None:
2289
+ """Updates the visibility of a validation set.
2290
+
2291
+ Public validation sets are used to automatically add a validation set to an order if no validation set is specified.
2292
+
2293
+ :param validation_set_id: The id of the validation set to update the visibility for. (required)
2294
+ :type validation_set_id: str
2295
+ :param is_public: Whether the validation set should be public or private.
2296
+ :type is_public: bool
2297
+ :param _request_timeout: timeout setting for this request. If one
2298
+ number provided, it will be total request
2299
+ timeout. It can also be a pair (tuple) of
2300
+ (connection, read) timeouts.
2301
+ :type _request_timeout: int, tuple(int, int), optional
2302
+ :param _request_auth: set to override the auth_settings for an a single
2303
+ request; this effectively ignores the
2304
+ authentication in the spec for a single request.
2305
+ :type _request_auth: dict, optional
2306
+ :param _content_type: force content-type for the request.
2307
+ :type _content_type: str, Optional
2308
+ :param _headers: set to override the headers for a single
2309
+ request; this effectively ignores the headers
2310
+ in the spec for a single request.
2311
+ :type _headers: dict, optional
2312
+ :param _host_index: set to override the host_index for a single
2313
+ request; this effectively ignores the host_index
2314
+ in the spec for a single request.
2315
+ :type _host_index: int, optional
2316
+ :return: Returns the result object.
2317
+ """ # noqa: E501
2318
+
2319
+ _param = self._validation_set_validation_set_id_visibility_patch_serialize(
2320
+ validation_set_id=validation_set_id,
2321
+ is_public=is_public,
2322
+ _request_auth=_request_auth,
2323
+ _content_type=_content_type,
2324
+ _headers=_headers,
2325
+ _host_index=_host_index
2326
+ )
2327
+
2328
+ _response_types_map: Dict[str, Optional[str]] = {
2329
+ '204': None,
2330
+ }
2331
+ response_data = self.api_client.call_api(
2332
+ *_param,
2333
+ _request_timeout=_request_timeout
2334
+ )
2335
+ response_data.read()
2336
+ return self.api_client.response_deserialize(
2337
+ response_data=response_data,
2338
+ response_types_map=_response_types_map,
2339
+ ).data
2340
+
2341
+
2342
+ @validate_call
2343
+ def validation_set_validation_set_id_visibility_patch_with_http_info(
2344
+ self,
2345
+ validation_set_id: Annotated[StrictStr, Field(description="The id of the validation set to update the visibility for.")],
2346
+ is_public: Annotated[Optional[StrictBool], Field(description="Whether the validation set should be public or private.")] = None,
2347
+ _request_timeout: Union[
2348
+ None,
2349
+ Annotated[StrictFloat, Field(gt=0)],
2350
+ Tuple[
2351
+ Annotated[StrictFloat, Field(gt=0)],
2352
+ Annotated[StrictFloat, Field(gt=0)]
2353
+ ]
2354
+ ] = None,
2355
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2356
+ _content_type: Optional[StrictStr] = None,
2357
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2358
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2359
+ ) -> ApiResponse[None]:
2360
+ """Updates the visibility of a validation set.
2361
+
2362
+ Public validation sets are used to automatically add a validation set to an order if no validation set is specified.
2363
+
2364
+ :param validation_set_id: The id of the validation set to update the visibility for. (required)
2365
+ :type validation_set_id: str
2366
+ :param is_public: Whether the validation set should be public or private.
2367
+ :type is_public: bool
2368
+ :param _request_timeout: timeout setting for this request. If one
2369
+ number provided, it will be total request
2370
+ timeout. It can also be a pair (tuple) of
2371
+ (connection, read) timeouts.
2372
+ :type _request_timeout: int, tuple(int, int), optional
2373
+ :param _request_auth: set to override the auth_settings for an a single
2374
+ request; this effectively ignores the
2375
+ authentication in the spec for a single request.
2376
+ :type _request_auth: dict, optional
2377
+ :param _content_type: force content-type for the request.
2378
+ :type _content_type: str, Optional
2379
+ :param _headers: set to override the headers for a single
2380
+ request; this effectively ignores the headers
2381
+ in the spec for a single request.
2382
+ :type _headers: dict, optional
2383
+ :param _host_index: set to override the host_index for a single
2384
+ request; this effectively ignores the host_index
2385
+ in the spec for a single request.
2386
+ :type _host_index: int, optional
2387
+ :return: Returns the result object.
2388
+ """ # noqa: E501
2389
+
2390
+ _param = self._validation_set_validation_set_id_visibility_patch_serialize(
2391
+ validation_set_id=validation_set_id,
2392
+ is_public=is_public,
2393
+ _request_auth=_request_auth,
2394
+ _content_type=_content_type,
2395
+ _headers=_headers,
2396
+ _host_index=_host_index
2397
+ )
2398
+
2399
+ _response_types_map: Dict[str, Optional[str]] = {
2400
+ '204': None,
2401
+ }
2402
+ response_data = self.api_client.call_api(
2403
+ *_param,
2404
+ _request_timeout=_request_timeout
2405
+ )
2406
+ response_data.read()
2407
+ return self.api_client.response_deserialize(
2408
+ response_data=response_data,
2409
+ response_types_map=_response_types_map,
2410
+ )
2411
+
2412
+
2413
+ @validate_call
2414
+ def validation_set_validation_set_id_visibility_patch_without_preload_content(
2415
+ self,
2416
+ validation_set_id: Annotated[StrictStr, Field(description="The id of the validation set to update the visibility for.")],
2417
+ is_public: Annotated[Optional[StrictBool], Field(description="Whether the validation set should be public or private.")] = None,
2418
+ _request_timeout: Union[
2419
+ None,
2420
+ Annotated[StrictFloat, Field(gt=0)],
2421
+ Tuple[
2422
+ Annotated[StrictFloat, Field(gt=0)],
2423
+ Annotated[StrictFloat, Field(gt=0)]
2424
+ ]
2425
+ ] = None,
2426
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2427
+ _content_type: Optional[StrictStr] = None,
2428
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2429
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2430
+ ) -> RESTResponseType:
2431
+ """Updates the visibility of a validation set.
2432
+
2433
+ Public validation sets are used to automatically add a validation set to an order if no validation set is specified.
2434
+
2435
+ :param validation_set_id: The id of the validation set to update the visibility for. (required)
2436
+ :type validation_set_id: str
2437
+ :param is_public: Whether the validation set should be public or private.
2438
+ :type is_public: bool
2439
+ :param _request_timeout: timeout setting for this request. If one
2440
+ number provided, it will be total request
2441
+ timeout. It can also be a pair (tuple) of
2442
+ (connection, read) timeouts.
2443
+ :type _request_timeout: int, tuple(int, int), optional
2444
+ :param _request_auth: set to override the auth_settings for an a single
2445
+ request; this effectively ignores the
2446
+ authentication in the spec for a single request.
2447
+ :type _request_auth: dict, optional
2448
+ :param _content_type: force content-type for the request.
2449
+ :type _content_type: str, Optional
2450
+ :param _headers: set to override the headers for a single
2451
+ request; this effectively ignores the headers
2452
+ in the spec for a single request.
2453
+ :type _headers: dict, optional
2454
+ :param _host_index: set to override the host_index for a single
2455
+ request; this effectively ignores the host_index
2456
+ in the spec for a single request.
2457
+ :type _host_index: int, optional
2458
+ :return: Returns the result object.
2459
+ """ # noqa: E501
2460
+
2461
+ _param = self._validation_set_validation_set_id_visibility_patch_serialize(
2462
+ validation_set_id=validation_set_id,
2463
+ is_public=is_public,
2464
+ _request_auth=_request_auth,
2465
+ _content_type=_content_type,
2466
+ _headers=_headers,
2467
+ _host_index=_host_index
2468
+ )
2469
+
2470
+ _response_types_map: Dict[str, Optional[str]] = {
2471
+ '204': None,
2472
+ }
2473
+ response_data = self.api_client.call_api(
2474
+ *_param,
2475
+ _request_timeout=_request_timeout
2476
+ )
2477
+ return response_data.response
2478
+
2479
+
2480
+ def _validation_set_validation_set_id_visibility_patch_serialize(
2481
+ self,
2482
+ validation_set_id,
2483
+ is_public,
2484
+ _request_auth,
2485
+ _content_type,
2486
+ _headers,
2487
+ _host_index,
2488
+ ) -> RequestSerialized:
2489
+
2490
+ _host = None
2491
+
2492
+ _collection_formats: Dict[str, str] = {
2493
+ }
2494
+
2495
+ _path_params: Dict[str, str] = {}
2496
+ _query_params: List[Tuple[str, str]] = []
2497
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2498
+ _form_params: List[Tuple[str, str]] = []
2499
+ _files: Dict[
2500
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2501
+ ] = {}
2502
+ _body_params: Optional[bytes] = None
2503
+
2504
+ # process the path parameters
2505
+ if validation_set_id is not None:
2506
+ _path_params['validationSetId'] = validation_set_id
2507
+ # process the query parameters
2508
+ if is_public is not None:
2509
+
2510
+ _query_params.append(('isPublic', is_public))
2511
+
2512
+ # process the header parameters
2513
+ # process the form parameters
2514
+ # process the body parameter
2515
+
2516
+
2517
+
2518
+
2519
+ # authentication setting
2520
+ _auth_settings: List[str] = [
2521
+ 'OAuth2',
2522
+ 'OpenIdConnect',
2523
+ 'Bearer'
2524
+ ]
2525
+
2526
+ return self.api_client.param_serialize(
2527
+ method='PATCH',
2528
+ resource_path='/validation-set/{validationSetId}/visibility',
2529
+ path_params=_path_params,
2530
+ query_params=_query_params,
2531
+ header_params=_header_params,
2532
+ body=_body_params,
2533
+ post_params=_form_params,
2534
+ files=_files,
2535
+ auth_settings=_auth_settings,
2536
+ collection_formats=_collection_formats,
2537
+ _host=_host,
2538
+ _request_auth=_request_auth
2539
+ )
2540
+
2541
+
2542
+
2543
+
2544
+ @validate_call
2545
+ def validation_sets_available_get(
2546
+ self,
2547
+ _request_timeout: Union[
2548
+ None,
2549
+ Annotated[StrictFloat, Field(gt=0)],
2550
+ Tuple[
2551
+ Annotated[StrictFloat, Field(gt=0)],
2552
+ Annotated[StrictFloat, Field(gt=0)]
2553
+ ]
2554
+ ] = None,
2555
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2556
+ _content_type: Optional[StrictStr] = None,
2557
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2558
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2559
+ ) -> GetAvailableValidationSetsResult:
2560
+ """Gets the available validation sets for the current user.
2561
+
2562
+
2563
+ :param _request_timeout: timeout setting for this request. If one
2564
+ number provided, it will be total request
2565
+ timeout. It can also be a pair (tuple) of
2566
+ (connection, read) timeouts.
2567
+ :type _request_timeout: int, tuple(int, int), optional
2568
+ :param _request_auth: set to override the auth_settings for an a single
2569
+ request; this effectively ignores the
2570
+ authentication in the spec for a single request.
2571
+ :type _request_auth: dict, optional
2572
+ :param _content_type: force content-type for the request.
2573
+ :type _content_type: str, Optional
2574
+ :param _headers: set to override the headers for a single
2575
+ request; this effectively ignores the headers
2576
+ in the spec for a single request.
2577
+ :type _headers: dict, optional
2578
+ :param _host_index: set to override the host_index for a single
2579
+ request; this effectively ignores the host_index
2580
+ in the spec for a single request.
2581
+ :type _host_index: int, optional
2582
+ :return: Returns the result object.
2583
+ """ # noqa: E501
2584
+
2585
+ _param = self._validation_sets_available_get_serialize(
2586
+ _request_auth=_request_auth,
2587
+ _content_type=_content_type,
2588
+ _headers=_headers,
2589
+ _host_index=_host_index
2590
+ )
2591
+
2592
+ _response_types_map: Dict[str, Optional[str]] = {
2593
+ '200': "GetAvailableValidationSetsResult",
2594
+ }
2595
+ response_data = self.api_client.call_api(
2596
+ *_param,
2597
+ _request_timeout=_request_timeout
2598
+ )
2599
+ response_data.read()
2600
+ return self.api_client.response_deserialize(
2601
+ response_data=response_data,
2602
+ response_types_map=_response_types_map,
2603
+ ).data
2604
+
2605
+
2606
+ @validate_call
2607
+ def validation_sets_available_get_with_http_info(
2608
+ self,
2609
+ _request_timeout: Union[
2610
+ None,
2611
+ Annotated[StrictFloat, Field(gt=0)],
2612
+ Tuple[
2613
+ Annotated[StrictFloat, Field(gt=0)],
2614
+ Annotated[StrictFloat, Field(gt=0)]
2615
+ ]
2616
+ ] = None,
2617
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2618
+ _content_type: Optional[StrictStr] = None,
2619
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2620
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2621
+ ) -> ApiResponse[GetAvailableValidationSetsResult]:
2622
+ """Gets the available validation sets for the current user.
2623
+
2624
+
2625
+ :param _request_timeout: timeout setting for this request. If one
2626
+ number provided, it will be total request
2627
+ timeout. It can also be a pair (tuple) of
2628
+ (connection, read) timeouts.
2629
+ :type _request_timeout: int, tuple(int, int), optional
2630
+ :param _request_auth: set to override the auth_settings for an a single
2631
+ request; this effectively ignores the
2632
+ authentication in the spec for a single request.
2633
+ :type _request_auth: dict, optional
2634
+ :param _content_type: force content-type for the request.
2635
+ :type _content_type: str, Optional
2636
+ :param _headers: set to override the headers for a single
2637
+ request; this effectively ignores the headers
2638
+ in the spec for a single request.
2639
+ :type _headers: dict, optional
2640
+ :param _host_index: set to override the host_index for a single
2641
+ request; this effectively ignores the host_index
2642
+ in the spec for a single request.
2643
+ :type _host_index: int, optional
2644
+ :return: Returns the result object.
2645
+ """ # noqa: E501
2646
+
2647
+ _param = self._validation_sets_available_get_serialize(
2648
+ _request_auth=_request_auth,
2649
+ _content_type=_content_type,
2650
+ _headers=_headers,
2651
+ _host_index=_host_index
2652
+ )
2653
+
2654
+ _response_types_map: Dict[str, Optional[str]] = {
2655
+ '200': "GetAvailableValidationSetsResult",
2656
+ }
2657
+ response_data = self.api_client.call_api(
2658
+ *_param,
2659
+ _request_timeout=_request_timeout
2660
+ )
2661
+ response_data.read()
2662
+ return self.api_client.response_deserialize(
2663
+ response_data=response_data,
2664
+ response_types_map=_response_types_map,
2665
+ )
2666
+
2667
+
2668
+ @validate_call
2669
+ def validation_sets_available_get_without_preload_content(
2670
+ self,
2671
+ _request_timeout: Union[
2672
+ None,
2673
+ Annotated[StrictFloat, Field(gt=0)],
2674
+ Tuple[
2675
+ Annotated[StrictFloat, Field(gt=0)],
2676
+ Annotated[StrictFloat, Field(gt=0)]
2677
+ ]
2678
+ ] = None,
2679
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2680
+ _content_type: Optional[StrictStr] = None,
2681
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2682
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2683
+ ) -> RESTResponseType:
2684
+ """Gets the available validation sets for the current user.
2685
+
2686
+
2687
+ :param _request_timeout: timeout setting for this request. If one
2688
+ number provided, it will be total request
2689
+ timeout. It can also be a pair (tuple) of
2690
+ (connection, read) timeouts.
2691
+ :type _request_timeout: int, tuple(int, int), optional
2692
+ :param _request_auth: set to override the auth_settings for an a single
2693
+ request; this effectively ignores the
2694
+ authentication in the spec for a single request.
2695
+ :type _request_auth: dict, optional
2696
+ :param _content_type: force content-type for the request.
2697
+ :type _content_type: str, Optional
2698
+ :param _headers: set to override the headers for a single
2699
+ request; this effectively ignores the headers
2700
+ in the spec for a single request.
2701
+ :type _headers: dict, optional
2702
+ :param _host_index: set to override the host_index for a single
2703
+ request; this effectively ignores the host_index
2704
+ in the spec for a single request.
2705
+ :type _host_index: int, optional
2706
+ :return: Returns the result object.
2707
+ """ # noqa: E501
2708
+
2709
+ _param = self._validation_sets_available_get_serialize(
2710
+ _request_auth=_request_auth,
2711
+ _content_type=_content_type,
2712
+ _headers=_headers,
2713
+ _host_index=_host_index
2714
+ )
2715
+
2716
+ _response_types_map: Dict[str, Optional[str]] = {
2717
+ '200': "GetAvailableValidationSetsResult",
2718
+ }
2719
+ response_data = self.api_client.call_api(
2720
+ *_param,
2721
+ _request_timeout=_request_timeout
2722
+ )
2723
+ return response_data.response
2724
+
2725
+
2726
+ def _validation_sets_available_get_serialize(
2727
+ self,
2728
+ _request_auth,
2729
+ _content_type,
2730
+ _headers,
2731
+ _host_index,
2732
+ ) -> RequestSerialized:
2733
+
2734
+ _host = None
2735
+
2736
+ _collection_formats: Dict[str, str] = {
2737
+ }
2738
+
2739
+ _path_params: Dict[str, str] = {}
2740
+ _query_params: List[Tuple[str, str]] = []
2741
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2742
+ _form_params: List[Tuple[str, str]] = []
2743
+ _files: Dict[
2744
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2745
+ ] = {}
2746
+ _body_params: Optional[bytes] = None
2747
+
2748
+ # process the path parameters
2749
+ # process the query parameters
2750
+ # process the header parameters
2751
+ # process the form parameters
2752
+ # process the body parameter
2753
+
2754
+
2755
+ # set the HTTP header `Accept`
2756
+ if 'Accept' not in _header_params:
2757
+ _header_params['Accept'] = self.api_client.select_header_accept(
2758
+ [
2759
+ 'text/plain',
2760
+ 'application/json',
2761
+ 'text/json'
2762
+ ]
2763
+ )
2764
+
2765
+
2766
+ # authentication setting
2767
+ _auth_settings: List[str] = [
2768
+ 'OAuth2',
2769
+ 'OpenIdConnect',
2770
+ 'Bearer'
2771
+ ]
2772
+
2773
+ return self.api_client.param_serialize(
2774
+ method='GET',
2775
+ resource_path='/validation-sets/available',
2776
+ path_params=_path_params,
2777
+ query_params=_query_params,
2778
+ header_params=_header_params,
2779
+ body=_body_params,
2780
+ post_params=_form_params,
2781
+ files=_files,
2782
+ auth_settings=_auth_settings,
2783
+ collection_formats=_collection_formats,
2784
+ _host=_host,
2785
+ _request_auth=_request_auth
2786
+ )
2787
+
2788
+
2789
+
2790
+
2791
+ @validate_call
2792
+ def validation_sets_get(
2793
+ self,
2794
+ model: Annotated[Optional[QueryModel], Field(description="The model containing the query parameters.")] = None,
2795
+ _request_timeout: Union[
2796
+ None,
2797
+ Annotated[StrictFloat, Field(gt=0)],
2798
+ Tuple[
2799
+ Annotated[StrictFloat, Field(gt=0)],
2800
+ Annotated[StrictFloat, Field(gt=0)]
2801
+ ]
2802
+ ] = None,
2803
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2804
+ _content_type: Optional[StrictStr] = None,
2805
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2806
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2807
+ ) -> PagedResultOfValidationSetModel:
2808
+ """Queries available validation sets based on the provided filter, paging and sorting criteria.
2809
+
2810
+
2811
+ :param model: The model containing the query parameters.
2812
+ :type model: QueryModel
2813
+ :param _request_timeout: timeout setting for this request. If one
2814
+ number provided, it will be total request
2815
+ timeout. It can also be a pair (tuple) of
2816
+ (connection, read) timeouts.
2817
+ :type _request_timeout: int, tuple(int, int), optional
2818
+ :param _request_auth: set to override the auth_settings for an a single
2819
+ request; this effectively ignores the
2820
+ authentication in the spec for a single request.
2821
+ :type _request_auth: dict, optional
2822
+ :param _content_type: force content-type for the request.
2823
+ :type _content_type: str, Optional
2824
+ :param _headers: set to override the headers for a single
2825
+ request; this effectively ignores the headers
2826
+ in the spec for a single request.
2827
+ :type _headers: dict, optional
2828
+ :param _host_index: set to override the host_index for a single
2829
+ request; this effectively ignores the host_index
2830
+ in the spec for a single request.
2831
+ :type _host_index: int, optional
2832
+ :return: Returns the result object.
2833
+ """ # noqa: E501
2834
+
2835
+ _param = self._validation_sets_get_serialize(
2836
+ model=model,
2837
+ _request_auth=_request_auth,
2838
+ _content_type=_content_type,
2839
+ _headers=_headers,
2840
+ _host_index=_host_index
2841
+ )
2842
+
2843
+ _response_types_map: Dict[str, Optional[str]] = {
2844
+ '200': "PagedResultOfValidationSetModel",
2845
+ }
2846
+ response_data = self.api_client.call_api(
2847
+ *_param,
2848
+ _request_timeout=_request_timeout
2849
+ )
2850
+ response_data.read()
2851
+ return self.api_client.response_deserialize(
2852
+ response_data=response_data,
2853
+ response_types_map=_response_types_map,
2854
+ ).data
2855
+
2856
+
2857
+ @validate_call
2858
+ def validation_sets_get_with_http_info(
2859
+ self,
2860
+ model: Annotated[Optional[QueryModel], Field(description="The model containing the query parameters.")] = None,
2861
+ _request_timeout: Union[
2862
+ None,
2863
+ Annotated[StrictFloat, Field(gt=0)],
2864
+ Tuple[
2865
+ Annotated[StrictFloat, Field(gt=0)],
2866
+ Annotated[StrictFloat, Field(gt=0)]
2867
+ ]
2868
+ ] = None,
2869
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2870
+ _content_type: Optional[StrictStr] = None,
2871
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2872
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2873
+ ) -> ApiResponse[PagedResultOfValidationSetModel]:
2874
+ """Queries available validation sets based on the provided filter, paging and sorting criteria.
2875
+
2876
+
2877
+ :param model: The model containing the query parameters.
2878
+ :type model: QueryModel
2879
+ :param _request_timeout: timeout setting for this request. If one
2880
+ number provided, it will be total request
2881
+ timeout. It can also be a pair (tuple) of
2882
+ (connection, read) timeouts.
2883
+ :type _request_timeout: int, tuple(int, int), optional
2884
+ :param _request_auth: set to override the auth_settings for an a single
2885
+ request; this effectively ignores the
2886
+ authentication in the spec for a single request.
2887
+ :type _request_auth: dict, optional
2888
+ :param _content_type: force content-type for the request.
2889
+ :type _content_type: str, Optional
2890
+ :param _headers: set to override the headers for a single
2891
+ request; this effectively ignores the headers
2892
+ in the spec for a single request.
2893
+ :type _headers: dict, optional
2894
+ :param _host_index: set to override the host_index for a single
2895
+ request; this effectively ignores the host_index
2896
+ in the spec for a single request.
2897
+ :type _host_index: int, optional
2898
+ :return: Returns the result object.
2899
+ """ # noqa: E501
2900
+
2901
+ _param = self._validation_sets_get_serialize(
2902
+ model=model,
2903
+ _request_auth=_request_auth,
2904
+ _content_type=_content_type,
2905
+ _headers=_headers,
2906
+ _host_index=_host_index
2907
+ )
2908
+
2909
+ _response_types_map: Dict[str, Optional[str]] = {
2910
+ '200': "PagedResultOfValidationSetModel",
2911
+ }
2912
+ response_data = self.api_client.call_api(
2913
+ *_param,
2914
+ _request_timeout=_request_timeout
2915
+ )
2916
+ response_data.read()
2917
+ return self.api_client.response_deserialize(
2918
+ response_data=response_data,
2919
+ response_types_map=_response_types_map,
2920
+ )
2921
+
2922
+
2923
+ @validate_call
2924
+ def validation_sets_get_without_preload_content(
2925
+ self,
2926
+ model: Annotated[Optional[QueryModel], Field(description="The model containing the query parameters.")] = None,
2927
+ _request_timeout: Union[
2928
+ None,
2929
+ Annotated[StrictFloat, Field(gt=0)],
2930
+ Tuple[
2931
+ Annotated[StrictFloat, Field(gt=0)],
2932
+ Annotated[StrictFloat, Field(gt=0)]
2933
+ ]
2934
+ ] = None,
2935
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2936
+ _content_type: Optional[StrictStr] = None,
2937
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2938
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2939
+ ) -> RESTResponseType:
2940
+ """Queries available validation sets based on the provided filter, paging and sorting criteria.
2941
+
2942
+
2943
+ :param model: The model containing the query parameters.
2944
+ :type model: QueryModel
2945
+ :param _request_timeout: timeout setting for this request. If one
2946
+ number provided, it will be total request
2947
+ timeout. It can also be a pair (tuple) of
2948
+ (connection, read) timeouts.
2949
+ :type _request_timeout: int, tuple(int, int), optional
2950
+ :param _request_auth: set to override the auth_settings for an a single
2951
+ request; this effectively ignores the
2952
+ authentication in the spec for a single request.
2953
+ :type _request_auth: dict, optional
2954
+ :param _content_type: force content-type for the request.
2955
+ :type _content_type: str, Optional
2956
+ :param _headers: set to override the headers for a single
2957
+ request; this effectively ignores the headers
2958
+ in the spec for a single request.
2959
+ :type _headers: dict, optional
2960
+ :param _host_index: set to override the host_index for a single
2961
+ request; this effectively ignores the host_index
2962
+ in the spec for a single request.
2963
+ :type _host_index: int, optional
2964
+ :return: Returns the result object.
2965
+ """ # noqa: E501
2966
+
2967
+ _param = self._validation_sets_get_serialize(
2968
+ model=model,
2969
+ _request_auth=_request_auth,
2970
+ _content_type=_content_type,
2971
+ _headers=_headers,
2972
+ _host_index=_host_index
2973
+ )
2974
+
2975
+ _response_types_map: Dict[str, Optional[str]] = {
2976
+ '200': "PagedResultOfValidationSetModel",
2977
+ }
2978
+ response_data = self.api_client.call_api(
2979
+ *_param,
2980
+ _request_timeout=_request_timeout
2981
+ )
2982
+ return response_data.response
2983
+
2984
+
2985
+ def _validation_sets_get_serialize(
2986
+ self,
2987
+ model,
2988
+ _request_auth,
2989
+ _content_type,
2990
+ _headers,
2991
+ _host_index,
2992
+ ) -> RequestSerialized:
2993
+
2994
+ _host = None
2995
+
2996
+ _collection_formats: Dict[str, str] = {
2997
+ }
2998
+
2999
+ _path_params: Dict[str, str] = {}
3000
+ _query_params: List[Tuple[str, str]] = []
3001
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3002
+ _form_params: List[Tuple[str, str]] = []
3003
+ _files: Dict[
3004
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3005
+ ] = {}
3006
+ _body_params: Optional[bytes] = None
3007
+
3008
+ # process the path parameters
3009
+ # process the query parameters
3010
+ if model is not None:
3011
+
3012
+ _query_params.append(('model', model))
3013
+
3014
+ # process the header parameters
3015
+ # process the form parameters
3016
+ # process the body parameter
3017
+
3018
+
3019
+ # set the HTTP header `Accept`
3020
+ if 'Accept' not in _header_params:
3021
+ _header_params['Accept'] = self.api_client.select_header_accept(
3022
+ [
3023
+ 'text/plain',
3024
+ 'application/json',
3025
+ 'text/json'
3026
+ ]
3027
+ )
3028
+
3029
+
3030
+ # authentication setting
3031
+ _auth_settings: List[str] = [
3032
+ 'OAuth2',
3033
+ 'OpenIdConnect',
3034
+ 'Bearer'
3035
+ ]
3036
+
3037
+ return self.api_client.param_serialize(
3038
+ method='GET',
3039
+ resource_path='/validation-sets',
3040
+ path_params=_path_params,
3041
+ query_params=_query_params,
3042
+ header_params=_header_params,
3043
+ body=_body_params,
3044
+ post_params=_form_params,
3045
+ files=_files,
3046
+ auth_settings=_auth_settings,
3047
+ collection_formats=_collection_formats,
3048
+ _host=_host,
3049
+ _request_auth=_request_auth
3050
+ )
3051
+
3052
+